GNOME Bugzilla – Bug 760334
get_system_type() returns amd64-freebsd on FreeBSD, which is not accepted by autoconf
Last modified: 2016-01-09 13:48:33 UTC
This can be reproduced with a simple configure.ac and a empty Makefile.am: AC_INIT([testpkg], [1.23]) AC_CONFIG_SRCDIR([configure.ac]) AM_INIT_AUTOMAKE([foreign]) AC_CANONICAL_HOST AC_CANONICAL_BUILD AC_CONFIG_FILES([Makefile]) AC_OUTPUT $ ./configure --host=x86_64-freebsd [OK] $ ./configure --host=x86_64-unknown-freebsd [OK] $ ./configure --host=amd64-freebsd Invalid configuration `amd64-freebsd': machine `amd64' not recognized $ ./configure --host=amd64-unknown-freebsd [OK] Should we replace 'amd64' with 'x86_64', or add '-pc' or '-unknown'?
Hrmm, you probably know vastly more about compiling autotools projects on FreeBSD, so I'm willing to take suggestions. However, my inclination is to translate amd64 to x86_64.
Created attachment 318574 [details] [review] libide: Replace amd64 with x86_64 when constructing host system type FreeBSD uname returns amd64 instead of x86_64, which is not accepted by autoconf config.sub without specifying the vendor.
Review of attachment 318574 [details] [review]: LGTM
Attachment 318574 [details] pushed as 04b572c - libide: Replace amd64 with x86_64 when constructing host system type