Fix bug compiling math/k_standard.c
[deliverable/binutils-gdb.git] / gas / aclocal.m4
CommitLineData
b2bb41f6
ILT
1dnl aclocal.m4 generated automatically by aclocal 1.3
2
3dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4dnl This Makefile.in is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
620cdab2 12
bf111c9f
KR
13dnl GAS_CHECK_DECL_NEEDED(name, typedefname, typedef, headers)
14AC_DEFUN(GAS_CHECK_DECL_NEEDED,[
15AC_MSG_CHECKING(whether declaration is required for $1)
16AC_CACHE_VAL(gas_cv_decl_needed_$1,
17AC_TRY_LINK([$4],
18[
19typedef $3;
20$2 x;
21x = ($2) $1;
22], gas_cv_decl_needed_$1=no, gas_cv_decl_needed_$1=yes))dnl
23AC_MSG_RESULT($gas_cv_decl_needed_$1)
24test $gas_cv_decl_needed_$1 = no || {
25 ifelse(index($1,[$]),-1,
26 [AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]))],
27 [gas_decl_name_upcase=`echo $1 | tr '[a-z]' '[A-Z]'`
28 AC_DEFINE_UNQUOTED(NEED_DECLARATION_$gas_decl_name_upcase)])
29}
30])dnl
31dnl
32dnl Some non-ANSI preprocessors botch requoting inside strings. That's bad
33dnl enough, but on some of those systems, the assert macro relies on requoting
34dnl working properly!
35dnl GAS_WORKING_ASSERT
36AC_DEFUN(GAS_WORKING_ASSERT,
37[AC_MSG_CHECKING([for working assert macro])
38AC_CACHE_VAL(gas_cv_assert_ok,
39AC_TRY_LINK([#include <assert.h>
40#include <stdio.h>], [
41/* check for requoting problems */
42static int a, b, c, d;
43static char *s;
44assert (!strcmp(s, "foo bar baz quux"));
45/* check for newline handling */
46assert (a == b
47 || c == d);
48], gas_cv_assert_ok=yes, gas_cv_assert_ok=no))dnl
49AC_MSG_RESULT($gas_cv_assert_ok)
50test $gas_cv_assert_ok = yes || AC_DEFINE(BROKEN_ASSERT)
51])dnl
e23b25ec 52dnl
293bc1d5
RS
53dnl Since many Bourne shell implementations lack subroutines, use this
54dnl hack to simplify the code in configure.in.
55dnl GAS_UNIQ(listvar)
56AC_DEFUN(GAS_UNIQ,
57[_gas_uniq_list="[$]$1"
58_gas_uniq_newlist=""
59dnl Protect against empty input list.
60for _gas_uniq_i in _gas_uniq_dummy [$]_gas_uniq_list ; do
61 case [$]_gas_uniq_i in
62 _gas_uniq_dummy) ;;
63 *) case " [$]_gas_uniq_newlist " in
64 *" [$]_gas_uniq_i "*) ;;
65 *) _gas_uniq_newlist="[$]_gas_uniq_newlist [$]_gas_uniq_i" ;;
66 esac ;;
67 esac
68done
69$1=[$]_gas_uniq_newlist
70])dnl
71
620cdab2
ILT
72# Do all the work for Automake. This macro actually does too much --
73# some checks are only needed if your package does certain things.
74# But this isn't really a big deal.
75
76# serial 1
77
78dnl Usage:
79dnl AM_INIT_AUTOMAKE(package,version, [no-define])
80
81AC_DEFUN(AM_INIT_AUTOMAKE,
82[AC_REQUIRE([AM_PROG_INSTALL])
83PACKAGE=[$1]
84AC_SUBST(PACKAGE)
85VERSION=[$2]
86AC_SUBST(VERSION)
87dnl test to see if srcdir already configured
88if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
89 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
90fi
91ifelse([$3],,
92AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
93AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
b2bb41f6
ILT
94AC_REQUIRE([AM_SANITY_CHECK])
95AC_REQUIRE([AC_ARG_PROGRAM])
620cdab2
ILT
96dnl FIXME This is truly gross.
97missing_dir=`cd $ac_aux_dir && pwd`
98AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
99AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
100AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
101AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
102AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
b2bb41f6 103AC_REQUIRE([AC_PROG_MAKE_SET])])
620cdab2
ILT
104
105
106# serial 1
107
108AC_DEFUN(AM_PROG_INSTALL,
109[AC_REQUIRE([AC_PROG_INSTALL])
110test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
111AC_SUBST(INSTALL_SCRIPT)dnl
112])
113
114#
115# Check to make sure that the build environment is sane.
116#
117
118AC_DEFUN(AM_SANITY_CHECK,
119[AC_MSG_CHECKING([whether build environment is sane])
120# Just in case
121sleep 1
122echo timestamp > conftestfile
123# Do `set' in a subshell so we don't clobber the current shell's
124# arguments. Must try -L first in case configure is actually a
125# symlink; some systems play weird games with the mod time of symlinks
126# (eg FreeBSD returns the mod time of the symlink's containing
127# directory).
128if (
129 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
b2bb41f6 130 if test "[$]*" = "X"; then
620cdab2
ILT
131 # -L didn't work.
132 set X `ls -t $srcdir/configure conftestfile`
133 fi
b2bb41f6
ILT
134 if test "[$]*" != "X $srcdir/configure conftestfile" \
135 && test "[$]*" != "X conftestfile $srcdir/configure"; then
136
137 # If neither matched, then we have a broken ls. This can happen
138 # if, for instance, CONFIG_SHELL is bash and it inherits a
139 # broken ls alias from the environment. This has actually
140 # happened. Such a system could not be considered "sane".
141 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
142alias in your environment])
143 fi
144
620cdab2
ILT
145 test "[$]2" = conftestfile
146 )
147then
148 # Ok.
149 :
150else
151 AC_MSG_ERROR([newly created file is older than distributed files!
152Check your system clock])
153fi
154rm -f conftest*
155AC_MSG_RESULT(yes)])
156
157dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
158dnl The program must properly implement --version.
159AC_DEFUN(AM_MISSING_PROG,
160[AC_MSG_CHECKING(for working $2)
161# Run test in a subshell; some versions of sh will print an error if
162# an executable is not found, even if stderr is redirected.
163# Redirect stdin to placate older versions of autoconf. Sigh.
164if ($2 --version) < /dev/null > /dev/null 2>&1; then
165 $1=$2
166 AC_MSG_RESULT(found)
167else
168 $1="$3/missing $2"
169 AC_MSG_RESULT(missing)
170fi
171AC_SUBST($1)])
172
173
b2bb41f6 174# serial 24 AM_PROG_LIBTOOL
620cdab2 175AC_DEFUN(AM_PROG_LIBTOOL,
b2bb41f6
ILT
176[AC_REQUIRE([AM_ENABLE_SHARED])dnl
177AC_REQUIRE([AM_ENABLE_STATIC])dnl
178AC_REQUIRE([AC_CANONICAL_HOST])dnl
179AC_REQUIRE([AC_PROG_RANLIB])dnl
180AC_REQUIRE([AC_PROG_CC])dnl
181AC_REQUIRE([AM_PROG_LD])dnl
182AC_REQUIRE([AM_PROG_NM])dnl
183AC_REQUIRE([AC_PROG_LN_S])dnl
184dnl
620cdab2
ILT
185# Always use our own libtool.
186LIBTOOL='$(SHELL) $(top_builddir)/libtool'
b2bb41f6 187AC_SUBST(LIBTOOL)dnl
620cdab2 188
b2bb41f6
ILT
189# Check for any special flags to pass to ltconfig.
190libtool_flags=
191test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
192test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
620cdab2
ILT
193test "$silent" = yes && libtool_flags="$libtool_flags --silent"
194test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
195test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
196
197# Some flags need to be propagated to the compiler or linker for good
198# libtool support.
b2bb41f6 199case "$host" in
620cdab2 200*-*-irix6*)
b2bb41f6
ILT
201 # Find out which ABI we are using.
202 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
203 if AC_TRY_EVAL(ac_compile); then
204 case "`/usr/bin/file conftest.o`" in
205 *32-bit*)
206 LD="${LD-ld} -32"
a52052db 207 ;;
b2bb41f6
ILT
208 *N32*)
209 LD="${LD-ld} -n32"
210 ;;
211 *64-bit*)
212 LD="${LD-ld} -64"
a52052db
ILT
213 ;;
214 esac
b2bb41f6
ILT
215 fi
216 rm -rf conftest*
620cdab2
ILT
217 ;;
218
219*-*-sco3.2v5*)
220 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
221 CFLAGS="$CFLAGS -belf"
222 ;;
b2bb41f6
ILT
223
224*-*-cygwin32*)
225 AM_SYS_LIBTOOL_CYGWIN32
226 ;;
227
228esac
620cdab2
ILT
229
230# Actually configure libtool. ac_aux_dir is where install-sh is found.
231CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
a52052db 232LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
b2bb41f6 233DLLTOOL="$DLLTOOL" AS="$AS" \
620cdab2
ILT
234${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
235$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
236|| AC_MSG_ERROR([libtool configure failed])
237])
238
b2bb41f6
ILT
239# AM_ENABLE_SHARED - implement the --enable-shared flag
240# Usage: AM_ENABLE_SHARED[(DEFAULT)]
241# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
242# `yes'.
243AC_DEFUN(AM_ENABLE_SHARED,
244[define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
245AC_ARG_ENABLE(shared,
246changequote(<<, >>)dnl
247<< --enable-shared build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT]
248changequote([, ])dnl
249[ --enable-shared=PKGS only build shared libraries if the current package
250 appears as an element in the PKGS list],
251[p=${PACKAGE-default}
252case "$enableval" in
253yes) enable_shared=yes ;;
254no) enable_shared=no ;;
255*)
256 enable_shared=no
257 # Look at the argument we got. We use all the common list separators.
258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
259 for pkg in $enableval; do
260 if test "X$pkg" = "X$p"; then
261 enable_shared=yes
262 fi
263 done
264 IFS="$ac_save_ifs"
265 ;;
266esac],
267enable_shared=AM_ENABLE_SHARED_DEFAULT)dnl
268])
269
270# AM_DISABLE_SHARED - set the default shared flag to --disable-shared
271AC_DEFUN(AM_DISABLE_SHARED,
272[AM_ENABLE_SHARED(no)])
273
274# AM_DISABLE_STATIC - set the default static flag to --disable-static
275AC_DEFUN(AM_DISABLE_STATIC,
276[AM_ENABLE_STATIC(no)])
277
278# AM_ENABLE_STATIC - implement the --enable-static flag
279# Usage: AM_ENABLE_STATIC[(DEFAULT)]
280# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
281# `yes'.
282AC_DEFUN(AM_ENABLE_STATIC,
283[define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
284AC_ARG_ENABLE(static,
285changequote(<<, >>)dnl
286<< --enable-static build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT]
287changequote([, ])dnl
288[ --enable-static=PKGS only build shared libraries if the current package
289 appears as an element in the PKGS list],
290[p=${PACKAGE-default}
291case "$enableval" in
292yes) enable_static=yes ;;
293no) enable_static=no ;;
294*)
295 enable_static=no
296 # Look at the argument we got. We use all the common list separators.
297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
298 for pkg in $enableval; do
299 if test "X$pkg" = "X$p"; then
300 enable_static=yes
301 fi
302 done
303 IFS="$ac_save_ifs"
304 ;;
305esac],
306enable_static=AM_ENABLE_STATIC_DEFAULT)dnl
307])
308
309
620cdab2
ILT
310# AM_PROG_LD - find the path to the GNU or non-GNU linker
311AC_DEFUN(AM_PROG_LD,
312[AC_ARG_WITH(gnu-ld,
313[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
314test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
a52052db
ILT
315AC_REQUIRE([AC_PROG_CC])
316ac_prog=ld
317if test "$ac_cv_prog_gcc" = yes; then
318 # Check if gcc -print-prog-name=ld gives a path.
319 AC_MSG_CHECKING([for ld used by GCC])
320 ac_prog=`($CC -print-prog-name=ld) 2>&5`
321 case "$ac_prog" in
322 # Accept absolute paths.
b2bb41f6
ILT
323changequote(,)dnl
324 /* | [A-Za-z]:\\*)
325changequote([,])dnl
a52052db
ILT
326 test -z "$LD" && LD="$ac_prog"
327 ;;
328 "")
329 # If it fails, then pretend we aren't using GCC.
330 ac_prog=ld
331 ;;
332 *)
333 # If it is relative, then search for the first ld in PATH.
334 with_gnu_ld=unknown
335 ;;
336 esac
337elif test "$with_gnu_ld" = yes; then
620cdab2
ILT
338 AC_MSG_CHECKING([for GNU ld])
339else
340 AC_MSG_CHECKING([for non-GNU ld])
341fi
342AC_CACHE_VAL(ac_cv_path_LD,
a52052db 343[if test -z "$LD"; then
620cdab2
ILT
344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
345 for ac_dir in $PATH; do
346 test -z "$ac_dir" && ac_dir=.
a52052db
ILT
347 if test -f "$ac_dir/$ac_prog"; then
348 ac_cv_path_LD="$ac_dir/$ac_prog"
620cdab2
ILT
349 # Check to see if the program is GNU ld. I'd rather use --version,
350 # but apparently some GNU ld's only accept -v.
351 # Break only if it was the GNU/non-GNU ld that we prefer.
a52052db
ILT
352 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
353 test "$with_gnu_ld" != no && break
620cdab2
ILT
354 else
355 test "$with_gnu_ld" != yes && break
356 fi
357 fi
358 done
359 IFS="$ac_save_ifs"
a52052db 360else
620cdab2 361 ac_cv_path_LD="$LD" # Let the user override the test with a path.
a52052db 362fi])
620cdab2
ILT
363LD="$ac_cv_path_LD"
364if test -n "$LD"; then
365 AC_MSG_RESULT($LD)
366else
367 AC_MSG_RESULT(no)
368fi
369test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
370AC_SUBST(LD)
371AM_PROG_LD_GNU
372])
373
374AC_DEFUN(AM_PROG_LD_GNU,
a52052db 375[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
620cdab2 376[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
a52052db 377if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
620cdab2
ILT
378 ac_cv_prog_gnu_ld=yes
379else
380 ac_cv_prog_gnu_ld=no
381fi])
382])
383
a52052db
ILT
384# AM_PROG_NM - find the path to a BSD-compatible name lister
385AC_DEFUN(AM_PROG_NM,
386[AC_MSG_CHECKING([for BSD-compatible nm])
387AC_CACHE_VAL(ac_cv_path_NM,
b2bb41f6 388[if test -z "$NM"; then
a52052db
ILT
389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
390 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
b2bb41f6 391 test -z "$ac_dir" && ac_dir=.
a52052db
ILT
392 if test -f $ac_dir/nm; then
393 # Check to see if the nm accepts a BSD-compat flag.
b2bb41f6 394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
a52052db 395 # nm: unknown option "B" ignored
b2bb41f6 396 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
a52052db 397 ac_cv_path_NM="$ac_dir/nm -B"
b2bb41f6 398 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
a52052db
ILT
399 ac_cv_path_NM="$ac_dir/nm -p"
400 else
401 ac_cv_path_NM="$ac_dir/nm"
402 fi
403 break
404 fi
405 done
406 IFS="$ac_save_ifs"
407 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
b2bb41f6
ILT
408else
409 ac_cv_path_NM="$NM" # Let the user override the test with a path.
410fi])
a52052db
ILT
411NM="$ac_cv_path_NM"
412AC_MSG_RESULT([$NM])
413AC_SUBST(NM)
414])
415
b2bb41f6
ILT
416# AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
417AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN32,
418[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
419AC_CHECK_TOOL(AS, as, false)
420])
421
620cdab2
ILT
422# Like AC_CONFIG_HEADER, but automatically create stamp file.
423
424AC_DEFUN(AM_CONFIG_HEADER,
425[AC_PREREQ([2.12])
426AC_CONFIG_HEADER([$1])
427dnl When config.status generates a header, we must update the stamp-h file.
428dnl This file resides in the same directory as the config header
429dnl that is generated. We must strip everything past the first ":",
430dnl and everything past the last "/".
431AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
432ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
433<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
434<<am_indx=1
435for am_file in <<$1>>; do
436 case " <<$>>CONFIG_HEADERS " in
437 *" <<$>>am_file "*<<)>>
438 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
439 ;;
440 esac
441 am_indx=`expr "<<$>>am_indx" + 1`
442done<<>>dnl>>)
443changequote([,]))])
444
b2bb41f6
ILT
445
446dnl AM_PROG_LEX
447dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
448AC_DEFUN(AM_PROG_LEX,
449[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
450AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
451AC_PROG_LEX
452AC_DECL_YYTEXT])
453
620cdab2
ILT
454# Add --enable-maintainer-mode option to configure.
455# From Jim Meyering
456
457# serial 1
458
459AC_DEFUN(AM_MAINTAINER_MODE,
460[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
461 dnl maintainer-mode is disabled by default
462 AC_ARG_ENABLE(maintainer-mode,
463[ --enable-maintainer-mode enable make rules and dependencies not useful
464 (and sometimes confusing) to the casual installer],
465 USE_MAINTAINER_MODE=$enableval,
466 USE_MAINTAINER_MODE=no)
467 AC_MSG_RESULT($USE_MAINTAINER_MODE)
468 if test $USE_MAINTAINER_MODE = yes; then
469 MAINT=
470 else
471 MAINT='#M#'
472 fi
473 AC_SUBST(MAINT)dnl
474]
475)
476
293bc1d5
RS
477# Check to see if we're running under Cygwin32, without using
478# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
479# Otherwise set it to "no".
480
620cdab2
ILT
481dnl AM_CYGWIN32()
482AC_DEFUN(AM_CYGWIN32,
293bc1d5 483[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
620cdab2 484[AC_TRY_COMPILE(,[return __CYGWIN32__;],
293bc1d5
RS
485am_cv_cygwin32=yes, am_cv_cygwin32=no)
486rm -f conftest*])
487CYGWIN32=
488test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
620cdab2 489
293bc1d5
RS
490# Check to see if we're running under Win32, without using
491# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
492# Otherwise set it to "".
493
620cdab2 494dnl AM_EXEEXT()
293bc1d5
RS
495dnl This knows we add .exe if we're building in the Cygwin32
496dnl environment. But if we're not, then it compiles a test program
497dnl to see if there is a suffix for executables.
620cdab2
ILT
498AC_DEFUN(AM_EXEEXT,
499[AC_REQUIRE([AM_CYGWIN32])
500AC_REQUIRE([AM_MINGW32])
293bc1d5 501AC_MSG_CHECKING([for executable suffix])
b2bb41f6
ILT
502AC_CACHE_VAL(am_cv_exeext,
503[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
293bc1d5
RS
504am_cv_exeext=.exe
505else
506cat > am_c_test.c << 'EOF'
507int main() {
508/* Nothing needed here */
509}
e23b25ec 510EOF
293bc1d5 511${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
b2bb41f6
ILT
512am_cv_exeext=
513for file in am_c_test.*; do
514 case $file in
515 *.c) ;;
516 *.o) ;;
517 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
518 esac
519done
293bc1d5
RS
520rm -f am_c_test*])
521test x"${am_cv_exeext}" = x && am_cv_exeext=no
e23b25ec 522fi
293bc1d5
RS
523EXEEXT=""
524test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
525AC_MSG_RESULT(${am_cv_exeext})
526AC_SUBST(EXEEXT)])
620cdab2
ILT
527
528# Check to see if we're running under Mingw, without using
529# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
530# Otherwise set it to "no".
531
532dnl AM_MINGW32()
533AC_DEFUN(AM_MINGW32,
534[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32,
535[AC_TRY_COMPILE(,[return __MINGW32__;],
536am_cv_mingw32=yes, am_cv_mingw32=no)
537rm -f conftest*])
538MINGW32=
539test "$am_cv_mingw32" = yes && MINGW32=yes])
540
This page took 0.149512 seconds and 4 git commands to generate.