-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
83 lines (70 loc) · 1.93 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
AC_INIT([xmada], [0.3], [[email protected]])
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_SRCDIR([source/xlib/xlib.ads])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([foreign 1.8])
XMADA_MAJOR_VERSION=0
XMADA_MINOR_VERSION=3
AC_SUBST(XMADA_MAJOR_VERSION)
AC_SUBST(XMADA_MINOR_VERSION)
XMADAXLIBLIBVERSIONINFO=0:3:0
XMADAXTLIBVERSIONINFO=0:3:0
XMADAXMLIBVERSIONINFO=0:3:0
XMADAXMLLIBVERSIONINFO=0:3:0
AC_SUBST(XMADAXLIBLIBVERSIONINFO)
AC_SUBST(XMADAXTLIBVERSIONINFO)
AC_SUBST(XMADAXMLIBVERSIONINFO)
AC_SUBST(XMADAXMLLIBVERSIONINFO)
AM_ENABLE_SHARED(yes)
AM_ENABLE_STATIC(no)
AM_PROG_LIBTOOL
## Find all required X, X Toolkit Intrinsics and Motif.
AC_PATH_X
if test "$x_includes" != "" ; then
CFLAGS="$CFLAGS -I$x_includes"
fi
if test "$x_libraries" != "" ; then
LIBS="-L$x_libraries $LIBS"
XMADACONFIGLIBPATHS="-L$x_libraries"
fi
AC_CHECK_LIB(X11, XCreateGC)
AC_CHECK_LIB(Xt, XtMalloc)
DX_PATH_XM
if test "$xm_includes" != "" ; then
CFLAGS="$CFLAGS -I$xm_includes"
fi
if test "$xm_libraries" != "" ; then
LIBS="-L$xm_libraries $LIBS"
if test "$XMADACONFIGLIBPATHS" != "-L$xm_libraries"; then
XMADACONFIGLIBPATHS="-L$xm_libraries $XMADACONFIGLIBPATHS"
fi
fi
AC_CHECK_LIB(Xm, XmGetDestination)
AM_PROG_WORKING_ADA
AM_CROSS_PROG_WORKING_ADA
AM_HAS_GNAT_SYMBOLIC_TRACEBACK
AM_MAINTAINER_MODE
AC_SUBST(SED)
##########################################
# Output generated files
##########################################
AC_CONFIG_FILES([adacompiler], [chmod +x adacompiler])
AC_CONFIG_FILES([adalinker], [chmod +x adalinker])
AC_CONFIG_FILES([linker], [chmod +x linker])
AC_OUTPUT([
Makefile
microline/Makefile
microline/XmL/Makefile
source/Makefile
source/designer/Makefile
source/designer/designer
source/designer/designer-setup.adb
source/xlib/Makefile
source/xlib/extensions/Makefile
source/xlib/extensions/input/Makefile
source/xlib/extensions/print/Makefile
source/xt/Makefile
source/xm/Makefile
source/xml/Makefile
xmada-config
])