From 0e5c325ca431d3f66584b0be32e353bcf37303a6 Mon Sep 17 00:00:00 2001 From: mszulecki Date: Wed, 13 Jun 2007 22:59:27 +0000 Subject: Make libtool use GDC and fix CC variable usage. git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@30 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- configure.ac | 25 +++++++++++++------------ src/Makefile.am | 2 -- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 6ae4eaf..8c6a6bd 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,19 @@ AM_MAINTAINER_MODE AC_GNU_SOURCE +dnl Check for GNU D Compiler +AC_PATH_PROG(GDC, "gdc", no) + +if test "x$GDC" = "xno"; then + AC_MSG_ERROR([No D compiler found]) +fi + +AC_SUBST(GDC) +AC_SUBST(GDC_VERSION,[$($GDC --version | grep -P -o "(?<=\()gdc (.*?)(?=,)")]) + +CC=$GDC +DFLAGS="-g -O2" + AC_PROG_INSTALL AC_PROG_LIBTOOL @@ -27,18 +40,6 @@ else AC_SUBST(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale") fi -dnl Check for GNU D Compiler -AC_PATH_PROG(GDC, "gdc", no) - -if test "x$GDC" = "xno"; then - AC_MSG_ERROR([No D compiler found]) -fi - -AC_SUBST(GDC) -AC_SUBST(GDC_VERSION,[$($GDC --version | grep -P -o "(?<=\()gdc (.*?)(?=,)")]) - -DFLAGS="-g -O2" - dnl Should I generate the documentation? AC_ARG_ENABLE(doc, AS_HELP_STRING(--disable-doc, do not generate documentation),, [ diff --git a/src/Makefile.am b/src/Makefile.am index 7a990f3..c6dcb3a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,3 @@ -CC=gdc - lib_LTLIBRARIES = libtestshlibrary.la libtestshlibrary_la_SOURCES = testshlibrary.d libtestshlibrary_la_LDFLAGS = -version-info 0:0:0 -- cgit v1.1-32-gdbae