From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/15074 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Scherbatiy Alexander Newsgroups: gmane.linux.lib.musl.general Subject: gnu autoconf AC_CANONICAL_BUILD returns linux-gnu build_os on Alpine Linux 3.10.3 Date: Mon, 30 Dec 2019 14:24:56 +0300 Message-ID: <1504261577705096@sas1-0ef7a84b6a92.qloud-c.yandex.net> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78912"; mail-complaints-to="usenet@blaine.gmane.org" To: musl Original-X-From: musl-return-15090-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 30 12:25:18 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iltAi-000KK4-9W for gllmg-musl@m.gmane.org; Mon, 30 Dec 2019 12:25:16 +0100 Original-Received: (qmail 30391 invoked by uid 550); 30 Dec 2019 11:25:09 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 30359 invoked from network); 30 Dec 2019 11:25:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bell-sw.com; s=mail; t=1577705096; bh=CUogaFH3yTwa4cPY/zD35lvt29c3HqO15Dnfa6A+xwM=; h=Message-Id:Date:Subject:To:From; b=mUOZv4T5rSyApwC4ffmcqxT4mfeIq0v1pn2wX9K/HyBI/m/yA/iAzk9RUQ27R0Wvk LKcLejV/CRT5lkwXxMILgJVrpFP/neqRbCyj+42CyK9TjEl2MM9chpTw8nEQgPf1Rn fAWHv+opc1Iw4Rr95Z21b9q1wISx55eSJ/x7uWFA= Authentication-Results: mxback21o.mail.yandex.net; dkim=pass header.i=@bell-sw.com X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.org gmane.linux.lib.musl.general:15074 Archived-At: Hello, gnu autoconf AC_CANONICAL_BUILD returns linux-gnu build_os variable on Alpine Linux 3.10.3. Here is a snippet from the configure.ac file which I tested in docker alpine:3.10.3 ---------------- AC_CANONICAL_BUILD AC_MSG_NOTICE([build_os=$build_os]) ---------------- Output: ---------------- checking build system type... x86_64-pc-linux-gnu configure: build_os=linux-gnu ---------------- The same code on Alpine 3.8.4 (docker alpine:3.8 ) returns: ---------------- checking build system type... x86_64-pc-linux-musl configure: build_os=linux-musl ---------------- Is it expected that build_os is detected as linux-gnu instead of linux-musl on Alpine 3.0.3? Thanks, Alexander. Simple project: --- configure.ac --- AC_INIT([amhello], [1.0], [bug-automake@gnu.org]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) # Environment AC_CANONICAL_BUILD AC_MSG_NOTICE([build_os=$build_os]) AC_PROG_CC AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([ Makefile ]) AC_OUTPUT --- Makefile.am --- bin_PROGRAMS = hello hello_SOURCES = main.c --- Makefile.am --- bin_PROGRAMS = hello hello_SOURCES = main.c /tmp/sample/autoconf-sample # cat main.c #include #include int main (void) { printf("Hello World!\n"); return 0; } ---------------- autoreconf -i ./configure