You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Lev Serebryakov <le...@serebryakov.spb.ru> on 2004/02/10 20:33:32 UTC

Problems with configure on new platform.

Hello, dev! How are you?

amd64-freebsd:

configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `amd64-portbld-freebsd5.2': machine `amd64-portbld' not recognized
configure: error: /bin/sh build/config.sub amd64-portbld-freebsd5.2 failed

Could it be solved BEFORE 0.9.5 and could 0.9.5 be RELEASED AT LAST?!
 
--
               Lev Serebryakov


Re: Problems with configure on new platform.

Posted by Craig Rodrigues <ro...@crodrigues.org>.
On Tue, Feb 10, 2004 at 08:37:42PM +0000, Joe Orton wrote:
> <insert whine about maintaining forked copies of config.{guess,sub} just
> for some obscure IBM platforms, which in fact now have different
> canonical names in APR from the upstream GNU sources>

Who on this mailing list regularly compiles
apr on OS390 and AS400?  That would be helpful to know,
in order to upgrade config.sub/config.guess.

Has anyone ever submitted the apr changes of these
files back to the GNU autoconf maintainers?

-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc@crodrigues.org

Re: Problems with configure on new platform.

Posted by Joe Orton <jo...@manyfish.co.uk>.
On Wed, Feb 11, 2004 at 12:24:04AM +0300, Lev Serebryakov wrote:
> Hello, Joe!
> Tuesday, February 10, 2004, 11:37:42 PM, you wrote:
> 
> >> Could it be solved BEFORE 0.9.5 and could 0.9.5 be RELEASED AT LAST?!
> JO> For your FreeBSD port you should really do a full buildconf run, and
> JO> copy in up-to-date versions of config.{guess,sub} from autoconf to be
> JO> sure libtool will work on all your supported platforms.
>   I see. Now we have `autoconf' run only. I'll try with `buildconf'.

That alone won't copy in new config.foo files, you'll have to do that as
well as running buildconf.

joe

Re[2]: Problems with configure on new platform.

Posted by Lev Serebryakov <le...@serebryakov.spb.ru>.
Hello, Joe!
Tuesday, February 10, 2004, 11:37:42 PM, you wrote:

>> Could it be solved BEFORE 0.9.5 and could 0.9.5 be RELEASED AT LAST?!
JO> For your FreeBSD port you should really do a full buildconf run, and
JO> copy in up-to-date versions of config.{guess,sub} from autoconf to be
JO> sure libtool will work on all your supported platforms.
  I see. Now we have `autoconf' run only. I'll try with `buildconf'.

--
               Lev Serebryakov


Re: Problems with configure on new platform.

Posted by Craig Rodrigues <ro...@crodrigues.org>.
On Tue, Feb 10, 2004 at 04:17:08PM -0500, Jeff Trawick wrote:
> I'll try to resync 390 stuff on the symbols set by recent GNU versions... 
> can't hack OS/400 or OS/2 though.


Can you take a look at what I have done?

I obtained config.guess and config.sub from autoconf 2.59
and added back in the Apache changes.
I replaced the config.guess and config.sub files
in apr with the 2.59 + patched versions, and things worked
for me.



--- /home/rodrigc/autoconf-2.59/config/config.guess	Thu Oct 23 10:28:51 2003
+++ config.guess	Wed Feb 11 23:46:49 2004
@@ -24,6 +24,11 @@
 # configuration script generated by Autoconf, you may include it under
 # the same distribution terms that you use for the rest of that program.
 
+#####################################################################
+# This file contains changes for Apache, clearly marked below.
+# These changes are hereby donated to the public domain.
+#####################################################################
+
 # Originally written by Per Bothner <pe...@bothner.com>.
 # Please send patches to <co...@gnu.org>.  Submit a context
 # diff and a properly formatted ChangeLog entry.
@@ -304,6 +309,24 @@
     *:[Mm]orph[Oo][Ss]:*:*)
 	echo ${UNAME_MACHINE}-unknown-morphos
 	exit 0 ;;
+#########################
+# Apache changes
+#
+#   *:OS/390:*:*)
+#      echo i370-ibm-openedition
+#      exit 0 ;;
+    *:OS390:*:* | *:OS/390:*:*)
+       echo s390-ibm-os390
+       exit 0 ;; 
+    *:OS400:*:* | *:OS/400:*:*) 
+       echo as400-ibm-os400
+       exit 0 ;;
+    *:OS/2:*:*)
+       echo "i386-pc-os2_emx"
+       exit 0;;
+#
+# end Apache changes
+#########################
     *:OS/390:*:*)
 	echo i370-ibm-openedition
 	exit 0 ;;
--- /home/rodrigc/autoconf-2.59/config/config.sub	Thu Oct 23 10:28:51 2003
+++ config.sub	Thu Feb 12 00:09:15 2004
@@ -29,6 +29,11 @@
 # configuration script generated by Autoconf, you may include it under
 # the same distribution terms that you use for the rest of that program.
 
+#####################################################################
+# This file contains changes for Apache, clearly marked below.
+# These changes are hereby donated to the public domain.
+#####################################################################
+
 # Please send patches to <co...@gnu.org>.  Submit a context
 # diff and a properly formatted ChangeLog entry.
 #
@@ -122,6 +127,24 @@
     os=-$maybe_os
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     ;;
+########################
+# changes for Apache
+#
+  tpf | os390 | vmcms)
+    os=-$maybe_os
+    basic_machine=s390;
+    ;;
+  os400)
+    os=-$maybe_os
+    basic_machine=as400;
+    ;;
+  mvs)
+    os=-mvs
+    basic_machine=i370;
+    ;;
+#
+# end Apache changes
+########################
   *)
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
     if [ $basic_machine != $1 ]
@@ -844,6 +867,15 @@
 		basic_machine=a29k-amd
 		os=-udi
 		;;
+########################
+# changes for Apache
+#
+	as400*)
+		basic_machine=as400-ibm
+		;;
+# 
+# end Apache changes
+########################
 	sb1)
 		basic_machine=mipsisa64sb1-unknown
 		;;
@@ -1120,6 +1152,14 @@
 	-gnu/linux*)
 		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
 		;;
+########################
+# changes for Apache
+#
+	-os2_emx | -tpf* | -os390* | -vmcms* | -os400* )
+        	;;
+#
+# end Apache changes
+########################
 	# First accept the basic system types.
 	# The portable systems comes first.
 	# Each alternative MUST END IN A *, to match a version number.
@@ -1338,6 +1378,32 @@
 	*-be)
 		os=-beos
 		;;
+########################
+# changes for Apache
+#
+#	*-ibm)
+#		os=-aix
+#		;;
+#
+	*-ibm)
+		case $basic_machine in
+			s390*)
+				os=-os390;
+				;;
+			i370*)
+				os=-mvs;
+				;;
+			as400*)
+				os=-os400;
+				;;
+			*)
+				os=-aix
+				;;
+		esac
+                ;;
+# 
+# end Apache changes
+########################
 	*-ibm)
 		os=-aix
 		;;

-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc@crodrigues.org

Re: Problems with configure on new platform.

Posted by Jeff Trawick <tr...@attglobal.net>.
Joe Orton wrote:

> <insert whine about maintaining forked copies of config.{guess,sub} just
> for some obscure IBM platforms, which in fact now have different
> canonical names in APR from the upstream GNU sources>

IIRC "upstream GNU sources" didn't have anything appropriate at the time for 
390 and we picked what I understood was being submitted to the FSF...  things 
change of course...

I'll try to resync 390 stuff on the symbols set by recent GNU versions... 
can't hack OS/400 or OS/2 though.


Re: Problems with configure on new platform.

Posted by Joe Orton <jo...@manyfish.co.uk>.
On Tue, Feb 10, 2004 at 10:33:32PM +0300, Lev Serebryakov wrote:
> Hello, dev! How are you?
> 
> amd64-freebsd:
> 
> configure: WARNING: you should use --build, --host, --target
> checking build system type... Invalid configuration `amd64-portbld-freebsd5.2': machine `amd64-portbld' not recognized
> configure: error: /bin/sh build/config.sub amd64-portbld-freebsd5.2 failed

> Could it be solved BEFORE 0.9.5 and could 0.9.5 be RELEASED AT LAST?!

For your FreeBSD port you should really do a full buildconf run, and
copy in up-to-date versions of config.{guess,sub} from autoconf to be
sure libtool will work on all your supported platforms.

<insert whine about maintaining forked copies of config.{guess,sub} just
for some obscure IBM platforms, which in fact now have different
canonical names in APR from the upstream GNU sources>

joe

Re: Problems with configure on new platform.

Posted by Craig Rodrigues <ro...@crodrigues.org>.
On Tue, Feb 10, 2004 at 02:09:51PM -0600, William A. Rowe, Jr. wrote:
> Well, the problem is if we don't have the box there isn't much we can do.
> Feel free to offer a patch, or there may be someone who will step up to
> play with it if you can provide an account.

There already exists a patch to config.{guess,sub} 
for AMD support:

http://www.x86-64.org/lists/patches/msg00001.html

Could we add this to APR?


-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc@crodrigues.org

Re: Problems with configure on new platform.

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 01:33 PM 2/10/2004, Lev Serebryakov wrote:
>Hello, dev! How are you?
>
>amd64-freebsd:
>
>configure: WARNING: you should use --build, --host, --target
>checking build system type... Invalid configuration `amd64-portbld-freebsd5.2': machine `amd64-portbld' not recognized
>configure: error: /bin/sh build/config.sub amd64-portbld-freebsd5.2 failed
>
>Could it be solved BEFORE 0.9.5 

Well, the problem is if we don't have the box there isn't much we can do.
Feel free to offer a patch, or there may be someone who will step up to
play with it if you can provide an account.

>and could 0.9.5 be RELEASED AT LAST?!

You want it both ways, eh?  <chuckle/>