Commit 7fda878c by Douglas B Rupp Committed by Douglas Rupp

configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.

2002-06-30  Douglas Rupp  <rupp@gnat.com>

	* configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
	* Makefile.in (OUTPUT_OPTION): Use.

From-SVN: r55127
parent 32c4621e
2002-06-30 Douglas Rupp <rupp@gnat.com>
* configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
* Makefile.in (OUTPUT_OPTION): Use.
2002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de> 2002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.in (install_to_libdir): Add $(DESTDIR). * Makefile.in (install_to_libdir): Add $(DESTDIR).
......
...@@ -52,6 +52,9 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ ...@@ -52,6 +52,9 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@ INSTALL_DATA = @INSTALL_DATA@
mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs
# Some compilers can't handle cc -c blah.c -o foo/blah.o.
OUTPUT_OPTION = @OUTPUT_OPTION@
AR = @AR@ AR = @AR@
AR_FLAGS = rc AR_FLAGS = rc
...@@ -117,7 +120,7 @@ COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiber ...@@ -117,7 +120,7 @@ COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiber
if [ x"$(PICFLAG)" != x ]; then \ if [ x"$(PICFLAG)" != x ]; then \
$(COMPILE.c) $(PICFLAG) $< -o pic/$@; \ $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
else true; fi else true; fi
$(COMPILE.c) $< $(COMPILE.c) $< $(OUTPUT_OPTION)
# NOTE: If you add new files to the library, add them to this list # NOTE: If you add new files to the library, add them to this list
# (alphabetical), and add them to REQUIRED_OFILES, or # (alphabetical), and add them to REQUIRED_OFILES, or
......
...@@ -100,6 +100,16 @@ AC_CHECK_TOOL(RANLIB, ranlib, :) ...@@ -100,6 +100,16 @@ AC_CHECK_TOOL(RANLIB, ranlib, :)
LIB_AC_PROG_CC 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_ISC_POSIX
AC_C_CONST AC_C_CONST
AC_C_INLINE AC_C_INLINE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment