]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix failed C/Fortran linking on HP/UX, by extracting the Fortran
authorSteven G. Johnson <stevenj@alum.mit.edu>
Wed, 12 Dec 2001 04:31:12 +0000 (04:31 +0000)
committerSteven G. Johnson <stevenj@alum.mit.edu>
Wed, 12 Dec 2001 04:31:12 +0000 (04:31 +0000)
library search path from the LPATH line in the $F77 -v output.

ChangeLog
lib/autoconf/fortran.m4

index 44a4657fd3393522a26a746586e06e894687ef4e..665f9c9e70b2c5193219b9054728dc50ff562797 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,13 +1,18 @@
+2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
+
+       * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
+       C/Fortran linking on HP/UX, by extracting the Fortran library
+       search path from the LPATH line in the $F77 -v output.
+       
 2001-12-12  Kevin Ryde  <user42@zip.com.au>
 
        * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
        forbidden file descriptors table.
-
+       
 2001-11-26  Akim Demaille  <akim@epita.fr>
 
        * bin/autoscan.in (%c_keywords): Build it at top level.
        Map to 1 in order to simplify its uses.
-
        
 2001-11-26  Akim Demaille  <akim@epita.fr>
 
@@ -20,7 +25,6 @@
        because of `lex$U.$(OBJEXT)'.
        (&scan_files): Use "@list" instead of join.
        * doc/Makefile.am (CLEANFILES): Add *.fns.
-
        
 2001-11-26  Akim Demaille  <akim@epita.fr>
 
@@ -35,7 +39,6 @@
 
        * bin/autoscan.in (used): New.
        Use it.
-
        
 2001-11-26  Akim Demaille  <akim@epita.fr>
 
        (&scan_sh_file): Remove a duplicate pattern.
        (&check_configure_ac): Use long options.
        * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
-
        
 2001-11-26  Akim Demaille  <akim@epita.fr>
 
        * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
        Before, having a line containing the opening of a multi line
        comment made the whole line be ignored.
-
        
 2001-11-26  Akim Demaille  <akim@epita.fr>
 
index 6e2f56d4f8525834729156159f383587c94255da..5dd704e4f71ca2389966d51948434b57aceeb87d 100644 (file)
@@ -384,6 +384,13 @@ if echo $ac_f77_v_output | grep xlfentry >/dev/null 2>&1; then
   ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'`
 fi
 
+# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
+# /foo, /bar, and /baz are search directories for the Fortran linker.
+# Here, we change these into -L/foo -L/bar -L/baz:
+ac_f77_v_output="`echo $ac_f77_v_output | 
+       grep 'LPATH is:' |
+       sed 's,.*LPATH is\(: *[[^ ]]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
+
 # If we are using Cray Fortran then delete quotes.
 # Use "\"" instead of '"' for font-lock-mode.
 # FIXME: a more general fix for quoted arguments with spaces?