annotate GEMBASSY-1.0.3/m4/general.m4 @ 1:84a17b3fad1f draft

Uploaded
author ktnyt
date Fri, 26 Jun 2015 05:20:29 -0400
parents 8300eb051bea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1 AC_DEFUN([CHECK_GENERAL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3 # Handle general setup e.g. documentation directory
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5 [AC_MSG_CHECKING(if docroot is given)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 AC_ARG_WITH([docroot],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7 [AS_HELP_STRING([--with-docroot=DIR],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8 [root directory path of documentation (defaults to none)])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9 [if test "$withval" != no ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10 AC_MSG_RESULT(yes)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11 CPPFLAGS="$CPPFLAGS -DDOC_ROOT=\\\"$withval\\\""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12 fi], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13 AC_MSG_RESULT(no)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15 ]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18 # GCC profiling
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19 [AC_MSG_CHECKING(if gcc profiling is selected)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 AC_ARG_WITH([gccprofile],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21 [AS_HELP_STRING([--with-gccprofile], [selects profiling])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22 [if test "$withval" != no ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23 AC_MSG_RESULT(yes)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 CFLAGS="$CFLAGS -g -pg"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25 LDFLAGS="$LDFLAGS -pg"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26 fi], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27 AC_MSG_RESULT(no)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 ]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32