~ubuntu-branches/ubuntu/wily/steam/wily

« back to all changes in this revision

Viewing changes to sources/configure.ac

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-10-29 19:51:18 UTC
  • mfrom: (1.1.4) (0.1.4 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131029195118-b9bxciz5hwx5z459
Tags: 1:1.0.0.39-2ubuntu1
Add an epoch to the version number as there was an unrelated steam package
in the archive with a higher version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(Makefile.in)
2
 
 
3
 
#
4
 
AC_MSG_CHECKING(For libxml2 includes)
5
 
# check for libxml2 include directories.
6
 
AM_PATH_XML2(2.4.1, AC_DEFINE(HAVE_XML2, 1, [Define if you have XML2 installed]), AC_MSG_ERROR(Failed to find libxml2))
7
 
AC_MSG_RESULT($XML_CFLAGS)
8
 
export XML_CFLAGS
9
 
export CFLAGS
10
 
 
11
 
#check for libxslt include directories
12
 
AC_MSG_CHECKING(Looking for libxslt includes)
13
 
xslhdrdir=no
14
 
for a in /opt/local/include /sw/include /usr/include /usr/local/include /opt/include /opt/sfw/include; do
15
 
    if test -d ${a}; then
16
 
        LIBXSL_INCLUDES="${a}"
17
 
    AC_CHECK_HEADER(${a}/libxslt/xsltconfig.h,xslhdrdir=${a})
18
 
    fi
19
 
done
20
 
 
21
 
if test $xslhdrdir = no ; then
22
 
   AC_MSG_ERROR(Failed to find libxslt include directory)
23
 
fi
24
 
AC_MSG_RESULT(XSL includes in $xslhdrdir)
25
 
 
26
 
LIBXSL_INCLUDE="${xslhdrdir}"
27
 
AC_SUBST(LIBXSL_INCLUDE)
28
 
 
29
 
AC_MSG_CHECKING(for libxslt library)
30
 
xsllibdir=no
31
 
AC_ARG_WITH(xslt-libdir,
32
 
AC_HELP_STRING([--with-xslt-libdir[=xslt-dir]],[Use path for xslt library]),
33
 
[
34
 
                if test -f $withval/libxslt.so; then
35
 
                   xsllibdir=$withval;
36
 
                fi
37
 
])
38
 
if test $xsllibdir = no; then
39
 
  for a in /opt/local/lib /sw/lib /usr/lib /usr/local/lib /opt/lib /lib /opt/sfw/lib /usr/sfw/lib; do
40
 
        if test -f ${a}/libxslt.so; then
41
 
           xsllibdir=${a}
42
 
           LIBS="-lxslt"
43
 
        fi
44
 
        if test -e ${a}/libxslt.dylib; then
45
 
           echo "Found dylib...";
46
 
           xsllibdir=${a}
47
 
           echo $xsllibdir;
48
 
           LIBS="-lxslt"
49
 
        fi
50
 
  done
51
 
fi
52
 
if test $xsllibdir = no; then
53
 
   AC_MSG_ERROR(Failed to find libxslt library.)
54
 
fi
55
 
 
56
 
AC_SUBST(LIBS)
57
 
AC_MSG_RESULT(Found libxslt library in $xsllibdir)
58
 
 
59
 
AC_MSG_CHECKING(Looking for libml2 library)
60
 
xmllibdir=no
61
 
for a in /opt/local/lib /sw/lib /usr/lib /usr/local/lib /opt/lib /lib /opt/sfw/lib /usr/sfw/lib; do
62
 
        if test -f ${a}/libxml2.so; then
63
 
           xmllibdir=${a}
64
 
        fi
65
 
        if test -e ${a}/libxml2.dylib; then
66
 
           xmllibdir=${a}
67
 
        fi
68
 
done
69
 
AC_MSG_RESULT(Found libxml2 library in $xmllibdir)
70
 
LIBDIR="${xsllibdir}:${xmllibdir}"
71
 
XSLLIBDIR="${xsllibdir}"
72
 
XMLLIBDIR="${xmllibdir}"
73
 
AC_SUBST(LIBDIR)
74
 
 
75
 
export XSLLIBDIR
76
 
export XMLLIBDIR
77
 
 
78
 
 
79
 
 
80
 
#get system OS
81
 
AC_CACHE_VAL(steam_sys_os,
82
 
[
83
 
if test "$uname_prog" != "no"; then
84
 
  steam_sys_os="`uname`"
85
 
 
86
 
  case "$steam_sys_os" in
87
 
    SunOS)
88
 
      case "`uname -r`" in
89
 
        5.*) steam_sys_os="Solaris";
90
 
      esac
91
 
    ;;
92
 
    Monterey64)
93
 
      # According to the release notes, the string "Monterey64"
94
 
      # will be changed to "AIX" in the final release.
95
 
      # (Monterey 64 is also known as AIX 5L).
96
 
      steam_sys_os="AIX"
97
 
    ;;
98
 
  esac
99
 
else
100
 
  steam_sys_os="Not Solaris"
101
 
fi
102
 
])
103
 
AC_MSG_RESULT($steam_sys_os)
104
 
AC_SUBST(steam_sys_os)
105
 
echo $steam_sys_os
106
 
AC_PROG_CPP
107
 
# LDSHARED is the ld *command* used to create shared library
108
 
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
109
 
AC_MSG_CHECKING(LDSHARED)
110
 
if test -z "$LDSHARED" ; then
111
 
  case "$steam_sys_os" in
112
 
    AIX*)
113
 
      if test "$GCC" = yes ; then
114
 
        if test "`uname -r`" -ge 2 -a "`uname -v`" -ge 4 ; then
115
 
          LDSHARED="ld -G -bexpall"
116
 
        else if test "`uname -v`" -gt 4 ; then
117
 
            # Extra forward compatibility...
118
 
            # AIX 5+
119
 
            LDSHARED="ld -G -bexpall"
120
 
          else
121
 
            # AIX 4.1 and earlier don't have/have unreliable
122
 
            # handling of dlopen et al.
123
 
            #
124
 
            # Even AIX 4.2.1 has buggy dlopen -- NEVER attempt
125
 
            # to dlopen a file that hasn't been linked with -G.
126
 
            steam_sys_dynamic_loading=no
127
 
            LDSHARED="ld"
128
 
          fi
129
 
        fi
130
 
      else
131
 
        # Dynamic linking turned off for AIX-cc
132
 
        #
133
 
        # In addition, the dynamic loading test seems to
134
 
        # cause our RS/6000 to hang, which causes the
135
 
        # watchdog-timer to PANIC.
136
 
        steam_sys_dynamic_loading=no
137
 
        LDSHARED="ld"
138
 
      fi
139
 
    ;;
140
 
    IRIX*)
141
 
      if test "$GCC" = yes ; then
142
 
        # egcs defaults to building -n32 objects
143
 
        LDSHARED="ld -shared -n32"
144
 
      else
145
 
        LDSHARED="ld -shared"
146
 
      fi
147
 
      # -woff isn't understood by ld on Irix 5.
148
 
      if test "`uname -r`" -ge 6 ; then
149
 
        LDSHARED="$LDSHARED -woff 84,85,134"
150
 
      else :; fi
151
 
    ;;
152
 
    SunOS*) LDSHARED="ld";;
153
 
    Solaris) LDSHARED="/usr/ccs/bin/ld -G";;
154
 
    hp*|HP*) LDSHARED="ld -b";;
155
 
    OSF*) LDSHARED="ld -expect_unresolved '*' -shared -msym -O3";;
156
 
    DYNIX/ptx*) LDSHARED="ld -G";;
157
 
    next*) LDSHARED="$CC $CFLAGS -nostdlib -r";;
158
 
    Linux*) 
159
 
        LDSHARED="ld -E -shared"
160
 
        LDFLAGS=""
161
 
        ;;
162
 
    GNU*) LDSHARED="ld -Bshareable";;
163
 
    FreeBSD*) 
164
 
        LDSHARED="$CC -Wl,-Bshareable"
165
 
        AC_DEFINE(RUNNING_BSD)
166
 
        ;; 
167
 
    Darwin*)
168
 
        LDSHARED="gcc -bundle -bundle_loader ${PIKE} -bind_at_load -flat_namespace -undefined suppress"
169
 
        LDFLAGS="-L$xsllibdir -L$xmllibdir"
170
 
        AC_DEFINE(RUNNING_DARWIN)
171
 
        ;;
172
 
    NetBSD*) 
173
 
        LDSHARED="ld -Bshareable"
174
 
        AC_DEFINE(RUNNING_BSD)
175
 
        ;;
176
 
    OpenBSD*)
177
 
        LDSHARED="ld -Bshareable"
178
 
        AC_DEFINE(RUNNING_BSD)
179
 
        ;;
180
 
    BSD/OS*) LDSHARED="shlicc -r";;
181
 
    SCO_SV*) LDSHARED="cc -G -KPIC -Wl,-Bexport";;
182
 
    UNIX_SV*) LDSHARED="ld -G";;
183
 
    UnixWare*)
184
 
      if test "$GCC" = yes ; then
185
 
        LDSHARED="ld -G"
186
 
      else
187
 
        LDSHARED="cc -G -KPIC -Wl,-Bexport"
188
 
      fi
189
 
    ;;
190
 
    Windows_NT*) LDSHARED="$CC -shared";;
191
 
    *) LDSHARED="ld";;
192
 
  esac
193
 
fi
194
 
AC_MSG_RESULT($LDSHARED)
195
 
AC_SUBST(LDSHARED)
196
 
export steam_sys_os
197
 
 
198
 
export LDSHARED
199
 
export LDFLAGS
200
 
 
201
 
AC_MSG_CHECKING(install Script)
202
 
installprg=none
203
 
for a in /sw/bin /usr/bin /usr/local/bin /opt/bin /bin /opt/sfw/bin /usr/sfw/bin; do
204
 
        if test -x ${a}/install; then
205
 
            installprg=${a}/install
206
 
        fi
207
 
        if test -x ${a}/ginstall; then
208
 
            installprg="${a}/ginstall"
209
 
        fi
210
 
done
211
 
AC_MSG_RESULT(Found $installprg)
212
 
 
213
 
export installprg
214
 
export LIBDIR
215
 
export LIBXML2_INCLUDE
216
 
export LIBXSL_INCLUDE
217
 
echo -n "LDSHARED="
218
 
echo $LDSHARED
219
 
export LDSHARED
220
 
export LIBS
221
 
 
222
 
# Note: also put these in AC_CONFIG_SUBDIRS, below. Variables are not allowed there...
223
 
DIRS="libxslt _XML wiki"
224
 
AC_SUBST(DIRS)
225
 
 
226
 
AC_SET_MAKE
227
 
# Using variables in AC_CONFIG_SUBDIRS produces warnings, use literals:
228
 
AC_CONFIG_SUBDIRS(libxslt _XML wiki)
229
 
 
230
 
AC_OUTPUT(Makefile)
231