source: trunk/src/gcc/libobjc/aclocal.m4@ 1598

Last change on this file since 1598 was 1392, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 7.7 KB
Line 
1dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
2dnl This file is free software; the Free Software Foundation
3dnl gives unlimited permission to copy and/or distribute it,
4dnl with or without modifications, as long as this notice is preserved.
5
6dnl This program is distributed in the hope that it will be useful,
7dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
8dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9dnl PARTICULAR PURPOSE.
10
11dnl
12dnl Initialize configure bits.
13dnl
14dnl GLIBCPP_TOPREL_CONFIGURE
15AC_DEFUN(GLIBCPP_TOPREL_CONFIGURE, [
16 dnl Default to --enable-multilib
17 AC_ARG_ENABLE(multilib,
18 [ --enable-multilib build hella library versions (default)],
19 [case "${enableval}" in
20 yes) multilib=yes ;;
21 no) multilib=no ;;
22 *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
23 esac], [multilib=yes])dnl
24
25# When building with srcdir == objdir, links to the source files will
26# be created in directories within the target_subdir. We have to
27# adjust toplevel_srcdir accordingly, so that configure finds
28# install-sh and other auxiliary files that live in the top-level
29# source directory.
30if test "${srcdir}" = "."; then
31 if test -z "${with_target_subdir}"; then
32 toprel=".."
33 else
34 if test "${with_target_subdir}" != "."; then
35 toprel="${with_multisrctop}../.."
36 else
37 toprel="${with_multisrctop}.."
38 fi
39 fi
40else
41 toprel=".."
42fi
43AC_CONFIG_AUX_DIR(${srcdir}/$toprel)
44toplevel_srcdir=\${top_srcdir}/$toprel
45AC_SUBST(toplevel_srcdir)
46])
47
48dnl
49dnl Initialize configure bits.
50dnl
51dnl GLIBCPP_CONFIGURE
52AC_DEFUN(GLIBCPP_CONFIGURE, [
53# Export build and source directories.
54# These need to be absolute paths, yet at the same time need to
55# canonicalize only relative paths, because then amd will not unmount
56# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
57glibcpp_builddir=`${PWDCMD-pwd}`
58case $srcdir in
59[\\/$]* | ?:[\\/]*) glibcpp_srcdir=${srcdir} ;;
60*) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
61esac
62AC_SUBST(glibcpp_builddir)
63AC_SUBST(glibcpp_srcdir)
64
65dnl This is here just to satisfy automake.
66ifelse(not,equal,[AC_CONFIG_AUX_DIR(..)])
67
68# Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
69# be 'cp -p' if linking isn't available.
70#ac_cv_prog_LN_S='cp -p'
71AC_PROG_LN_S
72
73# We use these options to decide which functions to include.
74AC_ARG_WITH(target-subdir,
75[ --with-target-subdir=SUBDIR
76 configuring in a subdirectory])
77AC_ARG_WITH(cross-host,
78[ --with-cross-host=HOST configuring with a cross compiler])
79
80 # Never versions of autoconf add an underscore to these functions.
81 # Prevent future problems ...
82 ifdef([AC_PROG_CC_G],[],[define([AC_PROG_CC_G],defn([_AC_PROG_CC_G]))])
83 ifdef([AC_PROG_CC_GNU],[],[define([AC_PROG_CC_GNU],defn([_AC_PROG_CC_GNU]))])
84 ifdef([AC_PROG_CXX_G],[],[define([AC_PROG_CXX_G],defn([_AC_PROG_CXX_G]))])
85 ifdef([AC_PROG_CXX_GNU],[],[define([AC_PROG_CXX_GNU],defn([_AC_PROG_CXX_GNU]))])
86
87# AC_PROG_CC
88
89# FIXME: We temporarily define our own version of AC_PROG_CC. This is
90# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
91# are probably using a cross compiler, which will not be able to fully
92# link an executable. This should really be fixed in autoconf
93# itself.
94
95AC_DEFUN(LIB_AC_PROG_CC,
96[AC_BEFORE([$0], [AC_PROG_CPP])dnl
97dnl Fool anybody using AC_PROG_CC.