From ea870017f9fc4294d548c0654c3b757a1d764cc3 Mon Sep 17 00:00:00 2001 From: stevewilliams Date: Sat, 24 Feb 2001 21:11:01 +0000 Subject: [PATCH] Move library files and headers to an sdcc subdirectory. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@653 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- configure | 24 ++++++++++++++++++------ configure.in | 23 +++++++++++++++++------ device/include/Makefile.in | 7 ++++--- device/lib/Makefile.in | 27 ++++++++++++++------------- 4 files changed, 53 insertions(+), 28 deletions(-) diff --git a/configure b/configure index 1b577790..139bf14c 100755 --- a/configure +++ b/configure @@ -2454,21 +2454,31 @@ if test "${prefix}" = "NONE"; then fi config_in=`pwd` +sdcc_datadir=${datadir}/sdcc + + +# For some unknown reason, putting this assignment in a subshell +# like this causes the rvalue to be fully substituted. We need this +# for the defines below to generate the right thing. We keep this +# separate from the substituted sdcc_datadir because we want the +# latter for makefiles. if test "${datadir}" = "\${prefix}/share"; then - sdcc_datadir=${prefix}/share + sdcc_datadir_tmp=${prefix}/share else - sdcc_datadir=${datadir} + sdcc_datadir_tmp=${datadir} fi + + cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <