Removed old files
[geda-gaf/peter-b.git] / docs / configure.ac
blobf80f04e6dead0b123eb34d34999fccc1354bf3e9
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT
4 VERSION=20070216
5 PACKAGE=geda-docs
6 echo Configuring $PACKAGE version $VERSION
8 # Init automake
9 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
11 # Check for programs.
13 # Checks for libraries.
15 # Checks for header files.
17 # Checks for typedefs, structures, and compiler characteristics.
19 # Checks for library functions.
22 # Other variables
25 # Expand the prefix variable
26 # I don't like the way this is done, but it works (I hope).
27 if eval "test x$prefix = xNONE"; then
28  dprefix=$ac_default_prefix
29 else
30  dprefix=$prefix
33 gedadocdir=$dprefix/share/doc/geda-doc
34 # --with-docdir : tells where to store documentation if not default
35 AC_ARG_WITH(docdir,
36     [  --with-docdir      Where to store documentation if not default.],
37         gedadocdir=$withval)
38 expandgedadocdir=`echo $gedadocdir`
39 GEDADOCDIR=$expandgedadocdir
40 AC_SUBST(GEDADOCDIR)
43 AC_DEFUN([GEDA_DECLARE_DOCS],
44  [
45         data$1=`find $srcdir/$1 -name \* -print \
46                                  | sed "s%\.\./wiki/%%" \
47                                  | sed "s%\.\./wiki%%" \
48                                  | sed "s%\./wiki/%%" \
49                                  | sed "s%\./wiki%%" \
50                                  | grep -v Makefile | grep -v ChangeLog \
51                                  | grep -v CVS | grep -v "\\.cvsignore" \
52                                  | grep -v README \
53                                  | grep -v "\\~" | grep -v "\\.orig"`
54         data$1=`echo $data$1`
55         AC_SUBST(data$1)
56  ])
58 GEDA_DECLARE_DOCS(wiki)
60 AC_CONFIG_FILES([Makefile 
61                  toplevel/Makefile 
62                  toplevel/gedadocs.html 
63                  gsch2pcb_tutorial/Makefile 
64                  gsch2pcb_tutorial/images/Makefile
65                  scripts/Makefile 
66                  wiki/Makefile 
67                  wiki/_detail/Makefile
68                  wiki/_media/Makefile
69                  wiki/lib/exe/Makefile
70                  wiki/lib/images/interwiki/Makefile
71                  wiki/lib/images/fileicons/Makefile
72                  wiki/lib/images/smileys/Makefile
73                  wiki/lib/images/Makefile
74                  wiki/lib/tpl/default/images/Makefile
75                  wiki/lib/tpl/default/Makefile
76                  wiki/lib/tpl/Makefile
77                  wiki/lib/plugins/note/images/Makefile
78                  wiki/lib/plugins/note/Makefile
79                  wiki/lib/plugins/definitionlist/images/Makefile
80                  wiki/lib/plugins/definitionlist/Makefile
81                  wiki/lib/plugins/Makefile
82                  wiki/lib/Makefile ])
83 AC_OUTPUT
85 expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
87 AC_MSG_RESULT([
88 ** Configuration summary for $PACKAGE $VERSION:
90    documentation directory:          $expandedGEDADOCDIR