1 # Process this file with autoconf to produce a configure script.
3 AC_CONFIG_SRCDIR([74/7400-1.sym])
9 echo Configuring $PACKAGE version $DOTTED_VERSION.$DATE_VERSION
11 # Initialize automake stuff
12 AM_INIT_AUTOMAKE($PACKAGE, $DOTTED_VERSION, no-define)
14 #########################################################################
15 # Command line flags start
17 # Change default location for rc files
18 AC_ARG_WITH(rcdir, [ --with-rcdir=path Change where the system-*rc files are installed], [opt_rcdir=$withval])
20 # --with-docdir : tells where to store documentation if not default
23 # Command line flags end
24 #########################################################################
26 #########################################################################
28 # Misc win32 / mingw checks and variables start
31 # Figure out if we are building on win32 and what environment.
33 *mingw32* ) echo "Configuring for mingw"; MINGW=yes ;;
36 if ! test "$MINGW" = "no" -o "$MINGW"x = x; then
44 # Misc win32 / mingw checks and variables end
45 #########################################################################
47 #########################################################################
48 # Check for fig2dev, groff, ps2pdf start
51 AC_PATH_PROG(FIG2DEV, fig2dev, no, ${PATH})
52 if test $FIG2DEV = "no"; then
53 echo "Cannot find fig2dev (transfig), some documentation will not be created."
57 AC_PATH_PROG(GROFF, groff, no, ${PATH})
58 if test $GROFF = "no"; then
59 echo "Cannot find groff, some documentation will not be created."
63 AC_PATH_PROG(PS2PDF, ps2pdf, no, ${PATH})
64 if test $PS2PDF = "no"; then
65 echo "Cannot find ps2pdf, some documentation will not be created."
69 # Check for fig2dev, groff, ps2pdf end
70 #########################################################################
72 #########################################################################
73 # Do individual library files start
76 # Some of our own macros for setting up library files
77 AC_DEFUN([GEDA_DECLARE_SYMLIB],
79 data$1=`ls -1 $srcdir/$1 | grep -v Makefile | grep -v ChangeLog \
80 | grep -v CVS | grep -v "\\.cvsignore" \
82 | grep -v "\\~" | grep -v "\\.orig"`
87 GEDA_DECLARE_SYMLIB(4000)
88 GEDA_DECLARE_SYMLIB(national)
89 GEDA_DECLARE_SYMLIB(local)
90 GEDA_DECLARE_SYMLIB(io)
91 GEDA_DECLARE_SYMLIB(amphenol)
92 GEDA_DECLARE_SYMLIB(analog)
93 GEDA_DECLARE_SYMLIB(maxim)
94 GEDA_DECLARE_SYMLIB(verilog)
95 GEDA_DECLARE_SYMLIB(vhdl)
96 GEDA_DECLARE_SYMLIB(spice)
97 GEDA_DECLARE_SYMLIB(connector)
98 GEDA_DECLARE_SYMLIB(altera)
99 GEDA_DECLARE_SYMLIB(linear)
100 GEDA_DECLARE_SYMLIB(switch)
101 GEDA_DECLARE_SYMLIB(switcap)
102 GEDA_DECLARE_SYMLIB(titleblock)
103 GEDA_DECLARE_SYMLIB(tube)
104 GEDA_DECLARE_SYMLIB(radio)
105 GEDA_DECLARE_SYMLIB(micro)
106 GEDA_DECLARE_SYMLIB(memory)
107 GEDA_DECLARE_SYMLIB(74)
108 GEDA_DECLARE_SYMLIB(relay)
109 GEDA_DECLARE_SYMLIB(diode)
110 GEDA_DECLARE_SYMLIB(opto)
111 GEDA_DECLARE_SYMLIB(bus)
112 GEDA_DECLARE_SYMLIB(supervisor)
113 GEDA_DECLARE_SYMLIB(lattice)
114 GEDA_DECLARE_SYMLIB(misc)
115 GEDA_DECLARE_SYMLIB(transistor)
116 GEDA_DECLARE_SYMLIB(power)
117 GEDA_DECLARE_SYMLIB(philips)
118 GEDA_DECLARE_SYMLIB(xilinx)
119 GEDA_DECLARE_SYMLIB(dec)
120 GEDA_DECLARE_SYMLIB(rf)
121 GEDA_DECLARE_SYMLIB(pla)
122 GEDA_DECLARE_SYMLIB(ecl)
123 GEDA_DECLARE_SYMLIB(IEC417)
124 GEDA_DECLARE_SYMLIB(font)
125 GEDA_DECLARE_SYMLIB(idt)
126 GEDA_DECLARE_SYMLIB(diode)
127 GEDA_DECLARE_SYMLIB(opto)
128 GEDA_DECLARE_SYMLIB(cascade)
129 GEDA_DECLARE_SYMLIB(asic)
130 GEDA_DECLARE_SYMLIB(asicpads)
131 GEDA_DECLARE_SYMLIB(gnetman)
132 GEDA_DECLARE_SYMLIB(minicircuits)
133 GEDA_DECLARE_SYMLIB(st)
134 GEDA_DECLARE_SYMLIB(apex)
135 GEDA_DECLARE_SYMLIB(allegro)
136 GEDA_DECLARE_SYMLIB(irf)
138 # Do individual library files start
139 #########################################################################
141 #########################################################################
142 # gEDA/gaf specify setup start
145 GEDADATADIR=$datadir/$DATADIR
147 if eval "test x$opt_rcdir = x"; then
148 # path not was specified with --with-rcdir
149 GEDARCDIR=$GEDADATADIR
151 # path WAS specified with --with-rcdir
152 GEDARCDIR="$opt_rcdir"
155 # Expand the prefix variable
156 # I don't like the way this is done, but it works (I hope).
157 if eval "test x$prefix = xNONE"; then
158 dprefix=$ac_default_prefix
163 gedadocdir=$dprefix/share/doc/geda-doc
164 AC_ARG_WITH(docdir, [ --with-docdir Where to store documentation if not default.], gedadocdir=$withval)
165 expandgedadocdir=`echo $gedadocdir`
166 GEDADOCDIR=$expandgedadocdir
168 # gEDA/gaf specify setup end
169 #########################################################################
171 AC_SUBST(DATE_VERSION)
172 AC_SUBST(DOTTED_VERSION)
173 AC_SUBST(GEDADATADIR)
222 minicircuits/Makefile
227 documentation/Makefile ])
231 expandedGEDADATADIR=`eval "echo $GEDADATADIR"`
232 expandedGEDARCDIR=`eval "echo $GEDARCDIR"`
233 expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
236 ** Configuration summary for $PACKAGE $DOTTED_VERSION.$DATE_VERSION:
238 data directory: $expandedGEDADATADIR
239 rc directory: $expandedGEDARCDIR
240 documentation directory: $expandedGEDADOCDIR