summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDaniel Stutzbach <daniel@stutzbachenterprises.com>2010-08-31 19:51:07 (GMT)
committerDaniel Stutzbach <daniel@stutzbachenterprises.com>2010-08-31 19:51:07 (GMT)
commita606faa491af05b99dba6ebafa57662cf6b451fe (patch)
tree240a19fb31ddaadd3742ea85df0b0cb4ff81badd /configure
parent061b14a4a1f64532bfb4d716849ae662c09da62a (diff)
downloadcpython-a606faa491af05b99dba6ebafa57662cf6b451fe.zip
cpython-a606faa491af05b99dba6ebafa57662cf6b451fe.tar.gz
cpython-a606faa491af05b99dba6ebafa57662cf6b451fe.tar.bz2
Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers other than MSC
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure50
1 files changed, 50 insertions, 0 deletions
diff --git a/configure b/configure
index 4dd2332..f94b125 100755
--- a/configure
+++ b/configure
@@ -638,6 +638,7 @@ SVNVERSION
ARFLAGS
AR
RANLIB
+USE_INLINE
GNULD
LINKCC
RUNSHARED
@@ -4754,6 +4755,55 @@ esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
$as_echo "$GNULD" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
+$as_echo_n "checking for inline... " >&6; }
+if test "${ac_cv_c_inline+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo () {return 0; }
+$ac_kw foo_t foo () {return 0; }
+#endif
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_c_inline=$ac_kw
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ test "$ac_cv_c_inline" != no && break
+done
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
+$as_echo "$ac_cv_c_inline" >&6; }
+
+case $ac_cv_c_inline in
+ inline | yes) ;;
+ *)
+ case $ac_cv_c_inline in
+ no) ac_val=;;
+ *) ac_val=$ac_cv_c_inline;;
+ esac
+ cat >>confdefs.h <<_ACEOF
+#ifndef __cplusplus
+#define inline $ac_val
+#endif
+_ACEOF
+ ;;
+esac
+
+if test "$ac_cv_c_inline" != no ; then
+ $as_echo "#define USE_INLINE 1" >>confdefs.h
+
+
+fi
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
$as_echo_n "checking for --enable-shared... " >&6; }
# Check whether --enable-shared was given.