$NetBSD: patch-ab,v 1.5 2012/07/03 17:42:48 joerg Exp $ --- configure.orig 2003-12-17 03:15:18.000000000 +0000 +++ configure @@ -1331,7 +1331,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$LIBS -lm" f77_compile='${F77-f77} $FFLAGS -c conftest.f 1>&5 2>&5' f77_make='make F77="${F77-f77}" FFLAGS="$FFLAGS" -f conftest.mak conftest.o 1>&5 2>&5' -c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS conftest.c conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' +c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c && ${F77-f77} conftest.o conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' # The next two don't include LDFLAGS, because some loser f77 compilers # (like on hp) do their own thing with the -L option. @@ -2561,9 +2561,9 @@ echo $ECHO_N "checking for support of AN cat > conftest.$ac_ext <> confdefs.h <<\EOF -#if linux +#if linux || defined(__NetBSD__) || defined(__DragonFly__) void MAIN__ (void) {abort();} #endif EOF