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

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

Revision 1.6, Wed Mar 24 14:32:48 2021 UTC (3 years, 1 month ago) by fujimoto
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +7 -3 lines

Modified for cross build.
If TARGET_TYPE is set, run 'configure' with --host=$TARGET_TYPE.

#!/bin/sh
# $OpenXM: OpenXM/src/util/make-configure,v 1.6 2021/03/24 14:32:48 fujimoto Exp $
if test ! -f ./.configure_done   -o ! -f ./Makefile
then 
# make -f Makefile.conf
  echo "--prefix=`cd ../../../OpenXM ; pwd`"
  if [ -z $TARGET_TYPE ] ; then 
    ./configure --prefix="`cd ../../../OpenXM ; pwd`" --enable-shared
  else
    ./configure --host=${TARGET_TYPE} --prefix="`cd ../../../OpenXM ; pwd`" --enable-shared
  fi
fi
touch .configure_done