File: acinclude.m4

package info (click to toggle)
cbedic 1.2-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 384 kB
  • ctags: 209
  • sloc: sh: 2,347; cpp: 1,541; makefile: 48
file content (38 lines) | stat: -rw-r--r-- 706 bytes parent folder | download
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
AC_DEFUN(AC_FIND_FILE, [
  $3=NO
  for i in $2; do
    for j in $1; do
      if test -r "$i/$j"; then
        $3=$i
        break 2
      fi
    done
  done
])



AC_DEFUN(AC_ENABLE_DEBUG, [
  AC_ARG_ENABLE(debug,
    [  --enable-debug          enable debug],
    [ with_debug="$enableval"], [with_debug="no"])
  if test "$with_debug" = "no"; then
    CXXFLAGS="`echo $CXXFLAGS | sed s/-g//`"
    CFLAGS="`echo $CFLAGS | sed s/-g//`"
  fi
])



AC_DEFUN(AC_GET_DATA_DIR, [
  if test "$datadir" = '${prefix}/share'; then
    if test "$prefix" = 'NONE'; then
      DATA_DIR="$ac_default_prefix/share"
    else
      DATA_DIR="$prefix/share"
    fi
  else
    DATA_DIR="$datadir"
  fi
  AC_SUBST(DATA_DIR)
])