summaryrefslogtreecommitdiff
path: root/dmake/aclocal.m4
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-01-18 08:27:16 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-01-18 08:27:16 +0000
commita2e167544060eccb782fe57f6733195633e1e985 (patch)
tree07d4687d951045517ea88e6a14e68cce6f113137 /dmake/aclocal.m4
parent9268eb02b5757f30bd36c9e96ff667bea60848c8 (diff)
INTEGRATION: CWS dmake47 (1.9.12); FILE MERGED
2006/09/28 21:16:18 vq 1.9.12.1: #i69953# Clean up of the autotooling.
Diffstat (limited to 'dmake/aclocal.m4')
-rwxr-xr-xdmake/aclocal.m428
1 files changed, 28 insertions, 0 deletions
diff --git a/dmake/aclocal.m4 b/dmake/aclocal.m4
index a93606763fa6..00176eea12b8 100755
--- a/dmake/aclocal.m4
+++ b/dmake/aclocal.m4
@@ -570,6 +570,34 @@ AC_MSG_RESULT([$_am_result])
rm -f confinc confmf
])
+# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 3
+
+# AM_PROG_CC_C_O
+# --------------
+# Like AC_PROG_CC_C_O, but changed for automake.
+AC_DEFUN([AM_PROG_CC_C_O],
+[AC_REQUIRE([AC_PROG_CC_C_O])dnl
+AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+# FIXME: we rely on the cache variable name because
+# there is no other way.
+set dummy $CC
+ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
+ # Losing compiler, so override with the script.
+ # FIXME: It is wrong to rewrite CC.
+ # But if we don't then we get into trouble of one sort or another.
+ # A longer-term fix would be to have automake use am__CC in this case,
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+ CC="$am_aux_dir/compile $CC"
+fi
+])
+
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005