From 0a0db525cf8fe71f395b178cfbb20e3ec92fde74 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Sun, 17 Jan 2010 18:50:36 +0100 Subject: [PATCH] autoconf: Don't hardcode shell in templates --- configure.ac | 5 ++++- vlc-config.in.in | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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@" -- 2.39.2