diff options
author | Issam E. Maghni <issam.e.maghni@mailbox.org> | 2020-11-02 17:16:41 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-11-29 00:58:45 -0500 |
commit | d046ec92c1e5a487a8f9d584ebb79c3bc97ea95f (patch) | |
tree | 72f09537ff8b9940be95e347b6e768f733bfe256 /configure | |
parent | c5d118ebbcfe41d928d8ffc913bc532c59237189 (diff) | |
download | musl-d046ec92c1e5a487a8f9d584ebb79c3bc97ea95f.tar.gz musl-d046ec92c1e5a487a8f9d584ebb79c3bc97ea95f.tar.bz2 musl-d046ec92c1e5a487a8f9d584ebb79c3bc97ea95f.tar.xz musl-d046ec92c1e5a487a8f9d584ebb79c3bc97ea95f.zip |
configure: do not use obsolescent form of test -a|o
The -a and -o operators are obsolescent and not in baseline POSIX.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -204,7 +204,7 @@ fi abs_builddir="$(pwd)" || fail "$0: cannot determine working directory" abs_srcdir="$(cd $srcdir && pwd)" || fail "$0: invalid source directory $srcdir" test "$abs_srcdir" = "$abs_builddir" && srcdir=. -test "$srcdir" != "." -a -f Makefile -a ! -h Makefile && fail "$0: Makefile already exists in the working directory" +test "$srcdir" != "." && test -f Makefile && test ! -h Makefile && fail "$0: Makefile already exists in the working directory" # # Get a temp filename we can use @@ -279,7 +279,7 @@ echo "$cc_family" # # Figure out toolchain wrapper to build # -if test "$wrapper" = auto -o "$wrapper" = detect ; then +if test "$wrapper" = auto || test "$wrapper" = detect ; then echo "#include <stdlib.h>" > "$tmpc" echo "#if ! __GLIBC__" >> "$tmpc" echo "#error no" >> "$tmpc" @@ -468,7 +468,7 @@ tryflag CFLAGS_AUTO -pipe # pointer is no longer needed for debugging. # if fnmatch '-g*|*\ -g*' "$CFLAGS_AUTO $CFLAGS" ; then : -else +else tryflag CFLAGS_AUTO -fomit-frame-pointer fi |