version 1.2, 2004/06/28 12:39:11 |
version 1.6, 2021/03/24 14:32:48 |
|
|
#!/bin/sh |
#!/bin/sh |
# $OpenXM: OpenXM/src/ox_toolkit/make-configure,v 1.1 2000/02/08 20:34:14 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_toolkit/make-configure,v 1.5 2019/01/28 04:51:51 takayama Exp $ |
|
|
|
prefix=`cd ../..; pwd` |
|
cache_file=`pwd`/config.cache |
case "$1" in |
case "$1" in |
"-f"|"--force") |
"-f"|"--force") |
automake |
automake |
autoconf |
autoconf |
./configure --prefix="$(cd ../..; pwd)" |
touch ${cache_file} |
;; |
if [ -z $TARGET_TYPE ]; then |
|
./configure --prefix=${prefix} --with-gmp --cache-file=${cache_file} --enable-shared |
|
else |
|
./configure --host=${TARGET_TYPE} --prefix=${prefix} --with-gmp --cache-file=${cache_file} --enable-shared |
|
fi |
|
;; |
*) |
*) |
if [ ! -f ./.configure_done ]; then |
if [ ! -f ./.configure_done ]; then |
if [ ! -f ./Makefile.in ]; then |
if [ ! -f ./Makefile.in ]; then |
Line 15 if [ ! -f ./.configure_done ]; then |
|
Line 22 if [ ! -f ./.configure_done ]; then |
|
if [ ! -x ./configure ]; then |
if [ ! -x ./configure ]; then |
autoconf |
autoconf |
fi |
fi |
./configure --prefix="$(cd ../..; pwd)" |
touch ${cache_file} |
|
if [ -z $TARGET_TYPE ]; then |
|
./configure --prefix=${prefix} --with-gmp --cache-file=${cache_file} --enable-shared |
|
else |
|
./configure --host=${TARGET_TYPE} --prefix=${prefix} --with-gmp --cache-file=${cache_file} --enable-shared |
|
fi |
fi |
fi |
;; |
;; |
esac |
esac |