spielwiese
Last change
on this file since 5d18ce5 was
5d18ce5,
checked in by Martin Lee <martinlee84@…>, 13 years ago
|
renamed resource in resources
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | # -*- Autoconf -*- |
---|
2 | # Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ([2.65]) |
---|
5 | AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) |
---|
6 | AC_CONFIG_SRCDIR([feFopen.h]) |
---|
7 | AC_CONFIG_HEADERS([config.h]) |
---|
8 | |
---|
9 | # Checks for programs. |
---|
10 | AC_PROG_CC |
---|
11 | AC_PROG_CXX |
---|
12 | AC_PROG_LN_S |
---|
13 | AC_PROG_INSTALL |
---|
14 | |
---|
15 | # Checks for libraries. |
---|
16 | |
---|
17 | # Checks for header files. |
---|
18 | AC_HEADER_STDC |
---|
19 | AC_CHECK_HEADERS([sys/param.h]) |
---|
20 | |
---|
21 | # Checks for typedefs, structures, and compiler characteristics. |
---|
22 | AC_C_INLINE |
---|
23 | |
---|
24 | AC_MSG_RESULT($ac_cv_singuname) |
---|
25 | if test "$ac_cv_singuname" = unknown; then |
---|
26 | AC_MSG_WARN(Unknown architecture: Check singuname.sh) |
---|
27 | ac_cv_singuname="unknown" |
---|
28 | fi |
---|
29 | AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname") |
---|
30 | SINGUNAME=$ac_cv_singuname |
---|
31 | AC_SUBST(SINGUNAME) |
---|
32 | |
---|
33 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
34 | dnl path stuff |
---|
35 | dnl |
---|
36 | |
---|
37 | project=singular |
---|
38 | component=resources |
---|
39 | |
---|
40 | AC_SUBST(project) |
---|
41 | |
---|
42 | dnl set exec_prefix, libdir, includedir to some sensible values |
---|
43 | dnl if they are not yet already set |
---|
44 | |
---|
45 | # expand prefix |
---|
46 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
47 | |
---|
48 | # expand exec_prefixad |
---|
49 | if test "x$exec_prefix" = xNONE; then |
---|
50 | exec_prefix=${prefix} |
---|
51 | fi |
---|
52 | |
---|
53 | # expand libdir |
---|
54 | test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib/${project}/${component}" |
---|
55 | |
---|
56 | # expand includedir |
---|
57 | test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include/${project}/${component}" |
---|
58 | |
---|
59 | AC_CONFIG_FILES([Makefile]) |
---|
60 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.