llvm.org GIT mirror llvm / cac731e
We won't use automake git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17155 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 14 years ago
133 changed file(s) with 0 addition(s) and 64919 deletion(s). Raw diff Collapse all Expand all
+0
-18
Makefile.am less more
None #===-- Makefile.am - Common make rules for LLVM ------------*- Makefile -*--===#
1 #
2 # The LLVM Compiler Infrastructure
3 #
4 # This file was developed by Reid Spencer and is distributed under the
5 # University of Illinois Open Source License. See LICENSE.TXT for details.
6 #
7 #===------------------------------------------------------------------------===#
8
9 include $(top_srcdir)/Makefile_config
10
11 SUBDIRS = lib/System lib/Support utils lib tools runtime
12
13 EXTRA_DIST = CREDITS.txt LICENSE.txt llvm.spec README.txt include docs autoconf
14
15 # Remove CVS directories from the distribution
16 dist-hook:
17 rm -rf `find $(top_distdir) -name CVS`
+0
-227
Makefile_rules less more
None #,===-- Makefile.rules.am - Common make rules for LLVM ------*- Makefile -*--===#
1 #
2 # The LLVM Compiler Infrastructure
3 #
4 # This file was developed by Reid Spencer and is distributed under the
5 # University of Illinois Open Source License. See LICENSE.TXT for details.
6 #
7 #===------------------------------------------------------------------------===#
8
9 #
10 # LLVM Specific C/C++ compiler flags
11 #
12 # Locations of built programs/libraries
13 LDIR := $(top_builddir)/$(BUILDMODE)/lib
14 BDIR := $(top_builddir)/$(BUILDMODE)/bin
15 DDIR := $(top_builddir)/$(BUILDMODE)/data
16 EDIR := $(top_builddir)/$(BUILDMODE)/etc
17 BCDIR := $(top_builddir)/$(BUILDMODE)/bclib
18
19 CXXFLAGS :=
20 CFLAGS :=
21
22 LLVM_COMMONFLAGS := -Wall -W -Wwrite-strings -Wno-unused -Wcast-align
23 LLVM_CXXFLAGS := $(LLVM_COMMONFLAGS)
24 LLVM_CFLAGS := $(LLVM_COMMONFLAGS)
25 LLVM_CPPFLAGS := -I. -I$(srcdir) -I$(top_srcdir)/include \
26 -I$(top_builddir)/include -D_RENTRANT -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
27
28 ifeq ($(BUILDMODE),Profile)
29 LLVM_CPPFLAGS += -DNDEBUG
30 LLVM_CXXFLAGS += -pg -O3 -finline-functions -felide-constructors
31 LLVM_CFLAGS += -pg
32 else
33 ifeq ($(BUILDMODE),Release)
34 LLVM_CPPFLAGS += -DNDEBUG
35 LLVM_CXXFLAGS += -O3 -finline-functions -fomit-frame-pointer -felide-constructors
36 LLVM_CFLAGS += -O3
37 else
38 LLVM_CPPFLAGS += -D_DEBUG
39 LLVM_CXXFLAGS += -O1
40 LLVM_CFLAGS += -O1
41 endif
42 endif
43
44 # Set up the standard automake variables
45 #
46 AM_CPPFLAGS = $(LLVM_CPPFLAGS)
47 AM_CXXFLAGS = $(LLVM_COMMONFLAGS) $(LLVM_CXXFLAGS)
48 AM_CFLAGS = $(LLVM_COMMONFLAGS) $(LLVM_CFLAGS)
49 AM_LDFLAGS = -L$(LDIR)
50
51 # Required tool definitions as macros so they can be overridden
52 LINKLIB := ${LIBTOOL} --tag=CXX --mode=link $(CXX) -o
53
54 BURG := $(top_builddir)/utils/Burg/burg$(EXEEXT)
55 RunBurg := $(BURG) -I
56 TBLGEN := $(top_builddir)/utils/TableGen/TableGen$(EXEEXT)
57
58 LLVMGCC := PATH=$(BDIR):$(PATH) $(LLVMGCCDIR)/bin/gcc
59 LLVMGXX := PATH=$(BDIR):$(PATH) $(LLVMGCCDIR)/bin/g++
60 LLVMAS := $(BDIR)/llvm-as$(EXEEXT)
61 LLVMGCCLD := $(BDIR)/gccld$(EXEEXT)
62
63 # LLVM GNU Make Function macros
64 GETOBJ = $(patsubst %,$(LDIR)/LLVM%.o,$(1))
65 GETLIB = $(patsubst %,-lLLVM%,$(1))
66 GETOBJS = $(foreach I,$(1) $(2) $(3) $(4) $(5) $(6) $(7) $(8) $(9) $(10),$(call GETOBJ,$(I)))
67 GETLIBS = $(foreach I,$(1) $(2) $(3) $(4) $(5) $(6) $(7) $(8) $(9) $(10),$(call GETLIB,$(I)))
68
69 # LLVM Rules
70
71 ifdef lib_LIBRARIES
72 lib_LINKS_TO_MAKE = $(foreach L,$(lib_LIBRARIES),$(patsubst lib%.a,$(LDIR)/lib%.a,$(L)))
73 all-am : $(lib_LINKS_TO_MAKE)
74
75 $(LDIR)/lib%.a : $(LDIR) lib%.a
76 cwd=`pwd` ; cd $(LDIR) ; $(RM) -f lib$*.a ; $(LN) -s $${cwd}/lib$*.a .
77
78 $(LDIR):
79 $(MKDIR) $(LDIR)
80 endif
81
82 ifdef bin_PROGRAMS
83 bin_LINKS_TO_MAKE = $(foreach P,$(bin_PROGRAMS),$(patsubst %,$(BDIR)/%,$(P)))
84
85 all-am : $(bin_LINKS_TO_MAKE)
86
87 $(BDIR)/% : $(BDIR) %
88 cwd=`pwd` ; cd $(BDIR) ; $(RM) -f $* ; $(LN) -s $${cwd}/$* .
89
90 $(BDIR):
91 $(MKDIR) $(BDIR)
92
93 endif
94
95 ifdef PRELINK
96 PRELINK_LIB_NAME = $(LDIR)/$(patsubst lib%.a,%.o,$(PRELINK))
97 PRELINK_VAR_NAME = $(patsubst lib%.a,lib%_a,$(PRELINK))_OBJECTS
98 PRELINK_OBJECTS = $($(PRELINK_VAR_NAME))
99
100 all-am: $(PRELINK_LIB_NAME)
101
102 $(PRELINK_LIB_NAME) : $(PRELINK_OBJECTS)
103 $(LIBTOOL) --mode=link $(CXX) -o $(PRELINK_LIB_NAME) $(PRELINK_OBJECTS)
104
105 clean-am: clean-relink
106
107 clean-relink:
108 $(RM) -f $(PRELINK_LIB_NAME)
109
110 install-am: install-prelink
111
112 install-prelink:
113 @${ECHO} ======= Installing $(PRELINK) library =======
114 $(INSTALL_DATA) '$(PRELINK_LIB_NAME)' $(DESTDIR)$(libdir)
115
116 endif
117
118 ifdef BYTECODE_LIBRARY
119 BCL_LIB_NAME = $(BCDIR)/$(patsubst lib%.a,%.bc,$(BYTECODE_LIBRARY))
120 BCL_VAR_NAME = $(patsubst lib%.a,lib%_a,$(BYTECODE_LIBRARY))_OBJECTS
121 BCL_OBJECTS = $(patsubst %.o,%.bc,$($(BCL_VAR_NAME)))
122
123 LinkBCLib := $(LLVMGCC) -shared -nostdlib
124 ifdef EXPORTED_SYMBOL_LIST
125 LinkBCLib += -Xlinker -internalize-public-api-list=$(EXPORTED_SYMBOL_LIST)
126 else
127 LinkBCLib += -Xlinker -disable-internalize
128 endif
129
130 all-am: $(BCDIR) $(BCL_LIB_NAME)
131
132 $(BCL_LIB_NAME) : $(BCL_OBJECTS)
133 $(LinkBCLib) -o $@ $(BCL_OBJECTS) $(LibSubDirs) $(LibLinkOpts)
134
135 $(BCDIR):
136 $(MKDIR) $(BCDIR)
137
138 clean-am: clean-bcl
139
140 clean-bcl:
141 $(RM) -f $(BCL_LIB_NAME) *.bc
142
143 install-am: install-bcl
144 intall-bcl:
145 $(INSTALL_DATA) '$(BCL_LIB_NAME)' $(DESTDIR)$(libdir)
146
147 endif
148
149 %.cpp: %.l
150 @${ECHO} Flexing $<
151 $(VERB) $(FLEX) -t $< | \
152 $(SED) '/^find_rule/d' | \
153 $(SED) 's/void yyunput/inline void yyunput/' | \
154 $(SED) 's/void \*yy_flex_realloc/inline void *yy_flex_realloc/' | \
155 $(SED) 's/#define YY_BUF_SIZE 16384/#define YY_BUF_SIZE (16384*64)/' > $@.tmp
156 $(VERB) $(CMP) -s $@ $@.tmp > /dev/null || ${MV} -f $@.tmp $@
157 @# remove the output of flex if it didn't get moved over...
158 @$(RM) -f $@.tmp
159
160 SUFFIXES = .td
161
162 %.c: %.y # Cancel built-in rules for yacc
163
164 %.h: %.y # Cancel built-in rules for yacc
165
166 %.cpp %.h : %.y
167 @${ECHO} "Bisoning `basename $<`"
168 $(VERB) $(BISON) -v -d -p $(
169 $(VERB) $(CMP) -s $*.tab.c $*.cpp > /dev/null || ${MV} -f $*.tab.c $*.cpp
170 $(VERB) $(CMP) -s $*.tab.h $*.h > /dev/null || ${MV} -f $*.tab.h $*.h
171 @# If the files were not updated, don't leave them lying around...
172 @$(RM) -f $*.tab.c $*.tab.h
173
174 %.bc : %.cpp
175 @${ECHO} "Compiling $*.cpp to bytecode"
176 $(VERB) $(LLVMGXX) $(AM_CPPFLAGS) $(AM_CXXFLAGS) -c $< -o $@
177
178 %.bc : %.c
179 @${ECHO} "Compiling $*.c to bytecode"
180 $(VERB) $(LLVMGCC) $(AM_CPPFLAGS) $(AM_CFLAGS) -c $< -o $@
181
182 %.bc : %.ll
183 @${ECHO} "Compiling $*.ll to bytecode"
184 $(VERB) $(LLVMAS) $< -f -o $@
185
186 %GenRegisterNames.inc : %.td
187 @echo "Building $< register names with tblgen"
188 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-register-enums -o $@
189
190 %GenRegisterInfo.h.inc : %.td
191 @echo "Building $< register information header with tblgen"
192 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-register-desc-header -o $@
193
194 %GenRegisterInfo.inc : %.td
195 @echo "Building $< register info implementation with tblgen"
196 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-register-desc -o $@
197
198 %GenInstrNames.inc : %.td
199 @echo "Building $< instruction names with tblgen"
200 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-instr-enums -o $@
201
202 %GenInstrInfo.inc : %.td
203 @echo "Building $< instruction information with tblgen"
204 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-instr-desc -o $@
205
206 %GenAsmWriter.inc : %.td
207 @echo "Building $< assembly writer with tblgen"
208 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-asm-writer -o $@
209
210 %GenATTAsmWriter.inc : %.td
211 @echo "Building $< AT&T assembly writer with tblgen"
212 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-asm-writer -o $@
213
214 %GenIntelAsmWriter.inc : %.td
215 @echo "Building $< Intel assembly writer with tblgen"
216 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-asm-writer -asmwriternum=1 -o $@
217
218 %GenInstrSelector.inc: %.td
219 @echo "Building $< instruction selector with tblgen"
220 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-instr-selector -o $@
221
222 %GenCodeEmitter.inc:: %.td $(TDFILES) $(TBLGEN)
223 @echo "Building $< code emitter with tblgen"
224 $(VERB) $(TBLGEN) -I $(srcdir) $< -gen-emitter -o $@
225
226 TDFILES = $(wildcard $(srcdir)/*.td ) $(srcdir)/../Target.td
+0
-633
autoconf/configure.am less more
None dnl -- configure.am - Automake based configuration --------------------------===
1 dnl
2 dnl The LLVM Compiler Infrastructure
3 dnl
4 dnl This file was developed by Reid Spencer and is distributed under the
5 dnl University of Illinois Open Source License. See LICENSE.TXT for details.
6 dnl
7 dnl ===----------------------------------------------------------------------===
8 dnl
9
10 dnl ===----------------------------------------------------------------------===
11 dnl --
12 dnl -- SECTION 1: Initialization & Setup
13 dnl --
14 dnl ===----------------------------------------------------------------------===
15
16 dnl Initialize autoconf
17 AC_INIT([[LLVM]],[[1.4]],[llvmbugs@cs.uiuc.edu])
18
19 dnl Place all of the extra autoconf files into the config subdirectory
20 dnl Tell various tools where the m4 autoconf macros are
21 dnl Have configure verify that the source directory is valid.
22 AC_CONFIG_AUX_DIR([autoconf])
23
24 dnl AC_CONFIG_MACRO_DIR(autoconf/m4)
25 dnl Verify that the source directory is valid
26 AC_CONFIG_SRCDIR(["lib/VMCore/Module.cpp"])
27
28 dnl Check which host/target for which we're compiling. This will tell us which
29 dnl LLVM compiler will be used for compiling SSA into object code.
30 AC_CANONICAL_TARGET
31
32 dnl Quit if the source directory has already been configured.
33 dnl NOTE: This relies upon undocumented autoconf behavior.
34 if test ${srcdir} != "." ; then
35 if test -f ${srcdir}/include/llvm/Config/config.h ; then
36 AC_MSG_ERROR([Already configured in ${srcdir}])
37 fi
38 fi
39
40 dnl Initialize automake
41 AM_INIT_AUTOMAKE([foreign dejagnu dist-zip nostdinc -Wnone -Wunsupported -Wsyntax -Wobsolete])
42
43 dnl Make sure we are using the right version of autoconf
44 AC_PREREQ(2.59)
45
46 dnl ===----------------------------------------------------------------------===
47 dnl --
48 dnl -- SECTION 2: Setup The Command Line Arguments For "configure"
49 dnl --
50 dnl ===----------------------------------------------------------------------===
51
52 dnl Specify where to find the llvm-gcc install directory
53 AC_ARG_WITH(llvmgccdir,
54 AS_HELP_STRING([--with-llvmgccdir],[Location of LLVM GCC front-end]),
55 [case "${withval}" in
56 /*|*/*) LLVMGCCDIR=$withval ;;
57 *) AC_MSG_ERROR([bad value ${withval} for --with-llvmgccdir]) ;;
58 esac],
59 [LLVMGCCDIR=/usr/local/llvm-gcc])
60 AC_SUBST(LLVMGCCDIR)
61
62 dnl Specify whether to build optimized or not
63 AC_ARG_ENABLE(optimized,
64 AS_HELP_STRING([--enable-optimized],[Build an optimized version of LLVM
65 (default=no)]),
66 [case "${withval}" in
67 yes) ENABLE_OPTIMIZED=1 ;;
68 no) ENABLE_OPTIMIZED=0 ;;
69 "") ENABLE_OPTIMIZED=0 ;;
70 *) AC_MSG_ERROR([bad value ${withval} for --enable-optimized]) ;;
71 esac],
72 [ENABLE_OPTIMIZED=0])
73 AC_SUBST(ENABLE_OPTIMIZED)
74
75 dnl Specify whether to build profiled or not
76 AC_ARG_ENABLE(profiled,
77 AS_HELP_STRING([--enable-profiled],[Build a profiled version of LLVM
78 (default=no)]),
79 [case "${withval}" in
80 yes) ENABLE_PROFILED=1 ;;
81 no) ENABLE_PROFILED=0 ;;
82 "") ENABLE_PROFILED=0 ;;
83 *) AC_MSG_ERROR([bad value ${withval} for --enable-profiled]) ;;
84 esac],
85 [ENABLE_PROFILED=0])
86 AC_SUBST(ENABLE_PROFILED,$ENABLE_PROFILED)
87
88 if test $ENABLE_PROFILED = 1 ; then
89 AC_SUBST(BUILDMODE,Profile)
90 else
91 if test $ENABLE_OPTIMIZED = 1 ; then
92 AC_SUBST(BUILDMODE,Release)
93 else
94 AC_SUBST(BUILDMODE,Debug)
95 fi
96 fi
97
98 dnl JIT Option
99 AC_ARG_ENABLE(jit,
100 AS_HELP_STRING([--enable-jit],
101 [Enable Just In Time Compiling (default is YES)]),,
102 enableval=default)
103
104 if test ${enableval} = "no"
105 then
106 AC_SUBST(JIT,[[]])
107 else
108 case $target in
109 *i*86*) AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
110 *sparc*) AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
111 *) AC_SUBST(JIT,[[]]) ;;
112 esac
113 fi
114
115 dnl ===----------------------------------------------------------------------===
116 dnl --
117 dnl -- SECTION 3: Platform/Architecture Configuration
118 dnl --
119 dnl ===----------------------------------------------------------------------===
120
121 dnl Set the "OS" Makefile variable based on the system we are building on.
122 AC_MSG_CHECKING([support for generic build operating system])
123 case $build in
124 *-*-aix*) llvm_platform_type="AIX" ;;
125 *-*-cygwin*) llvm_platform_type="Cygwin" ;;
126 *-*-darwin*) llvm_platform_type="Darwin" ;;
127 *-*-freebsd*) llvm_platform_type="FreeBSD" ;;
128 *-*-interix*) llvm_platform_type="Interix" ;;
129 *-*-linux*) llvm_platform_type="Linux" ;;
130 *-*-solaris*) llvm_platform_type="SunOS" ;;
131 *-*-win32*) llvm_platform_type="Win32" ;;
132 *-*-mingw*) llvm_platform_type="Win32" ;;
133 *)
134 AC_MSG_ERROR([Platform is unknown, configure can't continue])
135 llvm_platform_type="Unknown"
136 ;;
137 esac
138 AC_SUBST(OS,$llvm_platform_type)
139 AC_MSG_RESULT($llvm_platform_type)
140
141 AC_MSG_CHECKING(target architecture)
142 dnl If we are targetting a Sparc machine running Solaris, pretend that it is
143 dnl V9, since that is all that we support at the moment, and autoconf will only
144 dnl tell us we're a sparc.
145 case $target in
146 sparc*-*-solaris*) AC_SUBST(target,[[sparcv9-sun-solaris2.8]]) ;;
147 esac
148
149 dnl Determine what our target architecture is and configure accordingly.
150 dnl This will allow Makefiles to make a distinction between the hardware and
151 dnl the OS.
152 case $target in
153 i*86-*) ARCH="x86" ;;
154 sparc*-*) ARCH="Sparc" ;;
155 powerpc*-*) ARCH="PowerPC" ;;
156 *) ARCH="Unknown";;
157 esac
158 AM_CONDITIONAL(ARCH_X86,test $ARCH = "x86")
159 AM_CONDITIONAL(ARCH_SPARC,test $ARCH = "Sparc")
160 AM_CONDITIONAL(ARCH_PPC,test $ARCH = "PowerPC")
161 AM_CONDITIONAL(ARCH_UNKNOWN,test $ARCH = "Unknown")
162 AC_SUBST(ARCH,$ARCH)
163 AC_MSG_RESULT($ARCH)
164
165 dnl Check for the endianness of the target
166 AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little]))
167
168 dnl ===----------------------------------------------------------------------===
169 dnl --
170 dnl -- SECTION 4: Check For Programs We Need
171 dnl --
172 dnl ===----------------------------------------------------------------------===
173
174 dnl Find the install program (needs to be done before canonical stuff)
175 AC_PROG_INSTALL
176
177 dnl Check for compilation tools
178 AC_PROG_CXX
179 AC_PROG_CC
180 AC_PROG_CPP
181
182 dnl Checks for other build tools
183 AC_PROG_FLEX
184 AC_PROG_BISON
185 AC_PROG_LIBTOOL
186
187 dnl Checks for tools we can get away with not having:
188 AC_PATH_PROG(DOT,[dot],[true dot])
189 AC_PATH_PROG(ETAGS,[etags],[true etags])
190 AC_PATH_PROG(PYTHON,[python],[true python])
191 AC_PATH_PROG(QMTEST,[qmtest],[true qmtest])
192
193 dnl ===----------------------------------------------------------------------===
194 dnl --
195 dnl -- SECTION 5: Basic sanity checks on dependent programs we need
196 dnl --
197 dnl ===----------------------------------------------------------------------===
198
199 dnl Ensure that compilation tools are GCC; we use GCC specific extensions
200 if test "$GCC" != "yes"
201 then
202 AC_MSG_ERROR([gcc required but not found])
203 fi
204
205 dnl Ensure that compilation tools are GCC; we use GCC specific extensions
206 if test "$GXX" != "yes"
207 then
208 AC_MSG_ERROR([g++ required but not found])
209 fi
210
211 dnl Verify that GCC is version 3.0 or higher
212 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
213 if test "$gccmajor" -lt "3"
214 then
215 AC_MSG_ERROR([gcc 3.x required, but you have a lower version])
216 fi
217
218 dnl Check for GNU Make. We use its extensions too, so don't build without it
219 AC_CHECK_GNU_MAKE
220 if test -z "$_cv_gnu_make_command"
221 then
222 AC_MSG_ERROR([GNU Make required but not found])
223 fi
224
225 dnl Find the LLVM GCC-based C/C++ front end
226 AC_MSG_CHECKING([for llvm-gcc])
227 LLVM_GCC_CHECK=no
228 if test -d "$LLVMGCCDIR"
229 then
230 if test -x "$LLVMGCCDIR/bin/gcc"
231 then
232 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
233 fi
234 fi
235 llvmgccwarn=no
236 AC_MSG_RESULT($LLVM_GCC_CHECK)
237 if test "$LLVM_GCC_CHECK" = "no"
238 then
239 llvmgccwarn=yes
240 fi
241
242 dnl Determine if the "gcc" found produces LLVM assembly. If so its "sane"
243 AC_MSG_CHECKING([whether llvm-gcc is sane])
244 LLVM_GCC_SANE=no
245 if test -x "$LLVM_GCC_CHECK"
246 then
247 cp /dev/null conftest.c
248 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
249 if test $? -eq 0
250 then
251 LLVM_GCC_SANE=yes
252 fi
253 rm conftest.c
254 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
255 AC_SUBST(LLVMCC1,$llvmcc1path)
256 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
257 AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath)
258 fi
259 AC_MSG_RESULT($LLVM_GCC_SANE)
260 if test "$LLVM_GCC_SANE" = "no"
261 then
262 llvmgccwarn=yes
263 fi
264
265 dnl Check if we know how to tell etags we are using C++:
266 etags_version=`$ETAGS --version 2>&1`
267 case "$etags_version" in
268 *[Ee]xuberant*) ETAGSFLAGS="--language-force=c++" ;;
269 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
270 *) ETAGSFLAGS="" ;;
271 esac
272 AC_SUBST(ETAGSFLAGS,$ETAGSFLAGS)
273
274 if test "$PYTHON" = "false"
275 then
276 AC_MSG_WARN([Python is required for the test suite, but it was not found])
277 fi
278 if test "$QMTEST" = "false"
279 then
280 AC_MSG_WARN([QMTest is required for the test suite, but it was not found])
281 fi
282
283 dnl Verify that the version of python available is high enough for qmtest
284 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
285 pymajor=`echo $pyversion | cut -d. -f1`
286 pyminor=`echo $pyversion | cut -d. -f2`
287
288 if test "$pymajor" -ge "2"
289 then
290 if test "$pymajor" -eq "2"
291 then
292 if test "$pyminor" -lt "2"
293 then
294 AC_MSG_WARN([QMTest requires Python 2.2 or later])
295 fi
296 fi
297 else
298 AC_MSG_WARN([QMTest requires Python 2.2 or later])
299 fi
300
301 dnl ===----------------------------------------------------------------------===
302 dnl --
303 dnl -- SECTION 6: Check For Needed Libraries
304 dnl --
305 dnl ===----------------------------------------------------------------------===
306
307 dnl libelf is for sparc only; we can ignore it if we don't have it
308 AC_CHECK_LIB(elf, elf_begin)
309
310 dnl Check for bzip2 and zlib compression libraries needed for archive
311 dnl reading/writing
312 AC_CHECK_LIB(bz2,BZ2_bzCompressInit,[bzip2_found=1],[bzip2_found=0])
313 AC_CHECK_LIB(z,gzopen,[zlib_found=1],[zlib_found=0])
314
315 dnl dlopen() is required for plugin support.
316 AC_SEARCH_LIBS(dlopen,dl,
317 AC_DEFINE([HAVE_DLOPEN],[1],
318 [Define if dlopen() is available on this platform.]),
319 AC_MSG_WARN([dlopen() not found - disabling plugin support]))
320
321 dnl mallinfo is optional; the code can compile (minus features) without it
322 AC_SEARCH_LIBS(mallinfo,malloc,
323 AC_DEFINE([HAVE_MALLINFO],[1],
324 [Define if mallinfo() is available on this platform.]))
325
326 dnl pthread locking functions are optional - but llvm will not be thread-safe
327 dnl without locks.
328 AC_SEARCH_LIBS(pthread_mutex_lock,pthread,
329 AC_DEFINE([HAVE_PTHREAD_MUTEX_LOCK],[1],[Have pthread_mutex_lock]))
330
331
332 dnl ===----------------------------------------------------------------------===
333 dnl --
334 dnl -- SECTION 7: Check For Needed Header Files
335 dnl --
336 dnl ===----------------------------------------------------------------------===
337
338 dnl We don't check for ancient stuff or things that are guaranteed to be there
339 dnl by the C++ standard. We always use the versions of C headers.
340 AC_HEADER_STDC
341 AC_HEADER_SYS_WAIT
342 AC_HEADER_TIME
343 AC_HEADER_MMAP_ANONYMOUS
344
345 dnl Checks for POSIX and other various system-specific header files
346 AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h)
347 AC_CHECK_HEADERS(sys/resource.h dlfcn.h link.h execinfo.h windows.h)
348
349 dnl Check for things that need to be included in public headers, and so
350 dnl for which we may not have access to a HAVE_* preprocessor #define.
351 dnl (primarily used in DataTypes.h)
352 AC_CHECK_HEADER([sys/types.h])
353 AC_CHECK_HEADER([inttypes.h])
354 AC_CHECK_HEADER([stdint.h])
355
356 dnl Checks for compression headers:
357 AC_CHECK_HEADERS([bzlib.h],[bzlib_h_found=1],[bzlib_h_found=0],[])
358 AC_CHECK_HEADERS([zlib.h],[zlib_h_found=1],[zlib_h_found=0],[])
359
360 dnl ===----------------------------------------------------------------------===
361 dnl --
362 dnl -- SECTION 8: Check for specific features (types/functions/options/etc)
363 dnl --
364 dnl ===----------------------------------------------------------------------===
365
366 dnl Check for types
367 AC_TYPE_PID_T
368 AC_TYPE_SIZE_T
369 AC_TYPE_SIGNAL
370 AC_STRUCT_TM
371 AC_CHECK_TYPES([int64_t],,AC_MSG_ERROR([Type int64_t required but not found]))
372 AC_CHECK_TYPES([uint64_t],,
373 AC_CHECK_TYPES([u_int64_t],,
374 AC_MSG_ERROR([Type uint64_t or u_int64_t required but not found])))
375
376 dnl Check for various C features
377 AC_C_PRINTF_A
378 AC_FUNC_ISNAN
379 AC_FUNC_ISINF
380 AC_FUNC_ALLOCA
381 AC_FUNC_MMAP
382 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
383 then
384 AC_MSG_WARN([mmap() required but not found])
385 fi
386 AC_FUNC_MMAP_FILE
387 if test "$ac_cv_func_mmap_file" = "no"
388 then
389 AC_MSG_WARN([mmap() of files required but not found])
390 fi
391 AC_CHECK_FUNCS(getcwd gettimeofday strdup strtoq strtoll backtrace isatty)
392 AC_CHECK_FUNCS(mkstemp getrusage)
393 AC_CHECK_FUNC(mprotect,,
394 AC_MSG_ERROR([Function mprotect() required but not found]))
395
396 dnl Check for C++ extensions
397 AC_CXX_HAVE_HASH_MAP
398 AC_CXX_HAVE_HASH_SET
399 AC_CXX_HAVE_STD_ITERATOR
400 AC_CXX_HAVE_BI_ITERATOR
401 AC_CXX_HAVE_FWD_ITERATOR
402
403 dnl Determine if the linker supports the -R option.
404 AC_LINK_USE_R
405
406 dnl ===----------------------------------------------------------------------===
407 dnl --
408 dnl -- SECTION 9: Remaining LLVM specific configuration items
409 dnl --
410 dnl ===----------------------------------------------------------------------===
411
412 dnl Set up substitutions for compression libraries
413 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
414 AC_DEFINE([HAVE_ZLIB],[1],
415 [Define if zlib library is available on this platform.])
416 AC_SUBST([HAVE_ZLIB],[1])
417 else
418 AC_SUBST([HAVE_ZLIB],[0])
419 fi
420 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
421 AC_DEFINE([HAVE_BZIP2],[1],
422 [Define if bzip2 library is available on this platform.])
423 AC_SUBST([HAVE_BZIP2],[1])
424 else
425 AC_SUBST([HAVE_BZIP2],[0])
426 fi
427
428 dnl Get libtool's idea of what the shared library suffix is.
429 dnl This is a hack; it relies on undocumented behavior.
430 AC_MSG_CHECKING([for shared library suffix])
431 eval "SHLIBEXT=$shrext_cmds"
432 AC_MSG_RESULT($SHLIBEXT)
433
434 dnl Propagate it to the Makefiles and config.h (for gccld & bugpoint).
435 AC_SUBST(SHLIBEXT,$SHLIBEXT)
436 AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT",
437 [Extension that shared libraries have, e.g., ".so".])
438
439 # Translate the various configuration directories and other basic
440 # information into substitutions that will end up in config.h.in so
441 # that these configured values can be hard-wired into a program.
442 eval LLVM_PREFIX="${prefix}";
443 eval LLVM_BINDIR="${prefix}/bin";
444 eval LLVM_LIBDIR="${prefix}/lib";
445 eval LLVM_DATADIR="${prefix}/data";
446 eval LLVM_DOCSDIR="${prefix}/docs";
447 eval LLVM_ETCDIR="${prefix}/etc";
448 eval LLVM_INCLUDEDIR="${prefix}/include";
449 eval LLVM_INFODIR="${prefix}/info";
450 eval LLVM_MANDIR="${prefix}/man";
451 LLVM_CONFIGTIME=`date`
452
453 AC_SUBST(LLVM_PREFIX)
454 AC_SUBST(LLVM_BINDIR)
455 AC_SUBST(LLVM_LIBDIR)
456 AC_SUBST(LLVM_DATADIR)
457 AC_SUBST(LLVM_DOCSDIR)
458 AC_SUBST(LLVM_ETCDIR)
459 AC_SUBST(LLVM_INCLUDEDIR)
460 AC_SUBST(LLVM_INFODIR)
461 AC_SUBST(LLVM_MANDIR)
462 AC_SUBST(LLVM_CONFIGTIME)
463
464 AC_DEFINE_UNQUOTED(LLVM_PREFIX,"$LLVM_PREFIX",
465 [Installation prefix directory])
466 AC_DEFINE_UNQUOTED(LLVM_BINDIR, "$LLVM_BINDIR",
467 [Installation directory for binary executables])
468 AC_DEFINE_UNQUOTED(LLVM_LIBDIR, "$LLVM_LIBDIR",
469 [Installation directory for libraries])
470 AC_DEFINE_UNQUOTED(LLVM_DATADIR, "$LLVM_DATADIR",
471 [Installation directory for data files])
472 AC_DEFINE_UNQUOTED(LLVM_DATADIR, "$LLVM_DOCSDIR",
473 [Installation directory for documentation])
474 AC_DEFINE_UNQUOTED(LLVM_ETCDIR, "$LLVM_ETCDIR",
475 [Installation directory for config files])
476 AC_DEFINE_UNQUOTED(LLVM_INCLUDEDIR, "$LLVM_INCLUDEDIR",
477 [Installation directory for include files])
478 AC_DEFINE_UNQUOTED(LLVM_INFODIR, "$LLVM_INFODIR",
479 [Installation directory for .info files])
480 AC_DEFINE_UNQUOTED(LLVM_MANDIR, "$LLVM_MANDIR",
481 [Installation directory for man pages])
482 AC_DEFINE_UNQUOTED(LLVM_CONFIGTIME, "$LLVM_CONFIGTIME",
483 [Time at which LLVM was configured])
484
485 dnl ===----------------------------------------------------------------------===
486 dnl -- SECTION 10: Define the output and put it out
487 dnl ===----------------------------------------------------------------------===
488
489 dnl Configure header files
490 AC_CONFIG_HEADERS([include/llvm/Config/config.h])
491 AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h])
492 AC_CONFIG_HEADERS([include/llvm/ADT/hash_map])
493 AC_CONFIG_HEADERS([include/llvm/ADT/hash_set])
494 AC_CONFIG_HEADERS([include/llvm/Support/ThreadSupport.h])
495 AC_CONFIG_HEADERS([include/llvm/ADT/iterator])
496
497 dnl Configure makefiles
498 AC_CONFIG_FILES([Makefile])
499 AC_CONFIG_FILES([lib/Makefile])
500 AC_CONFIG_FILES([lib/Analysis/IPA/Makefile])
501 AC_CONFIG_FILES([lib/Analysis/Makefile])
502 AC_CONFIG_FILES([lib/Analysis/DataStructure/Makefile])
503 AC_CONFIG_FILES([lib/AsmParser/Makefile])
504 AC_CONFIG_FILES([lib/System/Makefile])
505 AC_CONFIG_FILES([lib/Bytecode/Reader/Makefile])
506 AC_CONFIG_FILES([lib/Bytecode/Makefile])
507 AC_CONFIG_FILES([lib/Bytecode/Writer/Makefile])
508 AC_CONFIG_FILES([lib/Bytecode/Archive/Makefile])
509 AC_CONFIG_FILES([lib/CodeGen/Makefile])
510 AC_CONFIG_FILES([lib/CodeGen/SelectionDAG/Makefile])
511 AC_CONFIG_FILES([lib/Debugger/Makefile])
512 AC_CONFIG_FILES([lib/ExecutionEngine/Interpreter/Makefile])
513 AC_CONFIG_FILES([lib/ExecutionEngine/Makefile])
514 AC_CONFIG_FILES([lib/ExecutionEngine/JIT/Makefile])
515 AC_CONFIG_FILES([lib/Support/Makefile])
516 AC_CONFIG_FILES([lib/Target/CBackend/Makefile])
517 AC_CONFIG_FILES([lib/Target/Makefile])
518 AC_CONFIG_FILES([lib/Target/Skeleton/Makefile])
519 AC_CONFIG_FILES([lib/Target/PowerPC/Makefile])
520 AC_CONFIG_FILES([lib/Target/SparcV9/Makefile])
521 AC_CONFIG_FILES([lib/Target/SparcV9/InstrSched/Makefile])
522 AC_CONFIG_FILES([lib/Target/SparcV9/LiveVar/Makefile])
523 AC_CONFIG_FILES([lib/Target/SparcV9/ModuloScheduling/Makefile])
524 AC_CONFIG_FILES([lib/Target/SparcV9/RegAlloc/Makefile])
525 AC_CONFIG_FILES([lib/Target/X86/Makefile])
526 AC_CONFIG_FILES([lib/Transforms/Hello/Makefile])
527 AC_CONFIG_FILES([lib/Transforms/Makefile])
528 AC_CONFIG_FILES([lib/Transforms/IPO/Makefile])
529 AC_CONFIG_FILES([lib/Transforms/Instrumentation/ProfilePaths/Makefile])
530 AC_CONFIG_FILES([lib/Transforms/Instrumentation/Makefile])
531 AC_CONFIG_FILES([lib/Transforms/Scalar/Makefile])
532 AC_CONFIG_FILES([lib/Transforms/Utils/Makefile])
533 AC_CONFIG_FILES([lib/VMCore/Makefile])
534 AC_CONFIG_FILES([utils/Makefile])
535 AC_CONFIG_FILES([utils/Burg/Makefile])
536 AC_CONFIG_FILES([utils/fpcmp/Makefile])
537 AC_CONFIG_FILES([utils/TableGen/Makefile])
538 AC_CONFIG_FILES([tools/Makefile])
539 AC_CONFIG_FILES([tools/analyze/Makefile])
540 AC_CONFIG_FILES([tools/llvmc/Makefile])
541 AC_CONFIG_FILES([tools/bugpoint/Makefile])
542 AC_CONFIG_FILES([tools/extract/Makefile])
543 AC_CONFIG_FILES([tools/gccas/Makefile])
544 AC_CONFIG_FILES([tools/gccld/Makefile])
545 AC_CONFIG_FILES([tools/llvm-bcanalyzer/Makefile])
546 AC_CONFIG_FILES([tools/llc/Makefile])
547 AC_CONFIG_FILES([tools/llee/Makefile])
548 AC_CONFIG_FILES([tools/lli/Makefile])
549 AC_CONFIG_FILES([tools/llvm-ar/Makefile])
550 AC_CONFIG_FILES([tools/llvm-as/Makefile])
551 AC_CONFIG_FILES([tools/llvm-db/Makefile])
552 AC_CONFIG_FILES([tools/llvm-dis/Makefile])
553 AC_CONFIG_FILES([tools/llvm-link/Makefile])
554 AC_CONFIG_FILES([tools/llvm-nm/Makefile])
555 AC_CONFIG_FILES([tools/llvm-prof/Makefile])
556 AC_CONFIG_FILES([tools/opt/Makefile])
557 AC_CONFIG_FILES([tools/llvm-ld/Makefile])
558 AC_CONFIG_FILES([tools/llvm-stub/Makefile])
559 AC_CONFIG_FILES([runtime/Makefile])
560 AC_CONFIG_FILES([runtime/GC/Makefile])
561 AC_CONFIG_FILES([runtime/GC/SemiSpace/Makefile])
562 AC_CONFIG_FILES([runtime/GCCLibraries/Makefile])
563 AC_CONFIG_FILES([runtime/GCCLibraries/crtend/Makefile])
564 AC_CONFIG_FILES([runtime/GCCLibraries/libc/Makefile])
565 AC_CONFIG_FILES([runtime/GCCLibraries/libcurses/Makefile])
566 AC_CONFIG_FILES([runtime/GCCLibraries/libg/Makefile])
567 AC_CONFIG_FILES([runtime/GCCLibraries/libgcc/Makefile])
568 AC_CONFIG_FILES([runtime/GCCLibraries/libgdbm/Makefile])
569 AC_CONFIG_FILES([runtime/GCCLibraries/libm/Makefile])
570 AC_CONFIG_FILES([runtime/GCCLibraries/libmalloc/Makefile])
571 AC_CONFIG_FILES([runtime/GCCLibraries/libpthread/Makefile])
572 AC_CONFIG_FILES([runtime/GCCLibraries/libtermcap/Makefile])
573 AC_CONFIG_FILES([runtime/GCCLibraries/libucb/Makefile])
574 AC_CONFIG_FILES([runtime/GCCLibraries/libutempter/Makefile])
575 AC_CONFIG_FILES([runtime/GCCLibraries/libutil/Makefile])
576 AC_CONFIG_FILES([runtime/libdummy/Makefile])
577 AC_CONFIG_FILES([runtime/libpng/Makefile])
578 AC_CONFIG_FILES([runtime/libprofile/Makefile])
579 AC_CONFIG_FILES([runtime/libtrace/Makefile])
580 AC_CONFIG_FILES([runtime/zlib/Makefile])
581
582 dnl Make a link from lib/System/platform to lib/System/$llvm_platform_type
583 dnl This helps the #inclusion of the system specific include files
584 dnl for the operating system abstraction library
585 AC_CONFIG_LINKS(lib/System/platform:lib/System/$llvm_platform_type)
586
587 dnl Configure all of the projects present in our source tree.
588 for i in `ls ${srcdir}/projects`
589 do
590 if test -d ${srcdir}/projects/${i} ; then
591 case ${i} in
592 "CVS") ;;
593 "sample") AC_CONFIG_SUBDIRS([projects/sample]) ;;
594 "Stacker") AC_CONFIG_SUBDIRS([projects/Stacker]) ;;
595 "llvm-test") AC_CONFIG_SUBDIRS([projects/llvm-test]) ;;
596 "llvm-reopt") AC_CONFIG_SUBDIRS([projects/llvm-reopt]);;
597 "llvm-gcc") AC_CONFIG_SUBDIRS([projects/llvm-gcc]) ;;
598 "Java") AC_CONFIG_SUBDIRS([projects/Java]) ;;
599 "llvm-tv") AC_CONFIG_SUBDIRS([projects/llvm-tv]) ;;
600 "llvm-fefw") AC_CONFIG_SUBDIRS([projects/llvm-fefw]) ;;
601 *)
602 AC_MSG_WARN([Unknown project (${i}) won't be configured automatically])
603 ;;
604 esac
605 fi
606 done
607 dnl Create the output files
608 AC_OUTPUT
609
610 dnl ===----------------------------------------------------------------------===
611 dnl -- SECTION 11: Output warnings to user (always last so they see it)
612 dnl ===----------------------------------------------------------------------===
613
614 dnl Warn if we don't have a compression library
615 if test $bzip2_found -ne 1 ; then
616 if test $zlib_found -ne 1 ; then
617 AC_MSG_WARN([*** Neither zlib nor bzip2 compression libraries were found.])
618 AC_MSG_WARN([*** Bytecode archives will not support compression!])
619 AC_MSG_WARN([*** To correct, install the libraries and re-run configure.])
620 fi
621 fi
622
623 dnl Warn loudly if llvm-gcc was not obviously working
624 if test $llvmgccwarn = yes
625 then
626 AC_MSG_WARN([***** llvm C/C++ front end was not found, or does not])
627 AC_MSG_WARN([***** appear to be working.])
628 AC_MSG_WARN([***** ])
629 AC_MSG_WARN([***** Please check configure's --with-llvmgccdir option.])
630 AC_MSG_WARN([***** Runtime libraries (in llvm/runtime) will not be built,])
631 AC_MSG_WARN([***** but you should be able to build the llvm tools.])
632 fi
+0
-28583
configure_am less more
None #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
3 #
4 # Report bugs to .
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
265 :
266 else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <
275 $*
276 EOF
277 exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
320 IFS="$lt_save_ifs"
321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='LLVM'
424 PACKAGE_TARNAME='-llvm-'
425 PACKAGE_VERSION='1.4'
426 PACKAGE_STRING='LLVM 1.4'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_unique_file=""lib/VMCore/Module.cpp""
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include
433 #if HAVE_SYS_TYPES_H
434 # include
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include
438 #endif
439 #if STDC_HEADERS
440 # include
441 # include
442 #else
443 # if HAVE_STDLIB_H
444 # include
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include
450 # endif
451 # include
452 #endif
453 #if HAVE_STRINGS_H
454 # include
455 #endif
456 #if HAVE_INTTYPES_H
457 # include
458 #else
459 # if HAVE_STDINT_H
460 # include
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include
465 #endif"
466
467 ac_subdirs_all="$ac_subdirs_all projects/sample"
468 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
469 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
470 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
471 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
472 ac_subdirs_all="$ac_subdirs_all projects/Java"
473 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
474 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar LLVMGCCDIR ENABLE_OPTIMIZED ENABLE_PROFILED BUILDMODE JIT OS ARCH_X86_TRUE ARCH_X86_FALSE ARCH_SPARC_TRUE ARCH_SPARC_FALSE ARCH_PPC_TRUE ARCH_PPC_FALSE ARCH_UNKNOWN_TRUE ARCH_UNKNOWN_FALSE ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS PYTHON QMTEST ifGNUmake LLVMCC1 LLVMCC1PLUS ETAGSFLAGS ALLOCA MMAP_FILE HAVE_ZLIB HAVE_BZIP2 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME subdirs LIBOBJS LTLIBOBJS'
476 ac_subst_files=''
477
478 # Initialize some variables set by options.
479 ac_init_help=
480 ac_init_version=false
481 # The variables have the same names as the options, with
482 # dashes changed to underlines.
483 cache_file=/dev/null
484 exec_prefix=NONE
485 no_create=
486 no_recursion=
487 prefix=NONE
488 program_prefix=NONE
489 program_suffix=NONE
490 program_transform_name=s,x,x,
491 silent=
492 site=
493 srcdir=
494 verbose=
495 x_includes=NONE
496 x_libraries=NONE
497
498 # Installation directory options.
499 # These are left unexpanded so users can "make install exec_prefix=/foo"
500 # and all the variables that are supposed to be based on exec_prefix
501 # by default will actually change.
502 # Use braces instead of parens because sh, perl, etc. also accept them.
503 bindir='${exec_prefix}/bin'
504 sbindir='${exec_prefix}/sbin'
505 libexecdir='${exec_prefix}/libexec'
506 datadir='${prefix}/share'
507 sysconfdir='${prefix}/etc'
508 sharedstatedir='${prefix}/com'
509 localstatedir='${prefix}/var'
510 libdir='${exec_prefix}/lib'
511 includedir='${prefix}/include'
512 oldincludedir='/usr/include'
513 infodir='${prefix}/info'
514 mandir='${prefix}/man'
515
516 ac_prev=
517 for ac_option
518 do
519 # If the previous option needs an argument, assign it.
520 if test -n "$ac_prev"; then
521 eval "$ac_prev=\$ac_option"
522 ac_prev=
523 continue
524 fi
525
526 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528 # Accept the important Cygnus configure options, so we can diagnose typos.
529
530 case $ac_option in
531
532 -bindir | --bindir | --bindi | --bind | --bin | --bi)
533 ac_prev=bindir ;;
534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535 bindir=$ac_optarg ;;
536
537 -build | --build | --buil | --bui | --bu)
538 ac_prev=build_alias ;;
539 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540 build_alias=$ac_optarg ;;
541
542 -cache-file | --cache-file | --cache-fil | --cache-fi \
543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544 ac_prev=cache_file ;;
545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547 cache_file=$ac_optarg ;;
548
549 --config-cache | -C)
550 cache_file=config.cache ;;
551
552 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553 ac_prev=datadir ;;
554 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555 | --da=*)
556 datadir=$ac_optarg ;;
557
558 -disable-* | --disable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 eval "enable_$ac_feature=no" ;;
566
567 -enable-* | --enable-*)
568 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569 # Reject names that are not valid shell variable names.
570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572 { (exit 1); exit 1; }; }
573 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574 case $ac_option in
575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 *) ac_optarg=yes ;;
577 esac
578 eval "enable_$ac_feature='$ac_optarg'" ;;
579
580 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582 | --exec | --exe | --ex)
583 ac_prev=exec_prefix ;;
584 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586 | --exec=* | --exe=* | --ex=*)
587 exec_prefix=$ac_optarg ;;
588
589 -gas | --gas | --ga | --g)
590 # Obsolete; use --with-gas.
591 with_gas=yes ;;
592
593 -help | --help | --hel | --he | -h)
594 ac_init_help=long ;;
595 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596 ac_init_help=recursive ;;
597 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598 ac_init_help=short ;;
599
600 -host | --host | --hos | --ho)
601 ac_prev=host_alias ;;
602 -host=* | --host=* | --hos=* | --ho=*)
603 host_alias=$ac_optarg ;;
604
605 -includedir | --includedir | --includedi | --included | --include \
606 | --includ | --inclu | --incl | --inc)
607 ac_prev=includedir ;;
608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609 | --includ=* | --inclu=* | --incl=* | --inc=*)
610 includedir=$ac_optarg ;;
611
612 -infodir | --infodir | --infodi | --infod | --info | --inf)
613 ac_prev=infodir ;;
614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615 infodir=$ac_optarg ;;
616
617 -libdir | --libdir | --libdi | --libd)
618 ac_prev=libdir ;;
619 -libdir=* | --libdir=* | --libdi=* | --libd=*)
620 libdir=$ac_optarg ;;
621
622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623 | --libexe | --libex | --libe)
624 ac_prev=libexecdir ;;
625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626 | --libexe=* | --libex=* | --libe=*)
627 libexecdir=$ac_optarg ;;
628
629 -localstatedir | --localstatedir | --localstatedi | --localstated \
630 | --localstate | --localstat | --localsta | --localst \
631 | --locals | --local | --loca | --loc | --lo)
632 ac_prev=localstatedir ;;
633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636 localstatedir=$ac_optarg ;;
637
638 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639 ac_prev=mandir ;;
640 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641 mandir=$ac_optarg ;;
642
643 -nfp | --nfp | --nf)
644 # Obsolete; use --without-fp.
645 with_fp=no ;;
646
647 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648 | --no-cr | --no-c | -n)
649 no_create=yes ;;
650
651 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653 no_recursion=yes ;;
654
655 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657 | --oldin | --oldi | --old | --ol | --o)
658 ac_prev=oldincludedir ;;
659 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662 oldincludedir=$ac_optarg ;;
663
664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665 ac_prev=prefix ;;
666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667 prefix=$ac_optarg ;;
668
669 -program-prefix | --program-prefix | --program-prefi | --program-pref \
670 | --program-pre | --program-pr | --program-p)
671 ac_prev=program_prefix ;;
672 -program-prefix=* | --program-prefix=* | --program-prefi=* \
673 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674 program_prefix=$ac_optarg ;;
675
676 -program-suffix | --program-suffix | --program-suffi | --program-suff \
677 | --program-suf | --program-su | --program-s)
678 ac_prev=program_suffix ;;
679 -program-suffix=* | --program-suffix=* | --program-suffi=* \
680 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681 program_suffix=$ac_optarg ;;
682
683 -program-transform-name | --program-transform-name \
684 | --program-transform-nam | --program-transform-na \
685 | --program-transform-n | --program-transform- \
686 | --program-transform | --program-transfor \
687 | --program-transfo | --program-transf \
688 | --program-trans | --program-tran \
689 | --progr-tra | --program-tr | --program-t)
690 ac_prev=program_transform_name ;;
691 -program-transform-name=* | --program-transform-name=* \
692 | --program-transform-nam=* | --program-transform-na=* \
693 | --program-transform-n=* | --program-transform-=* \
694 | --program-transform=* | --program-transfor=* \
695 | --program-transfo=* | --program-transf=* \
696 | --program-trans=* | --program-tran=* \
697 | --progr-tra=* | --program-tr=* | --program-t=*)
698 program_transform_name=$ac_optarg ;;
699
700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701 | -silent | --silent | --silen | --sile | --sil)
702 silent=yes ;;
703
704 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705 ac_prev=sbindir ;;
706 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707 | --sbi=* | --sb=*)
708 sbindir=$ac_optarg ;;
709
710 -sharedstatedir | --sharedstatedir | --sharedstatedi \
711 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712 | --sharedst | --shareds | --shared | --share | --shar \
713 | --sha | --sh)
714 ac_prev=sharedstatedir ;;
715 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718 | --sha=* | --sh=*)
719 sharedstatedir=$ac_optarg ;;
720
721 -site | --site | --sit)
722 ac_prev=site ;;
723 -site=* | --site=* | --sit=*)
724 site=$ac_optarg ;;
725
726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727 ac_prev=srcdir ;;
728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729 srcdir=$ac_optarg ;;
730
731 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732 | --syscon | --sysco | --sysc | --sys | --sy)
733 ac_prev=sysconfdir ;;
734 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736 sysconfdir=$ac_optarg ;;
737
738 -target | --target | --targe | --targ | --tar | --ta | --t)
739 ac_prev=target_alias ;;
740 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741 target_alias=$ac_optarg ;;
742
743 -v | -verbose | --verbose | --verbos | --verbo | --verb)
744 verbose=yes ;;
745
746 -version | --version | --versio | --versi | --vers | -V)
747 ac_init_version=: ;;
748
749 -with-* | --with-*)
750 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package| sed 's/-/_/g'`
756 case $ac_option in
757 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758 *) ac_optarg=yes ;;
759 esac
760 eval "with_$ac_package='$ac_optarg'" ;;
761
762 -without-* | --without-*)
763 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764 # Reject names that are not valid shell variable names.
765 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766 { echo "$as_me: error: invalid package name: $ac_package" >&2
767 { (exit 1); exit 1; }; }
768 ac_package=`echo $ac_package | sed 's/-/_/g'`
769 eval "with_$ac_package=no" ;;
770
771 --x)
772 # Obsolete; use --with-x.
773 with_x=yes ;;
774
775 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776 | --x-incl | --x-inc | --x-in | --x-i)
777 ac_prev=x_includes ;;
778 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780 x_includes=$ac_optarg ;;
781
782 -x-libraries | --x-libraries | --x-librarie | --x-librari \
783 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784 ac_prev=x_libraries ;;
785 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787 x_libraries=$ac_optarg ;;
788
789 -*) { echo "$as_me: error: unrecognized option: $ac_option
790 Try \`$0 --help' for more information." >&2
791 { (exit 1); exit 1; }; }
792 ;;
793
794 *=*)
795 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799 { (exit 1); exit 1; }; }
800 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801 eval "$ac_envvar='$ac_optarg'"
802 export $ac_envvar ;;
803
804 *)
805 # FIXME: should be removed in autoconf 3.0.
806 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 ;;
811
812 esac
813 done
814
815 if test -n "$ac_prev"; then
816 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817 { echo "$as_me: error: missing argument to $ac_option" >&2
818 { (exit 1); exit 1; }; }
819 fi
820
821 # Be sure to have absolute paths.
822 for ac_var in exec_prefix prefix
823 do
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
831
832 # Be sure to have absolute paths.
833 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834 localstatedir libdir includedir oldincludedir infodir mandir
835 do
836 eval ac_val=$`echo $ac_var`
837 case $ac_val in
838 [\\/$]* | ?:[\\/]* ) ;;
839 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840 { (exit 1); exit 1; }; };;
841 esac
842 done
843
844 # There might be people who depend on the old broken behavior: `$host'
845 # used to hold the argument of --host etc.
846 # FIXME: To remove some day.
847 build=$build_alias
848 host=$host_alias
849 target=$target_alias
850
851 # FIXME: To remove some day.
852 if test "x$host_alias" != x; then
853 if test "x$build_alias" = x; then
854 cross_compiling=maybe
855 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856 If a cross compiler is detected then cross compile mode will be used." >&2
857 elif test "x$build_alias" != "x$host_alias"; then
858 cross_compiling=yes
859 fi
860 fi
861
862 ac_tool_prefix=
863 test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865 test "$silent" = yes && exec 6>/dev/null
866
867
868 # Find the source files, if location was not specified.
869 if test -z "$srcdir"; then
870 ac_srcdir_defaulted=yes
871 # Try the directory containing this script, then its parent.
872 ac_confdir=`(dirname "$0") 2>/dev/null ||
873 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874 X"$0" : 'X\(//\)[^/]' \| \
875 X"$0" : 'X\(//\)$' \| \
876 X"$0" : 'X\(/\)' \| \
877 . : '\(.\)' 2>/dev/null ||
878 echo X"$0" |
879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881 /^X\(\/\/\)$/{ s//\1/; q; }
882 /^X\(\/\).*/{ s//\1/; q; }
883 s/.*/./; q'`
884 srcdir=$ac_confdir
885 if test ! -r $srcdir/$ac_unique_file; then
886 srcdir=..
887 fi
888 else
889 ac_srcdir_defaulted=no
890 fi
891 if test ! -r $srcdir/$ac_unique_file; then
892 if test "$ac_srcdir_defaulted" = yes; then
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894 { (exit 1); exit 1; }; }
895 else
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897 { (exit 1); exit 1; }; }
898 fi
899 fi
900 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902 { (exit 1); exit 1; }; }
903 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904 ac_env_build_alias_set=${build_alias+set}
905 ac_env_build_alias_value=$build_alias
906 ac_cv_env_build_alias_set=${build_alias+set}
907 ac_cv_env_build_alias_value=$build_alias
908 ac_env_host_alias_set=${host_alias+set}
909 ac_env_host_alias_value=$host_alias
910 ac_cv_env_host_alias_set=${host_alias+set}
911 ac_cv_env_host_alias_value=$host_alias
912 ac_env_target_alias_set=${target_alias+set}
913 ac_env_target_alias_value=$target_alias
914 ac_cv_env_target_alias_set=${target_alias+set}
915 ac_cv_env_target_alias_value=$target_alias
916 ac_env_CC_set=${CC+set}
917 ac_env_CC_value=$CC
918 ac_cv_env_CC_set=${CC+set}
919 ac_cv_env_CC_value=$CC
920 ac_env_CFLAGS_set=${CFLAGS+set}
921 ac_env_CFLAGS_value=$CFLAGS
922 ac_cv_env_CFLAGS_set=${CFLAGS+set}
923 ac_cv_env_CFLAGS_value=$CFLAGS
924 ac_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_env_LDFLAGS_value=$LDFLAGS
926 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_cv_env_LDFLAGS_value=$LDFLAGS
928 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_env_CPPFLAGS_value=$CPPFLAGS
930 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
932 ac_env_CXX_set=${CXX+set}
933 ac_env_CXX_value=$CXX
934 ac_cv_env_CXX_set=${CXX+set}
935 ac_cv_env_CXX_value=$CXX
936 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_env_CXXFLAGS_value=$CXXFLAGS
938 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
939 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
940 ac_env_CPP_set=${CPP+set}
941 ac_env_CPP_value=$CPP
942 ac_cv_env_CPP_set=${CPP+set}
943 ac_cv_env_CPP_value=$CPP
944 ac_env_CXXCPP_set=${CXXCPP+set}
945 ac_env_CXXCPP_value=$CXXCPP
946 ac_cv_env_CXXCPP_set=${CXXCPP+set}
947 ac_cv_env_CXXCPP_value=$CXXCPP
948 ac_env_F77_set=${F77+set}
949 ac_env_F77_value=$F77
950 ac_cv_env_F77_set=${F77+set}
951 ac_cv_env_F77_value=$F77
952 ac_env_FFLAGS_set=${FFLAGS+set}
953 ac_env_FFLAGS_value=$FFLAGS
954 ac_cv_env_FFLAGS_set=${FFLAGS+set}
955 ac_cv_env_FFLAGS_value=$FFLAGS
956
957 #
958 # Report the --help message.
959 #
960 if test "$ac_init_help" = "long"; then
961 # Omit some internal or obsolete options to make the list less imposing.
962 # This message is too long to be a string in the A/UX 3.1 sh.
963 cat <<_ACEOF
964 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
965
966 Usage: $0 [OPTION]... [VAR=VALUE]...
967
968 To assign environment variables (e.g., CC, CFLAGS...), specify them as
969 VAR=VALUE. See below for descriptions of some of the useful variables.
970
971 Defaults for the options are specified in brackets.
972
973 Configuration:
974 -h, --help display this help and exit
975 --help=short display options specific to this package
976 --help=recursive display the short help of all the included packages
977 -V, --version display version information and exit
978 -q, --quiet, --silent do not print \`checking...' messages
979 --cache-file=FILE cache test results in FILE [disabled]
980 -C, --config-cache alias for \`--cache-file=config.cache'
981 -n, --no-create do not create output files
982 --srcdir=DIR find the sources in DIR [configure dir or \`..']
983
984 _ACEOF
985
986 cat <<_ACEOF
987 Installation directories:
988 --prefix=PREFIX install architecture-independent files in PREFIX
989 [$ac_default_prefix]
990 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
991 [PREFIX]
992
993 By default, \`make install' will install all the files in
994 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
995 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
996 for instance \`--prefix=\$HOME'.
997
998 For better control, use the options below.
999
1000 Fine tuning of the installation directories:
1001 --bindir=DIR user executables [EPREFIX/bin]
1002 --sbindir=DIR system admin executables [EPREFIX/sbin]
1003 --libexecdir=DIR program executables [EPREFIX/libexec]
1004 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1005 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1006 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1007 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1008 --libdir=DIR object code libraries [EPREFIX/lib]
1009 --includedir=DIR C header files [PREFIX/include]
1010 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1011 --infodir=DIR info documentation [PREFIX/info]
1012 --mandir=DIR man documentation [PREFIX/man]
1013 _ACEOF
1014
1015 cat <<\_ACEOF
1016
1017 Program names:
1018 --program-prefix=PREFIX prepend PREFIX to installed program names
1019 --program-suffix=SUFFIX append SUFFIX to installed program names
1020 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1021
1022 System types:
1023 --build=BUILD configure for building on BUILD [guessed]
1024 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1025 --target=TARGET configure for building compilers for TARGET [HOST]
1026 _ACEOF
1027 fi
1028
1029 if test -n "$ac_init_help"; then
1030 case $ac_init_help in
1031 short | recursive ) echo "Configuration of LLVM 1.4:";;
1032 esac
1033 cat <<\_ACEOF
1034
1035 Optional Features:
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-optimized Build an optimized version of LLVM (default=no)
1039 --enable-profiled Build a profiled version of LLVM (default=no)
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1041 --disable-dependency-tracking speeds up one-time build
1042 --enable-dependency-tracking do not reject slow dependency extractors
1043 --enable-shared[=PKGS]
1044 build shared libraries [default=yes]
1045 --enable-static[=PKGS]
1046 build static libraries [default=yes]
1047 --enable-fast-install[=PKGS]
1048 optimize for fast installation [default=yes]
1049 --disable-libtool-lock avoid locking (might break parallel builds)
1050
1051 Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-llvmgccdir Location of LLVM GCC front-end
1055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1057 both]
1058 --with-tags[=TAGS]
1059 include additional configurations [automatic]
1060
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L if you have libraries in a
1065 nonstandard directory
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have
1067 headers in a nonstandard directory
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CPP C preprocessor
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to .
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1084 ac_popdir=`pwd`
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1087 ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094 ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098 .) # No --srcdir option. We are building in place.
1099 ac_srcdir=.
1100 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=.
1102 else
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 fi ;;
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1108 *) # Relative path.
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118 case "$ac_dir" in
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136 case $ac_srcdir in
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 esac;;
1150 esac
1151
1152 cd $ac_dir
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1155 echo
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1158 echo
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1162 echo
1163 $ac_configure --help
1164 else
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166 fi
1167 cd $ac_popdir
1168 done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173 cat <<\_ACEOF
1174 LLVM configure 1.4
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180 _ACEOF
1181 exit 0
1182 fi
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1187
1188 It was created by LLVM $as_me 1.4, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1190
1191 $ $0 $@
1192
1193 _ACEOF
1194 {
1195 cat <<_ASUNAME
1196 ## --------- ##
1197 ## Platform. ##
1198 ## --------- ##
1199
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1208
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1216
1217 _ASUNAME
1218
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1221 do
1222 IFS=$as_save_IFS
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1225 done
1226
1227 } >&5
1228
1229 cat >&5 <<_ACEOF
1230
1231
1232 ## ----------- ##
1233 ## Core tests. ##
1234 ## ----------- ##
1235
1236 _ACEOF
1237
1238
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1250 do
1251 for ac_arg
1252 do
1253 case $ac_arg in
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 continue ;;
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 esac
1261 case $ac_pass in
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263 2)
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1267 else
1268 case $ac_arg in
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 esac
1276 ;;
1277 -* ) ac_must_keep_next=true ;;
1278 esac
1279 fi
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1282 ac_sep=" "
1283 ;;
1284 esac
1285 done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1297 {
1298 echo
1299
1300 cat <<\_ASBOX
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1304 _ASBOX
1305 echo
1306 # The following way of writing the cache mishandles newlines in values,
1307 {
1308 (set) 2>&1 |
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 *ac_space=\ *)
1311 sed -n \
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314 ;;
1315 *)
1316 sed -n \
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ;;
1319 esac;
1320 }
1321 echo
1322
1323 cat <<\_ASBOX
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1327 _ASBOX
1328 echo
1329 for ac_var in $ac_subst_vars
1330 do
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1333 done | sort
1334 echo
1335
1336 if test -n "$ac_subst_files"; then
1337 cat <<\_ASBOX
1338 ## ------------- ##
1339 ## Output files. ##
1340 ## ------------- ##
1341 _ASBOX
1342 echo
1343 for ac_var in $ac_subst_files
1344 do
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1347 done | sort
1348 echo
1349 fi
1350
1351 if test -s confdefs.h; then
1352 cat <<\_ASBOX
1353 ## ----------- ##
1354 ## confdefs.h. ##
1355 ## ----------- ##
1356 _ASBOX
1357 echo
1358 sed "/^$/d" confdefs.h | sort
1359 echo
1360 fi
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1364 } >&5
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 exit $exit_status
1368 ' 0
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1373
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1378
1379 # Predefined preprocessor variables.
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1404
1405
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411 else
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413 fi
1414 fi
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1420 . "$ac_site_file"
1421 fi
1422 done
1423
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430 case $cache_file in
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1433 esac
1434 fi
1435 else
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438 >$cache_file
1439 fi
1440
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1451 set,)
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1455 ,set)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,);;
1460 *)
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1469 fi;;
1470 esac
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1473 case $ac_new_val in
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1477 esac
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481 esac
1482 fi
1483 done
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1490 fi
1491
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525 ac_aux_dir=
1526 for ac_dir in autoconf $srcdir/autoconf; do
1527 if test -f $ac_dir/install-sh; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/install-sh -c"
1530 break
1531 elif test -f $ac_dir/install.sh; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/install.sh -c"
1534 break
1535 elif test -f $ac_dir/shtool; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/shtool install -c"
1538 break
1539 fi
1540 done
1541 if test -z "$ac_aux_dir"; then
1542 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1543 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1544 { (exit 1); exit 1; }; }
1545 fi
1546 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1547 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1548 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1549
1550
1551
1552
1553 # Make sure we can run config.sub.
1554 $ac_config_sub sun4 >/dev/null 2>&1 ||
1555 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557 { (exit 1); exit 1; }; }
1558
1559 echo "$as_me:$LINENO: checking build system type" >&5
1560 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561 if test "${ac_cv_build+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 ac_cv_build_alias=$build_alias
1565 test -z "$ac_cv_build_alias" &&
1566 ac_cv_build_alias=`$ac_config_guess`
1567 test -z "$ac_cv_build_alias" &&
1568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570 { (exit 1); exit 1; }; }
1571 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576 fi
1577 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578 echo "${ECHO_T}$ac_cv_build" >&6
1579 build=$ac_cv_build
1580 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585 echo "$as_me:$LINENO: checking host system type" >&5
1586 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587 if test "${ac_cv_host+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 ac_cv_host_alias=$host_alias
1591 test -z "$ac_cv_host_alias" &&
1592 ac_cv_host_alias=$ac_cv_build_alias
1593 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1597
1598 fi
1599 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600 echo "${ECHO_T}$ac_cv_host" >&6
1601 host=$ac_cv_host
1602 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
1606
1607 echo "$as_me:$LINENO: checking target system type" >&5
1608 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609 if test "${ac_cv_target+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612 ac_cv_target_alias=$target_alias
1613 test "x$ac_cv_target_alias" = "x" &&
1614 ac_cv_target_alias=$ac_cv_host_alias
1615 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1619
1620 fi
1621 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622 echo "${ECHO_T}$ac_cv_target" >&6
1623 target=$ac_cv_target
1624 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
1628
1629 # The aliases save the names the user supplied, while $host etc.
1630 # will get canonicalized.
1631 test -n "$target_alias" &&
1632 test "$program_prefix$program_suffix$program_transform_name" = \
1633 NONENONEs,x,x, &&
1634 program_prefix=${target_alias}-
1635
1636 if test ${srcdir} != "." ; then
1637 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1638 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1639 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1640 { (exit 1); exit 1; }; }
1641 fi
1642 fi
1643
1644 am__api_version="1.9"
1645 # Find a good install program. We prefer a C program (faster),
1646 # so one script is as good as another. But avoid the broken or
1647 # incompatible versions:
1648 # SysV /etc/install, /usr/sbin/install
1649 # SunOS /usr/etc/install
1650 # IRIX /sbin/install
1651 # AIX /bin/install
1652 # AmigaOS /C/install, which installs bootblocks on floppy discs
1653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1656 # OS/2's system install, which has a completely different semantic
1657 # ./install, which can be erroneously created by make from ./install.sh.
1658 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1659 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1660 if test -z "$INSTALL"; then
1661 if test "${ac_cv_path_install+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 # Account for people who put trailing slashes in PATH elements.
1670 case $as_dir/ in
1671 ./ | .// | /cC/* | \
1672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1673 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1674 /usr/ucb/* ) ;;
1675 *)
1676 # OSF1 and SCO ODT 3.0 have their own names for install.
1677 # Don't use installbsd from OSF since it installs stuff as root
1678 # by default.
1679 for ac_prog in ginstall scoinst install; do
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1682 if test $ac_prog = install &&
1683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684 # AIX install. It has an incompatible calling convention.
1685 :
1686 elif test $ac_prog = install &&
1687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688 # program-specific install script used by HP pwplus--don't use.
1689 :
1690 else
1691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1692 break 3
1693 fi
1694 fi
1695 done
1696 done
1697 ;;
1698 esac
1699 done
1700
1701
1702 fi
1703 if test "${ac_cv_path_install+set}" = set; then
1704 INSTALL=$ac_cv_path_install
1705 else
1706 # As a last resort, use the slow shell script. We don't cache a
1707 # path for INSTALL within a source directory, because that will
1708 # break other packages using the cache if that directory is
1709 # removed, or if the path is relative.
1710 INSTALL=$ac_install_sh
1711 fi
1712 fi
1713 echo "$as_me:$LINENO: result: $INSTALL" >&5
1714 echo "${ECHO_T}$INSTALL" >&6
1715
1716 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1717 # It thinks the first close brace ends the variable substitution.
1718 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1719
1720 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1721
1722 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1723
1724 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1725 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1726 # Just in case
1727 sleep 1
1728 echo timestamp > conftest.file
1729 # Do `set' in a subshell so we don't clobber the current shell's
1730 # arguments. Must try -L first in case configure is actually a
1731 # symlink; some systems play weird games with the mod time of symlinks
1732 # (eg FreeBSD returns the mod time of the symlink's containing
1733 # directory).
1734 if (
1735 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1736 if test "$*" = "X"; then
1737 # -L didn't work.
1738 set X `ls -t $srcdir/configure conftest.file`
1739 fi
1740 rm -f conftest.file
1741 if test "$*" != "X $srcdir/configure conftest.file" \
1742 && test "$*" != "X conftest.file $srcdir/configure"; then
1743
1744 # If neither matched, then we have a broken ls. This can happen
1745 # if, for instance, CONFIG_SHELL is bash and it inherits a
1746 # broken ls alias from the environment. This has actually
1747 # happened. Such a system could not be considered "sane".
1748 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1749 alias in your environment" >&5
1750 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1751 alias in your environment" >&2;}
1752 { (exit 1); exit 1; }; }
1753 fi
1754
1755 test "$2" = conftest.file
1756 )
1757 then
1758 # Ok.
1759 :
1760 else
1761 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1762 Check your system clock" >&5
1763 echo "$as_me: error: newly created file is older than distributed files!
1764 Check your system clock" >&2;}
1765 { (exit 1); exit 1; }; }
1766 fi
1767 echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1769 test "$program_prefix" != NONE &&
1770 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1771 # Use a double $ so make ignores it.
1772 test "$program_suffix" != NONE &&
1773 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1774 # Double any \ or $. echo might interpret backslashes.
1775 # By default was `s,x,x', remove it if useless.
1776 cat <<\_ACEOF >conftest.sed
1777 s/[\\$]/&&/g;s/;s,x,x,$//
1778 _ACEOF
1779 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1780 rm conftest.sed
1781
1782 # expand $ac_aux_dir to an absolute path
1783 am_aux_dir=`cd $ac_aux_dir && pwd`
1784
1785 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1786 # Use eval to expand $SHELL
1787 if eval "$MISSING --run true"; then
1788 am_missing_run="$MISSING --run "
1789 else
1790 am_missing_run=
1791 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1792 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1793 fi
1794
1795 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1796 # We used to keeping the `.' as first argument, in order to
1797 # allow $(mkdir_p) to be used without argument. As in
1798 # $(mkdir_p) $(somedir)
1799 # where $(somedir) is conditionally defined. However this is wrong
1800 # for two reasons:
1801 # 1. if the package is installed by a user who cannot write `.'
1802 # make install will fail,
1803 # 2. the above comment should most certainly read
1804 # $(mkdir_p) $(DESTDIR)$(somedir)
1805 # so it does not work when $(somedir) is undefined and
1806 # $(DESTDIR) is not.
1807 # To support the latter case, we have to write
1808 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1809 # so the `.' trick is pointless.
1810 mkdir_p='mkdir -p --'
1811 else
1812 # On NextStep and OpenStep, the `mkdir' command does not
1813 # recognize any option. It will interpret all options as
1814 # directories to create, and then abort because `.' already
1815 # exists.
1816 for d in ./-p ./--version;
1817 do
1818 test -d $d && rmdir $d
1819 done
1820 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1821 if test -f "$ac_aux_dir/mkinstalldirs"; then
1822 mkdir_p='$(mkinstalldirs)'
1823 else
1824 mkdir_p='$(install_sh) -d'
1825 fi
1826 fi
1827
1828 for ac_prog in gawk mawk nawk awk
1829 do
1830 # Extract the first word of "$ac_prog", so it can be a program name with args.
1831 set dummy $ac_prog; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_AWK+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837 if test -n "$AWK"; then
1838 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843 IFS=$as_save_IFS
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_AWK="$ac_prog"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 break 2
1850 fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 AWK=$ac_cv_prog_AWK
1857 if test -n "$AWK"; then
1858 echo "$as_me:$LINENO: result: $AWK" >&5
1859 echo "${ECHO_T}$AWK" >&6
1860 else
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865 test -n "$AWK" && break
1866 done
1867
1868 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1869 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1870 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 cat >conftest.make <<\_ACEOF
1875 all:
1876 @echo 'ac_maketemp="$(MAKE)"'
1877 _ACEOF
1878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1879 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1880 if test -n "$ac_maketemp"; then
1881 eval ac_cv_prog_make_${ac_make}_set=yes
1882 else
1883 eval ac_cv_prog_make_${ac_make}_set=no
1884 fi
1885 rm -f conftest.make
1886 fi
1887 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1888 echo "$as_me:$LINENO: result: yes" >&5
1889 echo "${ECHO_T}yes" >&6
1890 SET_MAKE=
1891 else
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 SET_MAKE="MAKE=${MAKE-make}"
1895 fi
1896
1897 rm -rf .tst 2>/dev/null
1898 mkdir .tst 2>/dev/null
1899 if test -d .tst; then
1900 am__leading_dot=.
1901 else
1902 am__leading_dot=_
1903 fi
1904 rmdir .tst 2>/dev/null
1905
1906 # test to see if srcdir already configured
1907 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1908 test -f $srcdir/config.status; then
1909 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1910 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1911 { (exit 1); exit 1; }; }
1912 fi
1913
1914 # test whether we have cygpath
1915 if test -z "$CYGPATH_W"; then
1916 if (cygpath --version) >/dev/null 2>/dev/null; then
1917 CYGPATH_W='cygpath -w'
1918 else
1919 CYGPATH_W=echo
1920 fi
1921 fi
1922
1923
1924 # Define the identity of the package.
1925 PACKAGE='-llvm-'
1926 VERSION='1.4'
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE "$PACKAGE"
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define VERSION "$VERSION"
1936 _ACEOF
1937
1938 # Some tools Automake needs.
1939
1940 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1941
1942
1943 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1944
1945
1946 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1947
1948
1949 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1950
1951
1952 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1953
1954 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1955
1956 # Installed binaries are usually stripped using `strip' when the user
1957 # run `make install-strip'. However `strip' might not be the right
1958 # tool to use in cross-compilation environments, therefore Automake
1959 # will honor the `STRIP' environment variable to overrule this program.
1960 if test "$cross_compiling" != no; then
1961 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1963 set dummy ${ac_tool_prefix}strip; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_STRIP+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 if test -n "$STRIP"; then
1970 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1982 fi
1983 done
1984 done
1985
1986 fi
1987 fi
1988 STRIP=$ac_cv_prog_STRIP
1989 if test -n "$STRIP"; then
1990 echo "$as_me:$LINENO: result: $STRIP" >&5
1991 echo "${ECHO_T}$STRIP" >&6
1992 else
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 fi
1996
1997 fi
1998 if test -z "$ac_cv_prog_STRIP"; then
1999 ac_ct_STRIP=$STRIP
2000 # Extract the first word of "strip", so it can be a program name with args.
2001 set dummy strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 if test -n "$ac_ct_STRIP"; then
2008 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_ac_ct_STRIP="strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 break 2
2020 fi
2021 done
2022 done
2023
2024 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2025 fi
2026 fi
2027 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2028 if test -n "$ac_ct_STRIP"; then
2029 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2030 echo "${ECHO_T}$ac_ct_STRIP" >&6
2031 else
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 STRIP=$ac_ct_STRIP
2037 else
2038 STRIP="$ac_cv_prog_STRIP"
2039 fi
2040
2041 fi
2042 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2043
2044 # We need awk for the "check" target. The system "awk" is bad on
2045 # some platforms.
2046 # Always define AMTAR for backward compatibility.
2047
2048 AMTAR=${AMTAR-"${am_missing_run}tar"}
2049
2050 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2062 if test "${with_llvmgccdir+set}" = set; then
2063 withval="$with_llvmgccdir"
2064 case "${withval}" in
2065 /*|*/*) LLVMGCCDIR=$withval ;;
2066 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-llvmgccdir" >&5
2067 echo "$as_me: error: bad value ${withval} for --with-llvmgccdir" >&2;}
2068 { (exit 1); exit 1; }; } ;;
2069 esac
2070 else
2071 LLVMGCCDIR=/usr/local/llvm-gcc
2072 fi;
2073
2074
2075 # Check whether --enable-optimized or --disable-optimized was given.
2076 if test "${enable_optimized+set}" = set; then
2077 enableval="$enable_optimized"
2078 case "${withval}" in
2079 yes) ENABLE_OPTIMIZED=1 ;;
2080 no) ENABLE_OPTIMIZED=0 ;;
2081 "") ENABLE_OPTIMIZED=0 ;;
2082 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-optimized" >&5
2083 echo "$as_me: error: bad value ${withval} for --enable-optimized" >&2;}
2084 { (exit 1); exit 1; }; } ;;
2085 esac
2086 else
2087 ENABLE_OPTIMIZED=0
2088 fi;
2089
2090
2091 # Check whether --enable-profiled or --disable-profiled was given.
2092 if test "${enable_profiled+set}" = set; then
2093 enableval="$enable_profiled"
2094 case "${withval}" in
2095 yes) ENABLE_PROFILED=1 ;;
2096 no) ENABLE_PROFILED=0 ;;
2097 "") ENABLE_PROFILED=0 ;;
2098 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-profiled" >&5
2099 echo "$as_me: error: bad value ${withval} for --enable-profiled" >&2;}
2100 { (exit 1); exit 1; }; } ;;
2101 esac
2102 else
2103 ENABLE_PROFILED=0
2104 fi;
2105 ENABLE_PROFILED=$ENABLE_PROFILED
2106
2107
2108 if test $ENABLE_PROFILED = 1 ; then
2109 BUILDMODE=Profile
2110
2111 else
2112 if test $ENABLE_OPTIMIZED = 1 ; then
2113 BUILDMODE=Release
2114
2115 else
2116 BUILDMODE=Debug
2117
2118 fi
2119 fi
2120
2121 # Check whether --enable-jit or --disable-jit was given.
2122 if test "${enable_jit+set}" = set; then
2123 enableval="$enable_jit"
2124
2125 else
2126 enableval=default
2127 fi;
2128
2129 if test ${enableval} = "no"
2130 then
2131 JIT=
2132
2133 else
2134 case $target in
2135 *i*86*) JIT=TARGET_HAS_JIT=1
2136 ;;
2137 *sparc*) JIT=TARGET_HAS_JIT=1
2138 ;;
2139 *) JIT=
2140 ;;
2141 esac
2142 fi
2143
2144
2145 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
2146 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
2147 case $build in
2148 *-*-aix*) llvm_platform_type="AIX" ;;
2149 *-*-cygwin*) llvm_platform_type="Cygwin" ;;
2150 *-*-darwin*) llvm_platform_type="Darwin" ;;
2151 *-*-freebsd*) llvm_platform_type="FreeBSD" ;;
2152 *-*-interix*) llvm_platform_type="Interix" ;;
2153 *-*-linux*) llvm_platform_type="Linux" ;;
2154 *-*-solaris*) llvm_platform_type="SunOS" ;;
2155 *-*-win32*) llvm_platform_type="Win32" ;;
2156 *-*-mingw*) llvm_platform_type="Win32" ;;
2157 *)
2158 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
2159 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
2160 { (exit 1); exit 1; }; }
2161 llvm_platform_type="Unknown"
2162 ;;
2163 esac
2164 OS=$llvm_platform_type
2165
2166 echo "$as_me:$LINENO: result: $llvm_platform_type" >&5
2167 echo "${ECHO_T}$llvm_platform_type" >&6
2168
2169 echo "$as_me:$LINENO: checking target architecture" >&5
2170 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
2171 case $target in
2172 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
2173 ;;
2174 esac
2175
2176 case $target in
2177 i*86-*) ARCH="x86" ;;
2178 sparc*-*) ARCH="Sparc" ;;
2179 powerpc*-*) ARCH="PowerPC" ;;
2180 *) ARCH="Unknown";;
2181 esac
2182
2183
2184 if test $ARCH = "x86"; then
2185 ARCH_X86_TRUE=
2186 ARCH_X86_FALSE='#'
2187 else
2188 ARCH_X86_TRUE='#'
2189 ARCH_X86_FALSE=
2190 fi
2191
2192
2193
2194 if test $ARCH = "Sparc"; then
2195 ARCH_SPARC_TRUE=
2196 ARCH_SPARC_FALSE='#'
2197 else
2198 ARCH_SPARC_TRUE='#'
2199 ARCH_SPARC_FALSE=
2200 fi
2201
2202
2203
2204 if test $ARCH = "PowerPC"; then
2205 ARCH_PPC_TRUE=
2206 ARCH_PPC_FALSE='#'
2207 else
2208 ARCH_PPC_TRUE='#'
2209 ARCH_PPC_FALSE=
2210 fi
2211
2212
2213
2214 if test $ARCH = "Unknown"; then
2215 ARCH_UNKNOWN_TRUE=
2216 ARCH_UNKNOWN_FALSE='#'
2217 else
2218 ARCH_UNKNOWN_TRUE='#'
2219 ARCH_UNKNOWN_FALSE=
2220 fi
2221
2222 ARCH=$ARCH
2223
2224 echo "$as_me:$LINENO: result: $ARCH" >&5
2225 echo "${ECHO_T}$ARCH" >&6
2226
2227 DEPDIR="${am__leading_dot}deps"
2228
2229 ac_config_commands="$ac_config_commands depfiles"
2230
2231
2232 am_make=${MAKE-make}
2233 cat > confinc << 'END'
2234 am__doit:
2235 @echo done
2236 .PHONY: am__doit
2237 END
2238 # If we don't find an include directive, just comment out the code.
2239 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2240 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2241 am__include="#"
2242 am__quote=
2243 _am_result=none
2244 # First try GNU make style include.
2245 echo "include confinc" > confmf
2246 # We grep out `Entering directory' and `Leaving directory'
2247 # messages which can occur if `w' ends up in MAKEFLAGS.
2248 # In particular we don't look at `^make:' because GNU make might
2249 # be invoked under some other name (usually "gmake"), in which
2250 # case it prints its new name instead of `make'.
2251 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2252 am__include=include
2253 am__quote=
2254 _am_result=GNU
2255 fi
2256 # Now try BSD make style include.
2257 if test "$am__include" = "#"; then
2258 echo '.include "confinc"' > confmf
2259 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2260 am__include=.include
2261 am__quote="\""
2262 _am_result=BSD
2263 fi
2264 fi
2265
2266
2267 echo "$as_me:$LINENO: result: $_am_result" >&5
2268 echo "${ECHO_T}$_am_result" >&6
2269 rm -f confinc confmf
2270
2271 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2272 if test "${enable_dependency_tracking+set}" = set; then
2273 enableval="$enable_dependency_tracking"
2274
2275 fi;
2276 if test "x$enable_dependency_tracking" != xno; then
2277 am_depcomp="$ac_aux_dir/depcomp"
2278 AMDEPBACKSLASH='\'
2279 fi
2280
2281
2282 if test "x$enable_dependency_tracking" != xno; then
2283 AMDEP_TRUE=
2284 AMDEP_FALSE='#'
2285 else
2286 AMDEP_TRUE='#'
2287 AMDEP_FALSE=
2288 fi
2289
2290
2291
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2318 fi
2319 done
2320 done
2321
2322 fi
2323 fi
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326 echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6
2328 else
2329 echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6
2331 fi
2332
2333 fi
2334 if test -z "$ac_cv_prog_CC"; then
2335 ac_ct_CC=$CC
2336 # Extract the first word of "gcc", so it can be a program name with args.
2337 set dummy gcc; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_ac_ct_CC="gcc"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2356 fi
2357 done
2358 done
2359
2360 fi
2361 fi
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2366 else
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2369 fi
2370
2371 CC=$ac_ct_CC
2372 else
2373 CC="$ac_cv_prog_CC"
2374 fi
2375
2376 if test -z "$CC"; then
2377 if test -n "$ac_tool_prefix"; then
2378 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2379 set dummy ${ac_tool_prefix}cc; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_prog_CC="${ac_tool_prefix}cc"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2398 fi
2399 done
2400 done
2401
2402 fi
2403 fi
2404 CC=$ac_cv_prog_CC
2405 if test -n "$CC"; then
2406 echo "$as_me:$LINENO: result: $CC" >&5
2407 echo "${ECHO_T}$CC" >&6
2408 else
2409 echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6
2411 fi
2412
2413 fi
2414 if test -z "$ac_cv_prog_CC"; then
2415 ac_ct_CC=$CC
2416 # Extract the first word of "cc", so it can be a program name with args.
2417 set dummy cc; ac_word=$2
2418 echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_ac_ct_CC="cc"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437 done
2438 done
2439
2440 fi
2441 fi
2442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2443 if test -n "$ac_ct_CC"; then
2444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2445 echo "${ECHO_T}$ac_ct_CC" >&6
2446 else
2447 echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6
2449 fi
2450
2451 CC=$ac_ct_CC
2452 else
2453 CC="$ac_cv_prog_CC"
2454 fi
2455
2456 fi
2457 if test -z "$CC"; then
2458 # Extract the first word of "cc", so it can be a program name with args.
2459 set dummy cc; ac_word=$2
2460 echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 ac_prog_rejected=no
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2477 ac_prog_rejected=yes
2478 continue
2479 fi
2480 ac_cv_prog_CC="cc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486
2487 if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2490 shift
2491 if test $# != 0; then
2492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2495 shift
2496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2497 fi
2498 fi
2499 fi
2500 fi
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503 echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6
2505 else
2506 echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6
2508 fi
2509
2510 fi
2511 if test -z "$CC"; then
2512 if test -n "$ac_tool_prefix"; then
2513 for ac_prog in cl
2514 do
2515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2517 echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519 if test "${ac_cv_prog_CC+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538
2539 fi
2540 fi
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543 echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6
2545 else
2546 echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2548 fi
2549
2550 test -n "$CC" && break
2551 done
2552 fi
2553 if test -z "$CC"; then
2554 ac_ct_CC=$CC
2555 for ac_prog in cl
2556 do
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$ac_ct_CC"; then
2565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_ac_ct_CC="$ac_prog"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578 done
2579 done
2580
2581 fi
2582 fi
2583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584 if test -n "$ac_ct_CC"; then
2585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2586 echo "${ECHO_T}$ac_ct_CC" >&6
2587 else
2588 echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2590 fi
2591
2592 test -n "$ac_ct_CC" && break
2593 done
2594
2595 CC=$ac_ct_CC
2596 fi
2597
2598 fi
2599
2600
2601 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2602 See \`config.log' for more details." >&5
2603 echo "$as_me: error: no acceptable C compiler found in \$PATH
2604 See \`config.log' for more details." >&2;}
2605 { (exit 1); exit 1; }; }
2606
2607 # Provide some information about the compiler.
2608 echo "$as_me:$LINENO:" \
2609 "checking for C compiler version" >&5
2610 ac_compiler=`set X $ac_compile; echo $2`
2611 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
2612 (eval $ac_compiler --version &5) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }
2616 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
2617 (eval $ac_compiler -v &5) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }
2621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
2622 (eval $ac_compiler -V &5) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }
2626
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2633
2634 int
2635 main ()
2636 {
2637
2638 ;
2639 return 0;
2640 }
2641 _ACEOF
2642 ac_clean_files_save=$ac_clean_files
2643 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2644 # Try to create an executable without -o first, disregard a.out.
2645 # It will help us diagnose broken compilers, and finding out an intuition
2646 # of exeext.
2647 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2648 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2649 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2651 (eval $ac_link_default) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; then
2655 # Find the output, starting from the most likely. This scheme is
2656 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2657 # resort.
2658
2659 # Be careful to initialize this variable, since it used to be cached.
2660 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2661 ac_cv_exeext=
2662 # b.out is created by i960 compilers.
2663 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2664 do
2665 test -f "$ac_file" || continue
2666 case $ac_file in
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2668 ;;
2669 conftest.$ac_ext )
2670 # This is the source file.
2671 ;;
2672 [ab].out )
2673 # We found the default executable, but exeext='' is most
2674 # certainly right.
2675 break;;
2676 *.* )
2677 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2678 # FIXME: I believe we export ac_cv_exeext for Libtool,
2679 # but it would be cool to find out if it's true. Does anybody
2680 # maintain Libtool? --akim.
2681 export ac_cv_exeext
2682 break;;
2683 * )
2684 break;;
2685 esac
2686 done
2687 else
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: C compiler cannot create executables
2694 See \`config.log' for more details." >&2;}
2695 { (exit 77); exit 77; }; }
2696 fi
2697
2698 ac_exeext=$ac_cv_exeext
2699 echo "$as_me:$LINENO: result: $ac_file" >&5
2700 echo "${ECHO_T}$ac_file" >&6
2701
2702 # Check the compiler produces executables we can run. If not, either
2703 # the compiler is broken, or we cross compile.
2704 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2705 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2706 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2707 # If not cross compiling, check that we can run a simple program.
2708 if test "$cross_compiling" != yes; then
2709 if { ac_try='./$ac_file'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2715 cross_compiling=no
2716 else
2717 if test "$cross_compiling" = maybe; then
2718 cross_compiling=yes
2719 else
2720 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2721 If you meant to cross compile, use \`--host'.
2722 See \`config.log' for more details." >&5
2723 echo "$as_me: error: cannot run C compiled programs.
2724 If you meant to cross compile, use \`--host'.
2725 See \`config.log' for more details." >&2;}
2726 { (exit 1); exit 1; }; }
2727 fi
2728 fi
2729 fi
2730 echo "$as_me:$LINENO: result: yes" >&5
2731 echo "${ECHO_T}yes" >&6
2732
2733 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2734 ac_clean_files=$ac_clean_files_save
2735 # Check the compiler produces executables we can run. If not, either
2736 # the compiler is broken, or we cross compile.
2737 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2738 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2739 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2740 echo "${ECHO_T}$cross_compiling" >&6
2741
2742 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2743 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2745 (eval $ac_link) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; then
2749 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2750 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2751 # work properly (i.e., refer to `conftest.exe'), while it won't with
2752 # `rm'.
2753 for ac_file in conftest.exe conftest conftest.*; do
2754 test -f "$ac_file" || continue
2755 case $ac_file in
2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 export ac_cv_exeext
2759 break;;
2760 * ) break;;
2761 esac
2762 done
2763 else
2764 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2765 See \`config.log' for more details." >&5
2766 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2767 See \`config.log' for more details." >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770
2771 rm -f conftest$ac_cv_exeext
2772 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2773 echo "${ECHO_T}$ac_cv_exeext" >&6
2774
2775 rm -f conftest.$ac_ext
2776 EXEEXT=$ac_cv_exeext
2777 ac_exeext=$EXEEXT
2778 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2779 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2780 if test "${ac_cv_objext+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h. */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2789
2790 int
2791 main ()
2792 {
2793
2794 ;
2795 return 0;
2796 }
2797 _ACEOF
2798 rm -f conftest.o conftest.obj
2799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800 (eval $ac_compile) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; then
2804 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2805 case $ac_file in
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2808 break;;
2809 esac
2810 done
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2816 See \`config.log' for more details." >&5
2817 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2818 See \`config.log' for more details." >&2;}
2819 { (exit 1); exit 1; }; }
2820 fi
2821
2822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2823 fi
2824 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2825 echo "${ECHO_T}$ac_cv_objext" >&6
2826 OBJEXT=$ac_cv_objext
2827 ac_objext=$OBJEXT
2828 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2829 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2830 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839
2840 int
2841 main ()
2842 {
2843 #ifndef __GNUC__
2844 choke me
2845 #endif
2846
2847 ;
2848 return 0;
2849 }
2850 _ACEOF
2851 rm -f conftest.$ac_objext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>conftest.er1
2854 ac_status=$?
2855 grep -v '^ *+' conftest.er1 >conftest.err
2856 rm -f conftest.er1
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -z "$ac_c_werror_flag"
2861 || test ! -s conftest.err'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then