- Timestamp:
- Apr 22, 2007, 3:23:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/sys-devel/autoconf-wrapper/ac-wrapper-4.sh
r3161 r3162 1 #! /bin/bash1 #!sh.exe 2 2 # Copyright 1999-2006 Gentoo Foundation 3 3 # Distributed under the terms of the GNU General Public License v2 … … 17 17 # - `configure' is already present and was generated by autoconf 2.13 18 18 19 if [ [ ${0##*/} == "ac-wrapper.sh" ]] ; then19 if [ "${0##*/}" = "ac-wrapper.sh" ] ; then 20 20 echo "Don't call this script directly" >&2 21 21 exit 1 22 22 fi 23 23 24 if [ [ ${WANT_AUTOCONF} == "2.1" && ${0##*/} == "autom4te" ]] ; then24 if [ "${WANT_AUTOCONF}" = "2.1" -a "${0##*/}" = "autom4te" ] ; then 25 25 echo "ac-wrapper: Autoconf 2.13 doesn't contain autom4te." >&2 26 26 echo " Either unset WANT_AUTOCONF or don't execute anything" >&2 … … 103 103 # autodetect routine 104 104 # 105 if [ [ ${WANT_AUTOCONF} == "2.1" ]] && [-f "configure.ac" ] ; then105 if [ "${WANT_AUTOCONF}" = "2.1" -a -f "configure.ac" ] ; then 106 106 echo "ac-wrapper: Since configure.ac is present, aclocal always use" >&2 107 107 echo " autoconf 2.59+, which conflicts with your choice and" >&2 … … 112 112 fi 113 113 114 if [ [ ${WANT_AUTOCONF} != "2.5" ]] && [[ -n ${WANT_AUTOMAKE} ]] ; then114 if [ "${WANT_AUTOCONF}" != "2.5" -a -n "${WANT_AUTOMAKE}" ] ; then 115 115 # Automake-1.7 and better require autoconf-2.5x so if WANT_AUTOMAKE 116 116 # is set to an older version, let's do some sanity checks. … … 118 118 1.[456]) 119 119 acfiles=$(ls ac{local,include}.m4 configure.{in,ac} 2>/dev/null) 120 [ [ -n ${acfiles} ]] && confversion=$(acprereq_version ${acfiles})120 [ -n "${acfiles}" ] && confversion=$(acprereq_version ${acfiles}) 121 121 122 [ [ -z ${confversion} && -r "configure" ]] \122 [ -z "${confversion}" -a -r "configure" ] \ 123 123 && confversion=$(generated_version configure) 124 124 125 if [ [ ${confversion} == "2.1" && ! -f "configure.ac" ]] ; then125 if [ "${confversion}" = "2.1" -a ! -f "configure.ac" ] ; then 126 126 binary="${0}-2.13" 127 127 fi … … 129 129 fi 130 130 131 if [ [ -n ${WANT_ACWRAPPER_DEBUG} ]] ; then132 if [ [ -n ${WANT_AUTOCONF} ]] ; then131 if [ -n "${WANT_ACWRAPPER_DEBUG}" ] ; then 132 if [ -n "${WANT_AUTOCONF}" ] ; then 133 133 echo "ac-wrapper: DEBUG: WANT_AUTOCONF is set to ${WANT_AUTOCONF}" >&2 134 134 fi … … 150 150 # Now try to run the binary 151 151 # 152 if [ [ ! -x ${binary} ]] ; then152 if [ ! -x "${binary}" ] ; then 153 153 # this shouldn't happen 154 154 echo "ac-wrapper: ${binary} is missing or not executable." >&2
Note:
See TracChangeset
for help on using the changeset viewer.