Commit 8f6ccba59f9d2ded06ce26e3837f62bb35adee10

Brought basic autoconf support in place
.gitignore
(3 / 0)
  
1config.h
2initng-paths.h
3config.jam
Jamrules
(25 / 54)
  
2020# installation paths, and so on.
2121#
2222# These are defaults; please don't change them here unless you intent the
23# change to be permanent. Use environment variables or Jam's "-s" parameter
24# instead.
23# change to be permanent. Most of them are set during ./configure run, but if
24# not, either use the "-s" parameter or environment variables.
2525#
2626
27# Configuration variables for the build that will later on be in config.h or
28# initng-paths.h
29VERSION = 0.7.0svn ;
30VERSION_NAME = "Bleeding Edge" ;
31RUNLEVEL_DEFAULT = runlevel/default ;
32RUNLEVEL_FAKE = runlevel/fake-default ;
27include "config.jam" ;
28if ! $(CONFIGURED)
29{
30 Echo "*** Error: config.jam was not found." ;
31 Echo "Please run ./configure first." ;
32 Echo "If configure is not there, run: aclocal -Iaclocal && autoconf" ;
33 Echo "" ;
34 Exit "*** Not configured, stopping." ;
35}
3336
34# Paths used for installation.
37# Destination directory for package creation.
3538DESTDIR ?= ;
36prefix ?= / ;
37bindir ?= $(prefix)/bin ;
38sbindir ?= $(prefix)/sbin ;
39libdir ?= $(prefix)/lib ;
40includedir ?= /usr/include ;
41moddir ?= $(libdir)/initng ;
42mandir ?= /usr/share/man ;
43sysconfdir ?= $(prefix)/etc ;
44localstatedir ?= $(prefix)/var ;
4539
4640# Build defines. Don't add them as real parameters, just the define itself.
4741# Jam figures out what compiler command line switch to use itself.
4842DEFINES += HAVE_CONFIG_H _XOPEN_SOURCE=600 DEBUG ;
4943
50# Global C build and linker flags:
44# Global C build and linker flags aside from CFLAGS passed to configure:
5145CCFLAGS += -std=c99 -Wall -O2 ;
52CCFLAGS += -g -Werror -Wmissing-prototypes -Wmissing-declarations
46CCFLAGS += -Werror -Wmissing-prototypes -Wmissing-declarations
5347 -Wstrict-prototypes -Wimplicit -Wredundant-decls -Wnested-externs
5448 -Wwrite-strings -Wsign-compare -Winline -Wswitch -Wreturn-type
5549 -Wparentheses -Wmissing-braces -Wformat -Wformat-nonliteral
7171# modules that need 3rd-party libraries like D-BUS or others.
7272#
7373
74DBUS_INCLUDES = $(pkg-config --cflags-only-I dbus-1) ;
75DBUS_LIBS = $(pkg-config --cflags-only-I --cflags-only-l dbus-1) ;
74DBUS_INCLUDES = "`pkg-config --cflags-only-I dbus-1`" ;
75DBUS_LIBS = "`pkg-config --cflags-only-I --cflags-only-l dbus-1`" ;
7676
7777
7878### PART 4: CUSTOM RULES
153153# USAGE: SharedLibrary NAME : SOURCE1 SOURCE2 ... SOURCEn ;
154154rule SharedLibrary
155155{
156 LINKFLAGS on $(<) += -shared -Wl,-soname,$(<) ;
157 Main $(<) : $(>) ;
158}
156 local _sofile _soname _soversion _somajorversion ;
157 local _match = [ Match (.*)(\.(\d+)(\.\d+)*)? : $(<) ] ;
159158
159 _sofile = $(1) ;
160 _soname = $(_match[1]).$(_match[3]) ;
161 _soversion = $(match[3-4]) ;
162 _somajorversion = $(match[3]) ;
160163
161# Does simple pattern substitution and creates an header file from an .h.in
162# file. Takes the header file path as argument, not the .h.in.
163# USAGE: GenHeader header1 header2 headerN ;
164# EXAMPLE: GenHeader config.h initng-paths.h ;
165actions GenHeader
166{
167 for h in $(<).in
168 do
169 cat "$h" | sed \
170 -e 's,@VERSION@,$(VERSION),g' \
171 -e 's,@VERSION_NAME@,$(VERSION_NAME),g' \
172 -e 's,@RUNLEVEL_DEFAULT@,$(RUNLEVEL_DEFAULT),g' \
173 -e 's,@RUNLEVEL_FAKE@,$(RUNLEVEL_FAKE),g' \
174 -e 's,@PREFIX@,$(prefix),g' \
175 -e 's,@BINDIR@,$(bindir),g' \
176 -e 's,@LIBDIR@,$(libdir),g' \
177 -e 's,@SYSCONFDIR@,$(sysconfdir),g' \
178 -e 's,@LOCALSTATEDIR@,$(localstatedir),g' \
179 > "${h%*.in}"
180 done
181}
164 DEPENDS $(<) : $(_soname) $(_sofile) ;
182165
183rule GenHeader
184{
185 local _h ;
186 for _h in $(<)
187 {
188 INCLUDES $(_h).in ;
189 }
190 Clean clean : $(<) ;
166 LINKFLAGS on $(<) += -shared -Wl,-soname,$(_soname) ;
167 Main $(<) : $(>) ;
191168}
192169
193170
aclocal/initjamfile.m4
(24 / 0)
  
1#----------------------------------------------------------------------------
2# AC_INIT_JAM
3# This rule fixes several issues related to autoconf being make centric
4#----------------------------------------------------------------------------
5AC_DEFUN([AC_INIT_JAM],
6 [
7 AC_INIT_JAMFILE
8 AC_OUTPUT_INSTALLDIRS
9 AC_FIX_INSTALL])
10
11#----------------------------------------------------------------------------
12# AC_INIT_JAMFILE
13# This rule let's config.status create a wrapper Jamfile in case configure
14# has been invoked from a directory outside the source directory
15#----------------------------------------------------------------------------
16AC_DEFUN([AC_INIT_JAMFILE],
17 [AC_SUBST([JAMCONFIG_READ], [yes])
18 AC_CONFIG_COMMANDS([Jamfile],
19 [AS_IF([test ! -f "${ac_top_builddir}Jamfile"],
20 [echo Installing Jamfile wrapper.
21 echo "# This file was automatically create by config.status" > Jamfile
22 echo "TOP ?= $ac_top_srcdir ;" >> Jamfile
23 echo "top_builddir ?= . ;" >> Jamfile
24 echo "include \$(TOP)/Jamfile ;" >> Jamfile])])])
aclocal/installdirs.m4
(90 / 0)
  
1#-----------------------------------------------------------------------------
2# installdirs.m4 (c) Matze Braun <matze@braunis.de>
3# Macros for outputing the installation paths which autoconf gathers into the
4# Jamconfig file.
5#-----------------------------------------------------------------------------
6
7#-----------------------------------------------------------------------------
8# AC_OUTPUT_INSTALLDIRS
9# Transforms the installation dirs which are gathered by autoconf and sets
10# properties in the Jamconfig file for them. We deal with stuff like
11# variable references inside the paths (often the paths contain ${prefix})
12# and with correct quoting here.
13# The script will set the INSTALLDIR.PREFIX, INSTALLDIR.EXEC_PREFIX,
14# INSTALLDIR.APPLICATION, INSTALLDIR.SBIN, INSTALLDIR.LIBEXEC,
15# INSTALLDIR.DATA, INSTALLDIR.MAP, INSTALLDIR.CONFIG, INSTALLDIR.SHAREDSTATE
16# INSTALLDIR.LOCALSTATE, INSTALLDIR.PLUGIN, INSTALLDIR.DOC
17# INSTALLDIR.LIBRARY, INSTALLDIR.INCLUDE, INSTALLDIR.OLDINCLUDE,
18# INSTALLDIR.INFO, INSTALLDIR.MAN
19#-----------------------------------------------------------------------------
20AC_DEFUN([AC_OUTPUT_INSTALLDIRS],[
21# Handle the case when no prefix is given. And the special case when a path
22# contains more than 2 slashes, these paths seem to be correct but jam fails
23# on them.
24AS_IF([test $prefix = NONE], [prefix="$ac_default_prefix"],
25 [prefix=`echo "$prefix" | sed -e 's:///*:/:g'`])
26AS_IF([test $exec_prefix = NONE],
27 [exec_prefix="AS_ESCAPE([$(prefix)])"],
28 [exec_prefix=`echo "$exec_prefix" | sed -e 's:///*:/:g'`])
29
30prefix=AC_FIX_VARIABLEREF([$prefix])
31exec_prefix=AC_FIX_VARIABLEREF([$exec_prefix])
32bindir=AC_FIX_VARIABLEREF([$bindir])
33sbindir=AC_FIX_VARIABLEREF([$sbindir])
34libexecdir=AC_FIX_VARIABLEREF([$libexecdir])
35datadir=AC_FIX_VARIABLEREF([$datadir])
36sysconfdir=AC_FIX_VARIABLEREF([$sysconfdir])
37sharedstatedir=AC_FIX_VARIABLEREF([$sharedstatedir])
38localstatedir=AC_FIX_VARIABLEREF([$localstatedir])
39libdir=AC_FIX_VARIABLEREF([$libdir])
40includedir=AC_FIX_VARIABLEREF([$includedir])
41oldincludedir=AC_FIX_VARIABLEREF([$oldincludedir])
42infodir=AC_FIX_VARIABLEREF([$infodir])
43mandir=AC_FIX_VARIABLEREF([$mandir])
44
45#hack to get the order right :-/ (autoconf --trace reports wrong order...)
46AC_SUBST(prefix)
47AC_SUBST(exec_prefix)
48AC_SUBST(bindir)
49AC_SUBST(sbindir)
50AC_SUBST(libexecdir)
51AC_SUBST(datadir)
52AC_SUBST(sysconfdir)
53AC_SUBST(sharedstatedir)
54AC_SUBST(localstatedir)
55AC_SUBST(libdir)
56AC_SUBST(includedir)
57AC_SUBST(oldincludedir)
58AC_SUBST(infodir)
59AC_SUBST(mandir)
60])
61
62#-----------------------------------------------------------------------------
63# AC_FIX_INSTALL
64# Fixes the output from AC_PROG_INSTALL
65#-----------------------------------------------------------------------------
66AC_DEFUN([AC_FIX_INSTALL], [
67AC_REQUIRE([AC_PROG_INSTALL])
68INSTALL=AC_FIX_VARIABLEREF([$INSTALL])
69INSTALL_PROGRAM=AC_FIX_VARIABLEREF([$INSTALL_PROGRAM])
70INSTALL_SCRIPT=AC_FIX_VARIABLEREF([$INSTALL_SCRIPT])
71INSTALL_DATA=AC_FIX_VARIABLEREF([$INSTALL_DATA])
72
73# fix for order...
74AC_SUBST([INSTALL])
75AC_SUBST([INSTALL_PROGRAM])
76AC_SUBST([INSTALL_SCRIPT])
77AC_SUBST([INSTALL_DATA])
78])
79
80#-----------------------------------------------------------------------------
81# AC_PREPARE_INSTALLPATH
82# Transform variables of the form ${bla} to $(bla) inside the string and
83# correctly quotes backslashes.
84# This is needed if you want to output some of the paths that autoconf
85# creates to the Jamconfig file.
86#-----------------------------------------------------------------------------
87AC_DEFUN([AC_FIX_VARIABLEREF],
88dnl We need all the strange \\\\ quoting here, because the command will be
89dnl inserted into a "" block and sed needs quoting as well
90[`echo "$1" | sed -e 's/\${\([[a-zA-Z_][a-zA-Z_]]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`])
build.sh
(0 / 64)
  
1#!/bin/sh
2[ -z "${BDIR}" ] && BDIR=build
3
4die()
5{
6 echo "ERROR: ${*}."
7 exit 1
8}
9
10ask()
11{
12 echo -n "${*} [n]? "
13 read _answer
14 [ "${_answer}" = "y" ]
15}
16
17echo "**** Creating the build directory ***"
18if [ -d "${BDIR}" ]; then
19 echo "WARNING: ${BDIR} already exists."
20 ask "Do you want to continue" || exit 0
21 rm -rf "${BDIR}"
22fi
23mkdir "${BDIR}"
24cd "${BDIR}" || die "Can't create directory ${BDIR}"
25
26echo "**** Configuring project ****"
27cmake .. "$@" || die "Configuration failed"
28
29echo "**** Compiling project ****"
30make || die "Compilation failed"
31
32echo "**** Installing project ****"
33if ask "Do you want to install initng now"; then
34 if [ ${UID} -eq 0 ]; then
35 make install
36 else
37 echo "root privileges required."
38 su -c "make install"
39 fi || die "Installation failed"
40fi
41
42echo "Reloading of initng is strongly recommended."
43if ask "Do you want to reload initng now"; then
44 echo "**** Reloading initng ****"
45 if [ ${UID} -eq 0 ] ; then
46 ngc -R
47 else
48 echo "root privileges required."
49 su -c "/sbin/ngc -R"
50 fi
51else
52 echo "**** Skipping reloading of initng ****"
53 echo "You can reload it calling 'ngc -R'."
54fi
55
56# Calling count_me.sh from within the build directory (config.h)
57ask "Do you want to be counted as user of initng" &&
58 ../count_me.sh
59
60cd ..
61ask "Do you want to clear the build directory" &&
62 rm -rf "${BDIR}"
63
64exit 0
config.h.in
(4 / 3)
  
1#define VERSION "@VERSION@"
2#define VERSION_NAME "@VERSION_NAME@"
3#define RUNLEVEL_DEFAULT "@RUNLEVEL_DEFAULT@"
1#define VERSION "@PACKAGE_VERSION@"
2#define VERSION_NAME "Bleeding Edge"
3#define RUNLEVEL_DEFAULT "runlevel/default"
4#define RUNLEVEL_FAKE "runlevel/fake-default"
config.jam.in
(21 / 0)
  
1CFLAGS = @CFLAGS@ ;
2
3# Paths.
4prefix = @prefix@ ;
5exec_prefix = @exec_prefix@ ;
6bindir = @bindir@ ;
7sbindir = @sbindir@ ;
8libdir = @libdir@ ;
9includedir = @includedir@ ;
10moddir = $(libdir)/initng ;
11mandir = @mandir@ ;
12sysconfdir = @sysconfdir@ ;
13localstatedir = @localstatedir@ ;
14datarootdir = @datarootdir@ ;
15
16# D-Bus extras
17DBUS_CFLAGS = @DBUS_CFLAGS@ ;
18DBUS_LIBS = @DBUS_LIBS@ ;
19
20# Set $(CONFIGURED) variable. :-)
21CONFIGURED = 1 ;
configure
(5638 / 0)
  
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for InitNG 0.7-GIT.
4#
5# Report bugs to <http://initng.sourceforge.net/trac>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://initng.sourceforge.net/trac about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
534
535# Name of the host.
536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
544ac_clean_files=
545ac_config_libobj_dir=.
546LIBOBJS=
547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
551
552# Identity of this package.
553PACKAGE_NAME='InitNG'
554PACKAGE_TARNAME='initng'
555PACKAGE_VERSION='0.7-GIT'
556PACKAGE_STRING='InitNG 0.7-GIT'
557PACKAGE_BUGREPORT='http://initng.sourceforge.net/trac'
558PACKAGE_URL=''
559
560# Factoring default headers for most tests.
561ac_includes_default="\
562#include <stdio.h>
563#ifdef HAVE_SYS_TYPES_H
564# include <sys/types.h>
565#endif
566#ifdef HAVE_SYS_STAT_H
567# include <sys/stat.h>
568#endif
569#ifdef STDC_HEADERS
570# include <stdlib.h>
571# include <stddef.h>
572#else
573# ifdef HAVE_STDLIB_H
574# include <stdlib.h>
575# endif
576#endif
577#ifdef HAVE_STRING_H
578# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579# include <memory.h>
580# endif
581# include <string.h>
582#endif
583#ifdef HAVE_STRINGS_H
584# include <strings.h>
585#endif
586#ifdef HAVE_INTTYPES_H
587# include <inttypes.h>
588#endif
589#ifdef HAVE_STDINT_H
590# include <stdint.h>
591#endif
592#ifdef HAVE_UNISTD_H
593# include <unistd.h>
594#endif"
595
596ac_subst_vars='LTLIBOBJS
597DBUS_LIBS
598DBUS_CFLAGS
599PKG_CONFIG
600LIBOBJS
601EGREP
602GREP
603CPP
604OBJEXT
605EXEEXT
606ac_ct_CC
607CPPFLAGS
608LDFLAGS
609CFLAGS
610CC
611target_alias
612host_alias
613build_alias
614LIBS
615ECHO_T
616ECHO_N
617ECHO_C
618DEFS
619mandir
620localedir
621libdir
622psdir
623pdfdir
624dvidir
625htmldir
626infodir
627docdir
628oldincludedir
629includedir
630localstatedir
631sharedstatedir
632sysconfdir
633datadir
634datarootdir
635libexecdir
636sbindir
637bindir
638program_transform_name
639prefix
640exec_prefix
641PACKAGE_URL
642PACKAGE_BUGREPORT
643PACKAGE_STRING
644PACKAGE_VERSION
645PACKAGE_TARNAME
646PACKAGE_NAME
647PATH_SEPARATOR
648SHELL'
649ac_subst_files=''
650ac_user_opts='
651enable_option_checking
652'
653 ac_precious_vars='build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659LIBS
660CPPFLAGS
661CPP
662PKG_CONFIG
663DBUS_CFLAGS
664DBUS_LIBS'
665
666
667# Initialize some variables set by options.
668ac_init_help=
669ac_init_version=false
670ac_unrecognized_opts=
671ac_unrecognized_sep=
672# The variables have the same names as the options, with
673# dashes changed to underlines.
674cache_file=/dev/null
675exec_prefix=NONE
676no_create=
677no_recursion=
678prefix=NONE
679program_prefix=NONE
680program_suffix=NONE
681program_transform_name=s,x,x,
682silent=
683site=
684srcdir=
685verbose=
686x_includes=NONE
687x_libraries=NONE
688
689# Installation directory options.
690# These are left unexpanded so users can "make install exec_prefix=/foo"
691# and all the variables that are supposed to be based on exec_prefix
692# by default will actually change.
693# Use braces instead of parens because sh, perl, etc. also accept them.
694# (The list follows the same order as the GNU Coding Standards.)
695bindir='${exec_prefix}/bin'
696sbindir='${exec_prefix}/sbin'
697libexecdir='${exec_prefix}/libexec'
698datarootdir='${prefix}/share'
699datadir='${datarootdir}'
700sysconfdir='${prefix}/etc'
701sharedstatedir='${prefix}/com'
702localstatedir='${prefix}/var'
703includedir='${prefix}/include'
704oldincludedir='/usr/include'
705docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
706infodir='${datarootdir}/info'
707htmldir='${docdir}'
708dvidir='${docdir}'
709pdfdir='${docdir}'
710psdir='${docdir}'
711libdir='${exec_prefix}/lib'
712localedir='${datarootdir}/locale'
713mandir='${datarootdir}/man'
714
715ac_prev=
716ac_dashdash=
717for ac_option
718do
719 # If the previous option needs an argument, assign it.
720 if test -n "$ac_prev"; then
721 eval $ac_prev=\$ac_option
722 ac_prev=
723 continue
724 fi
725
726 case $ac_option in
727 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
728 *) ac_optarg=yes ;;
729 esac
730
731 # Accept the important Cygnus configure options, so we can diagnose typos.
732
733 case $ac_dashdash$ac_option in
734 --)
735 ac_dashdash=yes ;;
736
737 -bindir | --bindir | --bindi | --bind | --bin | --bi)
738 ac_prev=bindir ;;
739 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
740 bindir=$ac_optarg ;;
741
742 -build | --build | --buil | --bui | --bu)
743 ac_prev=build_alias ;;
744 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
745 build_alias=$ac_optarg ;;
746
747 -cache-file | --cache-file | --cache-fil | --cache-fi \
748 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
749 ac_prev=cache_file ;;
750 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
751 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
752 cache_file=$ac_optarg ;;
753
754 --config-cache | -C)
755 cache_file=config.cache ;;
756
757 -datadir | --datadir | --datadi | --datad)
758 ac_prev=datadir ;;
759 -datadir=* | --datadir=* | --datadi=* | --datad=*)
760 datadir=$ac_optarg ;;
761
762 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
763 | --dataroo | --dataro | --datar)
764 ac_prev=datarootdir ;;
765 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
766 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
767 datarootdir=$ac_optarg ;;
768
769 -disable-* | --disable-*)
770 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
771 # Reject names that are not valid shell variable names.
772 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
773 as_fn_error "invalid feature name: $ac_useropt"
774 ac_useropt_orig=$ac_useropt
775 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
776 case $ac_user_opts in
777 *"
778"enable_$ac_useropt"
779"*) ;;
780 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
781 ac_unrecognized_sep=', ';;
782 esac
783 eval enable_$ac_useropt=no ;;
784
785 -docdir | --docdir | --docdi | --doc | --do)
786 ac_prev=docdir ;;
787 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
788 docdir=$ac_optarg ;;
789
790 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
791 ac_prev=dvidir ;;
792 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
793 dvidir=$ac_optarg ;;
794
795 -enable-* | --enable-*)
796 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799 as_fn_error "invalid feature name: $ac_useropt"
800 ac_useropt_orig=$ac_useropt
801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
802 case $ac_user_opts in
803 *"
804"enable_$ac_useropt"
805"*) ;;
806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
807 ac_unrecognized_sep=', ';;
808 esac
809 eval enable_$ac_useropt=\$ac_optarg ;;
810
811 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
812 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
813 | --exec | --exe | --ex)
814 ac_prev=exec_prefix ;;
815 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
816 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
817 | --exec=* | --exe=* | --ex=*)
818 exec_prefix=$ac_optarg ;;
819
820 -gas | --gas | --ga | --g)
821 # Obsolete; use --with-gas.
822 with_gas=yes ;;
823
824 -help | --help | --hel | --he | -h)
825 ac_init_help=long ;;
826 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
827 ac_init_help=recursive ;;
828 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
829 ac_init_help=short ;;
830
831 -host | --host | --hos | --ho)
832 ac_prev=host_alias ;;
833 -host=* | --host=* | --hos=* | --ho=*)
834 host_alias=$ac_optarg ;;
835
836 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
837 ac_prev=htmldir ;;
838 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
839 | --ht=*)
840 htmldir=$ac_optarg ;;
841
842 -includedir | --includedir | --includedi | --included | --include \
843 | --includ | --inclu | --incl | --inc)
844 ac_prev=includedir ;;
845 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
846 | --includ=* | --inclu=* | --incl=* | --inc=*)
847 includedir=$ac_optarg ;;
848
849 -infodir | --infodir | --infodi | --infod | --info | --inf)
850 ac_prev=infodir ;;
851 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
852 infodir=$ac_optarg ;;
853
854 -libdir | --libdir | --libdi | --libd)
855 ac_prev=libdir ;;
856 -libdir=* | --libdir=* | --libdi=* | --libd=*)
857 libdir=$ac_optarg ;;
858
859 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
860 | --libexe | --libex | --libe)
861 ac_prev=libexecdir ;;
862 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
863 | --libexe=* | --libex=* | --libe=*)
864 libexecdir=$ac_optarg ;;
865
866 -localedir | --localedir | --localedi | --localed | --locale)
867 ac_prev=localedir ;;
868 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
869 localedir=$ac_optarg ;;
870
871 -localstatedir | --localstatedir | --localstatedi | --localstated \
872 | --localstate | --localstat | --localsta | --localst | --locals)
873 ac_prev=localstatedir ;;
874 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
875 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
876 localstatedir=$ac_optarg ;;
877
878 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
879 ac_prev=mandir ;;
880 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
881 mandir=$ac_optarg ;;
882
883 -nfp | --nfp | --nf)
884 # Obsolete; use --without-fp.
885 with_fp=no ;;
886
887 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
888 | --no-cr | --no-c | -n)
889 no_create=yes ;;
890
891 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
892 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
893 no_recursion=yes ;;
894
895 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
896 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
897 | --oldin | --oldi | --old | --ol | --o)
898 ac_prev=oldincludedir ;;
899 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
900 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
901 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
902 oldincludedir=$ac_optarg ;;
903
904 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
905 ac_prev=prefix ;;
906 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
907 prefix=$ac_optarg ;;
908
909 -program-prefix | --program-prefix | --program-prefi | --program-pref \
910 | --program-pre | --program-pr | --program-p)
911 ac_prev=program_prefix ;;
912 -program-prefix=* | --program-prefix=* | --program-prefi=* \
913 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
914 program_prefix=$ac_optarg ;;
915
916 -program-suffix | --program-suffix | --program-suffi | --program-suff \
917 | --program-suf | --program-su | --program-s)
918 ac_prev=program_suffix ;;
919 -program-suffix=* | --program-suffix=* | --program-suffi=* \
920 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
921 program_suffix=$ac_optarg ;;
922
923 -program-transform-name | --program-transform-name \
924 | --program-transform-nam | --program-transform-na \
925 | --program-transform-n | --program-transform- \
926 | --program-transform | --program-transfor \
927 | --program-transfo | --program-transf \
928 | --program-trans | --program-tran \
929 | --progr-tra | --program-tr | --program-t)
930 ac_prev=program_transform_name ;;
931 -program-transform-name=* | --program-transform-name=* \
932 | --program-transform-nam=* | --program-transform-na=* \
933 | --program-transform-n=* | --program-transform-=* \
934 | --program-transform=* | --program-transfor=* \
935 | --program-transfo=* | --program-transf=* \
936 | --program-trans=* | --program-tran=* \
937 | --progr-tra=* | --program-tr=* | --program-t=*)
938 program_transform_name=$ac_optarg ;;
939
940 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
941 ac_prev=pdfdir ;;
942 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
943 pdfdir=$ac_optarg ;;
944
945 -psdir | --psdir | --psdi | --psd | --ps)
946 ac_prev=psdir ;;
947 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
948 psdir=$ac_optarg ;;
949
950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
951 | -silent | --silent | --silen | --sile | --sil)
952 silent=yes ;;
953
954 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
955 ac_prev=sbindir ;;
956 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
957 | --sbi=* | --sb=*)
958 sbindir=$ac_optarg ;;
959
960 -sharedstatedir | --sharedstatedir | --sharedstatedi \
961 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
962 | --sharedst | --shareds | --shared | --share | --shar \
963 | --sha | --sh)
964 ac_prev=sharedstatedir ;;
965 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
966 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
967 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
968 | --sha=* | --sh=*)
969 sharedstatedir=$ac_optarg ;;
970
971 -site | --site | --sit)
972 ac_prev=site ;;
973 -site=* | --site=* | --sit=*)
974 site=$ac_optarg ;;
975
976 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
977 ac_prev=srcdir ;;
978 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979 srcdir=$ac_optarg ;;
980
981 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
982 | --syscon | --sysco | --sysc | --sys | --sy)
983 ac_prev=sysconfdir ;;
984 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
985 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
986 sysconfdir=$ac_optarg ;;
987
988 -target | --target | --targe | --targ | --tar | --ta | --t)
989 ac_prev=target_alias ;;
990 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
991 target_alias=$ac_optarg ;;
992
993 -v | -verbose | --verbose | --verbos | --verbo | --verb)
994 verbose=yes ;;
995
996 -version | --version | --versio | --versi | --vers | -V)
997 ac_init_version=: ;;
998
999 -with-* | --with-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid package name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008"with_$ac_useropt"
1009"*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval with_$ac_useropt=\$ac_optarg ;;
1014
1015 -without-* | --without-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error "invalid package name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"with_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval with_$ac_useropt=no ;;
1030
1031 --x)
1032 # Obsolete; use --with-x.
1033 with_x=yes ;;
1034
1035 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1036 | --x-incl | --x-inc | --x-in | --x-i)
1037 ac_prev=x_includes ;;
1038 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1039 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1040 x_includes=$ac_optarg ;;
1041
1042 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1043 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1044 ac_prev=x_libraries ;;
1045 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1046 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1047 x_libraries=$ac_optarg ;;
1048
1049 -*) as_fn_error "unrecognized option: \`$ac_option'
1050Try \`$0 --help' for more information."
1051 ;;
1052
1053 *=*)
1054 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055 # Reject names that are not valid shell variable names.
1056 case $ac_envvar in #(
1057 '' | [0-9]* | *[!_$as_cr_alnum]* )
1058 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1059 esac
1060 eval $ac_envvar=\$ac_optarg
1061 export $ac_envvar ;;
1062
1063 *)
1064 # FIXME: should be removed in autoconf 3.0.
1065 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1066 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1068 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1069 ;;
1070
1071 esac
1072done
1073
1074if test -n "$ac_prev"; then
1075 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1076 as_fn_error "missing argument to $ac_option"
1077fi
1078
1079if test -n "$ac_unrecognized_opts"; then
1080 case $enable_option_checking in
1081 no) ;;
1082 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1083 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1084 esac
1085fi
1086
1087# Check all directory arguments for consistency.
1088for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1089 datadir sysconfdir sharedstatedir localstatedir includedir \
1090 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1091 libdir localedir mandir
1092do
1093 eval ac_val=\$$ac_var
1094 # Remove trailing slashes.
1095 case $ac_val in
1096 */ )
1097 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1098 eval $ac_var=\$ac_val;;
1099 esac
1100 # Be sure to have absolute directory names.
1101 case $ac_val in
1102 [\\/$]* | ?:[\\/]* ) continue;;
1103 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1104 esac
1105 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1106done
1107
1108# There might be people who depend on the old broken behavior: `$host'
1109# used to hold the argument of --host etc.
1110# FIXME: To remove some day.
1111build=$build_alias
1112host=$host_alias
1113target=$target_alias
1114
1115# FIXME: To remove some day.
1116if test "x$host_alias" != x; then
1117 if test "x$build_alias" = x; then
1118 cross_compiling=maybe
1119 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1120 If a cross compiler is detected then cross compile mode will be used." >&2
1121 elif test "x$build_alias" != "x$host_alias"; then
1122 cross_compiling=yes
1123 fi
1124fi
1125
1126ac_tool_prefix=
1127test -n "$host_alias" && ac_tool_prefix=$host_alias-
1128
1129test "$silent" = yes && exec 6>/dev/null
1130
1131
1132ac_pwd=`pwd` && test -n "$ac_pwd" &&
1133ac_ls_di=`ls -di .` &&
1134ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1135 as_fn_error "working directory cannot be determined"
1136test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1137 as_fn_error "pwd does not report name of working directory"
1138
1139
1140# Find the source files, if location was not specified.
1141if test -z "$srcdir"; then
1142 ac_srcdir_defaulted=yes
1143 # Try the directory containing this script, then the parent directory.
1144 ac_confdir=`$as_dirname -- "$as_myself" ||
1145$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1146 X"$as_myself" : 'X\(//\)[^/]' \| \
1147 X"$as_myself" : 'X\(//\)$' \| \
1148 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1149$as_echo X"$as_myself" |
1150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1151 s//\1/
1152 q
1153 }
1154 /^X\(\/\/\)[^/].*/{
1155 s//\1/
1156 q
1157 }
1158 /^X\(\/\/\)$/{
1159 s//\1/
1160 q
1161 }
1162 /^X\(\/\).*/{
1163 s//\1/
1164 q
1165 }
1166 s/.*/./; q'`
1167 srcdir=$ac_confdir
1168 if test ! -r "$srcdir/$ac_unique_file"; then
1169 srcdir=..
1170 fi
1171else
1172 ac_srcdir_defaulted=no
1173fi
1174if test ! -r "$srcdir/$ac_unique_file"; then
1175 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1176 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1177fi
1178ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1179ac_abs_confdir=`(
1180 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1181 pwd)`
1182# When building in place, set srcdir=.
1183if test "$ac_abs_confdir" = "$ac_pwd"; then
1184 srcdir=.
1185fi
1186# Remove unnecessary trailing slashes from srcdir.
1187# Double slashes in file names in object file debugging info
1188# mess up M-x gdb in Emacs.
1189case $srcdir in
1190*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1191esac
1192for ac_var in $ac_precious_vars; do
1193 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1194 eval ac_env_${ac_var}_value=\$${ac_var}
1195 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1196 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1197done
1198
1199#
1200# Report the --help message.
1201#
1202if test "$ac_init_help" = "long"; then
1203 # Omit some internal or obsolete options to make the list less imposing.
1204 # This message is too long to be a string in the A/UX 3.1 sh.
1205 cat <<_ACEOF
1206\`configure' configures InitNG 0.7-GIT to adapt to many kinds of systems.
1207
1208Usage: $0 [OPTION]... [VAR=VALUE]...
1209
1210To assign environment variables (e.g., CC, CFLAGS...), specify them as
1211VAR=VALUE. See below for descriptions of some of the useful variables.
1212
1213Defaults for the options are specified in brackets.
1214
1215Configuration:
1216 -h, --help display this help and exit
1217 --help=short display options specific to this package
1218 --help=recursive display the short help of all the included packages
1219 -V, --version display version information and exit
1220 -q, --quiet, --silent do not print \`checking...' messages
1221 --cache-file=FILE cache test results in FILE [disabled]
1222 -C, --config-cache alias for \`--cache-file=config.cache'
1223 -n, --no-create do not create output files
1224 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1225
1226Installation directories:
1227 --prefix=PREFIX install architecture-independent files in PREFIX
1228 [$ac_default_prefix]
1229 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1230 [PREFIX]
1231
1232By default, \`make install' will install all the files in
1233\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1234an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1235for instance \`--prefix=\$HOME'.
1236
1237For better control, use the options below.
1238
1239Fine tuning of the installation directories:
1240 --bindir=DIR user executables [EPREFIX/bin]
1241 --sbindir=DIR system admin executables [EPREFIX/sbin]
1242 --libexecdir=DIR program executables [EPREFIX/libexec]
1243 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1244 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1245 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1246 --libdir=DIR object code libraries [EPREFIX/lib]
1247 --includedir=DIR C header files [PREFIX/include]
1248 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1249 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1250 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1251 --infodir=DIR info documentation [DATAROOTDIR/info]
1252 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1253 --mandir=DIR man documentation [DATAROOTDIR/man]
1254 --docdir=DIR documentation root [DATAROOTDIR/doc/initng]
1255 --htmldir=DIR html documentation [DOCDIR]
1256 --dvidir=DIR dvi documentation [DOCDIR]
1257 --pdfdir=DIR pdf documentation [DOCDIR]
1258 --psdir=DIR ps documentation [DOCDIR]
1259_ACEOF
1260
1261 cat <<\_ACEOF
1262_ACEOF
1263fi
1264
1265if test -n "$ac_init_help"; then
1266 case $ac_init_help in
1267 short | recursive ) echo "Configuration of InitNG 0.7-GIT:";;
1268 esac
1269 cat <<\_ACEOF
1270
1271Some influential environment variables:
1272 CC C compiler command
1273 CFLAGS C compiler flags
1274 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1275 nonstandard directory <lib dir>
1276 LIBS libraries to pass to the linker, e.g. -l<library>
1277 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1278 you have headers in a nonstandard directory <include dir>
1279 CPP C preprocessor
1280 PKG_CONFIG path to pkg-config utility
1281 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1282 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1283
1284Use these variables to override the choices made by `configure' or to help
1285it to find libraries and programs with nonstandard names/locations.
1286
1287Report bugs to <http://initng.sourceforge.net/trac>.
1288_ACEOF
1289ac_status=$?
1290fi
1291
1292if test "$ac_init_help" = "recursive"; then
1293 # If there are subdirs, report their specific --help.
1294 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1295 test -d "$ac_dir" ||
1296 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1297 continue
1298 ac_builddir=.
1299
1300case "$ac_dir" in
1301.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1302*)
1303 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1304 # A ".." for each directory in $ac_dir_suffix.
1305 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1306 case $ac_top_builddir_sub in
1307 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1308 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1309 esac ;;
1310esac
1311ac_abs_top_builddir=$ac_pwd
1312ac_abs_builddir=$ac_pwd$ac_dir_suffix
1313# for backward compatibility:
1314ac_top_builddir=$ac_top_build_prefix
1315
1316case $srcdir in
1317 .) # We are building in place.
1318 ac_srcdir=.
1319 ac_top_srcdir=$ac_top_builddir_sub
1320 ac_abs_top_srcdir=$ac_pwd ;;
1321 [\\/]* | ?:[\\/]* ) # Absolute name.
1322 ac_srcdir=$srcdir$ac_dir_suffix;
1323 ac_top_srcdir=$srcdir
1324 ac_abs_top_srcdir=$srcdir ;;
1325 *) # Relative name.
1326 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1327 ac_top_srcdir=$ac_top_build_prefix$srcdir
1328 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1329esac
1330ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1331
1332 cd "$ac_dir" || { ac_status=$?; continue; }
1333 # Check for guested configure.
1334 if test -f "$ac_srcdir/configure.gnu"; then
1335 echo &&
1336 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1337 elif test -f "$ac_srcdir/configure"; then
1338 echo &&
1339 $SHELL "$ac_srcdir/configure" --help=recursive
1340 else
1341 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1342 fi || ac_status=$?
1343 cd "$ac_pwd" || { ac_status=$?; break; }
1344 done
1345fi
1346
1347test -n "$ac_init_help" && exit $ac_status
1348if $ac_init_version; then
1349 cat <<\_ACEOF
1350InitNG configure 0.7-GIT
1351generated by GNU Autoconf 2.65
1352
1353Copyright (C) 2009 Free Software Foundation, Inc.
1354This configure script is free software; the Free Software Foundation
1355gives unlimited permission to copy, distribute and modify it.
1356_ACEOF
1357 exit
1358fi
1359
1360## ------------------------ ##
1361## Autoconf initialization. ##
1362## ------------------------ ##
1363
1364# ac_fn_c_try_compile LINENO
1365# --------------------------
1366# Try to compile conftest.$ac_ext, and return whether this succeeded.
1367ac_fn_c_try_compile ()
1368{
1369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1370 rm -f conftest.$ac_objext
1371 if { { ac_try="$ac_compile"
1372case "(($ac_try" in
1373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1374 *) ac_try_echo=$ac_try;;
1375esac
1376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1377$as_echo "$ac_try_echo"; } >&5
1378 (eval "$ac_compile") 2>conftest.err
1379 ac_status=$?
1380 if test -s conftest.err; then
1381 grep -v '^ *+' conftest.err >conftest.er1
1382 cat conftest.er1 >&5
1383 mv -f conftest.er1 conftest.err
1384 fi
1385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1386 test $ac_status = 0; } && {
1387 test -z "$ac_c_werror_flag" ||
1388 test ! -s conftest.err
1389 } && test -s conftest.$ac_objext; then :
1390 ac_retval=0
1391else
1392 $as_echo "$as_me: failed program was:" >&5
1393sed 's/^/| /' conftest.$ac_ext >&5
1394
1395 ac_retval=1
1396fi
1397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1398 as_fn_set_status $ac_retval
1399
1400} # ac_fn_c_try_compile
1401
1402# ac_fn_c_try_cpp LINENO
1403# ----------------------
1404# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1405ac_fn_c_try_cpp ()
1406{
1407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1408 if { { ac_try="$ac_cpp conftest.$ac_ext"
1409case "(($ac_try" in
1410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411 *) ac_try_echo=$ac_try;;
1412esac
1413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414$as_echo "$ac_try_echo"; } >&5
1415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1416 ac_status=$?
1417 if test -s conftest.err; then
1418 grep -v '^ *+' conftest.err >conftest.er1
1419 cat conftest.er1 >&5
1420 mv -f conftest.er1 conftest.err
1421 fi
1422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423 test $ac_status = 0; } >/dev/null && {
1424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1425 test ! -s conftest.err
1426 }; then :
1427 ac_retval=0
1428else
1429 $as_echo "$as_me: failed program was:" >&5
1430sed 's/^/| /' conftest.$ac_ext >&5
1431
1432 ac_retval=1
1433fi
1434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1435 as_fn_set_status $ac_retval
1436
1437} # ac_fn_c_try_cpp
1438
1439# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1440# -------------------------------------------------------
1441# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1442# the include files in INCLUDES and setting the cache variable VAR
1443# accordingly.
1444ac_fn_c_check_header_mongrel ()
1445{
1446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1449$as_echo_n "checking for $2... " >&6; }
1450if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1451 $as_echo_n "(cached) " >&6
1452fi
1453eval ac_res=\$$3
1454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1455$as_echo "$ac_res" >&6; }
1456else
1457 # Is the header compilable?
1458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1459$as_echo_n "checking $2 usability... " >&6; }
1460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1461/* end confdefs.h. */
1462$4
1463#include <$2>
1464_ACEOF
1465if ac_fn_c_try_compile "$LINENO"; then :
1466 ac_header_compiler=yes
1467else
1468 ac_header_compiler=no
1469fi
1470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1472$as_echo "$ac_header_compiler" >&6; }
1473
1474# Is the header present?
1475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1476$as_echo_n "checking $2 presence... " >&6; }
1477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1478/* end confdefs.h. */
1479#include <$2>
1480_ACEOF
1481if ac_fn_c_try_cpp "$LINENO"; then :
1482 ac_header_preproc=yes
1483else
1484 ac_header_preproc=no
1485fi
1486rm -f conftest.err conftest.$ac_ext
1487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1488$as_echo "$ac_header_preproc" >&6; }
1489
1490# So? What about this header?
1491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1492 yes:no: )
1493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1494$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1496$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1497 ;;
1498 no:yes:* )
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1500$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1502$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1504$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1506$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1508$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1509( cat <<\_ASBOX
1510## ------------------------------------------------- ##
1511## Report this to http://initng.sourceforge.net/trac ##
1512## ------------------------------------------------- ##
1513_ASBOX
1514 ) | sed "s/^/$as_me: WARNING: /" >&2
1515 ;;
1516esac
1517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1518$as_echo_n "checking for $2... " >&6; }
1519if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1520 $as_echo_n "(cached) " >&6
1521else
1522 eval "$3=\$ac_header_compiler"
1523fi
1524eval ac_res=\$$3
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1526$as_echo "$ac_res" >&6; }
1527fi
1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1529
1530} # ac_fn_c_check_header_mongrel
1531
1532# ac_fn_c_try_run LINENO
1533# ----------------------
1534# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1535# that executables *can* be run.
1536ac_fn_c_try_run ()
1537{
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if { { ac_try="$ac_link"
1540case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_link") 2>&5
1547 ac_status=$?
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1550 { { case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_try") 2>&5
1557 ac_status=$?
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; }; }; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: program exited with status $ac_status" >&5
1563 $as_echo "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5
1565
1566 ac_retval=$ac_status
1567fi
1568 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 as_fn_set_status $ac_retval
1571
1572} # ac_fn_c_try_run
1573
1574# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1575# -------------------------------------------------------
1576# Tests whether HEADER exists and can be compiled using the include files in
1577# INCLUDES, setting the cache variable VAR accordingly.
1578ac_fn_c_check_header_compile ()
1579{
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582$as_echo_n "checking for $2... " >&6; }
1583if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584 $as_echo_n "(cached) " >&6
1585else
1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587/* end confdefs.h. */
1588$4
1589#include <$2>
1590_ACEOF
1591if ac_fn_c_try_compile "$LINENO"; then :
1592 eval "$3=yes"
1593else
1594 eval "$3=no"
1595fi
1596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597fi
1598eval ac_res=\$$3
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600$as_echo "$ac_res" >&6; }
1601 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1602
1603} # ac_fn_c_check_header_compile
1604
1605# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1606# -------------------------------------------
1607# Tests whether TYPE exists after having included INCLUDES, setting cache
1608# variable VAR accordingly.
1609ac_fn_c_check_type ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613$as_echo_n "checking for $2... " >&6; }
1614if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
1616else
1617 eval "$3=no"
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h. */
1620$4
1621int
1622main ()
1623{
1624if (sizeof ($2))
1625 return 0;
1626 ;
1627 return 0;
1628}
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"; then :
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h. */
1633$4
1634int
1635main ()
1636{
1637if (sizeof (($2)))
1638 return 0;
1639 ;
1640 return 0;
1641}
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"; then :
1644
1645else
1646 eval "$3=yes"
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651fi
1652eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656
1657} # ac_fn_c_check_type
1658
1659# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1660# ----------------------------------------------------
1661# Tries to find if the field MEMBER exists in type AGGR, after including
1662# INCLUDES, setting cache variable VAR accordingly.
1663ac_fn_c_check_member ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1667$as_echo_n "checking for $2.$3... " >&6; }
1668if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1669 $as_echo_n "(cached) " >&6
1670else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h. */
1673$5
1674int
1675main ()
1676{
1677static $2 ac_aggr;
1678if (ac_aggr.$3)
1679return 0;
1680 ;
1681 return 0;
1682}
1683_ACEOF
1684if ac_fn_c_try_compile "$LINENO"; then :
1685 eval "$4=yes"
1686else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h. */
1689$5
1690int
1691main ()
1692{
1693static $2 ac_aggr;
1694if (sizeof ac_aggr.$3)
1695return 0;
1696 ;
1697 return 0;
1698}
1699_ACEOF
1700if ac_fn_c_try_compile "$LINENO"; then :
1701 eval "$4=yes"
1702else
1703 eval "$4=no"
1704fi
1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708fi
1709eval ac_res=\$$4
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711$as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713
1714} # ac_fn_c_check_member
1715
1716# ac_fn_c_find_uintX_t LINENO BITS VAR
1717# ------------------------------------
1718# Finds an unsigned integer type with width BITS, setting cache variable VAR
1719# accordingly.
1720ac_fn_c_find_uintX_t ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1724$as_echo_n "checking for uint$2_t... " >&6; }
1725if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 eval "$3=no"
1729 # Order is important - never check a type that is potentially smaller
1730 # than half of the expected target width.
1731 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1732 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h. */
1735$ac_includes_default
1736int
1737main ()
1738{
1739static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1740test_array [0] = 0
1741
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 case $ac_type in #(
1748 uint$2_t) :
1749 eval "$3=yes" ;; #(
1750 *) :
1751 eval "$3=\$ac_type" ;;
1752esac
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 eval as_val=\$$3
1756 if test "x$as_val" = x""no; then :
1757
1758else
1759 break
1760fi
1761 done
1762fi
1763eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767
1768} # ac_fn_c_find_uintX_t
1769
1770# ac_fn_c_try_link LINENO
1771# -----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_c_try_link ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
1797 $as_test_x conftest$ac_exeext
1798 }; then :
1799 ac_retval=0
1800else
1801 $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805fi
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 as_fn_set_status $ac_retval
1813
1814} # ac_fn_c_try_link
1815
1816# ac_fn_c_check_func LINENO FUNC VAR
1817# ----------------------------------
1818# Tests whether FUNC exists, setting the cache variable VAR accordingly
1819ac_fn_c_check_func ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831#define $2 innocuous_$2
1832
1833/* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1837
1838#ifdef __STDC__
1839# include <limits.h>
1840#else
1841# include <assert.h>
1842#endif
1843
1844#undef $2
1845
1846/* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849#ifdef __cplusplus
1850extern "C"
1851#endif
1852char $2 ();
1853/* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856#if defined __stub_$2 || defined __stub___$2
1857choke me
1858#endif
1859
1860int
1861main ()
1862{
1863return $2 ();
1864 ;
1865 return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881} # ac_fn_c_check_func
1882cat >config.log <<_ACEOF
1883This file contains any messages produced by compilers while
1884running configure, to aid debugging if configure makes a mistake.
1885
1886It was created by InitNG $as_me 0.7-GIT, which was
1887generated by GNU Autoconf 2.65. Invocation command line was
1888
1889 $ $0 $@
1890
1891_ACEOF
1892exec 5>>config.log
1893{
1894cat <<_ASUNAME
1895## --------- ##
1896## Platform. ##
1897## --------- ##
1898
1899hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1907
1908/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1915
1916_ASUNAME
1917
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 $as_echo "PATH: $as_dir"
1924 done
1925IFS=$as_save_IFS
1926
1927} >&5
1928
1929cat >&5 <<_ACEOF
1930
1931
1932## ----------- ##
1933## Core tests. ##
1934## ----------- ##
1935
1936_ACEOF
1937
1938
1939# Keep a trace of the command line.
1940# Strip out --no-create and --no-recursion so they do not pile up.
1941# Strip out --silent because we don't want to record it for future runs.
1942# Also quote any args containing shell meta-characters.
1943# Make two passes to allow for proper duplicate-argument suppression.
1944ac_configure_args=
1945ac_configure_args0=
1946ac_configure_args1=
1947ac_must_keep_next=false
1948for ac_pass in 1 2
1949do
1950 for ac_arg
1951 do
1952 case $ac_arg in
1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955 | -silent | --silent | --silen | --sile | --sil)
1956 continue ;;
1957 *\'*)
1958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 esac
1960 case $ac_pass in
1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962 2)
1963 as_fn_append ac_configure_args1 " '$ac_arg'"
1964 if test $ac_must_keep_next = true; then
1965 ac_must_keep_next=false # Got value, back to normal.
1966 else
1967 case $ac_arg in
1968 *=* | --config-cache | -C | -disable-* | --disable-* \
1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971 | -with-* | --with-* | -without-* | --without-* | --x)
1972 case "$ac_configure_args0 " in
1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 esac
1975 ;;
1976 -* ) ac_must_keep_next=true ;;
1977 esac
1978 fi
1979 as_fn_append ac_configure_args " '$ac_arg'"
1980 ;;
1981 esac
1982 done
1983done
1984{ ac_configure_args0=; unset ac_configure_args0;}
1985{ ac_configure_args1=; unset ac_configure_args1;}
1986
1987# When interrupted or exit'd, cleanup temporary files, and complete
1988# config.log. We remove comments because anyway the quotes in there
1989# would cause problems or look ugly.
1990# WARNING: Use '\'' to represent an apostrophe within the trap.
1991# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992trap 'exit_status=$?
1993 # Save into config.log some information that might help in debugging.
1994 {
1995 echo
1996
1997 cat <<\_ASBOX
1998## ---------------- ##
1999## Cache variables. ##
2000## ---------------- ##
2001_ASBOX
2002 echo
2003 # The following way of writing the cache mishandles newlines in values,
2004(
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in #(
2008 *${as_nl}*)
2009 case $ac_var in #(
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012 esac
2013 case $ac_var in #(
2014 _ | IFS | as_nl) ;; #(
2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016 *) { eval $ac_var=; unset $ac_var;} ;;
2017 esac ;;
2018 esac
2019 done
2020 (set) 2>&1 |
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2023 sed -n \
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 ;; #(
2027 *)
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029 ;;
2030 esac |
2031 sort
2032)
2033 echo
2034
2035 cat <<\_ASBOX
2036## ----------------- ##
2037## Output variables. ##
2038## ----------------- ##
2039_ASBOX
2040 echo
2041 for ac_var in $ac_subst_vars
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050
2051 if test -n "$ac_subst_files"; then
2052 cat <<\_ASBOX
2053## ------------------- ##
2054## File substitutions. ##
2055## ------------------- ##
2056_ASBOX
2057 echo
2058 for ac_var in $ac_subst_files
2059 do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in
2062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 esac
2064 $as_echo "$ac_var='\''$ac_val'\''"
2065 done | sort
2066 echo
2067 fi
2068
2069 if test -s confdefs.h; then
2070 cat <<\_ASBOX
2071## ----------- ##
2072## confdefs.h. ##
2073## ----------- ##
2074_ASBOX
2075 echo
2076 cat confdefs.h
2077 echo
2078 fi
2079 test "$ac_signal" != 0 &&
2080 $as_echo "$as_me: caught signal $ac_signal"
2081 $as_echo "$as_me: exit $exit_status"
2082 } >&5
2083 rm -f core *.core core.conftest.* &&
2084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085 exit $exit_status
2086' 0
2087for ac_signal in 1 2 13 15; do
2088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089done
2090ac_signal=0
2091
2092# confdefs.h avoids OS command line length limits that DEFS can exceed.
2093rm -f -r conftest* confdefs.h
2094
2095$as_echo "/* confdefs.h */" > confdefs.h
2096
2097# Predefined preprocessor variables.
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_NAME "$PACKAGE_NAME"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_VERSION "$PACKAGE_VERSION"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_STRING "$PACKAGE_STRING"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117_ACEOF
2118
2119cat >>confdefs.h <<_ACEOF
2120#define PACKAGE_URL "$PACKAGE_URL"
2121_ACEOF
2122
2123
2124# Let the site file select an alternate cache file if it wants to.
2125# Prefer an explicitly selected file to automatically selected ones.
2126ac_site_file1=NONE
2127ac_site_file2=NONE
2128if test -n "$CONFIG_SITE"; then
2129 ac_site_file1=$CONFIG_SITE
2130elif test "x$prefix" != xNONE; then
2131 ac_site_file1=$prefix/share/config.site
2132 ac_site_file2=$prefix/etc/config.site
2133else
2134 ac_site_file1=$ac_default_prefix/share/config.site
2135 ac_site_file2=$ac_default_prefix/etc/config.site
2136fi
2137for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2138do
2139 test "x$ac_site_file" = xNONE && continue
2140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2142$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2143 sed 's/^/| /' "$ac_site_file" >&5
2144 . "$ac_site_file"
2145 fi
2146done
2147
2148if test -r "$cache_file"; then
2149 # Some versions of bash will fail to source /dev/null (special files
2150 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2151 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153$as_echo "$as_me: loading cache $cache_file" >&6;}
2154 case $cache_file in
2155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156 *) . "./$cache_file";;
2157 esac
2158 fi
2159else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161$as_echo "$as_me: creating cache $cache_file" >&6;}
2162 >$cache_file
2163fi
2164
2165# Check that the precious variables saved in the cache have kept the same
2166# value.
2167ac_cache_corrupted=false
2168for ac_var in $ac_precious_vars; do
2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170 eval ac_new_set=\$ac_env_${ac_var}_set
2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172 eval ac_new_val=\$ac_env_${ac_var}_value
2173 case $ac_old_set,$ac_new_set in
2174 set,)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,set)
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2182 ,);;
2183 *)
2184 if test "x$ac_old_val" != "x$ac_new_val"; then
2185 # differences in whitespace do not lead to failure.
2186 ac_old_val_w=`echo x $ac_old_val`
2187 ac_new_val_w=`echo x $ac_new_val`
2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191 ac_cache_corrupted=:
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195 eval $ac_var=\$ac_old_val
2196 fi
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2201 fi;;
2202 esac
2203 # Pass precious variables to config.status.
2204 if test "$ac_new_set" = set; then
2205 case $ac_new_val in
2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 *) ac_arg=$ac_var=$ac_new_val ;;
2208 esac
2209 case " $ac_configure_args " in
2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212 esac
2213 fi
2214done
2215if $ac_cache_corrupted; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221fi
2222## -------------------- ##
2223## Main body of script. ##
2224## -------------------- ##
2225
2226ac_ext=c
2227ac_cpp='$CPP $CPPFLAGS'
2228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233
2234ac_config_files="$ac_config_files config.jam"
2235
2236ac_config_headers="$ac_config_headers config.h initng-paths.h"
2237
2238
2239# Checks for programs.
2240ac_ext=c
2241ac_cpp='$CPP $CPPFLAGS'
2242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2247set dummy ${ac_tool_prefix}gcc; ac_word=$2
2248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2249$as_echo_n "checking for $ac_word... " >&6; }
2250if test "${ac_cv_prog_CC+set}" = set; then :
2251 $as_echo_n "(cached) " >&6
2252else
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2255else
2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257for as_dir in $PATH
2258do
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2266 fi
2267done
2268 done
2269IFS=$as_save_IFS
2270
2271fi
2272fi
2273CC=$ac_cv_prog_CC
2274if test -n "$CC"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2276$as_echo "$CC" >&6; }
2277else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2279$as_echo "no" >&6; }
2280fi
2281
2282
2283fi
2284if test -z "$ac_cv_prog_CC"; then
2285 ac_ct_CC=$CC
2286 # Extract the first word of "gcc", so it can be a program name with args.
2287set dummy gcc; ac_word=$2
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2289$as_echo_n "checking for $ac_word... " >&6; }
2290if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292else
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295else
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_ac_ct_CC="gcc"
2304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2306 fi
2307done
2308 done
2309IFS=$as_save_IFS
2310
2311fi
2312fi
2313ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314if test -n "$ac_ct_CC"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2316$as_echo "$ac_ct_CC" >&6; }
2317else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2319$as_echo "no" >&6; }
2320fi
2321
2322 if test "x$ac_ct_CC" = x; then
2323 CC=""
2324 else
2325 case $cross_compiling:$ac_tool_warned in
2326yes:)
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329ac_tool_warned=yes ;;
2330esac
2331 CC=$ac_ct_CC
2332 fi
2333else
2334 CC="$ac_cv_prog_CC"
2335fi
2336
2337if test -z "$CC"; then
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2340set dummy ${ac_tool_prefix}cc; ac_word=$2
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2342$as_echo_n "checking for $ac_word... " >&6; }
2343if test "${ac_cv_prog_CC+set}" = set; then :
2344 $as_echo_n "(cached) " >&6
2345else
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2348else
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CC="${ac_tool_prefix}cc"
2357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2359 fi
2360done
2361 done
2362IFS=$as_save_IFS
2363
2364fi
2365fi
2366CC=$ac_cv_prog_CC
2367if test -n "$CC"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2369$as_echo "$CC" >&6; }
2370else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2372$as_echo "no" >&6; }
2373fi
2374
2375
2376 fi
2377fi
2378if test -z "$CC"; then
2379 # Extract the first word of "cc", so it can be a program name with args.
2380set dummy cc; ac_word=$2
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382$as_echo_n "checking for $ac_word... " >&6; }
2383if test "${ac_cv_prog_CC+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
2385else
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$CC" # Let the user override the test.
2388else
2389 ac_prog_rejected=no
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2398 ac_prog_rejected=yes
2399 continue
2400 fi
2401 ac_cv_prog_CC="cc"
2402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405done
2406 done
2407IFS=$as_save_IFS
2408
2409if test $ac_prog_rejected = yes; then
2410 # We found a bogon in the path, so make sure we never use it.
2411 set dummy $ac_cv_prog_CC
2412 shift
2413 if test $# != 0; then
2414 # We chose a different compiler from the bogus one.
2415 # However, it has the same basename, so the bogon will be chosen
2416 # first if we set CC to just the basename; use the full file name.
2417 shift
2418 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2419 fi
2420fi
2421fi
2422fi
2423CC=$ac_cv_prog_CC
2424if test -n "$CC"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2426$as_echo "$CC" >&6; }
2427else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429$as_echo "no" >&6; }
2430fi
2431
2432
2433fi
2434if test -z "$CC"; then
2435 if test -n "$ac_tool_prefix"; then
2436 for ac_prog in cl.exe
2437 do
2438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441$as_echo_n "checking for $ac_word... " >&6; }
2442if test "${ac_cv_prog_CC+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2444else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460 done
2461IFS=$as_save_IFS
2462
2463fi
2464fi
2465CC=$ac_cv_prog_CC
2466if test -n "$CC"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468$as_echo "$CC" >&6; }
2469else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471$as_echo "no" >&6; }
2472fi
2473
2474
2475 test -n "$CC" && break
2476 done
2477fi
2478if test -z "$CC"; then
2479 ac_ct_CC=$CC
2480 for ac_prog in cl.exe
2481do
2482 # Extract the first word of "$ac_prog", so it can be a program name with args.
2483set dummy $ac_prog; ac_word=$2
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
2486if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2487 $as_echo_n "(cached) " >&6
2488else
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_ac_ct_CC="$ac_prog"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503done
2504 done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510if test -n "$ac_ct_CC"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2512$as_echo "$ac_ct_CC" >&6; }
2513else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515$as_echo "no" >&6; }
2516fi
2517
2518
2519 test -n "$ac_ct_CC" && break
2520done
2521
2522 if test "x$ac_ct_CC" = x; then
2523 CC=""
2524 else
2525 case $cross_compiling:$ac_tool_warned in
2526yes:)
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2529ac_tool_warned=yes ;;
2530esac
2531 CC=$ac_ct_CC
2532 fi
2533fi
2534
2535fi
2536
2537
2538test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540as_fn_error "no acceptable C compiler found in \$PATH
2541See \`config.log' for more details." "$LINENO" 5; }
2542
2543# Provide some information about the compiler.
2544$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2545set X $ac_compile
2546ac_compiler=$2
2547for ac_option in --version -v -V -qversion; do
2548 { { ac_try="$ac_compiler $ac_option >&5"
2549case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552esac
2553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554$as_echo "$ac_try_echo"; } >&5
2555 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2556 ac_status=$?
2557 if test -s conftest.err; then
2558 sed '10a\
2559... rest of stderr output deleted ...
2560 10q' conftest.err >conftest.er1
2561 cat conftest.er1 >&5
2562 fi
2563 rm -f conftest.er1 conftest.err
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; }
2566done
2567
2568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569/* end confdefs.h. */
2570
2571int
2572main ()
2573{
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579ac_clean_files_save=$ac_clean_files
2580ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2581# Try to create an executable without -o first, disregard a.out.
2582# It will help us diagnose broken compilers, and finding out an intuition
2583# of exeext.
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2585$as_echo_n "checking whether the C compiler works... " >&6; }
2586ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587
2588# The possible output files:
2589ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2590
2591ac_rmfiles=
2592for ac_file in $ac_files
2593do
2594 case $ac_file in
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2596 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2597 esac
2598done
2599rm -f $ac_rmfiles
2600
2601if { { ac_try="$ac_link_default"
2602case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2605esac
2606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2607$as_echo "$ac_try_echo"; } >&5
2608 (eval "$ac_link_default") 2>&5
2609 ac_status=$?
2610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611 test $ac_status = 0; }; then :
2612 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2613# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2614# in a Makefile. We should not override ac_cv_exeext if it was cached,
2615# so that the user can short-circuit this test for compilers unknown to
2616# Autoconf.
2617for ac_file in $ac_files ''
2618do
2619 test -f "$ac_file" || continue
2620 case $ac_file in
2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2622 ;;
2623 [ab].out )
2624 # We found the default executable, but exeext='' is most
2625 # certainly right.
2626 break;;
2627 *.* )
2628 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2629 then :; else
2630 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631 fi
2632 # We set ac_cv_exeext here because the later test for it is not
2633 # safe: cross compilers may not add the suffix if given an `-o'
2634 # argument, so we may need to know it at that point already.
2635 # Even if this section looks crufty: it has the advantage of
2636 # actually working.
2637 break;;
2638 * )
2639 break;;
2640 esac
2641done
2642test "$ac_cv_exeext" = no && ac_cv_exeext=
2643
2644else
2645 ac_file=''
2646fi
2647if test -z "$ac_file"; then :
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650$as_echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655{ as_fn_set_status 77
2656as_fn_error "C compiler cannot create executables
2657See \`config.log' for more details." "$LINENO" 5; }; }
2658else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660$as_echo "yes" >&6; }
2661fi
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2663$as_echo_n "checking for C compiler default output file name... " >&6; }
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2665$as_echo "$ac_file" >&6; }
2666ac_exeext=$ac_cv_exeext
2667
2668rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2669ac_clean_files=$ac_clean_files_save
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2671$as_echo_n "checking for suffix of executables... " >&6; }
2672if { { ac_try="$ac_link"
2673case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676esac
2677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678$as_echo "$ac_try_echo"; } >&5
2679 (eval "$ac_link") 2>&5
2680 ac_status=$?
2681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682 test $ac_status = 0; }; then :
2683 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2684# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2685# work properly (i.e., refer to `conftest.exe'), while it won't with
2686# `rm'.
2687for ac_file in conftest.exe conftest conftest.*; do
2688 test -f "$ac_file" || continue
2689 case $ac_file in
2690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2691 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2692 break;;
2693 * ) break;;
2694 esac
2695done
2696else
2697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699as_fn_error "cannot compute suffix of executables: cannot compile and link
2700See \`config.log' for more details." "$LINENO" 5; }
2701fi
2702rm -f conftest conftest$ac_cv_exeext
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2704$as_echo "$ac_cv_exeext" >&6; }
2705
2706rm -f conftest.$ac_ext
2707EXEEXT=$ac_cv_exeext
2708ac_exeext=$EXEEXT
2709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h. */
2711#include <stdio.h>
2712int
2713main ()
2714{
2715FILE *f = fopen ("conftest.out", "w");
2716 return ferror (f) || fclose (f) != 0;
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722ac_clean_files="$ac_clean_files conftest.out"
2723# Check that the compiler produces executables we can run. If not, either
2724# the compiler is broken, or we cross compile.
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2726$as_echo_n "checking whether we are cross compiling... " >&6; }
2727if test "$cross_compiling" != yes; then
2728 { { ac_try="$ac_link"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734$as_echo "$ac_try_echo"; } >&5
2735 (eval "$ac_link") 2>&5
2736 ac_status=$?
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; }
2739 if { ac_try='./conftest$ac_cv_exeext'
2740 { { case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
2744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745$as_echo "$ac_try_echo"; } >&5
2746 (eval "$ac_try") 2>&5
2747 ac_status=$?
2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2749 test $ac_status = 0; }; }; then
2750 cross_compiling=no
2751 else
2752 if test "$cross_compiling" = maybe; then
2753 cross_compiling=yes
2754 else
2755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757as_fn_error "cannot run C compiled programs.
2758If you meant to cross compile, use \`--host'.
2759See \`config.log' for more details." "$LINENO" 5; }
2760 fi
2761 fi
2762fi
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2764$as_echo "$cross_compiling" >&6; }
2765
2766rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2767ac_clean_files=$ac_clean_files_save
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2769$as_echo_n "checking for suffix of object files... " >&6; }
2770if test "${ac_cv_objext+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772else
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h. */
2775
2776int
2777main ()
2778{
2779
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784rm -f conftest.o conftest.obj
2785if { { ac_try="$ac_compile"
2786case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789esac
2790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791$as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_compile") 2>&5
2793 ac_status=$?
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }; then :
2796 for ac_file in conftest.o conftest.obj conftest.*; do
2797 test -f "$ac_file" || continue;
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2801 break;;
2802 esac
2803done
2804else
2805 $as_echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810as_fn_error "cannot compute suffix of object files: cannot compile
2811See \`config.log' for more details." "$LINENO" 5; }
2812fi
2813rm -f conftest.$ac_cv_objext conftest.$ac_ext
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2816$as_echo "$ac_cv_objext" >&6; }
2817OBJEXT=$ac_cv_objext
2818ac_objext=$OBJEXT
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2820$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2821if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2823else
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825/* end confdefs.h. */
2826
2827int
2828main ()
2829{
2830#ifndef __GNUC__
2831 choke me
2832#endif
2833
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838if ac_fn_c_try_compile "$LINENO"; then :
2839 ac_compiler_gnu=yes
2840else
2841 ac_compiler_gnu=no
2842fi
2843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844ac_cv_c_compiler_gnu=$ac_compiler_gnu
2845
2846fi
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2848$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2849if test $ac_compiler_gnu = yes; then
2850 GCC=yes
2851else
2852 GCC=
2853fi
2854ac_test_CFLAGS=${CFLAGS+set}
2855ac_save_CFLAGS=$CFLAGS
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2857$as_echo_n "checking whether $CC accepts -g... " >&6; }
2858if test "${ac_cv_prog_cc_g+set}" = set; then :
2859 $as_echo_n "(cached) " >&6
2860else
2861 ac_save_c_werror_flag=$ac_c_werror_flag
2862 ac_c_werror_flag=yes
2863 ac_cv_prog_cc_g=no
2864 CFLAGS="-g"
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866/* end confdefs.h. */
2867
2868int
2869main ()
2870{
2871
2872 ;
2873 return 0;
2874}
2875_ACEOF
2876if ac_fn_c_try_compile "$LINENO"; then :
2877 ac_cv_prog_cc_g=yes
2878else
2879 CFLAGS=""
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881/* end confdefs.h. */
2882
2883int
2884main ()
2885{
2886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891if ac_fn_c_try_compile "$LINENO"; then :
2892
2893else
2894 ac_c_werror_flag=$ac_save_c_werror_flag
2895 CFLAGS="-g"
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h. */
2898
2899int
2900main ()
2901{
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_cv_prog_cc_g=yes
2909fi
2910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913fi
2914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_c_werror_flag=$ac_save_c_werror_flag
2916fi
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2918$as_echo "$ac_cv_prog_cc_g" >&6; }
2919if test "$ac_test_CFLAGS" = set; then
2920 CFLAGS=$ac_save_CFLAGS
2921elif test $ac_cv_prog_cc_g = yes; then
2922 if test "$GCC" = yes; then
2923 CFLAGS="-g -O2"
2924 else
2925 CFLAGS="-g"
2926 fi
2927else
2928 if test "$GCC" = yes; then
2929 CFLAGS="-O2"
2930 else
2931 CFLAGS=
2932 fi
2933fi
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2935$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2936if test "${ac_cv_prog_cc_c89+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2938else
2939 ac_cv_prog_cc_c89=no
2940ac_save_CC=$CC
2941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h. */
2943#include <stdarg.h>
2944#include <stdio.h>
2945#include <sys/types.h>
2946#include <sys/stat.h>
2947/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2948struct buf { int x; };
2949FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950static char *e (p, i)
2951 char **p;
2952 int i;
2953{
2954 return p[i];
2955}
2956static char *f (char * (*g) (char **, int), char **p, ...)
2957{
2958 char *s;
2959 va_list v;
2960 va_start (v,p);
2961 s = g (p, va_arg (v,int));
2962 va_end (v);
2963 return s;
2964}
2965
2966/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2967 function prototypes and stuff, but not '\xHH' hex character constants.
2968 These don't provoke an error unfortunately, instead are silently treated
2969 as 'x'. The following induces an error, until -std is added to get
2970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2971 array size at least. It's necessary to write '\x00'==0 to get something
2972 that's true only with -std. */
2973int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2974
2975/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976 inside strings and character constants. */
2977#define FOO(x) 'x'
2978int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2979
2980int test (int i, double x);
2981struct s1 {int (*f) (int a);};
2982struct s2 {int (*f) (double a);};
2983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2984int argc;
2985char **argv;
2986int
2987main ()
2988{
2989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2990 ;
2991 return 0;
2992}
2993_ACEOF
2994for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2996do
2997 CC="$ac_save_CC $ac_arg"
2998 if ac_fn_c_try_compile "$LINENO"; then :
2999 ac_cv_prog_cc_c89=$ac_arg
3000fi
3001rm -f core conftest.err conftest.$ac_objext
3002 test "x$ac_cv_prog_cc_c89" != "xno" && break
3003done
3004rm -f conftest.$ac_ext
3005CC=$ac_save_CC
3006
3007fi
3008# AC_CACHE_VAL
3009case "x$ac_cv_prog_cc_c89" in
3010 x)
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3012$as_echo "none needed" >&6; } ;;
3013 xno)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3015$as_echo "unsupported" >&6; } ;;
3016 *)
3017 CC="$CC $ac_cv_prog_cc_c89"
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3019$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3020esac
3021if test "x$ac_cv_prog_cc_c89" != xno; then :
3022
3023fi
3024
3025ac_ext=c
3026ac_cpp='$CPP $CPPFLAGS'
3027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030
3031
3032# Checks for libraries.
3033
3034# Checks for header files.
3035
3036ac_ext=c
3037ac_cpp='$CPP $CPPFLAGS'
3038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3042$as_echo_n "checking how to run the C preprocessor... " >&6; }
3043# On Suns, sometimes $CPP names a directory.
3044if test -n "$CPP" && test -d "$CPP"; then
3045 CPP=
3046fi
3047if test -z "$CPP"; then
3048 if test "${ac_cv_prog_CPP+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 # Double quotes because CPP needs to be expanded
3052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3053 do
3054 ac_preproc_ok=false
3055for ac_c_preproc_warn_flag in '' yes
3056do
3057 # Use a header file that comes with gcc, so configuring glibc
3058 # with a fresh cross-compiler works.
3059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 # <limits.h> exists even on freestanding compilers.
3061 # On the NeXT, cc -E runs the code through the compiler's parser,
3062 # not just through cpp. "Syntax error" is here to catch this case.
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064/* end confdefs.h. */
3065#ifdef __STDC__
3066# include <limits.h>
3067#else
3068# include <assert.h>
3069#endif
3070 Syntax error
3071_ACEOF
3072if ac_fn_c_try_cpp "$LINENO"; then :
3073
3074else
3075 # Broken: fails on valid input.
3076continue
3077fi
3078rm -f conftest.err conftest.$ac_ext
3079
3080 # OK, works on sane cases. Now check whether nonexistent headers
3081 # can be detected and how.
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083/* end confdefs.h. */
3084#include <ac_nonexistent.h>
3085_ACEOF
3086if ac_fn_c_try_cpp "$LINENO"; then :
3087 # Broken: success on invalid input.
3088continue
3089else
3090 # Passes both tests.
3091ac_preproc_ok=:
3092break
3093fi
3094rm -f conftest.err conftest.$ac_ext
3095
3096done
3097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098rm -f conftest.err conftest.$ac_ext
3099if $ac_preproc_ok; then :
3100 break
3101fi
3102
3103 done
3104 ac_cv_prog_CPP=$CPP
3105
3106fi
3107 CPP=$ac_cv_prog_CPP
3108else
3109 ac_cv_prog_CPP=$CPP
3110fi
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3112$as_echo "$CPP" >&6; }
3113ac_preproc_ok=false
3114for ac_c_preproc_warn_flag in '' yes
3115do
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
3118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123/* end confdefs.h. */
3124#ifdef __STDC__
3125# include <limits.h>
3126#else
3127# include <assert.h>
3128#endif
3129 Syntax error
3130_ACEOF
3131if ac_fn_c_try_cpp "$LINENO"; then :
3132
3133else
3134 # Broken: fails on valid input.
3135continue
3136fi
3137rm -f conftest.err conftest.$ac_ext
3138
3139 # OK, works on sane cases. Now check whether nonexistent headers
3140 # can be detected and how.
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h. */
3143#include <ac_nonexistent.h>
3144_ACEOF
3145if ac_fn_c_try_cpp "$LINENO"; then :
3146 # Broken: success on invalid input.
3147continue
3148else
3149 # Passes both tests.
3150ac_preproc_ok=:
3151break
3152fi
3153rm -f conftest.err conftest.$ac_ext
3154
3155done
3156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157rm -f conftest.err conftest.$ac_ext
3158if $ac_preproc_ok; then :
3159
3160else
3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error "C preprocessor \"$CPP\" fails sanity check
3164See \`config.log' for more details." "$LINENO" 5; }
3165fi
3166
3167ac_ext=c
3168ac_cpp='$CPP $CPPFLAGS'
3169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172
3173
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3175$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3176if test "${ac_cv_path_GREP+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3178else
3179 if test -z "$GREP"; then
3180 ac_path_GREP_found=false
3181 # Loop through the user's path and test for each of PROGNAME-LIST
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3184do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_prog in grep ggrep; do
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3190 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3191# Check for GNU ac_path_GREP and select it if it is found.
3192 # Check for GNU $ac_path_GREP
3193case `"$ac_path_GREP" --version 2>&1` in
3194*GNU*)
3195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3196*)
3197 ac_count=0
3198 $as_echo_n 0123456789 >"conftest.in"
3199 while :
3200 do
3201 cat "conftest.in" "conftest.in" >"conftest.tmp"
3202 mv "conftest.tmp" "conftest.in"
3203 cp "conftest.in" "conftest.nl"
3204 $as_echo 'GREP' >> "conftest.nl"
3205 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3207 as_fn_arith $ac_count + 1 && ac_count=$as_val
3208 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3209 # Best one so far, save it but keep looking for a better one
3210 ac_cv_path_GREP="$ac_path_GREP"
3211 ac_path_GREP_max=$ac_count
3212 fi
3213 # 10*(2^10) chars as input seems more than enough
3214 test $ac_count -gt 10 && break
3215 done
3216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3217esac
3218
3219 $ac_path_GREP_found && break 3
3220 done
3221 done
3222 done
3223IFS=$as_save_IFS
3224 if test -z "$ac_cv_path_GREP"; then
3225 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3226 fi
3227else
3228 ac_cv_path_GREP=$GREP
3229fi
3230
3231fi
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3233$as_echo "$ac_cv_path_GREP" >&6; }
3234 GREP="$ac_cv_path_GREP"
3235
3236
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3238$as_echo_n "checking for egrep... " >&6; }
3239if test "${ac_cv_path_EGREP+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3241else
3242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3243 then ac_cv_path_EGREP="$GREP -E"
3244 else
3245 if test -z "$EGREP"; then
3246 ac_path_EGREP_found=false
3247 # Loop through the user's path and test for each of PROGNAME-LIST
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3250do
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_prog in egrep; do
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3257# Check for GNU ac_path_EGREP and select it if it is found.
3258 # Check for GNU $ac_path_EGREP
3259case `"$ac_path_EGREP" --version 2>&1` in
3260*GNU*)
3261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3262*)