source: git/misc/configure.ac @ 1832470

fieker-DuValspielwiese
Last change on this file since 1832470 was 1832470, checked in by Oleksandr Motsak <motsak@…>, 14 years ago
fix: auxiliary.h.in should be auxiliary.h fix: removed old hacks from configure.ac TODO: config.h?
  • Property mode set to 100644
File size: 2.1 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
5AC_INIT([misc], [3.1.2.sw])
6AM_INIT_AUTOMAKE
7AC_CONFIG_SRCDIR([mylimits.h])
8AC_CONFIG_HEADERS([auxiliary.h])
9
10# Checks for programs.
11AC_PROG_CC
12AC_PROG_CXX
13AC_PROG_LN_S
14AC_PROG_INSTALL
15
16# Checks for libraries.
17
18# Checks for header files.
19AC_CHECK_HEADERS([limits.h])
20
21# Checks for typedefs, structures, and compiler characteristics.
22AC_C_INLINE
23
24# Checks for library functions.
25AC_MSG_CHECKING(CPU for singular)
26
27# check for cpu properties:
28AC_CHECK_SIZEOF(long,4)
29
30# UNAME and PATH
31ac_cv_singcpuname=`uname -m`
32AC_MSG_RESULT($ac_cv_singcpuname)
33
34if test "$ac_cv_singuname" = ix86-Win; then
35  EXEC_EXT=".exe"
36  AC_DEFINE(SI_CPU_I386,1,"ix86 under Windows")
37  AC_SUBST(SI_CPU_I386)
38fi
39AC_SUBST(EXEC_EXT)
40if test "$ac_cv_singuname" = x86_64-Linux; then
41  AC_DEFINE(SI_CPU_X86_64,1,"ix86-64 under GNU/Linux")
42  AC_SUBST(SI_CPU_X86_64)
43fi
44if test "$ac_cv_singuname" = ix86-Linux; then
45  AC_DEFINE(SI_CPU_I386,1,"ix86 under GNU/Linux")
46  AC_SUBST(SI_CPU_I386)
47fi
48if test "$ac_cv_singuname" = IA64-Linux; then
49  AC_DEFINE(SI_CPU_IA64,1,"ia64 under GNU/Linux")
50  AC_SUBST(SI_CPU_IA64)
51fi
52if test "$ac_cv_singuname" = ppc-Linux; then
53  AC_DEFINE(SI_CPU_PPC,1,"PPC under GNU/Linux")
54  AC_SUBST(SI_CPU_PPC)
55fi
56if test "$ac_cv_singuname" = ppcMac-darwin; then
57  AC_DEFINE(SI_CPU_PPC,1,"PPC under MacOS")
58  AC_SUBST(SI_CPU_PPC)
59fi
60# test again with CPU names
61if test "$ac_cv_singcpuname" = i386; then
62  AC_DEFINE(SI_CPU_I386,1,"i386")
63  AC_SUBST(SI_CPU_I386)
64fi
65if test "$ac_cv_singcpuname" = i686; then
66  AC_DEFINE(SI_CPU_I386,1,"i686")
67  AC_SUBST(SI_CPU_I386)
68fi
69if test "$ac_cv_singcpuname" = x86_64; then
70  AC_DEFINE(SI_CPU_X86_64,1,"x86-64")
71  AC_SUBST(SI_CPU_X86_64)
72fi
73if test "$ac_cv_singcpuname" = ia64; then
74  AC_DEFINE(SI_CPU_IA64,1,"ia64")
75  AC_SUBST(SI_CPU_IA64)
76fi
77if test "$ac_cv_singcpuname" = sparc; then
78  AC_DEFINE(SI_CPU_SPARC,1,"SPARC")
79  AC_SUBST(SI_CPU_SPARC)
80fi
81if test "$ac_cv_singcpuname" = ppc; then
82  AC_DEFINE(SI_CPU_PPC,1,"PPC")
83  AC_SUBST(SI_CPU_PPC)
84fi
85
86AC_CONFIG_FILES([Makefile])
87AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.