xref: /Universal-ctags/Units/parser-autoconf.r/simple.ac.d/input.ac (revision 3261ddc70ce5bb6ad632905931861b270da9dcd1)
1AC_INIT([universal-ctags],[0.0.0])
2AH_TEMPLATE([TMPDIR],
3	[If you wish to change the directory in which temporary files are stored,
4	define this label to the directory desired.])
5AC_DEFUN([CHECK_HEADER_DEFINE], [
6	AC_MSG_CHECKING([if $1 is defined in $2])
7	AC_EGREP_CPP([$2:$1],
8[
9#include <$2>
10#ifdef $1
11const char *result_yes = "$2:$1";
12#endif
13], [
14	AC_MSG_RESULT(yes)
15	[$3]
16], [
17	AC_MSG_RESULT(no)
18	[$4]
19]) ])
20AC_ARG_WITH([ctags-libexecdir],
21	[AS_HELP_STRING([--with-ctags-libexecdir=DIR],
22		['universal-ctags'-specific program executables [LIBEXECDIR/ctags]])])
23AC_ARG_ENABLE(tmpdir,
24	[AS_HELP_STRING([--enable-tmpdir=DIR],
25		[default directory for temporary files [ARG=/tmp]])],
26	tmpdir_specified=yes)
27AC_SUBST([pkgsysconfdir])
28AC_SUBST([pkglibexecdir])
29AM_CONDITIONAL(INSTALL_LIB, [test "x$enable_readlib" = "xyes"])
30AM_CONDITIONAL(INSTALL_ETAGS, [test "x$enable_etags" = "xyes"])
31AM_CONDITIONAL(USE_READCMD, [test "x$enable_readcmd" = "xyes"])
32
33dnl AC_MSG_NOTICE(Change with $program_transform_name)
34ctags_name_executable=`echo ctags | sed "$program_transform_name"`
35AC_SUBST(ctags_name_executable)
36etags_name_executable=`echo etags | sed "$program_transform_name"`
37AC_SUBST(etags_name_executable)
38
39AC_DEFINE_UNQUOTED(ETAGS, "$etags_name_executable")
40
41# Check for host type
42case "$host" in
43  i?86-*-mingw* | x86_64-*-mingw*)
44	host_mingw=yes
45	AC_DEFINE(MSDOS_STYLE_PATH)
46	;;
47esac
48