#!/bin/sh
# $OpenXM: OpenXM/src/oxc/make-configure,v 1.2 2016/09/23 05:37:43 takayama Exp $

case "$1" in
"-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 --enable-shared=no
fi
;;
*)
if [ ! -f ./.configure_done ]; then 
    if [ ! -x ./configure ]; then 
		autoconf 
  	fi
    ./configure 
fi
;;
esac
touch .configure_done 
