~ubuntu-branches/ubuntu/trusty/hyperestraier/trusty

« back to all changes in this revision

Viewing changes to javanative/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2006-11-14 05:28:32 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061114052832-0lzqzcefn8mt4yqe
Tags: 1.4.9-1.1
* Non-maintainer upload.
* High-urgency upload for RC bugfix.
* Set HOME=$(CURDIR)/junkhome when building, otherwise the package build
  will incorrectly look for headers there -- and fail when the directory
  exists and is unreadable, as happens sometimes on sudo-using
  autobuilders!

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
JAVAH="${JAVAH:-javah}"
21
21
JAVADOC="${JAVADOC:-javadoc}"
22
22
JAVARUN="${JAVA:-java}"
23
 
MYCFLAGS="-Wall -fPIC -fsigned-char -O2 -DNDEBUG"
24
 
MYCPPOPTS=""
 
23
MYCFLAGS="-Wall -fPIC -fsigned-char -O2 -fomit-frame-pointer -fforce-addr"
 
24
MYCPPOPTS="-DNDEBUG"
25
25
MYLDOPTS=""
26
26
MYMTLIBS=""
27
27
MYSKLIBS=""
30
30
# Building paths
31
31
pathtmp="$PATH"
32
32
PATH="..:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
33
 
PATH="$PATH:/usr/ccs/bin:/usr/ucb:$pathtmp"
 
33
PATH="$PATH:/usr/ccs/bin:/usr/ucb:/usr/xpg4/bin:/usr/xpg6/bin:$pathtmp"
34
34
LIBRARY_PATH="..:$HOME/lib:/usr/local/lib:$LIBRARY_PATH"
35
35
LD_LIBRARY_PATH="..:$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
36
36
CPATH="..:$HOME/include:/usr/local/include:$CPATH"
126
126
 
127
127
# C compiler
128
128
AC_PROG_CC
 
129
if uname | egrep -i 'SunOS' > /dev/null 2>&1
 
130
then
 
131
  MYCFLAGS="-Wall -fPIC -fsigned-char -O1"
 
132
fi
 
133
if uname | egrep -i 'BSD' > /dev/null 2>&1
 
134
then
 
135
  MYCFLAGS="-Wall -fPIC -fsigned-char -O1"
 
136
fi
 
137
if gcc --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1
 
138
then
 
139
  MYCFLAGS="-Wall -fPIC -fsigned-char -O1"
 
140
fi
129
141
 
130
142
# Data types
131
143
if uname | grep '^SunOS' > /dev/null
143
155
AC_CHECK_LIB(m, main)
144
156
AC_CHECK_LIB(iconv, main)
145
157
AC_CHECK_LIB(z, main)
 
158
AC_CHECK_LIB(lzo2, main)
 
159
AC_CHECK_LIB(bz2, main)
146
160
AC_CHECK_LIB(qdbm, main)
147
161
AC_CHECK_LIB(estraier, main)
148
162