use AC_LIBOBJ() to set LIBOBJS variable, since newer autoconf's barf on
2003-01-31 James Henstridge <james@daa.com.au> * acinclude.m4 (GNOME_SUPPORT_CHECKS): use AC_LIBOBJ() to set LIBOBJS variable, since newer autoconf's barf on direct access. This also takes care of setting LTLIBOBJS for us.
This commit is contained in:
committed by
James Henstridge
parent
9d43d5d272
commit
fce31c179d
@@ -1,3 +1,9 @@
|
|||||||
|
2003-01-31 James Henstridge <james@daa.com.au>
|
||||||
|
|
||||||
|
* acinclude.m4 (GNOME_SUPPORT_CHECKS): use AC_LIBOBJ() to set
|
||||||
|
LIBOBJS variable, since newer autoconf's barf on direct access.
|
||||||
|
This also takes care of setting LTLIBOBJS for us.
|
||||||
|
|
||||||
2003-01-29 Abel Cheung <maddog@linux.org.hk>
|
2003-01-29 Abel Cheung <maddog@linux.org.hk>
|
||||||
|
|
||||||
* configure.in: Added ar to ALL_LINGUAS
|
* configure.in: Added ar to ALL_LINGUAS
|
||||||
|
21
acinclude.m4
21
acinclude.m4
@@ -477,8 +477,8 @@ fi
|
|||||||
|
|
||||||
if test -n "$list_mounted_fs" && test $space != no; then
|
if test -n "$list_mounted_fs" && test $space != no; then
|
||||||
DF_PROG="df"
|
DF_PROG="df"
|
||||||
# LIBOBJS="$LIBOBJS fsusage.o"
|
# AC_LIBOBJ(fsusage)
|
||||||
# LIBOBJS="$LIBOBJS mountlist.o"
|
# AC_LIBOBJ(mountlist)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
|
# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
|
||||||
@@ -517,10 +517,9 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[
|
|||||||
# this should go away soon
|
# this should go away soon
|
||||||
need_gnome_support=yes
|
need_gnome_support=yes
|
||||||
|
|
||||||
save_LIBOBJS="$LIBOBJS"
|
AC_CHECK_FUNCS(getopt_long,,
|
||||||
LIBOBJS=
|
[AC_LIBOBJ(getopt)
|
||||||
|
AC_LIBOBJ(getopt1)])
|
||||||
AC_CHECK_FUNCS(getopt_long,,LIBOBJS="$LIBOBJS getopt.o getopt1.o")
|
|
||||||
|
|
||||||
# for `scandir'
|
# for `scandir'
|
||||||
AC_HEADER_DIRENT
|
AC_HEADER_DIRENT
|
||||||
@@ -545,7 +544,7 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[
|
|||||||
AC_REPLACE_FUNCS(memmove mkstemp scandir strcasecmp strerror strndup strnlen)
|
AC_REPLACE_FUNCS(memmove mkstemp scandir strcasecmp strerror strndup strnlen)
|
||||||
AC_REPLACE_FUNCS(strtok_r strtod strtol strtoul vasprintf vsnprintf)
|
AC_REPLACE_FUNCS(strtok_r strtod strtol strtoul vasprintf vsnprintf)
|
||||||
|
|
||||||
AC_CHECK_FUNCS(realpath,,LIBOBJS="$LIBOBJS canonicalize.o")
|
AC_CHECK_FUNCS(realpath,,AC_LIBOBJ(canonicalize))
|
||||||
|
|
||||||
# to include `error.c' error.c has some HAVE_* checks
|
# to include `error.c' error.c has some HAVE_* checks
|
||||||
AC_CHECK_FUNCS(vprintf doprnt strerror_r)
|
AC_CHECK_FUNCS(vprintf doprnt strerror_r)
|
||||||
@@ -555,9 +554,8 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[
|
|||||||
am_cv_lib_error_at_line=yes,
|
am_cv_lib_error_at_line=yes,
|
||||||
am_cv_lib_error_at_line=no)])
|
am_cv_lib_error_at_line=no)])
|
||||||
if test $am_cv_lib_error_at_line = no; then
|
if test $am_cv_lib_error_at_line = no; then
|
||||||
LIBOBJS="$LIBOBJS error.o"
|
AC_LIBOBJ(error)
|
||||||
fi
|
fi
|
||||||
AC_SUBST(LIBOBJS)dnl
|
|
||||||
|
|
||||||
# This is required if we declare setreuid () and setregid ().
|
# This is required if we declare setreuid () and setregid ().
|
||||||
AC_TYPE_UID_T
|
AC_TYPE_UID_T
|
||||||
@@ -572,13 +570,8 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[
|
|||||||
#endif
|
#endif
|
||||||
])
|
])
|
||||||
|
|
||||||
# Turn our LIBOBJS into libtool objects. This is gross, but it
|
|
||||||
# requires changes to autoconf before it goes away.
|
|
||||||
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
|
|
||||||
AC_SUBST(need_gnome_support)
|
AC_SUBST(need_gnome_support)
|
||||||
AC_SUBST(LTLIBOBJS)
|
|
||||||
|
|
||||||
LIBOBJS="$save_LIBOBJS"
|
|
||||||
AM_CONDITIONAL(BUILD_GNOME_SUPPORT, test "$need_gnome_support" = yes)
|
AM_CONDITIONAL(BUILD_GNOME_SUPPORT, test "$need_gnome_support" = yes)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user