22 |
AC_ARG_ENABLE(machine,[ --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs] , |
AC_ARG_ENABLE(machine,[ --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs] , |
23 |
[enable_machine=$enableval],[enable_machine=""]) |
[enable_machine=$enableval],[enable_machine=""]) |
24 |
|
|
|
AC_ARG_ENABLE(static,[ --enable-static will link your GCL against static as opposed to shared system libraries ] , |
|
|
[enable_static=$enableval],[enable_static="no"]) |
|
|
|
|
25 |
AC_ARG_ENABLE(gmp,[ --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)] , |
AC_ARG_ENABLE(gmp,[ --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)] , |
26 |
[use_gmp=$enableval],[use_gmp="yes"]) |
[use_gmp=$enableval],[use_gmp="yes"]) |
27 |
|
|
234 |
def_custreloc="no" |
def_custreloc="no" |
235 |
def_oldgmp="no" |
def_oldgmp="no" |
236 |
def_pic="no"; |
def_pic="no"; |
237 |
|
def_static="no"; |
238 |
case $use in |
case $use in |
239 |
*linux) |
*linux) |
240 |
ln -snf linux.defs h/$use.defs; |
ln -snf linux.defs h/$use.defs; |
241 |
case $use in |
case $use in |
|
amd64*) |
|
|
TCFLAGS="$TCFLAGS -m64";; |
|
242 |
alpha*) |
alpha*) |
243 |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
244 |
mips*) |
mips*) |
245 |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
246 |
|
# def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion |
247 |
|
# on these architectures -- CM |
248 |
ia64*) |
ia64*) |
249 |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
def_dlopen="yes" ; def_statsysbfd="no" ; def_static = "yes" ;; |
250 |
hppa*) |
hppa*) |
251 |
def_dlopen="yes" ; def_statsysbfd="no" def_pic="yes" ;; |
def_dlopen="yes" ; def_statsysbfd="no" def_pic="yes" ;; |
252 |
# m68k*) |
# m68k*) |
274 |
AC_ARG_ENABLE(debug, |
AC_ARG_ENABLE(debug, |
275 |
[ --enable-debug builds gcl with -g in CFLAGS to enable running under gdb ] |
[ --enable-debug builds gcl with -g in CFLAGS to enable running under gdb ] |
276 |
,,enable_debug="no") |
,,enable_debug="no") |
277 |
|
AC_ARG_ENABLE(static,[ --enable-static will link your GCL against static as opposed to shared system libraries ] , |
278 |
|
[enable_static=$enableval],[enable_static="$def_static"]) |
279 |
AC_ARG_ENABLE(pic, |
AC_ARG_ENABLE(pic, |
280 |
[ --enable-pic builds gcl with -fPIC in CFLAGS ] |
[ --enable-pic builds gcl with -fPIC in CFLAGS ] |
281 |
,,enable_pic="$def_pic") |
,,enable_pic="$def_pic") |
328 |
exit 1 |
exit 1 |
329 |
fi |
fi |
330 |
|
|
331 |
|
if test "$enable_static" = "yes" ; then |
332 |
|
TLIBS="-static $TLIBS"; |
333 |
|
fi |
334 |
|
|
335 |
## finally warn if we did not find a recognized machine.s |
## finally warn if we did not find a recognized machine.s |
336 |
## |
## |
337 |
#if test "$use" = "unknown" ; then |
#if test "$use" = "unknown" ; then |
385 |
case $use in |
case $use in |
386 |
*linux) |
*linux) |
387 |
case $use in |
case $use in |
388 |
|
amd64*) |
389 |
|
TCFLAGS="$TCFLAGS -m64";; |
390 |
alpha*) |
alpha*) |
391 |
TCFLAGS="$TCFLAGS -mieee";; |
TCFLAGS="$TCFLAGS -mieee";; |
392 |
# m68k*) |
# m68k*) |
398 |
;; |
;; |
399 |
arm*) |
arm*) |
400 |
TCFLAGS="$TCFLAGS -mlong-calls";; |
TCFLAGS="$TCFLAGS -mlong-calls";; |
|
ia64*) |
|
|
# Function descriptors are currently realized at runtime in a non-reporducible fashion |
|
|
# on these architectures -- CM |
|
|
TLIBS="-static $TLIBS";; |
|
401 |
powerpc*) |
powerpc*) |
402 |
if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then |
if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then |
403 |
echo Reducing optimization for buggy gcc-3.2 |
echo Reducing optimization for buggy gcc-3.2 |