You are not logged in.

#1 2013-01-26 06:25:31

Joel
Member
From: Tijuana, BC, México
Registered: 2011-12-21
Posts: 81

Need @prefix@ in my config.h

Hello, this my configure.ac

AC_INIT([auto-example], [0.1], [some@mail.com])
AM_INIT_AUTOMAKE([1.10 no-define foreign])
AC_DEFINE([PACKAGE_DATADIR],[$(prefix)],[Package data directory])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_CHECK_HEADERS([stdio.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

when running autoreconf --force --install I get all the files generated, but running ./configure --prefix=/home/me/, the prefix is not write it on my config.h
I'm just getting:

/* Package data directory */
#define PACKAGE_DATADIR $(prefix)

How can I print the correct path?

Note: I'm not using a user-defined config.h.in, autoheader generates it from configure.ac


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
* AUR contributor.

Offline

Board footer

Powered by FluxBB