root/lang/scheme/gauche/bindings/mecab/trunk/configure.ac

Revision 117, 2.4 kB (checked in by naoya_t, 15 years ago)
Line 
1dnl
2dnl Configuring Gauche-mecab
3dnl  process this file with autoconf to generate 'configure'.
4dnl $Id: configure.ac,v 1.3 2009/03/02 03:52:45 shirok Exp $
5dnl
6
7AC_PREREQ(2.54)
8AC_INIT(Gauche-mecab, 1.0, shiro@acm.org)
9dnl If you want to use the system name (OS, architecture, etc) in the
10dnl configure, uncomment the following line.  In such a case, you need
11dnl to copy config.guess and config.sub from automake distribution.
12dnl AC_CANONICAL_SYSTEM
13
14dnl Replace @LOCAL_PATHS@ by --with-local option.
15AC_ARG_WITH(local,
16  AC_HELP_STRING([--with-local=PATH:PATH...],
17                 [For each PATH, add PATH/include to the include search
18paths and PATH/lib to the library search paths.  Useful if you have some
19libraries installed in non-standard places. ]),
20  [
21    case $with_local in
22      yes|no|"") ;;  #no effect
23      *) LOCAL_PATHS=$with_local ;;
24    esac
25  ])
26AC_SUBST(LOCAL_PATHS)
27
28dnl Set up gauche related commands.  The commands are set by scanning
29dnl PATH.  You can override them by "GOSH=/my/gosh ./configure" etc.
30AC_PATH_PROG([GOSH], gosh)
31AC_PATH_PROG([GAUCHE_CONFIG], gauche-config)
32AC_PATH_PROG([GAUCHE_PACKAGE], gauche-package)
33AC_PATH_PROG([GAUCHE_INSTALL], gauche-install)
34AC_PATH_PROG([GAUCHE_CESCONV], gauche-cesconv)
35
36dnl Usually these parameters are set by AC_PROG_CC, but we'd rather use
37dnl the same one as Gauche has been compiled with.
38SOEXT=`$GAUCHE_CONFIG --so-suffix`
39OBJEXT=`$GAUCHE_CONFIG --object-suffix`
40EXEEXT=`$GAUCHE_CONFIG --executable-suffix`
41AC_SUBST(SOEXT)
42AC_SUBST(OBJEXT)
43AC_SUBST(EXEEXT)
44
45ac_default_prefix=`$GAUCHE_CONFIG --prefix`
46
47GAUCHE_PKGINCDIR=`$GAUCHE_CONFIG --pkgincdir`
48GAUCHE_PKGLIBDIR=`$GAUCHE_CONFIG --pkglibdir`
49GAUCHE_PKGARCHDIR=`$GAUCHE_CONFIG --pkgarchdir`
50AC_SUBST(GAUCHE_PKGINCDIR)
51AC_SUBST(GAUCHE_PKGLIBDIR)
52AC_SUBST(GAUCHE_PKGARCHDIR)
53
54dnl Check for headers.
55dnl Add your macro calls to check required headers, if you have any.
56
57dnl Check for other programs.
58dnl Add your macro calls to check existence of programs, if you have any.
59
60dnl Check for libraries
61dnl Add your macro calls to check required libraries, if you have any.
62
63dnl Creating gpd (gauche package description) file
64GAUCHE_PACKAGE_CONFIGURE_ARGS="`echo ""$ac_configure_args"" | sed 's/[\\""\`\$]/\\\&/g'`"
65AC_MSG_NOTICE([creating ${PACKAGE_NAME}.gpd])
66$GAUCHE_PACKAGE make-gpd "$PACKAGE_NAME" \
67  -version "$PACKAGE_VERSION" \
68  -configure "./configure $GAUCHE_PACKAGE_CONFIGURE_ARGS"
69
70dnl Output
71echo $PACKAGE_VERSION > VERSION
72AC_OUTPUT(Makefile)
73
Note: See TracBrowser for help on using the browser.