1 AC_INIT([cde-desktop], [2.3.1], [jon@radscan.com])
2 AC_CONFIG_HEADERS([include/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 CFLAGS="$oflags -DCSRG_BASED"
77 CXXFLAGS="$oflags -DCSRG_BASED"
87 case "$target_or_host" in
103 ppc-*-linux* | powerpc-*)
108 AM_CONDITIONAL([I386], [test "$is_i386" = yes])
109 AM_CONDITIONAL([X86_64], [test "$is_x86_64" = yes])
110 AM_CONDITIONAL([ARM], [test "$is_arm" = yes])
111 AM_CONDITIONAL([SPARC], [test "$is_sparc" = yes])
112 AM_CONDITIONAL([MIPS], [test "is_mips" = yes])
113 AM_CONDITIONAL([PPC], [test "is_ppc" = yes])
115 LIBTT="$srcdir/lib/tt/lib/libtt.so.2.1"
116 LIBXIN="$srcdir/lib/DtXinerama/libDtXinerama.a"
117 LIBWIDGET="$srcdir/lib/DtWidget/libDtWidget.so.2.1"
118 LIBTERM="$srcdir/lib/DtTerm/libDtTerm.so.2.1"
119 LIBSVC="$srcdir/lib/DtSvc/libDtSvc.so.2.1"
120 LIBSEARCH="$srcdir/lib/DtSearch/lbiDtSearch.so.2.1"
121 LIBPRINT="$srcdir/lib/DtPrint/libDtPrint.so.2.1"
122 LIBMRM="$srcdir/lib/DtMrm/libDtMrm.so.2.1"
123 LIBMMDB="$srcdir/lib/DtMmdb/libDtMmdb.so.2.1"
124 LIBHELP="$srcdir/lib/DtHelp/libDtHelp.so.2.1"
125 LIBCSA="$srcdir/lib/csa/libcsa.so.2.1"
126 XTOOLLIB=-lICE -lSM -lXt
141 AC_ARG_ENABLE(japanese, [--build-japanese Build Japanese (default=no)])
142 AM_CONDITIONAL([JAPANESE], [test "build_japanese" = "yes"])
144 AC_ARG_ENABLE(german, [--build-german Build German (default=no)])
145 AM_CONDITIONAL([GERMAN], [test "build_japanese" = "yes"])
147 AC_ARG_ENABLE(italian, [--build-italian Build Italian (default=no)])
148 AM_CONDITIONAL([ITALIAN], [test "build_italian" = "yes"])
150 AC_ARG_ENABLE(french, [--build-french Build French (default=no)])
151 AM_CONDITIONAL([FRENCH], [test "build_french" = "yes"])
153 AC_ARG_ENABLE(spanish, --build-spanish Build Spanish (default=no)])
154 AM_CONDITIONAL([FRENCH], [test "build_french" = "yes"])
159 CDE_LOGFILES_TOP=/var/dt
160 CDE_CONFIGURATION_TOP=/etc/dt
163 AC_SUBST(CDE_CONFIGURATION_TOP)
164 AC_SUBST(CDE_LOGFILES_TOP)
165 AC_SUBST(CDE_USER_TOP)
187 AC_CHECK_PROGS(KSH, ksh)
188 AC_CHECK_PROGS(BDFTOPCF, bdftopcf)
189 AC_CHECK_PROGS(MKFONTIDR, mkfontdir)
190 AC_CHECK_PROGS(GZIP, gzip)
191 AC_CHECK_PROGS(M4, m4)
197 AC_CHECK_LIB(tirpc, main, [TIRPCINC="-DOPT_TIRPC -I/usr/include/tirpc"; TIRPCLIB=-ltirpc])
201 dnl All of the makefiles we need to generate go here...
207 lib/DtXinerama/Makefile
210 lib/tt/mini_isam/Makefile
213 lib/tt/lib/api/Makefile
214 lib/tt/lib/api/dnd/Makefile
215 lib/tt/lib/api/c/Makefile
216 lib/tt/lib/tttk/Makefile
217 lib/tt/lib/db/Makefile
218 lib/tt/lib/mp/Makefile
219 lib/tt/lib/util/Makefile
221 lib/tt/bin/shell/Makefile
222 lib/tt/bin/ttauth/Makefile
223 lib/tt/bin/scripts/Makefile
224 lib/tt/bin/tttar/Makefile
225 lib/tt/bin/tt_type_comp/Makefile
226 lib/tt/bin/tttrace/Makefile
227 lib/tt/bin/dbck/Makefile
228 lib/tt/bin/ttdbserverd/Makefile
229 lib/tt/bin/ttsession/Makefile
232 lib/DtSvc/DtUtil1/Makefile
233 lib/DtSvc/DtUtil2/Makefile
234 lib/DtSvc/DtEncap/Makefile
235 lib/DtSvc/DtCodelibs/Makefile
236 lib/DtSvc/DtXpm/Makefile
238 lib/DtSearch/Makefile
239 lib/DtSearch/raima/Makefile
241 lib/DtWidget/Makefile
244 lib/DtHelp/il/Makefile
248 lib/DtTerm/Term/Makefile
250 lib/DtTerm/TermView/Makefile
251 lib/DtTerm/util/Makefile
252 lib/DtTerm/TermPrim/Makefile