source: trunk/libs/newlib/src/libgloss/nds32/aclocal.m4 @ 551

Last change on this file since 551 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 14.2 KB
Line 
1# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5# Inc.
6# This file is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15# AM_CONDITIONAL                                            -*- Autoconf -*-
16
17# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
18# Free Software Foundation, Inc.
19#
20# This file is free software; the Free Software Foundation
21# gives unlimited permission to copy and/or distribute it,
22# with or without modifications, as long as this notice is preserved.
23
24# serial 9
25
26# AM_CONDITIONAL(NAME, SHELL-CONDITION)
27# -------------------------------------
28# Define a conditional.
29AC_DEFUN([AM_CONDITIONAL],
30[AC_PREREQ(2.52)dnl
31 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
32        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
33AC_SUBST([$1_TRUE])dnl
34AC_SUBST([$1_FALSE])dnl
35_AM_SUBST_NOTMAKE([$1_TRUE])dnl
36_AM_SUBST_NOTMAKE([$1_FALSE])dnl
37m4_define([_AM_COND_VALUE_$1], [$2])dnl
38if $2; then
39  $1_TRUE=
40  $1_FALSE='#'
41else
42  $1_TRUE='#'
43  $1_FALSE=
44fi
45AC_CONFIG_COMMANDS_PRE(
46[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
47  AC_MSG_ERROR([[conditional "$1" was never defined.
48Usually this means the macro was only invoked conditionally.]])
49fi])])
50
51# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
52# 2010, 2011 Free Software Foundation, Inc.
53#
54# This file is free software; the Free Software Foundation
55# gives unlimited permission to copy and/or distribute it,
56# with or without modifications, as long as this notice is preserved.
57
58# serial 12
59
60# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
61# written in clear, in which case automake, when reading aclocal.m4,
62# will think it sees a *use*, and therefore will trigger all it's
63# C support machinery.  Also note that it means that autoscan, seeing
64# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
65
66
67# _AM_DEPENDENCIES(NAME)
68# ----------------------
69# See how the compiler implements dependency checking.
70# NAME is "CC", "CXX", "GCJ", or "OBJC".
71# We try a few techniques and use that to set a single cache variable.
72#
73# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
74# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
75# dependency, and given that the user is not expected to run this macro,
76# just rely on AC_PROG_CC.
77AC_DEFUN([_AM_DEPENDENCIES],
78[AC_REQUIRE([AM_SET_DEPDIR])dnl
79AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
80AC_REQUIRE([AM_MAKE_INCLUDE])dnl
81AC_REQUIRE([AM_DEP_TRACK])dnl
82
83ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
84       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
85       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
86       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
87       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
88                   [depcc="$$1"   am_compiler_list=])
89
90AC_CACHE_CHECK([dependency style of $depcc],
91               [am_cv_$1_dependencies_compiler_type],
92[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
93  # We make a subdir and do the tests there.  Otherwise we can end up
94  # making bogus files that we don't know about and never remove.  For
95  # instance it was reported that on HP-UX the gcc test will end up
96  # making a dummy file named `D' -- because `-MD' means `put the output
97  # in D'.
98  rm -rf conftest.dir
99  mkdir conftest.dir
100  # Copy depcomp to subdir because otherwise we won't find it if we're
101  # using a relative directory.
102  cp "$am_depcomp" conftest.dir
103  cd conftest.dir
104  # We will build objects and dependencies in a subdirectory because
105  # it helps to detect inapplicable dependency modes.  For instance
106  # both Tru64's cc and ICC support -MD to output dependencies as a
107  # side effect of compilation, but ICC will put the dependencies in
108  # the current directory while Tru64 will put them in the object
109  # directory.
110  mkdir sub
111
112  am_cv_$1_dependencies_compiler_type=none
113  if test "$am_compiler_list" = ""; then
114     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
115  fi
116  am__universal=false
117  m4_case([$1], [CC],
118    [case " $depcc " in #(
119     *\ -arch\ *\ -arch\ *) am__universal=true ;;
120     esac],
121    [CXX],
122    [case " $depcc " in #(
123     *\ -arch\ *\ -arch\ *) am__universal=true ;;
124     esac])
125
126  for depmode in $am_compiler_list; do
127    # Setup a source with many dependencies, because some compilers
128    # like to wrap large dependency lists on column 80 (with \), and
129    # we should not choose a depcomp mode which is confused by this.
130    #
131    # We need to recreate these files for each test, as the compiler may
132    # overwrite some of them when testing with obscure command lines.
133    # This happens at least with the AIX C compiler.
134    : > sub/conftest.c
135    for i in 1 2 3 4 5 6; do
136      echo '#include "conftst'$i'.h"' >> sub/conftest.c
137      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
138      # Solaris 8's {/usr,}/bin/sh.
139      touch sub/conftst$i.h
140    done
141    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
142
143    # We check with `-c' and `-o' for the sake of the "dashmstdout"
144    # mode.  It turns out that the SunPro C++ compiler does not properly
145    # handle `-M -o', and we need to detect this.  Also, some Intel
146    # versions had trouble with output in subdirs
147    am__obj=sub/conftest.${OBJEXT-o}
148    am__minus_obj="-o $am__obj"
149    case $depmode in
150    gcc)
151      # This depmode causes a compiler race in universal mode.
152      test "$am__universal" = false || continue
153      ;;
154    nosideeffect)
155      # after this tag, mechanisms are not by side-effect, so they'll
156      # only be used when explicitly requested
157      if test "x$enable_dependency_tracking" = xyes; then
158        continue
159      else
160        break
161      fi
162      ;;
163    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
164      # This compiler won't grok `-c -o', but also, the minuso test has
165      # not run yet.  These depmodes are late enough in the game, and
166      # so weak that their functioning should not be impacted.
167      am__obj=conftest.${OBJEXT-o}
168      am__minus_obj=
169      ;;
170    none) break ;;
171    esac
172    if depmode=$depmode \
173       source=sub/conftest.c object=$am__obj \
174       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
175       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
176         >/dev/null 2>conftest.err &&
177       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
178       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
179       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
180       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
181      # icc doesn't choke on unknown options, it will just issue warnings
182      # or remarks (even with -Werror).  So we grep stderr for any message
183      # that says an option was ignored or not supported.
184      # When given -MP, icc 7.0 and 7.1 complain thusly:
185      #   icc: Command line warning: ignoring option '-M'; no argument required
186      # The diagnosis changed in icc 8.0:
187      #   icc: Command line remark: option '-MP' not supported
188      if (grep 'ignoring option' conftest.err ||
189          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
190        am_cv_$1_dependencies_compiler_type=$depmode
191        break
192      fi
193    fi
194  done
195
196  cd ..
197  rm -rf conftest.dir
198else
199  am_cv_$1_dependencies_compiler_type=none
200fi
201])
202AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
203AM_CONDITIONAL([am__fastdep$1], [
204  test "x$enable_dependency_tracking" != xno \
205  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
206])
207
208
209# AM_SET_DEPDIR
210# -------------
211# Choose a directory name for dependency files.
212# This macro is AC_REQUIREd in _AM_DEPENDENCIES
213AC_DEFUN([AM_SET_DEPDIR],
214[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
215AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
216])
217
218
219# AM_DEP_TRACK
220# ------------
221AC_DEFUN([AM_DEP_TRACK],
222[AC_ARG_ENABLE(dependency-tracking,
223[  --disable-dependency-tracking  speeds up one-time build
224  --enable-dependency-tracking   do not reject slow dependency extractors])
225if test "x$enable_dependency_tracking" != xno; then
226  am_depcomp="$ac_aux_dir/depcomp"
227  AMDEPBACKSLASH='\'
228  am__nodep='_no'
229fi
230AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
231AC_SUBST([AMDEPBACKSLASH])dnl
232_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
233AC_SUBST([am__nodep])dnl
234_AM_SUBST_NOTMAKE([am__nodep])dnl
235])
236
237# Generate code to set up dependency tracking.              -*- Autoconf -*-
238
239# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
240# Free Software Foundation, Inc.
241#
242# This file is free software; the Free Software Foundation
243# gives unlimited permission to copy and/or distribute it,
244# with or without modifications, as long as this notice is preserved.
245
246#serial 5
247
248# _AM_OUTPUT_DEPENDENCY_COMMANDS
249# ------------------------------
250AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
251[{
252  # Autoconf 2.62 quotes --file arguments for eval, but not when files
253  # are listed without --file.  Let's play safe and only enable the eval
254  # if we detect the quoting.
255  case $CONFIG_FILES in
256  *\'*) eval set x "$CONFIG_FILES" ;;
257  *)   set x $CONFIG_FILES ;;
258  esac
259  shift
260  for mf
261  do
262    # Strip MF so we end up with the name of the file.
263    mf=`echo "$mf" | sed -e 's/:.*$//'`
264    # Check whether this is an Automake generated Makefile or not.
265    # We used to match only the files named `Makefile.in', but
266    # some people rename them; so instead we look at the file content.
267    # Grep'ing the first line is not enough: some people post-process
268    # each Makefile.in and add a new line on top of each file to say so.
269    # Grep'ing the whole file is not good either: AIX grep has a line
270    # limit of 2048, but all sed's we know have understand at least 4000.
271    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
272      dirpart=`AS_DIRNAME("$mf")`
273    else
274      continue
275    fi
276    # Extract the definition of DEPDIR, am__include, and am__quote
277    # from the Makefile without running `make'.
278    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
279    test -z "$DEPDIR" && continue
280    am__include=`sed -n 's/^am__include = //p' < "$mf"`
281    test -z "am__include" && continue
282    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
283    # When using ansi2knr, U may be empty or an underscore; expand it
284    U=`sed -n 's/^U = //p' < "$mf"`
285    # Find all dependency output files, they are included files with
286    # $(DEPDIR) in their names.  We invoke sed twice because it is the
287    # simplest approach to changing $(DEPDIR) to its actual value in the
288    # expansion.
289    for file in `sed -n "
290      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
291         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
292      # Make sure the directory exists.
293      test -f "$dirpart/$file" && continue
294      fdir=`AS_DIRNAME(["$file"])`
295      AS_MKDIR_P([$dirpart/$fdir])
296      # echo "creating $dirpart/$file"
297      echo '# dummy' > "$dirpart/$file"
298    done
299  done
300}
301])# _AM_OUTPUT_DEPENDENCY_COMMANDS
302
303
304# AM_OUTPUT_DEPENDENCY_COMMANDS
305# -----------------------------
306# This macro should only be invoked once -- use via AC_REQUIRE.
307#
308# This code is only required when automatic dependency tracking
309# is enabled.  FIXME.  This creates each `.P' file that we will
310# need in order to bootstrap the dependency handling code.
311AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
312[AC_CONFIG_COMMANDS([depfiles],
313     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
314     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
315])
316
317# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
318#
319# This file is free software; the Free Software Foundation
320# gives unlimited permission to copy and/or distribute it,
321# with or without modifications, as long as this notice is preserved.
322
323# serial 2
324
325# Check whether the underlying file-system supports filenames
326# with a leading dot.  For instance MS-DOS doesn't.
327AC_DEFUN([AM_SET_LEADING_DOT],
328[rm -rf .tst 2>/dev/null
329mkdir .tst 2>/dev/null
330if test -d .tst; then
331  am__leading_dot=.
332else
333  am__leading_dot=_
334fi
335rmdir .tst 2>/dev/null
336AC_SUBST([am__leading_dot])])
337
338# Check to see how 'make' treats includes.                  -*- Autoconf -*-
339
340# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
341#
342# This file is free software; the Free Software Foundation
343# gives unlimited permission to copy and/or distribute it,
344# with or without modifications, as long as this notice is preserved.
345
346# serial 4
347
348# AM_MAKE_INCLUDE()
349# -----------------
350# Check to see how make treats includes.
351AC_DEFUN([AM_MAKE_INCLUDE],
352[am_make=${MAKE-make}
353cat > confinc << 'END'
354am__doit:
355        @echo this is the am__doit target
356.PHONY: am__doit
357END
358# If we don't find an include directive, just comment out the code.
359AC_MSG_CHECKING([for style of include used by $am_make])
360am__include="#"
361am__quote=
362_am_result=none
363# First try GNU make style include.
364echo "include confinc" > confmf
365# Ignore all kinds of additional output from `make'.
366case `$am_make -s -f confmf 2> /dev/null` in #(
367*the\ am__doit\ target*)
368  am__include=include
369  am__quote=
370  _am_result=GNU
371  ;;
372esac
373# Now try BSD make style include.
374if test "$am__include" = "#"; then
375   echo '.include "confinc"' > confmf
376   case `$am_make -s -f confmf 2> /dev/null` in #(
377   *the\ am__doit\ target*)
378     am__include=.include
379     am__quote="\""
380     _am_result=BSD
381     ;;
382   esac
383fi
384AC_SUBST([am__include])
385AC_SUBST([am__quote])
386AC_MSG_RESULT([$_am_result])
387rm -f confinc confmf
388])
389
390# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
391#
392# This file is free software; the Free Software Foundation
393# gives unlimited permission to copy and/or distribute it,
394# with or without modifications, as long as this notice is preserved.
395
396# serial 3
397
398# _AM_SUBST_NOTMAKE(VARIABLE)
399# ---------------------------
400# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
401# This macro is traced by Automake.
402AC_DEFUN([_AM_SUBST_NOTMAKE])
403
404# AM_SUBST_NOTMAKE(VARIABLE)
405# --------------------------
406# Public sister of _AM_SUBST_NOTMAKE.
407AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
408
409m4_include([../acinclude.m4])
Note: See TracBrowser for help on using the repository browser.