2 # Process this file with autoconf to produce a configure script.
3 # $Id: configure.ac 16 2008-01-09 10:28:32Z ace $
7 AC_INIT(fortune-my, 0.1, ace@momiage.org)
10 AC_PATH_PROGS(NKF,nkf)
11 AC_PATH_PROGS(STRFILE,strfile)
12 AC_PATH_PROGS(SUDO,sudo)
17 [--with-encode=type], [euc,utf8 (default utf8)]),
18 if test x${withval} == 'xutf8' ; then
20 elif test x$withval == xeuc; then
23 AC_MSG_ERROR(strange encode type)
26 if test x$ENCODE == x; then
30 AC_ARG_WITH(fortunes-dir,
32 [--with-fortunes-dir=PATH], [fortunes data dir.]),
35 if test x$DATADIR == x; then
36 if test -d /usr/share/games/fortunes; then
37 DATADIR=/usr/share/games/fortunes/my
38 elif test -d /usr/share/games/fortune; then
39 DATADIR=/usr/share/games/fortune/my
41 AC_MSG_ERROR([fortunes data directory can't find.
42 Please use --with-fortunes-dir=dir.])
46 #if test x$fortunes_dir == x; then
47 # AC_PATH_TOOL(DATADIR, fortunes,,[/usr/share/games/fortunes,/usr/share/games/fortune])
48 # if test "x$DATADIR" == x; then
49 # AC_MSG_ERROR([fortunes data directory cannot found.
50 # Please use --with-fortunes-dir=dir.])
54 # Checks for libraries.
56 # Checks for header files.
58 # Checks for typedefs, structures, and compiler characteristics.
60 # Checks for library functions.
65 AC_CONFIG_FILES(Makefile)
67 AC_CONFIG_FILES(txt2.sh)