From: Francois Cartegnie Date: Sun, 17 Jan 2010 17:50:36 +0000 (+0100) Subject: autoconf: Don't hardcode shell in templates X-Git-Tag: 1.1.0-ff~1118 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0a0db525cf8fe71f395b178cfbb20e3ec92fde74;p=vlc autoconf: Don't hardcode shell in templates --- diff --git a/configure.ac b/configure.ac index 753e21d342..c27d7d79f7 100644 --- a/configure.ac +++ b/configure.ac @@ -5090,7 +5090,10 @@ dnl Do we have to use make or gmake ? USE_MAKE_OR_GMAKE=`case "${SYS}" in openbsd*) echo "gmake";; *) echo "make";; esac` dnl Shortcut to nice compile message rm -f compile -echo '#! /bin/sh' >compile +if test -n $SHELL; then + SHELL=${CONFIG_SHELL-/bin/sh} +fi +echo '#! '$SHELL >compile echo rm -f .error\$\$ >>compile echo ERROR=0 >>compile echo export PATH=$PATH LANG=C >>compile diff --git a/vlc-config.in.in b/vlc-config.in.in index 8d069ab2e4..16065459bb 100644 --- a/vlc-config.in.in +++ b/vlc-config.in.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!@SHELL@ prefix="@prefix@" exec_prefix="@exec_prefix@"