source: git/misc/configure.ac @ 8a455c

fieker-DuValspielwiese
Last change on this file since 8a455c was 0a59ea, checked in by Hans Schoenemann <hannes@…>, 14 years ago
path settings
  • 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([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
6AC_CONFIG_SRCDIR([mylimits.h])
7AC_CONFIG_HEADERS([auxiliary.h])
8
9# Checks for programs.
10AC_PROG_CC
11AC_PROG_CXX
12AC_PROG_LN_S
13AC_PROG_INSTALL
14
15# Checks for libraries.
16
17# Checks for header files.
18AC_CHECK_HEADERS([limits.h])
19
20# Checks for typedefs, structures, and compiler characteristics.
21AC_C_INLINE
22
23# Checks for library functions.
24AC_MSG_CHECKING(CPU for singular)
25
26# check for cpu properties:
27AC_CHECK_SIZEOF(long,4)
28
29# UNAME and PATH
30ac_cv_singcpuname=`uname -m`
31AC_MSG_RESULT($ac_cv_singcpuname)
32
33if test "$ac_cv_singuname" = ix86-Win; then
34  EXEC_EXT=".exe"
35  AC_DEFINE(SI_CPU_I386)
36  AC_SUBST(SI_CPU_I386)
37fi
38AC_SUBST(EXEC_EXT)
39if test "$ac_cv_singuname" = x86_64-Linux; then
40  AC_DEFINE(SI_CPU_X86_64)
41  AC_SUBST(SI_CPU_X86_64)
42fi
43if test "$ac_cv_singuname" = ix86-Linux; then
44  AC_DEFINE(SI_CPU_I386)
45  AC_SUBST(SI_CPU_I386)
46fi
47if test "$ac_cv_singuname" = IA64-Linux; then
48  AC_DEFINE(SI_CPU_IA64)
49  AC_SUBST(SI_CPU_IA64)
50fi
51if test "$ac_cv_singuname" = ppc-Linux; then
52  AC_DEFINE(SI_CPU_PPC)
53  AC_SUBST(SI_CPU_PPC)
54fi
55if test "$ac_cv_singuname" = ppcMac-darwin; then
56  AC_DEFINE(SI_CPU_PPC)
57  AC_SUBST(SI_CPU_PPC)
58fi
59# test again with CPU names
60if test "$ac_cv_singcpuname" = i386; then
61  AC_DEFINE(SI_CPU_I386)
62  AC_SUBST(SI_CPU_I386)
63fi
64if test "$ac_cv_singcpuname" = i686; then
65  AC_DEFINE(SI_CPU_I386)
66  AC_SUBST(SI_CPU_I386)
67fi
68if test "$ac_cv_singcpuname" = x86_64; then
69  AC_DEFINE(SI_CPU_X86_64)
70  AC_SUBST(SI_CPU_X86_64)
71fi
72if test "$ac_cv_singcpuname" = ia64; then
73  AC_DEFINE(SI_CPU_IA64)
74  AC_SUBST(SI_CPU_IA64)
75fi
76if test "$ac_cv_singcpuname" = sparc; then
77  AC_DEFINE(SI_CPU_SPARC)
78  AC_SUBST(SI_CPU_SPARC)
79fi
80if test "$ac_cv_singcpuname" = ppc; then
81  AC_DEFINE(SI_CPU_PPC)
82  AC_SUBST(SI_CPU_PPC)
83fi
84
85test "x$prefix" = xNONE && prefix=$ac_default_prefix
86if test "${with_rootdir+set}" != set; then
87  AC_DEFINE_UNQUOTED(S_ROOT_DIR, "${prefix}")
88else
89  AC_DEFINE_UNQUOTED(S_ROOT_DIR, "${with_rootdir}")
90fi
91
92AC_CONFIG_FILES([Makefile])
93AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.