X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libgfortran%2Fconfigure.ac;h=74cfe441a7518b9223a3770b51cc0b7ba04d4065;hb=26f4013120c1c49b29b0caa0ceea74ec9c1f03e6;hp=c0709bbbe5113996e4247ebe67f8d766523ddec3;hpb=3443eac11878221a7c639e6238f31c7907797797;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index c0709bbbe51..74cfe441a75 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -1,7 +1,7 @@ # Process this file with autoconf to produce a configure script, like so: # aclocal && autoconf && autoheader && automake -AC_PREREQ(2.59) +AC_PREREQ(2.64) AC_INIT([GNU Fortran Runtime Library], 0.3,,[libgfortran]) AC_CONFIG_HEADER(config.h) GCC_TOPLEV_SUBDIRS @@ -12,7 +12,8 @@ GCC_TOPLEV_SUBDIRS AC_MSG_CHECKING([for --enable-version-specific-runtime-libs]) AC_ARG_ENABLE(version-specific-runtime-libs, -[ --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory ], +AS_HELP_STRING([--enable-version-specific-runtime-libs], + [specify that runtime libraries should be installed in a compiler-specific directory]), [case "$enableval" in yes) version_specific_libs=yes ;; no) version_specific_libs=no ;; @@ -24,7 +25,7 @@ AC_MSG_RESULT($version_specific_libs) # Build with intermodule optimisations AC_MSG_CHECKING([for --enable-intermodule]) AC_ARG_ENABLE(intermodule, -[ --enable-intermodule build the library in one step], +AS_HELP_STRING([--enable-intermodule],[build the library in one step]), [case "$enable_intermodule" in yes) onestep="-onestep";; *) onestep="";; @@ -60,9 +61,10 @@ target_alias=${target_alias-$host_alias} # we can do about that; they come from AC_INIT). # foreign: we don't follow the normal rules for GNU packages (no COPYING # file in the top srcdir, etc, etc), so stop complaining. +# no-dist: we don't want 'dist' and related rules. # -Wall: turns on all automake warnings... # -Wno-portability: ...except this one, since GNU make is required. -AM_INIT_AUTOMAKE([1.9.6 no-define foreign -Wall -Wno-portability]) +AM_INIT_AUTOMAKE([1.9.6 no-define foreign no-dist -Wall -Wno-portability]) AM_MAINTAINER_MODE AM_ENABLE_MULTILIB(, ..) @@ -80,6 +82,8 @@ else LIBGFOR_IS_NATIVE=true fi +AC_USE_SYSTEM_EXTENSIONS + # Calculate toolexeclibdir # Also toolexecdir, though it's only used in toolexeclibdir case ${version_specific_libs} in @@ -110,6 +114,9 @@ esac AC_SUBST(toolexecdir) AC_SUBST(toolexeclibdir) +# Create a spec file, so that compile/link tests don't fail +test -f libgfortran.spec || touch libgfortran.spec + # Check the compiler. # The same as in boehm-gc and libstdc++. Have to borrow it from there. # We must force CC to /not/ be precious variables; otherwise @@ -119,7 +126,7 @@ AC_SUBST(toolexeclibdir) m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS]) m4_define([_AC_ARG_VAR_PRECIOUS],[]) AC_PROG_CC -m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) +m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. if test "x$GCC" = "xyes"; then @@ -137,17 +144,41 @@ AC_SUBST(CFLAGS) # Check for symbol versioning (copied from libssp). AC_MSG_CHECKING([whether symbol versioning is supported]) -cat > conftest.map < conftest.map < conftest.map < +#include +#include ], [ + getpwuid_r(0, NULL, NULL, 0, NULL); + ])], [libgfor_cv_posix_getpwuid_r="yes"], [libgfor_cv_posix_getpwuid_r="no"])]) +fi +if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then + AC_DEFINE([HAVE_POSIX_GETPWUID_R], [1], [Define to 1 if we have POSIX getpwuid_r which takes 5 arguments.]) +fi + + # Check out attribute support. LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT @@ -475,6 +570,9 @@ else multilib_arg= fi -# Write our Makefile. -AC_CONFIG_FILES(Makefile) +# Write our Makefile and spec file. +AC_CONFIG_FILES([ +Makefile +libgfortran.spec +]) AC_OUTPUT