summaryrefslogtreecommitdiff
path: root/games-puzzle/xwelltris/files/xwelltris-1.0.1-configure-autoconf-2.72.patch
blob: bfcfd9ddd3c30c5dc95596a17316c489a15276c9 (plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Drop incorrectly quoted chunks which aren't relevant for remotely modern
systems. Breaks with autoconf-2.72/9999.
--- a/configure.in
+++ b/configure.in
@@ -48,24 +48,6 @@ dnl On SCO Unix, there are ELF and COFF binaries.  We want elf to
 dnl provide for dlopen() and friends.  With help from Tamas Laufer!
 dnl ****************************************************************
 
-case "$ARCH" in
-    *sco*|*SCO*)
-        AC_MSG_CHECKING("SCO-Unix.  See if we need -belf")
-        old_cflags="$CFLAGS"
-        CFLAGS="$CFLAGS -belf"
-        AC_TRY_COMPILE(
-        [
-        ],
-        [
-        ],
-        CMFLAGS="$CMFLAGS -belf"
-        AC_MSG_RESULT(yes),
-        AC_MSG_RESULT(no)
-        CFLAGS="$old_cflags")
-        ;;
-esac
-
-
 dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
@@ -105,23 +87,22 @@ fi
 
 
 AC_ARG_WITH(sdl, [  --with-sdl              Turn on SDL support instead of X11],
-              sdl_support=yes,
-              sdl_support=no)
+              [sdl_support=yes],
+              [sdl_support=no])
 
-if test "x$sdl_support" = "xyes"; then
+AS_IF([test "x$sdl_support" = "xyes"], [
     echo "SDL is ENABLED *******************"
     IFACEOBJS='$(SDLOBJS)'
     IFACELIBS='`sdl-config --libs` -lSDL_image'
     IFACEINC='`sdl-config --cflags` -I./sdl'
-else
+], [
     echo "X11 is ENABLED *******************"
     AC_PATH_X
     AC_PATH_XTRA
     IFACEOBJS='$(X11OBJS) $(X11IMAGE)'
     IFACELIBS='$(XLIBS)'
     IFACEINC='$(XINC) -I./x11'
-fi
-
+])
 
 out_lib=${LIBS}
 
@@ -169,47 +150,6 @@ MCOMMON=./src/Make.common
 AC_SUBST_FILE(MCOMMON)
 
 
-dnl Some specific OS stuff
-
-case "$ARCH" in
-  *hppa*|*hpux*)
-        # do nothing
-        ;;
-  *solaris*)
-        if test "$GCC" = "yes"; then
-		AC_MSG_CHECKING("whether we need -fpermissive")
-		old_cflags="$CFLAGS"
-		CFLAGS="-fpermissive $CFLAGS"
-		AC_TRY_RUN(
-		main()
-		{ exit(0);
-		},
-	        if grep 'option `-fpermissive'"'" config.log >/dev/null; then
-	           AC_MSG_RESULT(no)
-	           CFLAGS="$old_cflags"
-	        else
-	           CFLAGS="$old_cflags -fpermissive"
-	           AC_MSG_RESULT(yes)
-	        fi,
-	        AC_MSG_RESULT(no)
-	        CFLAGS="$old_cflags",
-	        AC_MSG_RESULT(no)
-	        CFLAGS="$old_cflags")
-        fi
-        ;;
-  *aix*)
-        # do nothing
-        ;;
-  *darwin*)
-        # do nothing
-	;;
-  *)
-        # do nothing
-        ;;
-esac
-
-
-
 AC_CONFIG_HEADER(src/include/config.h)
 AC_OUTPUT( \
     src/Make.common \