diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-09-10 12:26:05 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-09-10 12:26:05 +0000 |
commit | 9ea43f778f39b4ffbefae420cb26bedc44063244 (patch) | |
tree | 72063808a0ff71ad6b70ebf1cb060537f99945b9 | |
parent | e3a8660392b937c00bb42507c5e0df85b76d7076 (diff) | |
download | cflow-9ea43f778f39b4ffbefae420cb26bedc44063244.tar.gz cflow-9ea43f778f39b4ffbefae420cb26bedc44063244.tar.bz2 |
Remove definition of HAVE_DECL_PROGRAM_INVOCATION_NAME and PROGRAM_INVOCATION_NAME_DECLARED. Temporarly add AM_MKINSTALLDIRS
-rw-r--r-- | configure.ac | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/configure.ac b/configure.ac index c91b6f7..2326343 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -39,33 +39,10 @@ AC_CHECK_HEADERS([stdlib.h string.h unistd.h locale.h]) | |||
39 | AC_FUNC_ERROR_AT_LINE | 39 | AC_FUNC_ERROR_AT_LINE |
40 | AC_CHECK_FUNCS([memmove memset strdup strerror strtol setlocale]) | 40 | AC_CHECK_FUNCS([memmove memset strdup strerror strtol setlocale]) |
41 | 41 | ||
42 | # Dirty hack: make sure HAVE_DECL_PROGRAM_INVOCATION_NAME is defined | ||
43 | # This must be done before gl_ARGP, which attempts | ||
44 | # an AC_CHECK_DECLS([program_invocation_name), because autoconf machinery | ||
45 | # gives preference to the first definition, in spite of what the comment | ||
46 | # at autoconf/status.m4:574 sais | ||
47 | AC_DEFINE([HAVE_DECL_PROGRAM_INVOCATION_NAME], 1) | ||
48 | |||
49 | cflow_GNULIB | 42 | cflow_GNULIB |
50 | MU_DEBUG_MODE | 43 | MU_DEBUG_MODE |
51 | 44 | ||
52 | AH_TEMPLATE([PROGRAM_INVOCATION_NAME_DECLARED], | ||
53 | [Is program_invocation_name declared in the system headers.]) | ||
54 | |||
55 | # This variable should have been set in m4/argp.m4 | ||
56 | if test "$ac_cv_have_decl_program_invocation_name" = no; then | ||
57 | AC_LIBOBJ([pin]) | ||
58 | AC_DEFINE_UNQUOTED([PROGRAM_INVOCATION_NAME_DECLARED],0) | ||
59 | else | ||
60 | AC_DEFINE_UNQUOTED([PROGRAM_INVOCATION_NAME_DECLARED],1) | ||
61 | fi | ||
62 | |||
63 | |||
64 | AH_BOTTOM([ | 45 | AH_BOTTOM([ |
65 | #if !PROGRAM_INVOCATION_NAME_DECLARED | ||
66 | extern char *program_invocation_short_name; | ||
67 | extern char *program_invocation_name; | ||
68 | #endif | ||
69 | /* program_name is used by lib/error.c */ | 46 | /* program_name is used by lib/error.c */ |
70 | #define program_name program_invocation_name | 47 | #define program_name program_invocation_name |
71 | #include <errno.h> | 48 | #include <errno.h> |
@@ -80,6 +57,7 @@ fi | |||
80 | AC_SUBST(lisp_LISP) | 57 | AC_SUBST(lisp_LISP) |
81 | 58 | ||
82 | # Gettext. | 59 | # Gettext. |
60 | AM_MKINSTALLDIRS | ||
83 | AM_GNU_GETTEXT([external], [need-ngettext]) | 61 | AM_GNU_GETTEXT([external], [need-ngettext]) |
84 | AM_GNU_GETTEXT_VERSION(0.14.1) | 62 | AM_GNU_GETTEXT_VERSION(0.14.1) |
85 | 63 | ||