1 # Process this file with autoconf to produce a configure script.
6 echo Configuring $PACKAGE version $VERSION
9 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
13 # Checks for libraries.
15 # Checks for header files.
17 # Checks for typedefs, structures, and compiler characteristics.
19 # Checks for library functions.
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
33 gedadocdir=$dprefix/share/doc/geda-doc
34 # --with-docdir : tells where to store documentation if not default
36 [ --with-docdir Where to store documentation if not default.],
38 expandgedadocdir=`echo $gedadocdir`
39 GEDADOCDIR=$expandgedadocdir
43 AC_DEFUN([GEDA_DECLARE_DOCS],
45 data$1=`find $srcdir/$1 -name \* -print \
46 | sed "s%\.\./wiki/%%" \
47 | sed "s%\.\./wiki%%" \
48 | sed "s%\./wiki/%%" \
50 | grep -v Makefile | grep -v ChangeLog \
51 | grep -v CVS | grep -v "\\.cvsignore" \
53 | grep -v "\\~" | grep -v "\\.orig"`
58 GEDA_DECLARE_DOCS(wiki)
60 AC_CONFIG_FILES([Makefile
62 toplevel/gedadocs.html
63 gsch2pcb_tutorial/Makefile
64 gsch2pcb_tutorial/images/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
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
85 expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
88 ** Configuration summary for $PACKAGE $VERSION:
90 documentation directory: $expandedGEDADOCDIR