Skip to content

Commit

Permalink
kconfig: made check-lxdialog more portable
Browse files Browse the repository at this point in the history
OS-X shell did not like 'echo -e' so implement
suggestion from Al Viro to use a more portable construct.

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Al Viro <[email protected]>
Acked-By: Timur Tabi <[email protected]>
  • Loading branch information
Sam Ravnborg committed May 1, 2008
1 parent e4c576b commit b44158d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/kconfig/lxdialog/check-lxdialog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ trap "rm -f $tmp" 0 1 2 3 15

# Check if we can link to ncurses
check() {
echo -e " #include CURSES_LOC \n main() {}" |
$cc -xc - -o $tmp 2> /dev/null
$cc -xc - -o $tmp 2>/dev/null <<'EOF'
#include CURSES_LOC
main() {}
EOF
if [ $? != 0 ]; then
echo " *** Unable to find the ncurses libraries or the" 1>&2
echo " *** required header files." 1>&2
Expand Down

0 comments on commit b44158d

Please sign in to comment.