File: acinclude.m4

package info (click to toggle)
gnomehack 1.0.5-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 10,256 kB
  • ctags: 12,966
  • sloc: ansic: 119,783; yacc: 2,002; sh: 610; lex: 417; makefile: 397
file content (18 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

dnl ---------------------------------------------------------------
dnl AC_DEFINE_DIR(VARNAME, DIR)

dnl defines (with AC_DEFINE) VARNAME to the expansion of the DIR
dnl variable, expanding ${prefix} and such
dnl example: AC_DEFINE_DIR(DATADIR, datadir)
dnl by Alexandre Oliva <oliva@dcc.unicamp.br>

AC_DEFUN(AC_DEFINE_DIR, [
        ac_expanded=`(
            test "x$prefix" = xNONE && prefix="$ac_default_prefix"
            test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
            eval echo \""[$]$2"\"
        )`
        AC_DEFINE_UNQUOTED($1, "$ac_expanded")
])