From 4c17eb17a0b685a61e44bc50c006b46d14f0b1ec Mon Sep 17 00:00:00 2001 From: rbdpngn Date: Thu, 15 Jul 2004 15:47:06 +0000 Subject: [PATCH] Allow for specifying the config script on the command line, this overrides the environment variables. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@10843 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.in | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 78 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 23c499d..bea4b3c 100644 --- a/configure.in +++ b/configure.in @@ -100,12 +100,84 @@ function vser echo $V } -if [ test -z "$EET_CONFIG" ]; then EET_CONFIG="eet-config"; fi -if [ test -z "$EVAS_CONFIG" ]; then EVAS_CONFIG="evas-config"; fi -if [ test -z "$EDJE_CONFIG" ]; then EDJE_CONFIG="edje-config"; fi -if [ test -z "$ECORE_CONFIG" ]; then ECORE_CONFIG="ecore-config"; fi -if [ test -z "$EMBRYO_CONFIG" ]; then EMBRYO_CONFIG="embryo-config"; fi -if [ test -z "$XINE_CONFIG" ]; then XINE_CONFIG="xine-config"; fi + +AC_ARG_WITH(eet-config, +[ --with-eet-config=EET_CONFIG use eet-config specified ], +[ + EET_CONFIG=$withval; + echo "using "$EET_CONFIG" for eet-config"; +],[ + if [ test -z "$EET_CONFIG" ]; then + PROG="eet-config"; + AC_PATH_PROG(EET_CONFIG, $PROG, "", $PATH) + fi +]) + + +AC_ARG_WITH(evas-config, +[ --with-evas-config=EVAS_CONFIG use evas-config specified ], +[ + EVAS_CONFIG=$withval; + echo "using "$EVAS_CONFIG" for evas-config"; +],[ + if [ test -z "$EVAS_CONFIG" ]; then + PROG="evas-config"; + AC_PATH_PROG(EVAS_CONFIG, $PROG, "", $PATH) + fi +]) + + +AC_ARG_WITH(edje-config, +[ --with-edje-config=EDJE_CONFIG use edje-config specified ], +[ + EDJE_CONFIG=$withval; + echo "using "$EDJE_CONFIG" for edje-config"; +],[ + if [ test -z "$EDJE_CONFIG" ]; then + PROG="edje-config"; + AC_PATH_PROG(EDJE_CONFIG, $PROG, "", $PATH) + fi +]) + + +AC_ARG_WITH(ecore-config, +[ --with-ecore-config=ECORE_CONFIG use ecore-config specified ], +[ + ECORE_CONFIG=$withval; + echo "using "$ECORE_CONFIG" for ecore-config"; +],[ + if [ test -z "$ECORE_CONFIG" ]; then + PROG="ecore-config"; + AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH) + fi +]) + + +AC_ARG_WITH(embryo-config, +[ --with-embryo-config=EMBRYO_CONFIG use embryo-config specified ], +[ + EMBRYO_CONFIG=$withval; + echo "using "$EMBRYO_CONFIG" for embryo-config"; +],[ + if [ test -z "$EMBRYO_CONFIG" ]; then + PROG="embryo-config"; + AC_PATH_PROG(EMBRYO_CONFIG, $PROG, "", $PATH) + fi +]) + + +AC_ARG_WITH(xine-config, +[ --with-xine-config=XINE_CONFIG use xine-config specified ], +[ + XINE_CONFIG=$withval; + echo "using "$XINE_CONFIG" for xine-config"; +],[ + if [ test -z "$XINE_CONFIG" ]; then + PROG="xine-config"; + AC_PATH_PROG(XINE_CONFIG, $PROG, "", $PATH) + fi +]) + V=`$ECORE_CONFIG --version` VV=`vser $V` -- 2.7.4