source: rtems/configure.in @ f0864664

4.104.114.84.95
Last change on this file since f0864664 was 5913d94, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/00 at 17:01:25

2000-11-09 Ralf Corsepius <corsepiu@…>

  • aclocal/enable-itron.m4: Remove changequotes (autoconf-2.49b).
  • aclocal/enable-posix.m4: Remove changequotes (autoconf-2.49b), use $host instead of $target (BUG-FIX).
  • configure.in: Use $target and $host instead of $target_alias and $host_alias (autoconf-2.49b).
  • aclocal/check-newlib.m4: Remove CC_FOR_TARGET (BUG-FIX)
  • aclocal/sysv-ipc.m4: Move AC_DEFINE outside of AC_CACHE (BUG-FIX)

NOTES:

  • autoconf-2.49b depredicates using changequotes.
  • The changes to configure.in are due to cleanups in autoconf-2.49b's implemention of canonicalization. With autoconf-2.1x it wasn't always clear, when to use $xxx or $xxx_alias. Now this is clear.
  • Property mode set to 100644
File size: 8.1 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl  $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(c)
7RTEMS_TOP(.)
8
9# Abort if trying to build inside of the source tree.
10if test -f VERSION; then
11  rm -f config.cache config.log confdefs.h
12  AC_MSG_ERROR([***]
13    [Attempt to build inside of the source tree]
14    [Please use a separate build directory, instead] )
15fi
16
17AC_CANONICAL_SYSTEM
18AM_INIT_AUTOMAKE(cross,0,no)
19AM_MAINTAINER_MODE
20
21dnl These option are only in here to let --help report all supported
22dnl options.
23RTEMS_ENABLE_MULTIPROCESSING
24RTEMS_ENABLE_POSIX
25RTEMS_ENABLE_ITRON
26RTEMS_ENABLE_NETWORKING
27RTEMS_ENABLE_RDBG
28RTEMS_ENABLE_INLINES
29RTEMS_ENABLE_CXX
30RTEMS_ENABLE_GCC28
31RTEMS_ENABLE_LIBCDIR
32RTEMS_ENABLE_TESTS 
33RTEMS_ENABLE_RTEMS_DEBUG
34
35# these tools are built for the build environment
36#
37build_tools="tools/build tools/update tools/cpu"
38
39# these libraries are used for the host environment
40#
41host_libs=""
42
43# these tools are built for the host environment
44#
45host_tools=""
46
47# these libraries are built for the target environment, and are built after
48# the host libraries and the host tools (which may be a cross compiler)
49#
50target_libs="c"
51
52# these tools are built using the target libs, and are intended to run only
53# in the target environment
54#
55target_tools=""
56
57## All tools belong in one of the four categories, and are assigned above
58## We assign ${configdirs} this way to remove all embedded newlines.  This
59## is important because configure will choke if they ever get through.
60## ${configdirs} is directories we build using the host tools.
61## ${target_configdirs} is directories we build using the target tools.
62#
63configdirs="${host_libs} ${host_tools}"
64AC_SUBST(configdirs)
65
66target_configdirs="${target_libs} ${target_tools}"
67AC_SUBST(target_configdirs)
68
69# Record target_configdirs and the configure arguments in Makefile.
70targargs=`echo "${ac_configure_args}" | \
71        sed -e 's/--no[^        ]*//' \
72            -e 's/--cache[a-z-]*=[^     ]*//' \
73            -e 's/--ho[a-z-]*=[^        ]*//' \
74            -e 's/--bu[a-z-]*=[^        ]*//' \
75            -e 's/--ta[a-z-]*=[^        ]*//'`;
76
77targargs="--host=${target_alias} --build=${build} ${targargs}"
78AC_SUBST(targargs)
79
80target_subdir=${target_alias}
81
82changequote(,)dnl
83if test $target = $host;
84then
85  HOST_SUBDIRS="$configdirs $target_configdirs"
86  TARGET_SUBDIRS=""
87else
88  HOST_SUBDIRS="$configdirs"
89  TARGET_SUBDIRS=`echo "$target_configdirs" | \
90    sed -e "s%\([^ ]\+\)%$target_alias/\1%g"`
91fi
92changequote([,])dnl
93
94if test $host = $build;
95then
96  HOST_SUBDIRS="$build_tools $HOST_SUBDIRS"
97else
98  build_configdirs="$build_tools"
99fi
100
101AC_CONFIG_SUBDIRS($HOST_SUBDIRS)
102AC_SUBST(TARGET_SUBDIRS)
103AC_SUBST(HOST_SUBDIRS)
104
105AC_OUTPUT(
106Makefile
107tools/Makefile
108make/Makefile
109make/custom/Makefile
110make/Templates/Makefile
111make/compilers/Makefile
112doc/Makefile)
113
114if test "$no_recursion" != yes; then
115
116 if test $target != $host; then
117  # Remove --srcdir arguments so they do not pile up.
118  ac_sub_configure_args=
119  ac_prev=
120  for ac_arg in $targargs; do
121    if test -n "$ac_prev"; then
122      ac_prev=
123      continue
124    fi
125    case "$ac_arg" in
126    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
127      ac_prev=srcdir ;;
128    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
129      ;;
130    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
131    esac
132  done
133
134  test -d $target_subdir || mkdir $target_subdir
135  for ac_config_dir in $target_configdirs; do
136    # Do not complain, so a configure script can configure whichever
137    # parts of a large source tree are present.
138    if test ! -d $srcdir/$ac_config_dir; then
139      continue
140    fi
141
142    echo configuring in $target_subdir/$ac_config_dir
143
144    case "$srcdir" in
145    .) ;;
146    *)
147      if test -d $target_subdir/$ac_config_dir || mkdir $target_subdir/$ac_config_dir; then :;
148      else
149        AC_MSG_ERROR(can not create `pwd`/$target_subdir/$ac_config_dir)
150      fi
151      ;;
152    esac
153
154    ac_popdir=`pwd`
155    cd $target_subdir/$ac_config_dir
156
157changequote(, )dnl
158      # A "../" for each directory in /$ac_config_dir.
159      ac_dots=`echo $target_subdir/$ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
160changequote([, ])dnl
161
162    case "$srcdir" in
163    .) # No --srcdir option.  We are building in place.
164      ac_sub_srcdir=$srcdir ;;
165    /*) # Absolute path.
166      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
167    *) # Relative path.
168      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
169    esac
170
171    # Check for configure
172    if test -f $ac_sub_srcdir/configure; then
173      ac_sub_configure=$ac_sub_srcdir/configure
174    else
175      AC_MSG_WARN(no configuration information is in $ac_config_dir)
176      ac_sub_configure=
177    fi
178
179    # The recursion is here.
180    if test -n "$ac_sub_configure"; then
181
182      # Make the cache file name correct relative to the subdirectory.
183      ac_sub_cache_file=$cache_file
184ifdef([AC_PROVIDE_AC_PROG_INSTALL],
185      [  case "$ac_given_INSTALL" in
186changequote(, )dnl
187        [/$]*) INSTALL="$ac_given_INSTALL" ;;
188changequote([, ])dnl
189        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
190        esac
191])dnl
192
193      echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
194      # The eval makes quoting arguments work.
195      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \
196        $ac_sub_configure_args --srcdir=$ac_sub_srcdir \
197        --with-target-subdir=$target_subdir \
198        --cache-file=$ac_sub_cache_file \
199        --libdir='${exec_prefix}'/$target_alias/lib
200      then :
201      else
202        AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir)
203      fi
204    fi
205
206    cd $ac_popdir
207  done
208 fi
209
210 if test $build != $host; then
211  # Remove --srcdir arguments so they do not pile up.
212  ac_sub_configure_args=
213  ac_prev=
214  for ac_arg in $targargs; do
215    if test -n "$ac_prev"; then
216      ac_prev=
217      continue
218    fi
219    case "$ac_arg" in
220    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
221      ac_prev=srcdir ;;
222    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
223      ;;
224    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
225    esac
226  done
227
228#  test -d $target_subdir || mkdir $target_subdir
229  for ac_config_dir in $build_configdirs; do
230    # Do not complain, so a configure script can configure whichever
231    # parts of a large source tree are present.
232    if test ! -d $srcdir/$ac_config_dir; then
233      continue
234    fi
235
236    echo configuring in $ac_config_dir
237
238    case "$srcdir" in
239    .) ;;
240    *)
241      if test -d $ac_config_dir || mkdir $ac_config_dir; then :;
242      else
243        AC_MSG_ERROR(can not create `pwd`/$ac_config_dir)
244      fi
245      ;;
246    esac
247
248    ac_popdir=`pwd`
249    cd $ac_config_dir
250
251changequote(, )dnl
252      # A "../" for each directory in /$ac_config_dir.
253      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
254changequote([, ])dnl
255
256    case "$srcdir" in
257    .) # No --srcdir option.  We are building in place.
258      ac_sub_srcdir=$srcdir ;;
259    /*) # Absolute path.
260      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
261    *) # Relative path.
262      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
263    esac
264
265    # Check for configure
266    if test -f $ac_sub_srcdir/configure; then
267      ac_sub_configure=$ac_sub_srcdir/configure
268    else
269      AC_MSG_WARN(no configuration information is in $ac_config_dir)
270      ac_sub_configure=
271    fi
272
273    # The recursion is here.
274    if test -n "$ac_sub_configure"; then
275
276      # Make the cache file name correct relative to the subdirectory.
277      ac_sub_cache_file=$cache_file
278ifdef([AC_PROVIDE_AC_PROG_INSTALL],
279      [  case "$ac_given_INSTALL" in
280changequote(, )dnl
281        [/$]*) INSTALL="$ac_given_INSTALL" ;;
282changequote([, ])dnl
283        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
284        esac
285])dnl
286
287      echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
288      # The eval makes quoting arguments work.
289      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \
290        $ac_sub_configure_args --srcdir=$ac_sub_srcdir \
291        --cache-file=$ac_sub_cache_file \
292        --build=$build --host=$build
293      then :
294      else
295        AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir)
296      fi
297    fi
298
299    cd $ac_popdir
300  done
301 fi
302fi
Note: See TracBrowser for help on using the repository browser.