File: acinclude.m4

package info (click to toggle)
minicom 2.1-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,712 kB
  • ctags: 1,667
  • sloc: ansic: 18,440; sh: 3,081; makefile: 379; yacc: 318
file content (18 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl $Id: acinclude.m4,v 1.1.1.1 2003/03/30 18:55:35 al-guest Exp $
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")
])