From 8d060610bbe0af2f159b40c8b23076896b4104a5 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Mon, 6 May 2002 18:15:36 +0000 Subject: if gnu getopt is not available, don't bother processing any options Original commit message from CVS: if gnu getopt is not available, don't bother processing any options --- gst-autogen.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst-autogen.sh b/gst-autogen.sh index dcf4266..6c7c54b 100644 --- a/gst-autogen.sh +++ b/gst-autogen.sh @@ -162,6 +162,11 @@ die_check () autogen_options () { + if test `getopt --version | cut -d' ' -f2` != "(enhanced)"; then + echo "- non-gnu getopt(1) detected, not running getopt on autogen command-line options" + return 0 + fi + # we use getopt stuff here, copied things from the example example.bash TEMP=`getopt -o h --long noconfigure,nocheck,debug,help,with-automake:,with-autoconf:,prefix:\ -- "$@"` -- cgit v1.2.3