-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
94 lines (73 loc) · 2.83 KB
/
configure.ac
File metadata and controls
94 lines (73 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# -*- Autoconf -*-
#
# _____ __ __
# / ___/__ / / ___ _____/ /_
# / /__/ _ \/ _ \/ _ \/ _/_ __/
# \___/\___/_//_/\___/_/ /_/
# Please refer to Copyright.txt, in Chohort's root directory.
#
#
#--------------------------------------------------------------------
# Process this file with autoconf to produce a configure script.
#--------------------------------------------------------------------
AC_PREREQ([2.59])
AC_INIT([Cohort], [0.9], [Stephen.Guzik@colostate.edu], [Cohort.tar.bz2])
AC_CONFIG_SRCDIR([lib/src/BaseTools/CHTmsg.cpp])
#--------------------------------------------------------------------
# Created files
#--------------------------------------------------------------------
AC_CONFIG_HEADERS([lib/src/BaseTools/CHTconfig.H])
AC_CONFIG_FILES([mk/Make.defs])
#--------------------------------------------------------------------
# System information
#--------------------------------------------------------------------
AC_CANONICAL_HOST
have_x86=`expr $host : '.*\(86\).*'`
AC_CHECK_SIZEOF([void *])
if test "$ac_cv_sizeof_void_p" -eq "8"; then
ch_int_systemptrsize="64"
elif test "$ac_cv_sizeof_void_p" -eq "4"; then
ch_int_systemptrsize="32"
fi
#--------------------------------------------------------------------
# Top directory
#--------------------------------------------------------------------
AC_SUBST([TOPDIR],[`pwd`])
#--------------------------------------------------------------------
# Get the C++ compiler
#--------------------------------------------------------------------
AC_PROG_CXX([$CXX])
#--------------------------------------------------------------------
# Standard checks for required programs
#--------------------------------------------------------------------
AC_PROG_INSTALL
#--------------------------------------------------------------------
# Need flex and bison for the parser.
#--------------------------------------------------------------------
# Stream editor
#AC_ARG_VAR([SED], [Stream editor])
#AC_CHECK_PROG([SED], [sed], [sed], [])
AC_PROG_SED
# C shell
AC_ARG_VAR([CSHELLCMD], [C shell])
AC_CHECK_PROG([CSHELLCMD], [csh], [csh -f -c])
# Library archiver
AC_ARG_VAR([AR], [Library archiver])
AC_CHECK_PROG([AR], [ar], [ar rcs])
# Perl
AC_ARG_VAR([PERL], [Perl])
AC_CHECK_PROG([PERL], [perl], [perl])
# Flex
AC_PROG_LEX
# Bison
AC_ARG_VAR([BISON], [GNU parser])
AC_CHECK_PROG([BISON], [bison], [bison])
AC_MSG_CHECKING([for bison major version number])
BISON_MAJOR=`$BISON --version 2>&1 | $SED '1{s/.* \(@<:@0-9@:>@\)\..*/\1/;q}'`
AC_MSG_RESULT($BISON_MAJOR)
AC_SUBST([_bison_major], [$BISON_MAJOR])
AC_DEFINE_UNQUOTED([CHTDEF_BISON_MAJOR], [$BISON_MAJOR])
#--------------------------------------------------------------------
# Create files
#--------------------------------------------------------------------
AC_OUTPUT