From 02f8788b4ebb369ef7aabf9e75af37c614cf69a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Fri, 4 Feb 2005 00:29:37 +0000 Subject: Albert Chin: >From autoconf.info: In order to support these features, it is essential that `datadir' remains being defined as `${prefix}/share' to depend upon the current value of `prefix'. A corollary is that you should not use these variables except in Makefiles. For instance, instead of trying to evaluate `datadir' in `configure' and hard-coding it in Makefiles using e.g., `AC_DEFINE_UNQUOTED(DATADIR, "$datadir")', you should add `-DDATADIR="$(datadir)"' to your `CPPFLAGS'. svn path=/trunk/; revision=13275 --- configure.in | 9 --------- 1 file changed, 9 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index b51b4e171f..f417af6f82 100644 --- a/configure.in +++ b/configure.in @@ -318,15 +318,6 @@ else AC_MSG_RESULT(no) fi -# Create DATAFILE_DIR #define for config.h -datafiledir=$datadir/ethereal -datafiledir=`( - test "x$prefix" = xNONE && prefix=$ac_default_prefix - test "x$exec_prefix" = xNONE && exec_prefix=${prefix} - eval echo "$datafiledir" -)` -AC_DEFINE_UNQUOTED(DATAFILE_DIR,"$datafiledir", [Directory for data]) - # GTK checks # We don't add $GLIB_LIBS to LIBS, because we don't want to force all # programs to be built with GTK+. -- cgit v1.2.3