1 # Process this file with autoconf to produce a configure script.
6 echo Configuring $PACKAGE version $VERSION
9 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
11 ############################################################################
12 # Check for various doc processing programs start
16 AC_PATH_PROG(LATEX, latex, no, ${PATH})
17 if test $LATEX = "no"; then
18 echo "Cannot find latex -- documentation cannot be created"
19 echo "Install latex or install the prepared geda-docs package"
22 AC_PATH_PROG(DVIPS, dvips, no, ${PATH})
23 AC_PATH_PROG(DVI2PS, dvi2ps, no, ${PATH})
25 if test $DVIPS = "no" -a $DVI2PS = "no"; then
26 echo "Cannot find dvips or dvi2ps -- documentation cannot be created"
27 echo "Install dvips or dvi2ps or install the prepared geda-docs package"
30 AC_PATH_PROG(LATEX2HTML, latex2html, no, ${PATH})
31 if test $LATEX2HTML = "no"; then
32 echo "Cannot find latex2html -- documentation cannot be created"
33 echo "Install latex2html or install the prepared geda-docs package"
36 AC_PATH_PROG(PS2PDF, ps2pdf, no, ${PATH})
37 if test $PS2PDF = "no"; then
38 echo "Cannot find pdf2ps -- documentation cannot be created"
39 echo "Install pdf2ps or install the prepared geda-docs package"
43 # Check for various doc processing programs end
44 ############################################################################
47 # Checks for libraries.
49 # Checks for header files.
51 # Checks for typedefs, structures, and compiler characteristics.
53 # Checks for library functions.
59 # Expand the prefix variable
60 # I don't like the way this is done, but it works (I hope).
61 if eval "test x$prefix = xNONE"; then
62 dprefix=$ac_default_prefix
67 gedadocdir=$dprefix/share/doc/geda-doc
68 # --with-docdir : tells where to store documentation if not default
70 [ --with-docdir Where to store documentation if not default.],
72 expandgedadocdir=`echo $gedadocdir`
73 GEDADOCDIR=$expandgedadocdir
76 AC_CONFIG_FILES([Makefile
83 pads_backannotate/Makefile
89 tragesym_tutorial/Makefile
90 gsch2pcb_tutorial/Makefile
91 gsch2pcb_tutorial/images/Makefile
93 toplevel/gedadocs.html
97 expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
100 ** Configuration summary for $PACKAGE $VERSION:
102 documentation directory: $expandedGEDADOCDIR