]> andersk Git - nss_nonlocal.git/blobdiff - configure.ac
glibc uses regparms for internal functions on i386.
[nss_nonlocal.git] / configure.ac
index 28790a1fb964a67e0e9424b73206d3040290e296..5940f39cd4548e1b24133ce1794f8cfcfeb4d4fc 100644 (file)
@@ -1,4 +1,5 @@
 AC_INIT([nss_nonlocal], [1.7], [andersk@mit.edu])
+AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 AC_PREFIX_DEFAULT([/])
@@ -7,6 +8,13 @@ AC_PROG_CC
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
 
+case "$target_cpu" in
+    i386 | i486 | i586 | i686 | i786)
+       AC_DEFINE([USE_REGPARMS], [],
+                 [Define if the regparm attribute shall be used for local functions (gcc on ix86 only).])
+       ;;
+esac
+
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
This page took 0.029869 seconds and 4 git commands to generate.