aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.in
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-07-01 18:02:30 +0000
committerDJ Delorie <dj@redhat.com>2002-07-01 18:02:30 +0000
commitb39b76b8b5e25817d823611982a8b283336adadf (patch)
tree588957e3800521c549c613f17405cb56fa1db5e0 /libiberty/configure.in
parent179d3252e3ee882c6c4127d291403b85727e5173 (diff)
downloadgdb-b39b76b8b5e25817d823611982a8b283336adadf.zip
gdb-b39b76b8b5e25817d823611982a8b283336adadf.tar.gz
gdb-b39b76b8b5e25817d823611982a8b283336adadf.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r--libiberty/configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in
index c84ece4..a8dc66f 100644
--- a/libiberty/configure.in
+++ b/libiberty/configure.in
@@ -100,6 +100,16 @@ AC_CHECK_TOOL(RANLIB, ranlib, :)
LIB_AC_PROG_CC
+AC_PROG_CC_C_O
+# autoconf is lame and doesn't give us any substitution variable for this.
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
+ NO_MINUS_C_MINUS_O=yes
+else
+ OUTPUT_OPTION='-o $@'
+fi
+AC_SUBST(NO_MINUS_C_MINUS_O)
+AC_SUBST(OUTPUT_OPTION)
+
AC_ISC_POSIX
AC_C_CONST
AC_C_INLINE