File: configure.ac

package info (click to toggle)
geda-examples 1%3A1.4.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,088 kB
  • ctags: 27
  • sloc: sh: 556; makefile: 119; python: 38
file content (52 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Process this file with autoconf to produce a configure script.
AC_INIT
AC_CONFIG_SRCDIR([gTAG/gTAG.sch])
AC_PREREQ(2.54)

PACKAGE=geda-examples
DOTTED_VERSION=1.4.0
DATE_VERSION=20080127
echo Configuring $PACKAGE version $DOTTED_VERSION.$DATE_VERSION

# Initialize automake 
AM_INIT_AUTOMAKE($PACKAGE, $DOTTED_VERSION, no-define)


# Expand the prefix variable
# I don't like the way this is done, but it works (I hope).
if eval "test x$prefix = xNONE"; then
 dprefix=$ac_default_prefix
else
 dprefix=$prefix
fi

gedadocdir=$dprefix/share/doc/geda-doc
# --with-docdir : tells where to store documentation if not default
AC_ARG_WITH(docdir,
    [  --with-docdir      Where to store documentation if not default.],
	gedadocdir=$withval)
expandgedadocdir=`echo $gedadocdir`
GEDADOCDIR=$expandgedadocdir
AC_SUBST(GEDADOCDIR)

AC_SUBST(DATE_VERSION)
AC_SUBST(DOTTED_VERSION)

AC_CONFIG_FILES([ 
        Makefile 
        gTAG/Makefile 
        lightning_detector/Makefile 
        lightning_detector/sym/Makefile 
        RF_Amp/Makefile 
        RF_Amp/model/Makefile 
        RF_Amp/sym/Makefile 
        TwoStageAmp/Makefile 
        TwoStageAmp/models/Makefile 
        TwoStageAmp/sym/Makefile ])

AC_OUTPUT 

AC_MSG_RESULT([
** Configuration complete for $PACKAGE $DOTTED_VERSION.$DATE_VERSION
])