[BACK]Return to make-configure CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_pari

File: [local] / OpenXM / src / ox_pari / make-configure (download)

Revision 1.2, Fri Sep 23 03:04:22 2016 UTC (7 years, 7 months ago) by takayama
Branch: MAIN
Changes since 1.1: +13 -1 lines

make configure-static
forces to configure for static linking in asir2000 and ox_pari.
Bug: it calls make configure in advance, then configures for asir2000 and ox_pari are called two times.

#!/bin/sh
# $OpenXM: OpenXM/src/ox_pari/make-configure,v 1.2 2016/09/23 03:04:22 takayama Exp $

prefix=`cd ../..; pwd`
cache_file=`pwd`/config.cache
case "$1" in
"-f"|"--force")
    automake
    autoconf
    touch ${cache_file}
    ./configure --prefix=${prefix} --cache-file=${cache_file}
    ;;
"-d"|"--disable-shared")
if [ ! -f ./.configure_done ]; then 
    if [ ! -f ./Makefile.in ]; then 
		automake 
  	fi
    if [ ! -x ./configure ]; then 
		autoconf 
  	fi
    touch ${cache_file}
    ./configure --prefix=${prefix} --cache-file=${cache_file} --disable-shared
fi
;;
*)
if [ ! -f ./.configure_done ]; then 
    if [ ! -f ./Makefile.in ]; then 
		automake 
  	fi
    if [ ! -x ./configure ]; then 
		autoconf 
  	fi
    touch ${cache_file}
    ./configure --prefix=${prefix} --cache-file=${cache_file}
fi
    ;;
esac
touch .configure_done