forked from open-power/amester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
74 lines (56 loc) · 1.53 KB
/
configure.ac
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
dnl (C) Copyright IBM Corporation 2011, 2016
AC_PREREQ(2.57)
dnl AC_GREP_SYMBOL(VARIABLE, SYMBOL, FILE)
AC_DEFUN([AC_GREP_SYMBOL],
[AC_REQUIRE([AC_PROG_AWK])dnl
cat > conftest.awk <<EOF
[/^# *define *]$2[[ \t]]/ { print [\$][3] }
EOF
$1=`${AWK} -f conftest.awk $3`
rm -rf conftest*])
dnl Process this file with autoconf to produce a configure script.
AC_INIT(LICENSE)
dnl Set the top-level source directory
TOP_DIR=`cd ${srcdir}; pwd;`
AC_SUBST(TOP_DIR)
abs_top_srcdir=$TOP_DIR
abs_top_builddir=$TOP_DIR
AC_SUBST(abs_top_srcdir)
AC_SUBST(abs_top_builddir)
AC_CANONICAL_HOST
HOST_CPU=host_cpu
HOST_VENDOR=host_vendor
HOST_OS=host_os
AC_SUBST(host_cpu)
AC_SUBST(host_vendor)
AC_SUBST(host_os)
AC_MSG_RESULT(cpu is $host_cpu)
AC_MSG_RESULT(vendor is $host_vendor)
AC_MSG_RESULT(os is $host_os)
dnl Checks for programs.
dnl AC_PROG_CC
dnl AC_PROG_MAKE_SET
dnl AC_PROG_RANLIB
dnl AC_PROG_AWK # required by AC_GREP_SYMBOL in aclocal.m4
dnl Checks for libraries.
dnl Replace `main' with a function in -lm:
dnl AC_CHECK_LIB(m, main)
dnl case $host in
dnl *-*-cygwin*|*-*-mingw*)
dnl if test "${mambo_enable_cygwin}" = "no" ; then
dnl CC="${CC} -mno-cygwin"
dnl fi
dnl ;;
dnl esac
find . -prune -noleaf > /dev/null 2>&1
if test $? == 0 ; then
NOLEAF=-noleaf
else
NOLEAF=
fi
files=`cd $srcdir; find . $NOLEAF \( -name '*.in' -o -name '.*.in' \) -a ! \( -name CVS -o -name 'config.h.in' -o -name configure.in \) \
-print | sed 's/\.in$//g'`
echo "files = $files"
AC_OUTPUT($files,
# things to do in config.status (from configure.in)
)