|
version 1.1, 2012/02/21 22:57:49
|
version 1.1.1.3, 2021/03/17 13:38:46
|
|
Line 1
|
Line 1
|
| # multiarch.m4 serial 5 | # multiarch.m4 serial 7 |
| dnl Copyright (C) 2008, 2009 Free Software Foundation, Inc. | dnl Copyright (C) 2008-2019 Free Software Foundation, Inc. |
| dnl This file is free software; the Free Software Foundation |
dnl This file is free software; the Free Software Foundation |
| dnl gives unlimited permission to copy and/or distribute it, |
dnl gives unlimited permission to copy and/or distribute it, |
| dnl with or without modifications, as long as this notice is preserved. |
dnl with or without modifications, as long as this notice is preserved. |
| |
|
| # Determine whether the compiler is or may be producing universal binaries. |
# Determine whether the compiler is or may be producing universal binaries. |
| # |
# |
| # On MacOS X 10.5 and later systems, the user can create libraries and | # On Mac OS X 10.5 and later systems, the user can create libraries and |
| # executables that work on multiple system types--known as "fat" or |
# executables that work on multiple system types--known as "fat" or |
| # "universal" binaries--by specifying multiple '-arch' options to the |
# "universal" binaries--by specifying multiple '-arch' options to the |
| # compiler but only a single '-arch' option to the preprocessor. Like |
# compiler but only a single '-arch' option to the preprocessor. Like |
|
Line 16 dnl with or without modifications, as long as this not
|
Line 16 dnl with or without modifications, as long as this not
|
| # CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
# CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
| # CPP="gcc -E" CXXCPP="g++ -E" |
# CPP="gcc -E" CXXCPP="g++ -E" |
| # |
# |
| # Detect this situation and set the macro AA_APPLE_UNIVERSAL_BUILD at the | # Detect this situation and set APPLE_UNIVERSAL_BUILD accordingly. |
| # beginning of config.h and set APPLE_UNIVERSAL_BUILD accordingly. | |
| |
|
| AC_DEFUN_ONCE([gl_MULTIARCH], |
AC_DEFUN_ONCE([gl_MULTIARCH], |
| [ |
[ |
|
Line 55 AC_DEFUN_ONCE([gl_MULTIARCH],
|
Line 54 AC_DEFUN_ONCE([gl_MULTIARCH],
|
| done |
done |
| ]) |
]) |
| if test $gl_cv_c_multiarch = yes; then |
if test $gl_cv_c_multiarch = yes; then |
| AC_DEFINE([AA_APPLE_UNIVERSAL_BUILD], [1], |
|
| [Define if the compiler is building for multiple architectures of Apple platforms at once.]) |
|
| APPLE_UNIVERSAL_BUILD=1 |
APPLE_UNIVERSAL_BUILD=1 |
| else |
else |
| APPLE_UNIVERSAL_BUILD=0 |
APPLE_UNIVERSAL_BUILD=0 |