From 70f1bcef17f77f31f8c60d0fbe07e019202088db Mon Sep 17 00:00:00 2001 From: dos-reis Date: Mon, 25 Nov 2013 09:38:03 +0000 Subject: Check for Windows PowerShell. --- configure | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index d095e85b..65005b7a 100755 --- a/configure +++ b/configure @@ -740,6 +740,7 @@ oa_delay_ffi oa_standard_linking axiom_lisp_flavor AXIOM_LISP +OA_WINDOWS_POWERSHELL open_axiom_installdir AM_BACKSLASH AM_DEFAULT_VERBOSITY @@ -3670,10 +3671,79 @@ open_axiom_installdir=$libdir/open-axiom/$target/$PACKAGE_VERSION if test $build != $target; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross build is not supported yet." >&5 $as_echo "$as_me: WARNING: Cross build is not supported yet." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please notify open-axiom-devel@open-axiom.org if you succeed." >&5 -$as_echo "$as_me: WARNING: Please notify open-axiom-devel@open-axiom.org if you succeed." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please notify open-axiom-devel@lists.sf.net if you succeed." >&5 +$as_echo "$as_me: WARNING: Please notify open-axiom-devel@lists.sf.net if you succeed." >&2;} fi +## Determine interpreters and shells. + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 +$as_echo_n "checking whether #! works in shell scripts... " >&6; } +if ${ac_cv_sys_interpreter+:} false; then : + $as_echo_n "(cached) " >&6 +else + echo '#! /bin/cat +exit 69 +' >conftest +chmod u+x conftest +(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) +if test $? -ne 69; then + ac_cv_sys_interpreter=yes +else + ac_cv_sys_interpreter=no +fi +rm -f conftest +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 +$as_echo "$ac_cv_sys_interpreter" >&6; } +interpval=$ac_cv_sys_interpreter + +case $host in + *mingw*) + # Extract the first word of "powershell.exe", so it can be a program name with args. +set dummy powershell.exe; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_OA_WINDOWS_POWERSHELL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $OA_WINDOWS_POWERSHELL in + [\\/]* | ?:[\\/]*) + ac_cv_path_OA_WINDOWS_POWERSHELL="$OA_WINDOWS_POWERSHELL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_OA_WINDOWS_POWERSHELL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +OA_WINDOWS_POWERSHELL=$ac_cv_path_OA_WINDOWS_POWERSHELL +if test -n "$OA_WINDOWS_POWERSHELL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OA_WINDOWS_POWERSHELL" >&5 +$as_echo "$OA_WINDOWS_POWERSHELL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + ;; +esac + + ## Although OpenAxiom does not support cross build yet, let ## alone Canadian cross, we want to make sure that we do not write ## the build machinery in a way that actively unsupports -- cgit v1.2.3