Commit 8f6ccba59f9d2ded06ce26e3837f62bb35adee10
- Diff rendering mode:
- inline
- side by side
.gitignore
(3 / 0)
|   | |||
| 1 | config.h | ||
| 2 | initng-paths.h | ||
| 3 | config.jam |
Jamrules
(25 / 54)
|   | |||
| 20 | 20 | # installation paths, and so on. | |
| 21 | 21 | # | |
| 22 | 22 | # 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. | ||
| 25 | 25 | # | |
| 26 | 26 | ||
| 27 | # Configuration variables for the build that will later on be in config.h or | ||
| 28 | # initng-paths.h | ||
| 29 | VERSION = 0.7.0svn ; | ||
| 30 | VERSION_NAME = "Bleeding Edge" ; | ||
| 31 | RUNLEVEL_DEFAULT = runlevel/default ; | ||
| 32 | RUNLEVEL_FAKE = runlevel/fake-default ; | ||
| 27 | include "config.jam" ; | ||
| 28 | if ! $(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 | } | ||
| 33 | 36 | ||
| 34 | # Paths used for installation. | ||
| 37 | # Destination directory for package creation. | ||
| 35 | 38 | DESTDIR ?= ; | |
| 36 | prefix ?= / ; | ||
| 37 | bindir ?= $(prefix)/bin ; | ||
| 38 | sbindir ?= $(prefix)/sbin ; | ||
| 39 | libdir ?= $(prefix)/lib ; | ||
| 40 | includedir ?= /usr/include ; | ||
| 41 | moddir ?= $(libdir)/initng ; | ||
| 42 | mandir ?= /usr/share/man ; | ||
| 43 | sysconfdir ?= $(prefix)/etc ; | ||
| 44 | localstatedir ?= $(prefix)/var ; | ||
| 45 | 39 | ||
| 46 | 40 | # Build defines. Don't add them as real parameters, just the define itself. | |
| 47 | 41 | # Jam figures out what compiler command line switch to use itself. | |
| 48 | 42 | DEFINES += HAVE_CONFIG_H _XOPEN_SOURCE=600 DEBUG ; | |
| 49 | 43 | ||
| 50 | # Global C build and linker flags: | ||
| 44 | # Global C build and linker flags aside from CFLAGS passed to configure: | ||
| 51 | 45 | CCFLAGS += -std=c99 -Wall -O2 ; | |
| 52 | CCFLAGS += -g -Werror -Wmissing-prototypes -Wmissing-declarations | ||
| 46 | CCFLAGS += -Werror -Wmissing-prototypes -Wmissing-declarations | ||
| 53 | 47 | -Wstrict-prototypes -Wimplicit -Wredundant-decls -Wnested-externs | |
| 54 | 48 | -Wwrite-strings -Wsign-compare -Winline -Wswitch -Wreturn-type | |
| 55 | 49 | -Wparentheses -Wmissing-braces -Wformat -Wformat-nonliteral | |
| … | … | ||
| 71 | 71 | # modules that need 3rd-party libraries like D-BUS or others. | |
| 72 | 72 | # | |
| 73 | 73 | ||
| 74 | DBUS_INCLUDES = $(pkg-config --cflags-only-I dbus-1) ; | ||
| 75 | DBUS_LIBS = $(pkg-config --cflags-only-I --cflags-only-l dbus-1) ; | ||
| 74 | DBUS_INCLUDES = "`pkg-config --cflags-only-I dbus-1`" ; | ||
| 75 | DBUS_LIBS = "`pkg-config --cflags-only-I --cflags-only-l dbus-1`" ; | ||
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | 78 | ### PART 4: CUSTOM RULES | |
| … | … | ||
| 153 | 153 | # USAGE: SharedLibrary NAME : SOURCE1 SOURCE2 ... SOURCEn ; | |
| 154 | 154 | rule SharedLibrary | |
| 155 | 155 | { | |
| 156 | LINKFLAGS on $(<) += -shared -Wl,-soname,$(<) ; | ||
| 157 | Main $(<) : $(>) ; | ||
| 158 | } | ||
| 156 | local _sofile _soname _soversion _somajorversion ; | ||
| 157 | local _match = [ Match (.*)(\.(\d+)(\.\d+)*)? : $(<) ] ; | ||
| 159 | 158 | ||
| 159 | _sofile = $(1) ; | ||
| 160 | _soname = $(_match[1]).$(_match[3]) ; | ||
| 161 | _soversion = $(match[3-4]) ; | ||
| 162 | _somajorversion = $(match[3]) ; | ||
| 160 | 163 | ||
| 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 ; | ||
| 165 | actions 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) ; | ||
| 182 | 165 | ||
| 183 | rule 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 $(<) : $(>) ; | ||
| 191 | 168 | } | |
| 192 | 169 | ||
| 193 | 170 |
aclocal/initjamfile.m4
(24 / 0)
|   | |||
| 1 | #---------------------------------------------------------------------------- | ||
| 2 | # AC_INIT_JAM | ||
| 3 | # This rule fixes several issues related to autoconf being make centric | ||
| 4 | #---------------------------------------------------------------------------- | ||
| 5 | AC_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 | #---------------------------------------------------------------------------- | ||
| 16 | AC_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 | #----------------------------------------------------------------------------- | ||
| 20 | AC_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. | ||
| 24 | AS_IF([test $prefix = NONE], [prefix="$ac_default_prefix"], | ||
| 25 | [prefix=`echo "$prefix" | sed -e 's:///*:/:g'`]) | ||
| 26 | AS_IF([test $exec_prefix = NONE], | ||
| 27 | [exec_prefix="AS_ESCAPE([$(prefix)])"], | ||
| 28 | [exec_prefix=`echo "$exec_prefix" | sed -e 's:///*:/:g'`]) | ||
| 29 | |||
| 30 | prefix=AC_FIX_VARIABLEREF([$prefix]) | ||
| 31 | exec_prefix=AC_FIX_VARIABLEREF([$exec_prefix]) | ||
| 32 | bindir=AC_FIX_VARIABLEREF([$bindir]) | ||
| 33 | sbindir=AC_FIX_VARIABLEREF([$sbindir]) | ||
| 34 | libexecdir=AC_FIX_VARIABLEREF([$libexecdir]) | ||
| 35 | datadir=AC_FIX_VARIABLEREF([$datadir]) | ||
| 36 | sysconfdir=AC_FIX_VARIABLEREF([$sysconfdir]) | ||
| 37 | sharedstatedir=AC_FIX_VARIABLEREF([$sharedstatedir]) | ||
| 38 | localstatedir=AC_FIX_VARIABLEREF([$localstatedir]) | ||
| 39 | libdir=AC_FIX_VARIABLEREF([$libdir]) | ||
| 40 | includedir=AC_FIX_VARIABLEREF([$includedir]) | ||
| 41 | oldincludedir=AC_FIX_VARIABLEREF([$oldincludedir]) | ||
| 42 | infodir=AC_FIX_VARIABLEREF([$infodir]) | ||
| 43 | mandir=AC_FIX_VARIABLEREF([$mandir]) | ||
| 44 | |||
| 45 | #hack to get the order right :-/ (autoconf --trace reports wrong order...) | ||
| 46 | AC_SUBST(prefix) | ||
| 47 | AC_SUBST(exec_prefix) | ||
| 48 | AC_SUBST(bindir) | ||
| 49 | AC_SUBST(sbindir) | ||
| 50 | AC_SUBST(libexecdir) | ||
| 51 | AC_SUBST(datadir) | ||
| 52 | AC_SUBST(sysconfdir) | ||
| 53 | AC_SUBST(sharedstatedir) | ||
| 54 | AC_SUBST(localstatedir) | ||
| 55 | AC_SUBST(libdir) | ||
| 56 | AC_SUBST(includedir) | ||
| 57 | AC_SUBST(oldincludedir) | ||
| 58 | AC_SUBST(infodir) | ||
| 59 | AC_SUBST(mandir) | ||
| 60 | ]) | ||
| 61 | |||
| 62 | #----------------------------------------------------------------------------- | ||
| 63 | # AC_FIX_INSTALL | ||
| 64 | # Fixes the output from AC_PROG_INSTALL | ||
| 65 | #----------------------------------------------------------------------------- | ||
| 66 | AC_DEFUN([AC_FIX_INSTALL], [ | ||
| 67 | AC_REQUIRE([AC_PROG_INSTALL]) | ||
| 68 | INSTALL=AC_FIX_VARIABLEREF([$INSTALL]) | ||
| 69 | INSTALL_PROGRAM=AC_FIX_VARIABLEREF([$INSTALL_PROGRAM]) | ||
| 70 | INSTALL_SCRIPT=AC_FIX_VARIABLEREF([$INSTALL_SCRIPT]) | ||
| 71 | INSTALL_DATA=AC_FIX_VARIABLEREF([$INSTALL_DATA]) | ||
| 72 | |||
| 73 | # fix for order... | ||
| 74 | AC_SUBST([INSTALL]) | ||
| 75 | AC_SUBST([INSTALL_PROGRAM]) | ||
| 76 | AC_SUBST([INSTALL_SCRIPT]) | ||
| 77 | AC_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 | #----------------------------------------------------------------------------- | ||
| 87 | AC_DEFUN([AC_FIX_VARIABLEREF], | ||
| 88 | dnl We need all the strange \\\\ quoting here, because the command will be | ||
| 89 | dnl 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 | |||
| 4 | die() | ||
| 5 | { | ||
| 6 | echo "ERROR: ${*}." | ||
| 7 | exit 1 | ||
| 8 | } | ||
| 9 | |||
| 10 | ask() | ||
| 11 | { | ||
| 12 | echo -n "${*} [n]? " | ||
| 13 | read _answer | ||
| 14 | [ "${_answer}" = "y" ] | ||
| 15 | } | ||
| 16 | |||
| 17 | echo "**** Creating the build directory ***" | ||
| 18 | if [ -d "${BDIR}" ]; then | ||
| 19 | echo "WARNING: ${BDIR} already exists." | ||
| 20 | ask "Do you want to continue" || exit 0 | ||
| 21 | rm -rf "${BDIR}" | ||
| 22 | fi | ||
| 23 | mkdir "${BDIR}" | ||
| 24 | cd "${BDIR}" || die "Can't create directory ${BDIR}" | ||
| 25 | |||
| 26 | echo "**** Configuring project ****" | ||
| 27 | cmake .. "$@" || die "Configuration failed" | ||
| 28 | |||
| 29 | echo "**** Compiling project ****" | ||
| 30 | make || die "Compilation failed" | ||
| 31 | |||
| 32 | echo "**** Installing project ****" | ||
| 33 | if 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" | ||
| 40 | fi | ||
| 41 | |||
| 42 | echo "Reloading of initng is strongly recommended." | ||
| 43 | if 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 | ||
| 51 | else | ||
| 52 | echo "**** Skipping reloading of initng ****" | ||
| 53 | echo "You can reload it calling 'ngc -R'." | ||
| 54 | fi | ||
| 55 | |||
| 56 | # Calling count_me.sh from within the build directory (config.h) | ||
| 57 | ask "Do you want to be counted as user of initng" && | ||
| 58 | ../count_me.sh | ||
| 59 | |||
| 60 | cd .. | ||
| 61 | ask "Do you want to clear the build directory" && | ||
| 62 | rm -rf "${BDIR}" | ||
| 63 | |||
| 64 | exit 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)
|   | |||
| 1 | CFLAGS = @CFLAGS@ ; | ||
| 2 | |||
| 3 | # Paths. | ||
| 4 | prefix = @prefix@ ; | ||
| 5 | exec_prefix = @exec_prefix@ ; | ||
| 6 | bindir = @bindir@ ; | ||
| 7 | sbindir = @sbindir@ ; | ||
| 8 | libdir = @libdir@ ; | ||
| 9 | includedir = @includedir@ ; | ||
| 10 | moddir = $(libdir)/initng ; | ||
| 11 | mandir = @mandir@ ; | ||
| 12 | sysconfdir = @sysconfdir@ ; | ||
| 13 | localstatedir = @localstatedir@ ; | ||
| 14 | datarootdir = @datarootdir@ ; | ||
| 15 | |||
| 16 | # D-Bus extras | ||
| 17 | DBUS_CFLAGS = @DBUS_CFLAGS@ ; | ||
| 18 | DBUS_LIBS = @DBUS_LIBS@ ; | ||
| 19 | |||
| 20 | # Set $(CONFIGURED) variable. :-) | ||
| 21 | CONFIGURED = 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 | ||
| 20 | DUALCASE=1; export DUALCASE # for MKS sh | ||
| 21 | if 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 | ||
| 28 | else | ||
| 29 | case `(set -o) 2>/dev/null` in #( | ||
| 30 | *posix*) : | ||
| 31 | set -o posix ;; #( | ||
| 32 | *) : | ||
| 33 | ;; | ||
| 34 | esac | ||
| 35 | fi | ||
| 36 | |||
| 37 | |||
| 38 | as_nl=' | ||
| 39 | ' | ||
| 40 | export as_nl | ||
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
| 44 | as_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. | ||
| 47 | if 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 --' | ||
| 51 | elif (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' | ||
| 54 | else | ||
| 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' | ||
| 74 | fi | ||
| 75 | |||
| 76 | # The user is always right. | ||
| 77 | if 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 | } | ||
| 83 | fi | ||
| 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.) | ||
| 91 | IFS=" "" $as_nl" | ||
| 92 | |||
| 93 | # Find who we are. Look in the path if we contain no directory separator. | ||
| 94 | case $0 in #(( | ||
| 95 | *[\\/]* ) as_myself=$0 ;; | ||
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 97 | for as_dir in $PATH | ||
| 98 | do | ||
| 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 | ||
| 103 | IFS=$as_save_IFS | ||
| 104 | |||
| 105 | ;; | ||
| 106 | esac | ||
| 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. | ||
| 109 | if test "x$as_myself" = x; then | ||
| 110 | as_myself=$0 | ||
| 111 | fi | ||
| 112 | if test ! -f "$as_myself"; then | ||
| 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
| 114 | exit 1 | ||
| 115 | fi | ||
| 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. | ||
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
| 122 | do eval test x\${$as_var+set} = xset \ | ||
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
| 124 | done | ||
| 125 | PS1='$ ' | ||
| 126 | PS2='> ' | ||
| 127 | PS4='+ ' | ||
| 128 | |||
| 129 | # NLS nuisances. | ||
| 130 | LC_ALL=C | ||
| 131 | export LC_ALL | ||
| 132 | LANGUAGE=C | ||
| 133 | export LANGUAGE | ||
| 134 | |||
| 135 | # CDPATH. | ||
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
| 137 | |||
| 138 | if 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 | ||
| 146 | else | ||
| 147 | case \`(set -o) 2>/dev/null\` in #( | ||
| 148 | *posix*) : | ||
| 149 | set -o posix ;; #( | ||
| 150 | *) : | ||
| 151 | ;; | ||
| 152 | esac | ||
| 153 | fi | ||
| 154 | " | ||
| 155 | as_required="as_fn_return () { (exit \$1); } | ||
| 156 | as_fn_success () { as_fn_return 0; } | ||
| 157 | as_fn_failure () { as_fn_return 1; } | ||
| 158 | as_fn_ret_success () { return 0; } | ||
| 159 | as_fn_ret_failure () { return 1; } | ||
| 160 | |||
| 161 | exitcode=0 | ||
| 162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
| 163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
| 164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
| 165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
| 166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
| 167 | |||
| 168 | else | ||
| 169 | exitcode=1; echo positional parameters were not saved. | ||
| 170 | fi | ||
| 171 | test 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 | ||
| 176 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
| 177 | if (eval "$as_required") 2>/dev/null; then : | ||
| 178 | as_have_required=yes | ||
| 179 | else | ||
| 180 | as_have_required=no | ||
| 181 | fi | ||
| 182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
| 183 | |||
| 184 | else | ||
| 185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 186 | as_found=false | ||
| 187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
| 188 | do | ||
| 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 | ||
| 202 | fi | ||
| 203 | fi | ||
| 204 | done;; | ||
| 205 | esac | ||
| 206 | as_found=false | ||
| 207 | done | ||
| 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 | ||
| 211 | fi; } | ||
| 212 | IFS=$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+"$@"} | ||
| 224 | fi | ||
| 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 | ||
| 240 | fi | ||
| 241 | fi | ||
| 242 | fi | ||
| 243 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
| 244 | export SHELL | ||
| 245 | # Unset more variables known to interfere with behavior of common tools. | ||
| 246 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
| 247 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
| 248 | |||
| 249 | ## --------------------- ## | ||
| 250 | ## M4sh Shell Functions. ## | ||
| 251 | ## --------------------- ## | ||
| 252 | # as_fn_unset VAR | ||
| 253 | # --------------- | ||
| 254 | # Portably unset VAR. | ||
| 255 | as_fn_unset () | ||
| 256 | { | ||
| 257 | { eval $1=; unset $1;} | ||
| 258 | } | ||
| 259 | as_unset=as_fn_unset | ||
| 260 | |||
| 261 | # as_fn_set_status STATUS | ||
| 262 | # ----------------------- | ||
| 263 | # Set $? to STATUS, without forking. | ||
| 264 | as_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. | ||
| 272 | as_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. | ||
| 282 | as_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. | ||
| 332 | if (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 | }' | ||
| 337 | else | ||
| 338 | as_fn_append () | ||
| 339 | { | ||
| 340 | eval $1=\$$1\$2 | ||
| 341 | } | ||
| 342 | fi # 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. | ||
| 349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
| 350 | eval 'as_fn_arith () | ||
| 351 | { | ||
| 352 | as_val=$(( $* )) | ||
| 353 | }' | ||
| 354 | else | ||
| 355 | as_fn_arith () | ||
| 356 | { | ||
| 357 | as_val=`expr "$@" || test $? -eq 1` | ||
| 358 | } | ||
| 359 | fi # 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. | ||
| 367 | as_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 | |||
| 378 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
| 379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
| 380 | as_expr=expr | ||
| 381 | else | ||
| 382 | as_expr=false | ||
| 383 | fi | ||
| 384 | |||
| 385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
| 386 | as_basename=basename | ||
| 387 | else | ||
| 388 | as_basename=false | ||
| 389 | fi | ||
| 390 | |||
| 391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
| 392 | as_dirname=dirname | ||
| 393 | else | ||
| 394 | as_dirname=false | ||
| 395 | fi | ||
| 396 | |||
| 397 | as_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. | ||
| 417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
| 418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
| 419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
| 420 | as_cr_digits='0123456789' | ||
| 421 | as_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 | |||
| 455 | ECHO_C= ECHO_N= ECHO_T= | ||
| 456 | case `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';; | ||
| 466 | esac | ||
| 467 | |||
| 468 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 469 | if test -d conf$$.dir; then | ||
| 470 | rm -f conf$$.dir/conf$$.file | ||
| 471 | else | ||
| 472 | rm -f conf$$.dir | ||
| 473 | mkdir conf$$.dir 2>/dev/null | ||
| 474 | fi | ||
| 475 | if (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 | ||
| 489 | else | ||
| 490 | as_ln_s='cp -p' | ||
| 491 | fi | ||
| 492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
| 493 | rmdir conf$$.dir 2>/dev/null | ||
| 494 | |||
| 495 | if mkdir -p . 2>/dev/null; then | ||
| 496 | as_mkdir_p='mkdir -p "$as_dir"' | ||
| 497 | else | ||
| 498 | test -d ./-p && rmdir ./-p | ||
| 499 | as_mkdir_p=false | ||
| 500 | fi | ||
| 501 | |||
| 502 | if test -x / >/dev/null 2>&1; then | ||
| 503 | as_test_x='test -x' | ||
| 504 | else | ||
| 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 | ' | ||
| 522 | fi | ||
| 523 | as_executable_p=$as_test_x | ||
| 524 | |||
| 525 | # Sed expression to map a string onto a valid CPP name. | ||
| 526 | as_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. | ||
| 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
| 530 | |||
| 531 | |||
| 532 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
| 533 | exec 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. | ||
| 538 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 539 | |||
| 540 | # | ||
| 541 | # Initializations. | ||
| 542 | # | ||
| 543 | ac_default_prefix=/usr/local | ||
| 544 | ac_clean_files= | ||
| 545 | ac_config_libobj_dir=. | ||
| 546 | LIBOBJS= | ||
| 547 | cross_compiling=no | ||
| 548 | subdirs= | ||
| 549 | MFLAGS= | ||
| 550 | MAKEFLAGS= | ||
| 551 | |||
| 552 | # Identity of this package. | ||
| 553 | PACKAGE_NAME='InitNG' | ||
| 554 | PACKAGE_TARNAME='initng' | ||
| 555 | PACKAGE_VERSION='0.7-GIT' | ||
| 556 | PACKAGE_STRING='InitNG 0.7-GIT' | ||
| 557 | PACKAGE_BUGREPORT='http://initng.sourceforge.net/trac' | ||
| 558 | PACKAGE_URL='' | ||
| 559 | |||
| 560 | # Factoring default headers for most tests. | ||
| 561 | ac_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 | |||
| 596 | ac_subst_vars='LTLIBOBJS | ||
| 597 | DBUS_LIBS | ||
| 598 | DBUS_CFLAGS | ||
| 599 | PKG_CONFIG | ||
| 600 | LIBOBJS | ||
| 601 | EGREP | ||
| 602 | GREP | ||
| 603 | CPP | ||
| 604 | OBJEXT | ||
| 605 | EXEEXT | ||
| 606 | ac_ct_CC | ||
| 607 | CPPFLAGS | ||
| 608 | LDFLAGS | ||
| 609 | CFLAGS | ||
| 610 | CC | ||
| 611 | target_alias | ||
| 612 | host_alias | ||
| 613 | build_alias | ||
| 614 | LIBS | ||
| 615 | ECHO_T | ||
| 616 | ECHO_N | ||
| 617 | ECHO_C | ||
| 618 | DEFS | ||
| 619 | mandir | ||
| 620 | localedir | ||
| 621 | libdir | ||
| 622 | psdir | ||
| 623 | pdfdir | ||
| 624 | dvidir | ||
| 625 | htmldir | ||
| 626 | infodir | ||
| 627 | docdir | ||
| 628 | oldincludedir | ||
| 629 | includedir | ||
| 630 | localstatedir | ||
| 631 | sharedstatedir | ||
| 632 | sysconfdir | ||
| 633 | datadir | ||
| 634 | datarootdir | ||
| 635 | libexecdir | ||
| 636 | sbindir | ||
| 637 | bindir | ||
| 638 | program_transform_name | ||
| 639 | prefix | ||
| 640 | exec_prefix | ||
| 641 | PACKAGE_URL | ||
| 642 | PACKAGE_BUGREPORT | ||
| 643 | PACKAGE_STRING | ||
| 644 | PACKAGE_VERSION | ||
| 645 | PACKAGE_TARNAME | ||
| 646 | PACKAGE_NAME | ||
| 647 | PATH_SEPARATOR | ||
| 648 | SHELL' | ||
| 649 | ac_subst_files='' | ||
| 650 | ac_user_opts=' | ||
| 651 | enable_option_checking | ||
| 652 | ' | ||
| 653 | ac_precious_vars='build_alias | ||
| 654 | host_alias | ||
| 655 | target_alias | ||
| 656 | CC | ||
| 657 | CFLAGS | ||
| 658 | LDFLAGS | ||
| 659 | LIBS | ||
| 660 | CPPFLAGS | ||
| 661 | CPP | ||
| 662 | PKG_CONFIG | ||
| 663 | DBUS_CFLAGS | ||
| 664 | DBUS_LIBS' | ||
| 665 | |||
| 666 | |||
| 667 | # Initialize some variables set by options. | ||
| 668 | ac_init_help= | ||
| 669 | ac_init_version=false | ||
| 670 | ac_unrecognized_opts= | ||
| 671 | ac_unrecognized_sep= | ||
| 672 | # The variables have the same names as the options, with | ||
| 673 | # dashes changed to underlines. | ||
| 674 | cache_file=/dev/null | ||
| 675 | exec_prefix=NONE | ||
| 676 | no_create= | ||
| 677 | no_recursion= | ||
| 678 | prefix=NONE | ||
| 679 | program_prefix=NONE | ||
| 680 | program_suffix=NONE | ||
| 681 | program_transform_name=s,x,x, | ||
| 682 | silent= | ||
| 683 | site= | ||
| 684 | srcdir= | ||
| 685 | verbose= | ||
| 686 | x_includes=NONE | ||
| 687 | x_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.) | ||
| 695 | bindir='${exec_prefix}/bin' | ||
| 696 | sbindir='${exec_prefix}/sbin' | ||
| 697 | libexecdir='${exec_prefix}/libexec' | ||
| 698 | datarootdir='${prefix}/share' | ||
| 699 | datadir='${datarootdir}' | ||
| 700 | sysconfdir='${prefix}/etc' | ||
| 701 | sharedstatedir='${prefix}/com' | ||
| 702 | localstatedir='${prefix}/var' | ||
| 703 | includedir='${prefix}/include' | ||
| 704 | oldincludedir='/usr/include' | ||
| 705 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
| 706 | infodir='${datarootdir}/info' | ||
| 707 | htmldir='${docdir}' | ||
| 708 | dvidir='${docdir}' | ||
| 709 | pdfdir='${docdir}' | ||
| 710 | psdir='${docdir}' | ||
| 711 | libdir='${exec_prefix}/lib' | ||
| 712 | localedir='${datarootdir}/locale' | ||
| 713 | mandir='${datarootdir}/man' | ||
| 714 | |||
| 715 | ac_prev= | ||
| 716 | ac_dashdash= | ||
| 717 | for ac_option | ||
| 718 | do | ||
| 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' | ||
| 1050 | Try \`$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 | ||
| 1072 | done | ||
| 1073 | |||
| 1074 | if test -n "$ac_prev"; then | ||
| 1075 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
| 1076 | as_fn_error "missing argument to $ac_option" | ||
| 1077 | fi | ||
| 1078 | |||
| 1079 | if 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 | ||
| 1085 | fi | ||
| 1086 | |||
| 1087 | # Check all directory arguments for consistency. | ||
| 1088 | for 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 | ||
| 1092 | do | ||
| 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" | ||
| 1106 | done | ||
| 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. | ||
| 1111 | build=$build_alias | ||
| 1112 | host=$host_alias | ||
| 1113 | target=$target_alias | ||
| 1114 | |||
| 1115 | # FIXME: To remove some day. | ||
| 1116 | if 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 | ||
| 1124 | fi | ||
| 1125 | |||
| 1126 | ac_tool_prefix= | ||
| 1127 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
| 1128 | |||
| 1129 | test "$silent" = yes && exec 6>/dev/null | ||
| 1130 | |||
| 1131 | |||
| 1132 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
| 1133 | ac_ls_di=`ls -di .` && | ||
| 1134 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
| 1135 | as_fn_error "working directory cannot be determined" | ||
| 1136 | test "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. | ||
| 1141 | if 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 | ||
| 1171 | else | ||
| 1172 | ac_srcdir_defaulted=no | ||
| 1173 | fi | ||
| 1174 | if 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" | ||
| 1177 | fi | ||
| 1178 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
| 1179 | ac_abs_confdir=`( | ||
| 1180 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | ||
| 1181 | pwd)` | ||
| 1182 | # When building in place, set srcdir=. | ||
| 1183 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
| 1184 | srcdir=. | ||
| 1185 | fi | ||
| 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. | ||
| 1189 | case $srcdir in | ||
| 1190 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
| 1191 | esac | ||
| 1192 | for 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} | ||
| 1197 | done | ||
| 1198 | |||
| 1199 | # | ||
| 1200 | # Report the --help message. | ||
| 1201 | # | ||
| 1202 | if 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 | |||
| 1208 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
| 1209 | |||
| 1210 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
| 1211 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
| 1212 | |||
| 1213 | Defaults for the options are specified in brackets. | ||
| 1214 | |||
| 1215 | Configuration: | ||
| 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 | |||
| 1226 | Installation 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 | |||
| 1232 | By default, \`make install' will install all the files in | ||
| 1233 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
| 1234 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
| 1235 | for instance \`--prefix=\$HOME'. | ||
| 1236 | |||
| 1237 | For better control, use the options below. | ||
| 1238 | |||
| 1239 | Fine 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 | ||
| 1263 | fi | ||
| 1264 | |||
| 1265 | if 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 | |||
| 1271 | Some 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 | |||
| 1284 | Use these variables to override the choices made by `configure' or to help | ||
| 1285 | it to find libraries and programs with nonstandard names/locations. | ||
| 1286 | |||
| 1287 | Report bugs to <http://initng.sourceforge.net/trac>. | ||
| 1288 | _ACEOF | ||
| 1289 | ac_status=$? | ||
| 1290 | fi | ||
| 1291 | |||
| 1292 | if 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 | |||
| 1300 | case "$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 ;; | ||
| 1310 | esac | ||
| 1311 | ac_abs_top_builddir=$ac_pwd | ||
| 1312 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
| 1313 | # for backward compatibility: | ||
| 1314 | ac_top_builddir=$ac_top_build_prefix | ||
| 1315 | |||
| 1316 | case $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 ;; | ||
| 1329 | esac | ||
| 1330 | ac_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 | ||
| 1345 | fi | ||
| 1346 | |||
| 1347 | test -n "$ac_init_help" && exit $ac_status | ||
| 1348 | if $ac_init_version; then | ||
| 1349 | cat <<\_ACEOF | ||
| 1350 | InitNG configure 0.7-GIT | ||
| 1351 | generated by GNU Autoconf 2.65 | ||
| 1352 | |||
| 1353 | Copyright (C) 2009 Free Software Foundation, Inc. | ||
| 1354 | This configure script is free software; the Free Software Foundation | ||
| 1355 | gives unlimited permission to copy, distribute and modify it. | ||
| 1356 | _ACEOF | ||
| 1357 | exit | ||
| 1358 | fi | ||
| 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. | ||
| 1367 | ac_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" | ||
| 1372 | case "(($ac_try" in | ||
| 1373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1374 | *) ac_try_echo=$ac_try;; | ||
| 1375 | esac | ||
| 1376 | eval 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 | ||
| 1391 | else | ||
| 1392 | $as_echo "$as_me: failed program was:" >&5 | ||
| 1393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 1394 | |||
| 1395 | ac_retval=1 | ||
| 1396 | fi | ||
| 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. | ||
| 1405 | ac_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" | ||
| 1409 | case "(($ac_try" in | ||
| 1410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1411 | *) ac_try_echo=$ac_try;; | ||
| 1412 | esac | ||
| 1413 | eval 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 | ||
| 1428 | else | ||
| 1429 | $as_echo "$as_me: failed program was:" >&5 | ||
| 1430 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 1431 | |||
| 1432 | ac_retval=1 | ||
| 1433 | fi | ||
| 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. | ||
| 1444 | ac_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; } | ||
| 1450 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 1451 | $as_echo_n "(cached) " >&6 | ||
| 1452 | fi | ||
| 1453 | eval ac_res=\$$3 | ||
| 1454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 1455 | $as_echo "$ac_res" >&6; } | ||
| 1456 | else | ||
| 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; } | ||
| 1460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1461 | /* end confdefs.h. */ | ||
| 1462 | $4 | ||
| 1463 | #include <$2> | ||
| 1464 | _ACEOF | ||
| 1465 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 1466 | ac_header_compiler=yes | ||
| 1467 | else | ||
| 1468 | ac_header_compiler=no | ||
| 1469 | fi | ||
| 1470 | rm -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; } | ||
| 1477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1478 | /* end confdefs.h. */ | ||
| 1479 | #include <$2> | ||
| 1480 | _ACEOF | ||
| 1481 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 1482 | ac_header_preproc=yes | ||
| 1483 | else | ||
| 1484 | ac_header_preproc=no | ||
| 1485 | fi | ||
| 1486 | rm -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? | ||
| 1491 | case $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 | ;; | ||
| 1516 | esac | ||
| 1517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
| 1518 | $as_echo_n "checking for $2... " >&6; } | ||
| 1519 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 1520 | $as_echo_n "(cached) " >&6 | ||
| 1521 | else | ||
| 1522 | eval "$3=\$ac_header_compiler" | ||
| 1523 | fi | ||
| 1524 | eval ac_res=\$$3 | ||
| 1525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 1526 | $as_echo "$ac_res" >&6; } | ||
| 1527 | fi | ||
| 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. | ||
| 1536 | ac_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" | ||
| 1540 | case "(($ac_try" in | ||
| 1541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1542 | *) ac_try_echo=$ac_try;; | ||
| 1543 | esac | ||
| 1544 | eval 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;; | ||
| 1553 | esac | ||
| 1554 | eval 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 | ||
| 1561 | else | ||
| 1562 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
| 1563 | $as_echo "$as_me: failed program was:" >&5 | ||
| 1564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 1565 | |||
| 1566 | ac_retval=$ac_status | ||
| 1567 | fi | ||
| 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. | ||
| 1578 | ac_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; } | ||
| 1583 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 1584 | $as_echo_n "(cached) " >&6 | ||
| 1585 | else | ||
| 1586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1587 | /* end confdefs.h. */ | ||
| 1588 | $4 | ||
| 1589 | #include <$2> | ||
| 1590 | _ACEOF | ||
| 1591 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 1592 | eval "$3=yes" | ||
| 1593 | else | ||
| 1594 | eval "$3=no" | ||
| 1595 | fi | ||
| 1596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 1597 | fi | ||
| 1598 | eval 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. | ||
| 1609 | ac_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; } | ||
| 1614 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 1615 | $as_echo_n "(cached) " >&6 | ||
| 1616 | else | ||
| 1617 | eval "$3=no" | ||
| 1618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1619 | /* end confdefs.h. */ | ||
| 1620 | $4 | ||
| 1621 | int | ||
| 1622 | main () | ||
| 1623 | { | ||
| 1624 | if (sizeof ($2)) | ||
| 1625 | return 0; | ||
| 1626 | ; | ||
| 1627 | return 0; | ||
| 1628 | } | ||
| 1629 | _ACEOF | ||
| 1630 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 1631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1632 | /* end confdefs.h. */ | ||
| 1633 | $4 | ||
| 1634 | int | ||
| 1635 | main () | ||
| 1636 | { | ||
| 1637 | if (sizeof (($2))) | ||
| 1638 | return 0; | ||
| 1639 | ; | ||
| 1640 | return 0; | ||
| 1641 | } | ||
| 1642 | _ACEOF | ||
| 1643 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 1644 | |||
| 1645 | else | ||
| 1646 | eval "$3=yes" | ||
| 1647 | fi | ||
| 1648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 1649 | fi | ||
| 1650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 1651 | fi | ||
| 1652 | eval 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. | ||
| 1663 | ac_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; } | ||
| 1668 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 1669 | $as_echo_n "(cached) " >&6 | ||
| 1670 | else | ||
| 1671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1672 | /* end confdefs.h. */ | ||
| 1673 | $5 | ||
| 1674 | int | ||
| 1675 | main () | ||
| 1676 | { | ||
| 1677 | static $2 ac_aggr; | ||
| 1678 | if (ac_aggr.$3) | ||
| 1679 | return 0; | ||
| 1680 | ; | ||
| 1681 | return 0; | ||
| 1682 | } | ||
| 1683 | _ACEOF | ||
| 1684 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 1685 | eval "$4=yes" | ||
| 1686 | else | ||
| 1687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1688 | /* end confdefs.h. */ | ||
| 1689 | $5 | ||
| 1690 | int | ||
| 1691 | main () | ||
| 1692 | { | ||
| 1693 | static $2 ac_aggr; | ||
| 1694 | if (sizeof ac_aggr.$3) | ||
| 1695 | return 0; | ||
| 1696 | ; | ||
| 1697 | return 0; | ||
| 1698 | } | ||
| 1699 | _ACEOF | ||
| 1700 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 1701 | eval "$4=yes" | ||
| 1702 | else | ||
| 1703 | eval "$4=no" | ||
| 1704 | fi | ||
| 1705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 1706 | fi | ||
| 1707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 1708 | fi | ||
| 1709 | eval 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. | ||
| 1720 | ac_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; } | ||
| 1725 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 1726 | $as_echo_n "(cached) " >&6 | ||
| 1727 | else | ||
| 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 | ||
| 1736 | int | ||
| 1737 | main () | ||
| 1738 | { | ||
| 1739 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | ||
| 1740 | test_array [0] = 0 | ||
| 1741 | |||
| 1742 | ; | ||
| 1743 | return 0; | ||
| 1744 | } | ||
| 1745 | _ACEOF | ||
| 1746 | if 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" ;; | ||
| 1752 | esac | ||
| 1753 | fi | ||
| 1754 | rm -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 | |||
| 1758 | else | ||
| 1759 | break | ||
| 1760 | fi | ||
| 1761 | done | ||
| 1762 | fi | ||
| 1763 | eval 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. | ||
| 1773 | ac_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" | ||
| 1778 | case "(($ac_try" in | ||
| 1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1780 | *) ac_try_echo=$ac_try;; | ||
| 1781 | esac | ||
| 1782 | eval 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 | ||
| 1800 | else | ||
| 1801 | $as_echo "$as_me: failed program was:" >&5 | ||
| 1802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 1803 | |||
| 1804 | ac_retval=1 | ||
| 1805 | fi | ||
| 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 | ||
| 1819 | ac_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; } | ||
| 1824 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 1825 | $as_echo_n "(cached) " >&6 | ||
| 1826 | else | ||
| 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 | ||
| 1850 | extern "C" | ||
| 1851 | #endif | ||
| 1852 | char $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 | ||
| 1857 | choke me | ||
| 1858 | #endif | ||
| 1859 | |||
| 1860 | int | ||
| 1861 | main () | ||
| 1862 | { | ||
| 1863 | return $2 (); | ||
| 1864 | ; | ||
| 1865 | return 0; | ||
| 1866 | } | ||
| 1867 | _ACEOF | ||
| 1868 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 1869 | eval "$3=yes" | ||
| 1870 | else | ||
| 1871 | eval "$3=no" | ||
| 1872 | fi | ||
| 1873 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 1874 | conftest$ac_exeext conftest.$ac_ext | ||
| 1875 | fi | ||
| 1876 | eval 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 | ||
| 1882 | cat >config.log <<_ACEOF | ||
| 1883 | This file contains any messages produced by compilers while | ||
| 1884 | running configure, to aid debugging if configure makes a mistake. | ||
| 1885 | |||
| 1886 | It was created by InitNG $as_me 0.7-GIT, which was | ||
| 1887 | generated by GNU Autoconf 2.65. Invocation command line was | ||
| 1888 | |||
| 1889 | $ $0 $@ | ||
| 1890 | |||
| 1891 | _ACEOF | ||
| 1892 | exec 5>>config.log | ||
| 1893 | { | ||
| 1894 | cat <<_ASUNAME | ||
| 1895 | ## --------- ## | ||
| 1896 | ## Platform. ## | ||
| 1897 | ## --------- ## | ||
| 1898 | |||
| 1899 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 1900 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
| 1901 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
| 1902 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
| 1903 | uname -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 | |||
| 1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 1919 | for as_dir in $PATH | ||
| 1920 | do | ||
| 1921 | IFS=$as_save_IFS | ||
| 1922 | test -z "$as_dir" && as_dir=. | ||
| 1923 | $as_echo "PATH: $as_dir" | ||
| 1924 | done | ||
| 1925 | IFS=$as_save_IFS | ||
| 1926 | |||
| 1927 | } >&5 | ||
| 1928 | |||
| 1929 | cat >&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. | ||
| 1944 | ac_configure_args= | ||
| 1945 | ac_configure_args0= | ||
| 1946 | ac_configure_args1= | ||
| 1947 | ac_must_keep_next=false | ||
| 1948 | for ac_pass in 1 2 | ||
| 1949 | do | ||
| 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 | ||
| 1983 | done | ||
| 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. | ||
| 1992 | trap '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 | ||
| 2087 | for ac_signal in 1 2 13 15; do | ||
| 2088 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
| 2089 | done | ||
| 2090 | ac_signal=0 | ||
| 2091 | |||
| 2092 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
| 2093 | rm -f -r conftest* confdefs.h | ||
| 2094 | |||
| 2095 | $as_echo "/* confdefs.h */" > confdefs.h | ||
| 2096 | |||
| 2097 | # Predefined preprocessor variables. | ||
| 2098 | |||
| 2099 | cat >>confdefs.h <<_ACEOF | ||
| 2100 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
| 2101 | _ACEOF | ||
| 2102 | |||
| 2103 | cat >>confdefs.h <<_ACEOF | ||
| 2104 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
| 2105 | _ACEOF | ||
| 2106 | |||
| 2107 | cat >>confdefs.h <<_ACEOF | ||
| 2108 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
| 2109 | _ACEOF | ||
| 2110 | |||
| 2111 | cat >>confdefs.h <<_ACEOF | ||
| 2112 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
| 2113 | _ACEOF | ||
| 2114 | |||
| 2115 | cat >>confdefs.h <<_ACEOF | ||
| 2116 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
| 2117 | _ACEOF | ||
| 2118 | |||
| 2119 | cat >>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. | ||
| 2126 | ac_site_file1=NONE | ||
| 2127 | ac_site_file2=NONE | ||
| 2128 | if test -n "$CONFIG_SITE"; then | ||
| 2129 | ac_site_file1=$CONFIG_SITE | ||
| 2130 | elif test "x$prefix" != xNONE; then | ||
| 2131 | ac_site_file1=$prefix/share/config.site | ||
| 2132 | ac_site_file2=$prefix/etc/config.site | ||
| 2133 | else | ||
| 2134 | ac_site_file1=$ac_default_prefix/share/config.site | ||
| 2135 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
| 2136 | fi | ||
| 2137 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
| 2138 | do | ||
| 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 | ||
| 2146 | done | ||
| 2147 | |||
| 2148 | if 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 | ||
| 2159 | else | ||
| 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 | ||
| 2163 | fi | ||
| 2164 | |||
| 2165 | # Check that the precious variables saved in the cache have kept the same | ||
| 2166 | # value. | ||
| 2167 | ac_cache_corrupted=false | ||
| 2168 | for 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 | ||
| 2214 | done | ||
| 2215 | if $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 | ||
| 2221 | fi | ||
| 2222 | ## -------------------- ## | ||
| 2223 | ## Main body of script. ## | ||
| 2224 | ## -------------------- ## | ||
| 2225 | |||
| 2226 | ac_ext=c | ||
| 2227 | ac_cpp='$CPP $CPPFLAGS' | ||
| 2228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2231 | |||
| 2232 | |||
| 2233 | |||
| 2234 | ac_config_files="$ac_config_files config.jam" | ||
| 2235 | |||
| 2236 | ac_config_headers="$ac_config_headers config.h initng-paths.h" | ||
| 2237 | |||
| 2238 | |||
| 2239 | # Checks for programs. | ||
| 2240 | ac_ext=c | ||
| 2241 | ac_cpp='$CPP $CPPFLAGS' | ||
| 2242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2245 | if 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. | ||
| 2247 | set 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; } | ||
| 2250 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
| 2251 | $as_echo_n "(cached) " >&6 | ||
| 2252 | else | ||
| 2253 | if test -n "$CC"; then | ||
| 2254 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 2255 | else | ||
| 2256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2257 | for as_dir in $PATH | ||
| 2258 | do | ||
| 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 | ||
| 2267 | done | ||
| 2268 | done | ||
| 2269 | IFS=$as_save_IFS | ||
| 2270 | |||
| 2271 | fi | ||
| 2272 | fi | ||
| 2273 | CC=$ac_cv_prog_CC | ||
| 2274 | if test -n "$CC"; then | ||
| 2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
| 2276 | $as_echo "$CC" >&6; } | ||
| 2277 | else | ||
| 2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 2279 | $as_echo "no" >&6; } | ||
| 2280 | fi | ||
| 2281 | |||
| 2282 | |||
| 2283 | fi | ||
| 2284 | if 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. | ||
| 2287 | set 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; } | ||
| 2290 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
| 2291 | $as_echo_n "(cached) " >&6 | ||
| 2292 | else | ||
| 2293 | if test -n "$ac_ct_CC"; then | ||
| 2294 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 2295 | else | ||
| 2296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2297 | for as_dir in $PATH | ||
| 2298 | do | ||
| 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 | ||
| 2307 | done | ||
| 2308 | done | ||
| 2309 | IFS=$as_save_IFS | ||
| 2310 | |||
| 2311 | fi | ||
| 2312 | fi | ||
| 2313 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 2314 | if 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; } | ||
| 2317 | else | ||
| 2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 2319 | $as_echo "no" >&6; } | ||
| 2320 | fi | ||
| 2321 | |||
| 2322 | if test "x$ac_ct_CC" = x; then | ||
| 2323 | CC="" | ||
| 2324 | else | ||
| 2325 | case $cross_compiling:$ac_tool_warned in | ||
| 2326 | yes:) | ||
| 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;} | ||
| 2329 | ac_tool_warned=yes ;; | ||
| 2330 | esac | ||
| 2331 | CC=$ac_ct_CC | ||
| 2332 | fi | ||
| 2333 | else | ||
| 2334 | CC="$ac_cv_prog_CC" | ||
| 2335 | fi | ||
| 2336 | |||
| 2337 | if 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. | ||
| 2340 | set 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; } | ||
| 2343 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
| 2344 | $as_echo_n "(cached) " >&6 | ||
| 2345 | else | ||
| 2346 | if test -n "$CC"; then | ||
| 2347 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 2348 | else | ||
| 2349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2350 | for as_dir in $PATH | ||
| 2351 | do | ||
| 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 | ||
| 2360 | done | ||
| 2361 | done | ||
| 2362 | IFS=$as_save_IFS | ||
| 2363 | |||
| 2364 | fi | ||
| 2365 | fi | ||
| 2366 | CC=$ac_cv_prog_CC | ||
| 2367 | if test -n "$CC"; then | ||
| 2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
| 2369 | $as_echo "$CC" >&6; } | ||
| 2370 | else | ||
| 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 2372 | $as_echo "no" >&6; } | ||
| 2373 | fi | ||
| 2374 | |||
| 2375 | |||
| 2376 | fi | ||
| 2377 | fi | ||
| 2378 | if test -z "$CC"; then | ||
| 2379 | # Extract the first word of "cc", so it can be a program name with args. | ||
| 2380 | set 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; } | ||
| 2383 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
| 2384 | $as_echo_n "(cached) " >&6 | ||
| 2385 | else | ||
| 2386 | if test -n "$CC"; then | ||
| 2387 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 2388 | else | ||
| 2389 | ac_prog_rejected=no | ||
| 2390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2391 | for as_dir in $PATH | ||
| 2392 | do | ||
| 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 | ||
| 2405 | done | ||
| 2406 | done | ||
| 2407 | IFS=$as_save_IFS | ||
| 2408 | |||
| 2409 | if 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 | ||
| 2420 | fi | ||
| 2421 | fi | ||
| 2422 | fi | ||
| 2423 | CC=$ac_cv_prog_CC | ||
| 2424 | if test -n "$CC"; then | ||
| 2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
| 2426 | $as_echo "$CC" >&6; } | ||
| 2427 | else | ||
| 2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 2429 | $as_echo "no" >&6; } | ||
| 2430 | fi | ||
| 2431 | |||
| 2432 | |||
| 2433 | fi | ||
| 2434 | if 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. | ||
| 2439 | set 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; } | ||
| 2442 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
| 2443 | $as_echo_n "(cached) " >&6 | ||
| 2444 | else | ||
| 2445 | if test -n "$CC"; then | ||
| 2446 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 2447 | else | ||
| 2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2449 | for as_dir in $PATH | ||
| 2450 | do | ||
| 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 | ||
| 2459 | done | ||
| 2460 | done | ||
| 2461 | IFS=$as_save_IFS | ||
| 2462 | |||
| 2463 | fi | ||
| 2464 | fi | ||
| 2465 | CC=$ac_cv_prog_CC | ||
| 2466 | if test -n "$CC"; then | ||
| 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
| 2468 | $as_echo "$CC" >&6; } | ||
| 2469 | else | ||
| 2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 2471 | $as_echo "no" >&6; } | ||
| 2472 | fi | ||
| 2473 | |||
| 2474 | |||
| 2475 | test -n "$CC" && break | ||
| 2476 | done | ||
| 2477 | fi | ||
| 2478 | if test -z "$CC"; then | ||
| 2479 | ac_ct_CC=$CC | ||
| 2480 | for ac_prog in cl.exe | ||
| 2481 | do | ||
| 2482 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 2483 | set 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; } | ||
| 2486 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
| 2487 | $as_echo_n "(cached) " >&6 | ||
| 2488 | else | ||
| 2489 | if test -n "$ac_ct_CC"; then | ||
| 2490 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 2491 | else | ||
| 2492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2493 | for as_dir in $PATH | ||
| 2494 | do | ||
| 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 | ||
| 2503 | done | ||
| 2504 | done | ||
| 2505 | IFS=$as_save_IFS | ||
| 2506 | |||
| 2507 | fi | ||
| 2508 | fi | ||
| 2509 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 2510 | if 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; } | ||
| 2513 | else | ||
| 2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 2515 | $as_echo "no" >&6; } | ||
| 2516 | fi | ||
| 2517 | |||
| 2518 | |||
| 2519 | test -n "$ac_ct_CC" && break | ||
| 2520 | done | ||
| 2521 | |||
| 2522 | if test "x$ac_ct_CC" = x; then | ||
| 2523 | CC="" | ||
| 2524 | else | ||
| 2525 | case $cross_compiling:$ac_tool_warned in | ||
| 2526 | yes:) | ||
| 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;} | ||
| 2529 | ac_tool_warned=yes ;; | ||
| 2530 | esac | ||
| 2531 | CC=$ac_ct_CC | ||
| 2532 | fi | ||
| 2533 | fi | ||
| 2534 | |||
| 2535 | fi | ||
| 2536 | |||
| 2537 | |||
| 2538 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 2539 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 2540 | as_fn_error "no acceptable C compiler found in \$PATH | ||
| 2541 | See \`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 | ||
| 2545 | set X $ac_compile | ||
| 2546 | ac_compiler=$2 | ||
| 2547 | for ac_option in --version -v -V -qversion; do | ||
| 2548 | { { ac_try="$ac_compiler $ac_option >&5" | ||
| 2549 | case "(($ac_try" in | ||
| 2550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 2551 | *) ac_try_echo=$ac_try;; | ||
| 2552 | esac | ||
| 2553 | eval 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; } | ||
| 2566 | done | ||
| 2567 | |||
| 2568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2569 | /* end confdefs.h. */ | ||
| 2570 | |||
| 2571 | int | ||
| 2572 | main () | ||
| 2573 | { | ||
| 2574 | |||
| 2575 | ; | ||
| 2576 | return 0; | ||
| 2577 | } | ||
| 2578 | _ACEOF | ||
| 2579 | ac_clean_files_save=$ac_clean_files | ||
| 2580 | ac_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; } | ||
| 2586 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
| 2587 | |||
| 2588 | # The possible output files: | ||
| 2589 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
| 2590 | |||
| 2591 | ac_rmfiles= | ||
| 2592 | for ac_file in $ac_files | ||
| 2593 | do | ||
| 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 | ||
| 2598 | done | ||
| 2599 | rm -f $ac_rmfiles | ||
| 2600 | |||
| 2601 | if { { ac_try="$ac_link_default" | ||
| 2602 | case "(($ac_try" in | ||
| 2603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 2604 | *) ac_try_echo=$ac_try;; | ||
| 2605 | esac | ||
| 2606 | eval 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. | ||
| 2617 | for ac_file in $ac_files '' | ||
| 2618 | do | ||
| 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 | ||
| 2641 | done | ||
| 2642 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
| 2643 | |||
| 2644 | else | ||
| 2645 | ac_file='' | ||
| 2646 | fi | ||
| 2647 | if 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 | ||
| 2651 | sed '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 | ||
| 2656 | as_fn_error "C compiler cannot create executables | ||
| 2657 | See \`config.log' for more details." "$LINENO" 5; }; } | ||
| 2658 | else | ||
| 2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 2660 | $as_echo "yes" >&6; } | ||
| 2661 | fi | ||
| 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; } | ||
| 2666 | ac_exeext=$ac_cv_exeext | ||
| 2667 | |||
| 2668 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
| 2669 | ac_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; } | ||
| 2672 | if { { ac_try="$ac_link" | ||
| 2673 | case "(($ac_try" in | ||
| 2674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 2675 | *) ac_try_echo=$ac_try;; | ||
| 2676 | esac | ||
| 2677 | eval 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'. | ||
| 2687 | for 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 | ||
| 2695 | done | ||
| 2696 | else | ||
| 2697 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 2698 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 2699 | as_fn_error "cannot compute suffix of executables: cannot compile and link | ||
| 2700 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 2701 | fi | ||
| 2702 | rm -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 | |||
| 2706 | rm -f conftest.$ac_ext | ||
| 2707 | EXEEXT=$ac_cv_exeext | ||
| 2708 | ac_exeext=$EXEEXT | ||
| 2709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2710 | /* end confdefs.h. */ | ||
| 2711 | #include <stdio.h> | ||
| 2712 | int | ||
| 2713 | main () | ||
| 2714 | { | ||
| 2715 | FILE *f = fopen ("conftest.out", "w"); | ||
| 2716 | return ferror (f) || fclose (f) != 0; | ||
| 2717 | |||
| 2718 | ; | ||
| 2719 | return 0; | ||
| 2720 | } | ||
| 2721 | _ACEOF | ||
| 2722 | ac_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; } | ||
| 2727 | if test "$cross_compiling" != yes; then | ||
| 2728 | { { ac_try="$ac_link" | ||
| 2729 | case "(($ac_try" in | ||
| 2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 2731 | *) ac_try_echo=$ac_try;; | ||
| 2732 | esac | ||
| 2733 | eval 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;; | ||
| 2743 | esac | ||
| 2744 | eval 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;} | ||
| 2757 | as_fn_error "cannot run C compiled programs. | ||
| 2758 | If you meant to cross compile, use \`--host'. | ||
| 2759 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 2760 | fi | ||
| 2761 | fi | ||
| 2762 | fi | ||
| 2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
| 2764 | $as_echo "$cross_compiling" >&6; } | ||
| 2765 | |||
| 2766 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
| 2767 | ac_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; } | ||
| 2770 | if test "${ac_cv_objext+set}" = set; then : | ||
| 2771 | $as_echo_n "(cached) " >&6 | ||
| 2772 | else | ||
| 2773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2774 | /* end confdefs.h. */ | ||
| 2775 | |||
| 2776 | int | ||
| 2777 | main () | ||
| 2778 | { | ||
| 2779 | |||
| 2780 | ; | ||
| 2781 | return 0; | ||
| 2782 | } | ||
| 2783 | _ACEOF | ||
| 2784 | rm -f conftest.o conftest.obj | ||
| 2785 | if { { ac_try="$ac_compile" | ||
| 2786 | case "(($ac_try" in | ||
| 2787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 2788 | *) ac_try_echo=$ac_try;; | ||
| 2789 | esac | ||
| 2790 | eval 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 | ||
| 2803 | done | ||
| 2804 | else | ||
| 2805 | $as_echo "$as_me: failed program was:" >&5 | ||
| 2806 | sed '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;} | ||
| 2810 | as_fn_error "cannot compute suffix of object files: cannot compile | ||
| 2811 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 2812 | fi | ||
| 2813 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
| 2814 | fi | ||
| 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
| 2816 | $as_echo "$ac_cv_objext" >&6; } | ||
| 2817 | OBJEXT=$ac_cv_objext | ||
| 2818 | ac_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; } | ||
| 2821 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
| 2822 | $as_echo_n "(cached) " >&6 | ||
| 2823 | else | ||
| 2824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2825 | /* end confdefs.h. */ | ||
| 2826 | |||
| 2827 | int | ||
| 2828 | main () | ||
| 2829 | { | ||
| 2830 | #ifndef __GNUC__ | ||
| 2831 | choke me | ||
| 2832 | #endif | ||
| 2833 | |||
| 2834 | ; | ||
| 2835 | return 0; | ||
| 2836 | } | ||
| 2837 | _ACEOF | ||
| 2838 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2839 | ac_compiler_gnu=yes | ||
| 2840 | else | ||
| 2841 | ac_compiler_gnu=no | ||
| 2842 | fi | ||
| 2843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2844 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
| 2845 | |||
| 2846 | fi | ||
| 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
| 2848 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
| 2849 | if test $ac_compiler_gnu = yes; then | ||
| 2850 | GCC=yes | ||
| 2851 | else | ||
| 2852 | GCC= | ||
| 2853 | fi | ||
| 2854 | ac_test_CFLAGS=${CFLAGS+set} | ||
| 2855 | ac_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; } | ||
| 2858 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
| 2859 | $as_echo_n "(cached) " >&6 | ||
| 2860 | else | ||
| 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 | |||
| 2868 | int | ||
| 2869 | main () | ||
| 2870 | { | ||
| 2871 | |||
| 2872 | ; | ||
| 2873 | return 0; | ||
| 2874 | } | ||
| 2875 | _ACEOF | ||
| 2876 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2877 | ac_cv_prog_cc_g=yes | ||
| 2878 | else | ||
| 2879 | CFLAGS="" | ||
| 2880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2881 | /* end confdefs.h. */ | ||
| 2882 | |||
| 2883 | int | ||
| 2884 | main () | ||
| 2885 | { | ||
| 2886 | |||
| 2887 | ; | ||
| 2888 | return 0; | ||
| 2889 | } | ||
| 2890 | _ACEOF | ||
| 2891 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2892 | |||
| 2893 | else | ||
| 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 | |||
| 2899 | int | ||
| 2900 | main () | ||
| 2901 | { | ||
| 2902 | |||
| 2903 | ; | ||
| 2904 | return 0; | ||
| 2905 | } | ||
| 2906 | _ACEOF | ||
| 2907 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2908 | ac_cv_prog_cc_g=yes | ||
| 2909 | fi | ||
| 2910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2911 | fi | ||
| 2912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2913 | fi | ||
| 2914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2915 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
| 2916 | fi | ||
| 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
| 2918 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
| 2919 | if test "$ac_test_CFLAGS" = set; then | ||
| 2920 | CFLAGS=$ac_save_CFLAGS | ||
| 2921 | elif 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 | ||
| 2927 | else | ||
| 2928 | if test "$GCC" = yes; then | ||
| 2929 | CFLAGS="-O2" | ||
| 2930 | else | ||
| 2931 | CFLAGS= | ||
| 2932 | fi | ||
| 2933 | fi | ||
| 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; } | ||
| 2936 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
| 2937 | $as_echo_n "(cached) " >&6 | ||
| 2938 | else | ||
| 2939 | ac_cv_prog_cc_c89=no | ||
| 2940 | ac_save_CC=$CC | ||
| 2941 | cat 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. */ | ||
| 2948 | struct buf { int x; }; | ||
| 2949 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
| 2950 | static char *e (p, i) | ||
| 2951 | char **p; | ||
| 2952 | int i; | ||
| 2953 | { | ||
| 2954 | return p[i]; | ||
| 2955 | } | ||
| 2956 | static 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. */ | ||
| 2973 | int 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' | ||
| 2978 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
| 2979 | |||
| 2980 | int test (int i, double x); | ||
| 2981 | struct s1 {int (*f) (int a);}; | ||
| 2982 | struct s2 {int (*f) (double a);}; | ||
| 2983 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
| 2984 | int argc; | ||
| 2985 | char **argv; | ||
| 2986 | int | ||
| 2987 | main () | ||
| 2988 | { | ||
| 2989 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
| 2990 | ; | ||
| 2991 | return 0; | ||
| 2992 | } | ||
| 2993 | _ACEOF | ||
| 2994 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
| 2995 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
| 2996 | do | ||
| 2997 | CC="$ac_save_CC $ac_arg" | ||
| 2998 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2999 | ac_cv_prog_cc_c89=$ac_arg | ||
| 3000 | fi | ||
| 3001 | rm -f core conftest.err conftest.$ac_objext | ||
| 3002 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
| 3003 | done | ||
| 3004 | rm -f conftest.$ac_ext | ||
| 3005 | CC=$ac_save_CC | ||
| 3006 | |||
| 3007 | fi | ||
| 3008 | # AC_CACHE_VAL | ||
| 3009 | case "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; } ;; | ||
| 3020 | esac | ||
| 3021 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
| 3022 | |||
| 3023 | fi | ||
| 3024 | |||
| 3025 | ac_ext=c | ||
| 3026 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 3030 | |||
| 3031 | |||
| 3032 | # Checks for libraries. | ||
| 3033 | |||
| 3034 | # Checks for header files. | ||
| 3035 | |||
| 3036 | ac_ext=c | ||
| 3037 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3040 | ac_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. | ||
| 3044 | if test -n "$CPP" && test -d "$CPP"; then | ||
| 3045 | CPP= | ||
| 3046 | fi | ||
| 3047 | if test -z "$CPP"; then | ||
| 3048 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
| 3049 | $as_echo_n "(cached) " >&6 | ||
| 3050 | else | ||
| 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 | ||
| 3055 | for ac_c_preproc_warn_flag in '' yes | ||
| 3056 | do | ||
| 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 | ||
| 3072 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 3073 | |||
| 3074 | else | ||
| 3075 | # Broken: fails on valid input. | ||
| 3076 | continue | ||
| 3077 | fi | ||
| 3078 | rm -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 | ||
| 3086 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 3087 | # Broken: success on invalid input. | ||
| 3088 | continue | ||
| 3089 | else | ||
| 3090 | # Passes both tests. | ||
| 3091 | ac_preproc_ok=: | ||
| 3092 | break | ||
| 3093 | fi | ||
| 3094 | rm -f conftest.err conftest.$ac_ext | ||
| 3095 | |||
| 3096 | done | ||
| 3097 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 3098 | rm -f conftest.err conftest.$ac_ext | ||
| 3099 | if $ac_preproc_ok; then : | ||
| 3100 | break | ||
| 3101 | fi | ||
| 3102 | |||
| 3103 | done | ||
| 3104 | ac_cv_prog_CPP=$CPP | ||
| 3105 | |||
| 3106 | fi | ||
| 3107 | CPP=$ac_cv_prog_CPP | ||
| 3108 | else | ||
| 3109 | ac_cv_prog_CPP=$CPP | ||
| 3110 | fi | ||
| 3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
| 3112 | $as_echo "$CPP" >&6; } | ||
| 3113 | ac_preproc_ok=false | ||
| 3114 | for ac_c_preproc_warn_flag in '' yes | ||
| 3115 | do | ||
| 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 | ||
| 3131 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 3132 | |||
| 3133 | else | ||
| 3134 | # Broken: fails on valid input. | ||
| 3135 | continue | ||
| 3136 | fi | ||
| 3137 | rm -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 | ||
| 3145 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 3146 | # Broken: success on invalid input. | ||
| 3147 | continue | ||
| 3148 | else | ||
| 3149 | # Passes both tests. | ||
| 3150 | ac_preproc_ok=: | ||
| 3151 | break | ||
| 3152 | fi | ||
| 3153 | rm -f conftest.err conftest.$ac_ext | ||
| 3154 | |||
| 3155 | done | ||
| 3156 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 3157 | rm -f conftest.err conftest.$ac_ext | ||
| 3158 | if $ac_preproc_ok; then : | ||
| 3159 | |||
| 3160 | else | ||
| 3161 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 3162 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 3163 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | ||
| 3164 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 3165 | fi | ||
| 3166 | |||
| 3167 | ac_ext=c | ||
| 3168 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3171 | ac_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; } | ||
| 3176 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
| 3177 | $as_echo_n "(cached) " >&6 | ||
| 3178 | else | ||
| 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 | ||
| 3183 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
| 3184 | do | ||
| 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 | ||
| 3193 | case `"$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;; | ||
| 3217 | esac | ||
| 3218 | |||
| 3219 | $ac_path_GREP_found && break 3 | ||
| 3220 | done | ||
| 3221 | done | ||
| 3222 | done | ||
| 3223 | IFS=$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 | ||
| 3227 | else | ||
| 3228 | ac_cv_path_GREP=$GREP | ||
| 3229 | fi | ||
| 3230 | |||
| 3231 | fi | ||
| 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; } | ||
| 3239 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
| 3240 | $as_echo_n "(cached) " >&6 | ||
| 3241 | else | ||
| 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 | ||
| 3249 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
| 3250 | do | ||
| 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 | ||
| 3259 | case `"$ac_path_EGREP" --version 2>&1` in | ||
| 3260 | *GNU*) | ||
| 3261 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
| 3262 | *) | ||
