File: acinclude.m4

package info (click to toggle)
xmms-crossfade 0.2.9-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,340 kB
  • ctags: 488
  • sloc: sh: 8,700; ansic: 4,176; makefile: 92
file content (24 lines) | stat: -rw-r--r-- 422 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
dnl Some handy functions

dnl Try a list of directories, set the first one found
dnl Usage: AC_CHECK_DIRS(DIRECTORY..., ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)

AC_DEFUN(AC_CHECK_DIRS,
[
for ac_dir in $1
do
AC_MSG_CHECKING([for directory ${ac_dir}])
if test -d ${ac_dir}
then
  AC_MSG_RESULT(yes)
  ifelse([$2], , :, [$2])
  break
else
  AC_MSG_RESULT(no)
fi
done
if test ! -d ${ac_dir}
then
  ifelse([$3], , :, [$3])
fi
])