diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-09-11 00:21:11 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-09-11 00:21:11 +0200 |
commit | e23338a1ca5956a607206b95630c034b721ce6e0 (patch) | |
tree | d78d8dfbeef44bd74e7d7e31f33fe125c0e23cc9 /acinclude.m4 | |
parent | 428b18446362d91fd754ce5e4e55dbc75d1291c1 (diff) | |
download | gmp-e23338a1ca5956a607206b95630c034b721ce6e0.tar.gz |
* acinclude.m4, configure.in (GMP_PROG_CC_IS_XLC): Recognise xlc when
invoked under another name (cc, xlc128, etc).
* acinclude.m4 (GMP_PROG_CC_IS_GCC): Print a message when recognised.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index d29e0180d..0e5391ce0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -329,6 +329,8 @@ EOF gmp_compile="$1 -c conftest.c" if AC_TRY_EVAL(gmp_compile); then rm -f conftest* + AC_MSG_CHECKING([whether $1 is gcc]) + AC_MSG_RESULT(yes) ifelse([$2],,:,[$2]) else rm -f conftest* @@ -337,6 +339,26 @@ fi ]) +dnl GMP_PROG_CC_IS_XLC(CC,[ACTIONS-IF-YES][,ACTIONS-IF-NO]) +dnl ------------------------------------------------------- +dnl Determine whether the given compiler is IBM xlc (on AIX). +dnl +dnl There doesn't seem to be a preprocessor symbol to test for this, or if +dnl there is one then it's well hidden in xlc 3.1 on AIX 4.3, so just grep +dnl the man page printed when xlc is invoked with no arguments. + +AC_DEFUN(GMP_PROG_CC_IS_XLC, +[gmp_command="$1 2>&1 | grep xlc >/dev/null" +if AC_TRY_EVAL(gmp_command); then + AC_MSG_CHECKING([whether $1 is xlc]) + AC_MSG_RESULT(yes) + ifelse([$2],,:,[$2]) +else + ifelse([$3],,:,[$3]) +fi +]) + + dnl GMP_HPC_HPPA_2_0(cc,[ACTION-IF-GOOD][,ACTION-IF-BAD]) dnl --------------------------------------------------------- dnl Find out whether a HP compiler is good enough to generate hppa 2.0. @@ -1073,8 +1095,8 @@ echo ["define(<W32>, <$gmp_cv_asm_w32>)"] >> $gmp_tmpconfigm4 ]) -dnl GMP_ASM_X86_MMX([ACTION-IF-FOUND][,ACTION-IF-NOT-FOUND]) -dnl --------------------------------------------------------- +dnl GMP_ASM_X86_MMX([ACTION-IF-YES][,ACTION-IF-NO]) +dnl ----------------------------------------------- dnl Determine whether the assembler supports MMX instructions. dnl dnl This macro is wanted before GMP_ASM_TEXT, so ".text" is hard coded @@ -1082,8 +1104,8 @@ dnl here. ".text" is believed to be correct on all x86 systems, certainly dnl it's all GMP_ASM_TEXT gives currently. Actually ".text" probably isn't dnl needed at all, at least for just checking instruction syntax. dnl -dnl "movq %mm0, %mm1" should assemble as "0f 6f c8", but Solaris 2.6 and -dnl 2.7 wrongly assemble it as "0f 6f c1" (that being the reverse "movq +dnl "movq %mm0, %mm1" should assemble to "0f 6f c8", but Solaris 2.6 and +dnl 2.7 wrongly assemble it to "0f 6f c1" (that being the reverse "movq dnl %mm1, %mm0"). It seems more trouble than it's worth to work around dnl this in the code, so just detect and reject. @@ -1157,8 +1179,8 @@ fi ]) -dnl GMP_ASM_X86_SSE2([ACTION-IF-FOUND][,ACTION-IF-NOT-FOUND]) -dnl --------------------------------------------------------- +dnl GMP_ASM_X86_SSE2([ACTION-IF-YES][,ACTION-IF-NO]) +dnl ------------------------------------------------ dnl Determine whether the assembler supports SSE2 instructions. dnl dnl This macro is wanted before GMP_ASM_TEXT, so ".text" is hard coded |