Branch: Tag:

2012-04-08

2012-04-08 15:03:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

configure: Fix issue with autoconf 2.63 and later.

Autoconf 2.63 and later created a broken config.status on OSes
where /bin/sh is not bash.

71:    AC_MSG_WARN([Found bash as $ac_cv_path_bash_prog.   Will attempt to restart configure with bash for performance.   If this fails, please set CONFIG_SHELL to /bin/sh before starting configure.]) +  if_autoconf(2,63,[ +  # Autoconf 2.63 and later don't like CONFIG_SHELL containing args... +  # It will break the generated config.status. +  CONFIG_SHELL="$ac_cv_path_bash_prog" +  export CONFIG_SHELL +  echo $CONFIG_SHELL --norc "$srcdir/configure" $ac_configure_args +  eval exec $CONFIG_SHELL --norc "$srcdir/configure" $ac_configure_args +  ], [ +  # Autoconf 2.61 and earlier support CONFIG_SHELL containing args. +  # Make sure the users config files aren't used. We don't want +  # strange aliases and stuff confusing things...    CONFIG_SHELL="$ac_cv_path_bash_prog --norc"    export CONFIG_SHELL    echo $CONFIG_SHELL "$srcdir/configure" $ac_configure_args    eval exec $CONFIG_SHELL "$srcdir/configure" $ac_configure_args -  +  ])    exit 17    fi   else :; fi