File: configure.ac

package info (click to toggle)
geda-doc 1%3A1.4.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,344 kB
  • ctags: 1,363
  • sloc: sh: 742; makefile: 145
file content (95 lines) | stat: -rw-r--r-- 2,462 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Process this file with autoconf to produce a configure script.
AC_INIT
AC_CONFIG_SRCDIR([wiki/index.html])
AC_PREREQ(2.54)

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

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

# Check for programs.

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.


# Other variables
#

# 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_DEFUN([GEDA_DECLARE_DOCS],
 [
        data$1=`find $srcdir/$1 -name \* -print \
				 | sed "s%\.\./wiki/%%" \
				 | sed "s%\.\./wiki%%" \
				 | sed "s%\./wiki/%%" \
				 | sed "s%\./wiki%%" \
				 | grep -v Makefile | grep -v ChangeLog \
                                 | grep -v CVS | grep -v "\\.cvsignore" \
                                 | grep -v README \
                                 | grep -v "\\~" | grep -v "\\.orig"`
        data$1=`echo $data$1`
        AC_SUBST(data$1)
 ])

GEDA_DECLARE_DOCS(wiki)

AC_CONFIG_FILES([Makefile 
		 toplevel/Makefile 
		 toplevel/gedadocs.html 
                 scripts/Makefile 
                 wiki/Makefile 
		 wiki/_detail/Makefile
 		 wiki/_media/Makefile
		 wiki/lib/exe/Makefile
		 wiki/lib/images/interwiki/Makefile
		 wiki/lib/images/fileicons/Makefile
		 wiki/lib/images/smileys/Makefile
		 wiki/lib/images/Makefile
		 wiki/lib/tpl/geda/images/Makefile
		 wiki/lib/tpl/geda/Makefile
		 wiki/lib/tpl/Makefile
		 wiki/lib/plugins/note/images/Makefile
		 wiki/lib/plugins/note/Makefile
		 wiki/lib/plugins/definitionlist/images/Makefile
		 wiki/lib/plugins/definitionlist/Makefile
	 	 wiki/lib/plugins/Makefile
		 wiki/lib/Makefile ])
AC_OUTPUT

expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`

AC_MSG_RESULT([
** Configuration summary for $PACKAGE $DOTTED_VERSION.$DATE_VERSION:

   documentation directory:          $expandedGEDADOCDIR
])