Ralf Wildenhues wrote:
Hi Carlos,
Please keep the mailing list in Cc:. Thanks!
* Carlos Eduardo Rodrigues Diogenes wrote on Fri, Aug 26, 2005 at 01:15:53PM CEST:
Ralf Wildenhues wrote:
* Carlos Eduardo Rodrigues Diogenes wrote on Thu, Aug 25, 2005 at
Where is defined the AC_DEFINE macro?
This macro is internal to Autoconf. autoconf should be able to find it
in any case.
Here is the configure.ac file that I have, a peace of it:
I saved this snippet, added AC_OUTPUT at the end, removed your error
mark, ran aclocal, automake --add, autoconf, autoheader, ./configure.
(side note: running "aclocal; automake --add; autoconf; autoheader" is
roughly equivalent to running autoreconf for this example.)
Beside the missing definition for XORG_PROG_RAWCPP (which I suppose is
present in your environment) I could not see any problems.
Please try to describe a way to reproduce the issue. Which versions of
the respective autotools did you use?
I'm new to the autotools, so I don't understand very well how to
reproduce the error.
Well, easy: I told you what I tried to do to reproduce it: it did not
show the error. Please do the same steps, in an empty directory, and
see if the error shows up on your system. Report back here.
If the error does not show up, then try to find out the difference
between what you did in you package, and what we tried, so an error
source can be isolated. Clear now?
In the piece of code that I send to you the error realy don't occur, so
I'm sending you the entirely file atached. I put it in a clean an
separated directory and execute the lines that are equivalent to
autoreconf and get the same error.
Do you have any idea of what could be wrong in my system?
Vaguely. But I need your help to make sure.
I have autoconf 2.59, autoheader 2.59, automake 1.9.4 e aclocal 1.9.4
Do you have them installed under the same prefix? What does
type autoconf automake autoheader aclocal
say?
Yes, they are unde the same prefix /usr/bin. If I type autoconf automake
autoheader aclocal in the configure.ac directory everything goes ok.
PS.: Stepan Kasal commented that the error could be in the XORG_...
macro, but I commented it and continue getting the same error.
Thanks,
Carlos.
dnl Copyright 2005 Red Hat, Inc.
dnl
dnl Permission to use, copy, modify, distribute, and sell this software and its
dnl documentation for any purpose is hereby granted without fee, provided that
dnl the above copyright notice appear in all copies and that both that
dnl copyright notice and this permission notice appear in supporting
dnl documentation, and that the name of Red Hat not be used in
dnl advertising or publicity pertaining to distribution of the software without
dnl specific, written prior permission. Red Hat makes no
dnl representations about the suitability of this software for any purpose. It
dnl is provided "as is" without express or implied warranty.
dnl
dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dnl PERFORMANCE OF THIS SOFTWARE.
dnl
dnl Process this file with autoconf to create configure.
AC_PREREQ([2.57])
AC_INIT(xdm,[0.99.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xdm)
AM_INIT_AUTOMAKE([dist-bzip2])
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_INSTALL
AC_CANONICAL_HOST
#XORG_PROG_RAWCPP
AC_FUNC_FORK
AC_CHECK_FUNC(mkstemp, [AC_DEFINE(HAS_MKSTEMP,1,
[Define to 1 if you have the 'mkstemp' function.])])
AC_CHECK_FUNC(getifaddrs, AC_DEFINE(HAS_GETIFADDRS,1,
[Define to 1 if you have the 'getifaddrs' function.]))
AC_CHECK_FUNC(getspnam, AC_DEFINE(USESHADOW,1,
[Define to 1 if you have the shadow password functions.]))
# According to the old Imakefile, FreeBSD has this in libutil
AC_CHECK_FUNC(setproctitle, [HAS_SETPROCTITLE="yes"],
AC_CHECK_LIB(util, setproctitle,
[HAS_SETPROCTITLE="yes" ; XDM_LIBS="$XDM_LIBS -lutil"]))
if test "x$HAS_SETPROCTITLE" = "xyes" ; then
AC_DEFINE(HAS_SETPROCTITLE,1,
[Define to 1 if you have the 'setproctitle' function.])
fi
# According to the old Imakefile, BSD/OS has this in libutil
AC_CHECK_FUNC(setusercontext, [HAS_SETUSERCONTEXT="yes"],
AC_CHECK_LIB(util, setusercontext,
[HAS_SETUSERCONTEXT="yes" ; XDM_LIBS="$XDM_LIBS -lutil"]))
if test "x$HAS_SETUSERCONTEXT" = "xyes" ; then
AC_DEFINE(HAS_SETUSERCONTEXT,1,
[Define to 1 if you have the 'setusercontext' function.])
fi
XTRANS_CONNECTION_FLAGS
dnl Sets $SECURE_RPC to "yes" or "no"
XTRANS_SECURE_RPC_FLAGS
AM_CONDITIONAL(HAS_SECURE_RPC, test x$SECURE_RPC = xyes)
# darwin could have PAM support, but not yet
case $host_os in
darwin*)
use_pam_default=no
;;
*)
use_pam_default=try
;;
esac
# Check for PAM support
AC_ARG_WITH(pam, AC_HELP_STRING([--with-pam],[Use PAM for authentication]),
[USE_PAM=$withval], [USE_PAM=$use_pam_default])
if test "x$USE_PAM" != "xno" ; then
AC_SEARCH_LIBS(pam_open_session,[pam])
AC_CHECK_FUNC(pam_open_session,
[AC_DEFINE(USE_PAM,1,[Use PAM for authentication])],
[if test "x$USE_PAM" != "xtry" ; then
AC_MSG_ERROR(["PAM support requested, but pam_open_session not found."])
fi])
fi
# FIXME: Find better test for which OS'es use su -m - for now, just try to
# mirror the Imakefile setting of:
# if defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture)
case $host_os in
linux*)
OS_CFLAGS="-D_XOPEN_SOURCE"
SU="su"
;;
darwin*)
OS_CFLAGS="-D__DARWIN__ -DNO_LASTLOG"
SU="su -m"
;;
*bsd*)
OS_CFLAGS="-DCSRG_BASED"
SU="su -m"
;;
*)
OS_CFLAGS=
SU="su"
;;
esac
AC_SUBST(SU)
# FIXME: find out how to check for these things. Note that Kerberos was
# turned off everywhere but on OpenBSD.
AM_CONDITIONAL(HAS_KERBEROS_FIVE, false)
AM_CONDITIONAL(HAS_ARC4_RANDOM, false)
# Figure out where everything goes in the filesystem
AC_ARG_WITH(logdir,
AC_HELP_STRING([--with-logdir=<pathname>],
[specify directory for xdm log files (default=/var/log)]),
[XDMLOGDIR="$withval"], [XDMLOGDIR="/var/log"])
AC_SUBST(XDMLOGDIR)
AC_ARG_WITH(piddir,
AC_HELP_STRING([--with-piddir=<pathname>],
[specify directory for xdm pid files (default=/var/run)]),
[XDMPIDDIR="$withval"], [XDMPIDDIR="/var/run"])
AC_SUBST(XDMPIDDIR)
AC_ARG_WITH(default-vt,
AC_HELP_STRING([--with-default-vt=<vtname>],
[specify default vt to start xdm on (default=none)]),
[DEFAULTVT="$withval"], [DEFAULTVT=""])
AC_SUBST(DEFAULTVT)
AC_ARG_WITH(config-type,
AC_HELP_STRING([--with-config-type={ws|fs}],
[default config file type to use - workstation (ws) or fileserver (fs) (default=ws)]),
[SERVERSTYPE="$withval"], [SERVERSTYPE="ws"])
AC_SUBST(SERVERSTYPE)
# Checks for pkg-config packages
PKG_CHECK_EXISTS(xinerama, [
AC_DEFINE([USE_XINERAMA], 1,
[Define to 1 to use XINERAMA in greeter & chooser])
PKG_CHECK_MODULES(XINERAMA, xinerama)
XDM_CFLAGS="$XDM_CFLAGS $XINERAMA_CFLAGS"
XDM_LIBS="$XDM_LIBS $XINERAMA_LIBS"
CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS"
CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS"
])
# XPM logos for the greeter screen
AC_ARG_ENABLE(xpm-logos,
AC_HELP_STRING([--enable-xpm-logos],
[Display xpm logos in greeter (default is YES)]),
[USE_XPM="$enableval"],
PKG_CHECK_EXISTS(xpm, [USE_XPM="yes"], [USE_XPM="no"]))
if test "x$USE_XPM" = "xyes" ; then
PKG_CHECK_MODULES(XPM, xpm)
XDM_CFLAGS="$XDM_CFLAGS $XPM_CFLAGS"
XDM_LIBS="$XDM_LIBS $XPM_LIBS"
AC_DEFINE([XPM], 1,
[Define to 1 to display XPM logos on greeter screen])
fi
AM_CONDITIONAL(USE_XPM, test "x$USE_XPM" = "xyes")
AC_ARG_WITH(color-pixmap,
AC_HELP_STRING([--with-color-pixmap=<filename>],
[specify xpm file to use as color logo (default=xorg.xpm)]),
[XDM_PIXMAP="$withval"], [XDM_PIXMAP="xorg.xpm"])
AC_ARG_WITH(bw-pixmap,
AC_HELP_STRING([--with-bw-pixmap=<filename>],
[specify xpm file to use as black-and-white logo (default=xorg-bw.xpm)]),
[XDM_BWPIXMAP="$withval"], [XDM_BWPIXMAP="xorg-bw.xpm"])
AC_ARG_WITH(pixmapdir,
AC_HELP_STRING([--with-pixmapdir=<pathname>],
[specify directory for xpm files (default=${libdir}/xdm/pixmaps)]),
[XDM_PIXMAPDIR="$withval"], [XDM_PIXMAPDIR='${libdir}/xdm/pixmaps'])
AC_SUBST(XDM_PIXMAP)
AC_SUBST(XDM_BWPIXMAP)
AC_SUBST(XDM_PIXMAPDIR)
#
# XDM
#
XAW_CHECK_XPRINT_SUPPORT(XDM_PRINT)
PKG_CHECK_MODULES(DMCP, xdmcp)
PKG_CHECK_MODULES(XPROTO, xproto)
XDM_CFLAGS="$XDM_CFLAGS $XDM_PRINT_CFLAGS $DMCP_CFLAGS $XPROTO_CFLAGS $OS_CFLAGS"
XDM_LIBS="$XDM_LIBS $XDM_PRINT_LIBS $DMCP_LIBS"
AC_CHECK_LIB(Xdmcp, XdmcpWrap, [xdmauth="yes"], [xdmauth="no"], [$DMCP_LIBS])
AC_SEARCH_LIBS(crypt, crypt)
AM_CONDITIONAL(HAS_XDM_AUTH, test x$xdmauth = xyes)
AC_SUBST(XDM_CFLAGS)
AC_SUBST(XDM_LIBS)
#
# Chooser
#
CHOOSER_CFLAGS="-D_BSD_SOURCE $XDM_PRINT_CFLAGS $XPROTO_CFLAGS"
CHOOSER_LIBS="$CHOOSER_LIBS $XDM_PRINT_LIBS $DMCP_LIBS"
AC_SUBST(CHOOSER_CFLAGS)
AC_SUBST(CHOOSER_LIBS)
XORG_RELEASE_VERSION
AC_OUTPUT([Makefile config/Makefile])
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf