autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RISC OS extension patch


From: Peter Naulls
Subject: RISC OS extension patch
Date: Sun, 16 Jun 2002 19:23:44 +0100
User-agent: Messenger-Pro/2.60 (Newsbase/0.70) (RISC-OS/4.29) POPstar/2.03

The following patch supports the use of the ,xxx filename format when
RISC OS binaries exist on foreign filesystems.  In this case, for cross
compilation using GNU Configure and the GCCSDK cross compiler.  This
patch is against autoconf 2.53:


--- lib/autoconf/lang.old.m4    Sun Jun 16 18:18:52 2002
+++ lib/autoconf/lang.m4        Sun Jun 16 17:20:34 2002
@@ -428,12 +428,15 @@
 ac_cv_exeext=
 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
                 ls a.out conftest 2>/dev/null;
-                ls a.* conftest.* 2>/dev/null`; do
+                ls a.* conftest.* 2>/dev/null;
+                ls conftest,ff8 2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
     a.out ) # We found the default executable, but exeext='' is most
             # certainly right.
             break;;
+    *,ff8 ) export ac_cv_exeext=,ff8
+            break;;        
     *.* ) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
           export ac_cv_exeext
@@ -494,9 +497,11 @@
 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 # work properly (i.e., refer to `conftest.exe'), while it won't with
 # `rm'.
-for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
+for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*; ls conftest,ff8) 
2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    *,ff8 ) export ac_cv_exeext=,ff8
+            break;;
     *.* ) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
           export ac_cv_exeext
           break;;


-- 
------------------------------------------------------------------------
 Peter Naulls - address@hidden
 Homepage                     -  http://www.chocky.org/
 RISC OS Projects Initiative  -  http://initiative.chocky.org/
 RISC OS C Programming        -  http://www.riscos.info/
------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]