1 AC_INIT([cde-desktop], [2.3.1], [jon@radscan.com])
2 AC_CONFIG_HEADERS([include/autotools_config.h])
3 AC_CONFIG_MACRO_DIRS([m4])
4 AM_INIT_AUTOMAKE([foreign])
5 AC_PREFIX_DEFAULT(/usr/dt)
8 dnl todo: determine what version of autoconf we depend on
13 dnl global CDE versioning
23 dnl These OS checks are deprecated and should be replaced with feature checks
62 AM_CONDITIONAL([LINUX], [test "$build_linux" = "yes"])
63 AM_CONDITIONAL([BSD], [test "$build_bsd" = "yes"])
64 AM_CONDITIONAL([FREEBSD], [test "$build_freebsd" = "yes"])
65 AM_CONDITIONAL([OPENBSD], [test "$build_openbsd" = "yes"])
66 AM_CONDITIONAL([NETBSD], [test "$build_netbsd" = "yes"])
67 AM_CONDITIONAL([SOLARIS], [test "$build_solaris" = "yes"])
68 AM_CONDITIONAL([AIX], [test "$build_aix" = "yes"])
69 AM_CONDITIONAL([HPUX], [test "$build_hpux" = "yes"])
71 dnl set CSRG_BASED define for the BSD's
72 if test "$build_bsd" = "yes"
75 CPPFLAGS="$oflags -DCSRG_BASED"
85 case "$target_or_host" in
101 ppc-*-linux* | powerpc-*)
106 AM_CONDITIONAL([I386], [test "$is_i386" = yes])
107 AM_CONDITIONAL([X86_64], [test "$is_x86_64" = yes])
108 AM_CONDITIONAL([ARM], [test "$is_arm" = yes])
109 AM_CONDITIONAL([SPARC], [test "$is_sparc" = yes])
110 AM_CONDITIONAL([MIPS], [test "is_mips" = yes])
111 AM_CONDITIONAL([PPC], [test "is_ppc" = yes])
113 dnl our main libraries
114 AC_SUBST(LIBTT, '$(top_builddir)/lib/tt/lib/libtt.la')
115 AC_SUBST(LIBXIN, '$(top_builddir)/lib/DtXinerama/libDtXinerama.a')
116 AC_SUBST(LIBWIDGET, '$(top_builddir)/lib/DtWidget/libDtWidget.la')
117 AC_SUBST(LIBTERM, '$(top_builddir)/lib/DtTerm/libDtTerm.la')
118 AC_SUBST(LIBSVC, '$(top_builddir)/lib/DtSvc/libDtSvc.la')
119 AC_SUBST(LIBSEARCH, '$(top_builddir)/lib/DtSearch/lbiDtSearch.la')
120 AC_SUBST(LIBPRINT, '$(top_builddir)/lib/DtPrint/libDtPrint.la')
121 AC_SUBST(LIBMRM, '$(top_builddir)/lib/DtMrm/libDtMrm.la')
122 AC_SUBST(LIBMMDB, '$(top_builddir)/lib/DtMmdb/libDtMmdb.la')
123 AC_SUBST(LIBHELP, '$(top_builddir)/lib/DtHelp/libDtHelp.la')
124 AC_SUBST(LIBCSA, '$(top_builddir)/lib/csa/libcsa.la')
126 dnl JET FIXME/CHECKME
127 AC_SUBST(XTOOLLIB, "-lICE -lSM -lXt")
129 AC_ARG_ENABLE(japanese, [--build-japanese Build Japanese (default=no)])
130 AM_CONDITIONAL([JAPANESE], [test "build_japanese" = "yes"])
132 AC_ARG_ENABLE(german, [--build-german Build German (default=no)])
133 AM_CONDITIONAL([GERMAN], [test "build_german" = "yes"])
135 AC_ARG_ENABLE(italian, [--build-italian Build Italian (default=no)])
136 AM_CONDITIONAL([ITALIAN], [test "build_italian" = "yes"])
138 AC_ARG_ENABLE(french, [--build-french Build French (default=no)])
139 AM_CONDITIONAL([FRENCH], [test "build_french" = "yes"])
141 AC_ARG_ENABLE(spanish, --build-spanish Build Spanish (default=no)])
142 AM_CONDITIONAL([SPANISH], [test "build_spanish" = "yes"])
147 CDE_LOGFILES_TOP=/var/dt
148 CDE_CONFIGURATION_TOP=/etc/dt
151 AC_SUBST(CDE_CONFIGURATION_TOP)
152 AC_SUBST(CDE_LOGFILES_TOP)
153 AC_SUBST(CDE_USER_TOP)
176 AC_CHECK_PROGS(KSH, ksh)
177 AC_CHECK_PROGS(BDFTOPCF, bdftopcf)
178 AC_CHECK_PROGS(MKFONTIDR, mkfontdir)
179 AC_CHECK_PROGS(GZIP, gzip)
180 AC_CHECK_PROGS(M4, m4)
186 AC_CHECK_LIB(tirpc, main, [TIRPCINC="-DOPT_TIRPC -I/usr/include/tirpc"; TIRPCLIB=-ltirpc])
190 dnl All of the makefiles we need to generate go here...
196 lib/DtXinerama/Makefile
199 lib/tt/mini_isam/Makefile
202 lib/tt/lib/api/Makefile
203 lib/tt/lib/api/dnd/Makefile
204 lib/tt/lib/api/c/Makefile
205 lib/tt/lib/tttk/Makefile
206 lib/tt/lib/db/Makefile
207 lib/tt/lib/mp/Makefile
208 lib/tt/lib/util/Makefile
210 lib/tt/bin/shell/Makefile
211 lib/tt/bin/ttauth/Makefile
212 lib/tt/bin/scripts/Makefile
213 lib/tt/bin/tttar/Makefile
214 lib/tt/bin/tt_type_comp/Makefile
215 lib/tt/bin/tttrace/Makefile
216 lib/tt/bin/dbck/Makefile
217 lib/tt/bin/ttdbserverd/Makefile
218 lib/tt/bin/ttsession/Makefile
221 lib/DtSvc/DtUtil1/Makefile
222 lib/DtSvc/DtUtil2/Makefile
223 lib/DtSvc/DtEncap/Makefile
224 lib/DtSvc/DtCodelibs/Makefile
225 lib/DtSvc/DtXpm/Makefile
227 lib/DtSearch/Makefile
228 lib/DtSearch/raima/Makefile
230 lib/DtWidget/Makefile
233 lib/DtHelp/il/Makefile
237 lib/DtTerm/Term/Makefile
239 lib/DtTerm/TermView/Makefile
240 lib/DtTerm/util/Makefile
241 lib/DtTerm/TermPrim/Makefile