ObjFW  Check-in [f1340e44e2]

Overview
Comment:configure: Add --with-ixemul flag

This allows selecting whether to build ObjFW with ixemul or libnix, with
libnix being the default.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f1340e44e258d8f18579cb141f6e196ef7c6df0d2277757bf32ba5b05ea17591
User & Date: js on 2017-05-28 13:36:05
Other Links: manifest | tags
Context
2017-05-28
15:23
MorphOS: Do not include unistd.h when using libnix check-in: ad2c53e367 user: js tags: trunk
13:36
configure: Add --with-ixemul flag check-in: f1340e44e2 user: js tags: trunk
12:54
Only use AmigaDOS directly when not using ixemul check-in: 4258b6f227 user: js tags: trunk
Changes

Modified configure.ac from [49783a723d] to [b5d8fa3661].

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
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













+
+
+





+
+
+
+
+
+
+







AC_INIT(ObjFW, 0.9-dev, js@heap.zone)
BUILDSYS_INIT

AS_IF([test configure.ac -nt configure], [
	AC_MSG_ERROR([configure.ac is newer than configure! Run autoreconf!])
])

AC_CONFIG_SRCDIR(src)
AC_CONFIG_AUX_DIR(build-aux)
AC_CONFIG_MACRO_DIR(build-aux/m4)

AC_CANONICAL_HOST

AC_ARG_WITH(ixemul,
	AS_HELP_STRING([--with-ixemul], [build with ixemul]))

dnl Used to disable checking for -pedantic on some platforms where it's broken
check_pedantic="yes"

case "$host" in
	*-morphos*)
		AS_IF([test x"$with_ixemul" != x"yes"], [
			OBJCFLAGS="$OBJCFLAGS -noixemul"
			LDFLAGS="$LDFLAGS -noixemul"

			AC_SUBST(NOIXEMUL, -noixemul)
		])

		enable_shared="no"
		enable_threads="no"
		;;
	*-msdosdjgpp*)
		enable_shared="no"
		enable_threads="no"
		enable_sockets="no"

Modified utils/objfw-config.in from [e07dd8bfa4] to [1e02df9510].

18
19
20
21
22
23
24
25
26



27
28
29
30
31

32

33
34
35
36
37
38
39
18
19
20
21
22
23
24


25
26
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
-
+
+
+





+
-
+







prefix="@prefix@"
exec_prefix="@exec_prefix@"
libdir="@libdir@"
CFLAGS=""
CPPFLAGS="-I@includedir@"
CXXFLAGS=""
OBJC="@OBJC@"
OBJCFLAGS="@INTEGRATED_AS@ @RUNTIME_FLAGS@ -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -funwind-tables -fconstant-string-class=OFConstantString"
OBJCFLAGS="@NOIXEMUL@ @INTEGRATED_AS@ @RUNTIME_FLAGS@"
OBJCFLAGS="$OBJCLFAGS -fexceptions -fobjc-exceptions -funwind-tables"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"
OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@ @BLOCKS_FLAGS@"
LIB_CFLAGS="@LIB_CFLAGS@"
LIB_LDFLAGS="@LIB_LDFLAGS@"
LIB_PREFIX="@LIB_PREFIX@"
LIB_SUFFIX="@LIB_SUFFIX@"
LDFLAGS="@NOIXEMUL@ @ALLOW_MULTIPLE_DEFINITION@"
LDFLAGS="@ALLOW_MULTIPLE_DEFINITION@ @WEAK_NSFOUNDATIONVERSIONNUMBER@"
LDFLAGS="$LDFLAGS @WEAK_NSFOUNDATIONVERSIONNUMBER@"
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @LIBS@"
PLUGIN_CFLAGS="@PLUGIN_CFLAGS@"
PLUGIN_LDFLAGS="@PLUGIN_LDFLAGS@"
PLUGIN_SUFFIX="@PLUGIN_SUFFIX@"
PROG_SUFFIX="@EXEEXT@"