File: configure.in

package info (click to toggle)
mp3c 0.29-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 2,156 kB
  • ctags: 489
  • sloc: ansic: 12,749; sh: 3,799; makefile: 98; sed: 16
file content (78 lines) | stat: -rw-r--r-- 1,944 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
dnl configure.in for mp3c, WSPse 15 Apr 2004
AC_INIT(src/main.c)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mp3c,0.29)

dnl Available languages
ALL_LINGUAS="de es it pl pt"

AC_PROG_CC
AC_ISC_POSIX
AC_PROG_INSTALL
AC_PROG_MAKE_SET

AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h sys/time.h unistd.h \
		 linux/cdrom.h sys/cdio.h signal.h string.h ctype.h \
		 time.h dirent.h sys/stat.h sys/types.h sys/wait.h \
		 errno.h libintl.h locale.h)
AC_CHECK_LIB(ncurses, main)
AC_CHECK_LIB(intl, main)
dnl AC_FUNC_ALLOCA

dnl AM_GNU_GETTEXT
AM_GNU_GETTEXT([external])

cddbpath=/opt/kde/share/apps/kscd/cddb
AC_MSG_CHECKING(where to store CDDB-entries)
AC_ARG_WITH(cddb-path, [  --with-cddb-path=<path> to set cddb-path],
[
  cddbpath=${withval}
],[
  if ! test -d "$cddbpath"; then
    cddbpath=$KDEDIR/share/apps/kscd/cddb
  fi
  if ! test -d "$cddbpath"; then
    cddbpath=/usr/X11R6/lib/X11/xmcd/cddb
  fi
  if ! test -d "$cddbpath"; then
    cddbpath=/usr/local/X11R6/lib/X11/xmcd/cddb
  fi
  if ! test -d "$cddbpath"; then
    cddbpath=/usr/lib/xmcd/cddb
  fi
  if ! test -d "$cddbpath"; then
    cddbpath=/usr/local/lib/xmcd/cddb
  fi
  if ! test -d "$cddbpath"; then
    cddbpath=/usr/share/xmcd/cddb
  fi
  if ! test -d "$cddbpath"; then
    cddbpath=/usr/local/share/xmcd/cddb
  fi
  
  if ! test -d "$cddbpath"; then
    cddbpath="~/.cddb"
  fi
])
AC_MSG_RESULT($cddbpath)
AC_DEFINE_UNQUOTED([CONF_CDDB_PATH], "${cddbpath}", [where should we store CDDB-entries])

AC_MSG_CHECKING(whether to use OGG as default)
AC_ARG_ENABLE(oggdefaults, [  --enable-oggdefaults    use OGG parameters as default],
[
	if test "$enableval" = "yes"; then
		AC_DEFINE([OGG_AS_DEFAULT],1,[whether to use OGG as default])
		AC_MSG_RESULT(yes)
	else
		AC_MSG_RESULT(no)
	fi
],[
	AC_MSG_RESULT(no)
])

CFLAGS="$CFLAGS -Wall"

AC_OUTPUT(doc/Makefile doc/mp3c.1 patches/Makefile m4/Makefile \
	  po/Makefile.in src/Makefile src/mp3creat.h Makefile)