autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help on configuration file creation


From: Claudio Eterno
Subject: help on configuration file creation
Date: Fri, 28 Sep 2012 09:17:59 +0200

First of all I apologize for my low knowledge on autotools. These are my
first steps..
Question: I'm developing a package for embedded application and I prepared
the configure.ac in order to do it..
The creation of the file reaches but there are too much defines (some of
them not specifically required).
My configure.ac contain this:
AC_INIT([shmtest],[1.1.0],address@hidden)
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_PROG_CC
AC_CONFIG_HEADERS([sapl/shm_apl_config.h])
AC_CHECK_HEADERS()
AC_CONFIG_FILES([Makefile])
AC_PROG_YACC
AC_SUBST([YACC], [bison])

AC_ARG_ENABLE(linux,
    AS_HELP_STRING([--enable-linux],[build parser debugging code]),
    [AC_DEFINE(LINUXDEBUG,1,[enable for debug on linux])
     AC_DEFINE(YYDEBUG,1,[Enable parser debugging])],
    [AC_DEFINE(YYTYPE_UINT8,uint8_t,[typedef for bison parser])
     AC_DEFINE(YYTYPE_INT8,int8_t,[typedef for bison parser])
     AC_DEFINE(YYTYPE_UINT16,uint16_t,[typedef for bison parser])
     AC_DEFINE(YYTYPE_INT16,int16_t,  [typedef for bison parser])])


AC_TYPE_SIZE_T
AC_MSG_RESULT($YACC)
AC_OUTPUT

What I obtain contain this:
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1


Can I remove these creation?
Thank you,
Claudio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]