Re: gnome-libs/support/argp-help.c fails to compile
- From: Kjartan Maraas <kmaraas fib hl no>
- To: John Ellis <johne bellatlantic net>
- CC: "gnome-list gnome org" <gnome-list gnome org>
- Subject: Re: gnome-libs/support/argp-help.c fails to compile
- Date: Wed, 20 May 1998 14:30:12 +0000
John Ellis wrote:
>
> In my usual rebuilds of gnome, while building gnome-libs I ran into:
> (This is the latest code from CVS)
>
I had the same problem. It seems the new check for program_invocation_*
is
wrong somewhere.
I just backed out this new check and it compiled fine.
Patch attached.
Cheers
Kjartan
--- gnome-support.m4 Wed May 20 16:24:48 1998
+++ gnome-support.m4.new Wed May 20 16:26:08 1998
@@ -38,38 +38,38 @@
# for `scandir'
AC_HEADER_DIRENT
-# AC_CACHE_CHECK([for program_invocation_short_name], gnome_cv_short_name, [
-# AC_TRY_LINK([#include <errno.h>],[
-# char *foo = program_invocation_short_name],
-# gnome_cv_short_name=yes, gnome_cv_short_name=no)])
-# if test "$gnome_cv_short_name" = yes; then
-# AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
-# fi
+ AC_CACHE_CHECK([for program_invocation_short_name], gnome_cv_short_name, [
+ AC_TRY_LINK([#include <errno.h>],[
+ char *foo = program_invocation_short_name],
+ gnome_cv_short_name=yes, gnome_cv_short_name=no)])
+ if test "$gnome_cv_short_name" = yes; then
+ AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
+ fi
-# AC_CACHE_CHECK([for program_invocation_name], gnome_cv_invocation_name, [
-# AC_TRY_LINK([#include <errno.h>],[
-# char *foo = program_invocation_name],
-# gnome_cv_invocation_name=yes, gnome_cv_invocation_name=no)])
-# if test "$gnome_cv_invocation_name" = yes; then
-# AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME)
-# fi
+ AC_CACHE_CHECK([for program_invocation_name], gnome_cv_invocation_name, [
+ AC_TRY_LINK([#include <errno.h>],[
+ char *foo = program_invocation_name],
+ gnome_cv_invocation_name=yes, gnome_cv_invocation_name=no)])
+ if test "$gnome_cv_invocation_name" = yes; then
+ AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME)
+ fi
- # copied from `configure.in' of `libiberty'
- vars="program_invocation_short_name program_invocation_name sys_errlist"
- for v in $vars; do
- AC_MSG_CHECKING([for $v])
- AC_CACHE_VAL(gnome_cv_var_$v,
- [AC_TRY_LINK([int *p;], [extern int $v; p = &$v;],
- [eval "gnome_cv_var_$v=yes"],
- [eval "gnome_cv_var_$v=no"])])
- if eval "test \"`echo '$gnome_cv_var_'$v`\" = yes"; then
- AC_MSG_RESULT(yes)
- n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- AC_DEFINE_UNQUOTED($n)
- else
- AC_MSG_RESULT(no)
- fi
- done
+# # copied from `configure.in' of `libiberty'
+# vars="program_invocation_short_name program_invocation_name sys_errlist"
+# for v in $vars; do
+# AC_MSG_CHECKING([for $v])
+# AC_CACHE_VAL(gnome_cv_var_$v,
+# [AC_TRY_LINK([int *p;], [extern int $v; p = &$v;],
+# [eval "gnome_cv_var_$v=yes"],
+# [eval "gnome_cv_var_$v=no"])])
+# if eval "test \"`echo '$gnome_cv_var_'$v`\" = yes"; then
+# AC_MSG_RESULT(yes)
+# n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+# AC_DEFINE_UNQUOTED($n)
+# else
+# AC_MSG_RESULT(no)
+# fi
+# done
AC_CHECK_FUNCS(vsnprintf,,[
AC_CHECK_FUNCS(__vsnprintf,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]