File: configure.in

package info (click to toggle)
eflite 0.3.8-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 272 kB
  • ctags: 180
  • sloc: ansic: 1,653; makefile: 91
file content (80 lines) | stat: -rw-r--r-- 2,446 bytes parent folder | download | duplicates (2)
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
79
80
dnl Much of this code stolen from Festival Lite's configure.in

AC_INIT(es.h)

AC_PROG_CC

if test "x$GCC" = "xyes"; then
	CFLAGS="$CFLAGS -Wall"
fi

AC_CHECK_LIB(socket,connect)
AC_SEARCH_LIBS(pthread_create,pthread c_r)

AC_ARG_VAR(flite_dir, Prefix for Festival Lite files)

dnl If flite_dir was not specified, then try to guess a value
if test "x$flite_dir" = x; then
  if test -f /usr/local/lib/libflite.a; then
    flite_dir=/usr/local
  elif test -f /usr/lib/libflite.a; then
    flite_dir=/usr
  elif test -f /opt/flite/lib/libflite.a; then
    flite_dir=/opt
  elif test -f $HOME/flite-1.2-release/lib/libflite.a; then
    flite_dir=$HOME/flite-1.2-release
  elif test -f $HOME/flite-1.1-release/lib/libflite.a; then
    flite_dir=$HOME/flite-1.1-release
  elif test -f /usr/src/flite-1.1-release/lib/libflite.a; then
    flite_dir=/usr/src/flite-1.1-release;
  elif test -f /usr/local/src/flite-1.1-release/lib/libflite.a; then
    flite_dir=/usr/local/src/flite-1.1-release;
  else
    AC_MSG_ERROR(Cannot locate libflite.a.  Please specify flite_dir explicitly (see INSTALL).  If you do not have FLite headers and libraries available, then compile FLite and re-run configure.)
    fi
  fi

echo Using $flite_dir as FLite prefix.

AC_ARG_VAR(flite_include_dir, Directory of Festival Lite include files)

dnl If flite_include_dir was not specified, then try to guess a value
if test "x$flite_include_dir" = x; then
  if test -f $flite_dir/include/flite/cst_voice.h; then
    flite_include_dir=$flite_dir/include/flite
  elif test -f $flite_dir/include/cst_voice.h; then
    flite_include_dir=$flite_dir/include
  else
    AC_MSG_ERROR(Cannot locate cst_voice.h.  Please specify flite_include_dir explicitly.)
  fi
fi

echo Using $flite_include_dir as FLite include directory.

dnl
dnl language/lexicon/voice parameters (we don't really support multiple
dnl ones yet, but its included as a start
dnl
AC_ARG_WITH( lang, [  --with-lang           with language ],
        FL_LANG=$with_lang )
if test "x$with_lang" = "x"; then
        FL_LANG="usenglish"
fi
AC_SUBST(FL_LANG)

AC_ARG_WITH( vox, [  --with-vox            with vox ],
        FL_VOX=$with_vox )
if test "x$with_vox" = "x"; then
        FL_VOX="cmu_us_kal"
fi
AC_SUBST(FL_VOX)

AC_ARG_WITH( lex, [  --with-lex            with lexicon ],
        FL_LEX=$with_lex )
if test "x$with_lex" = "x"; then
        FL_LEX="cmulex"
fi
AC_SUBST(FL_LEX)
AC_SUBST(LIBS)

AC_OUTPUT(Makefile)