commit: 8cd753b4aa2caad09bce7697dbc5709ab9ff1dd6
parent: 9756b4f29712c07b7c9eb9b78a83db39c5b6c5ca
author: Chris Noxz <chris@noxz.tech>
date: Wed, 26 Jun 2024 19:14:05 +0200
Change base configure
2 files changed, 7 insertions(+), 16 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,4 +1,4 @@
-oksh
+ksh
Makefile
README
*.o
diff --git a/configure b/configure
@@ -775,7 +775,7 @@ EOF
if [ ! -z "$PREFIX" ] ; then
prefix="$PREFIX"
else
- prefix="/usr/local"
+ prefix="/usr"
fi
doconfigure=1
@@ -785,7 +785,7 @@ mandirset=0
bindir="$prefix/bin"
mandir="$prefix/share/man"
-instprog="oksh"
+instprog="ksh"
libs=""
curses=1
instsh=0
@@ -828,13 +828,6 @@ do
curses=1
fi
;;
- --disable-ksh|--enable-ksh)
- if [ "x$opt" = "x--enable-ksh" ] ; then
- instprog="ksh"
- else
- instprog="oksh"
- fi
- ;;
--disable-sh|--enable-sh)
if [ "x$opt" = "x--enable-sh" ] ; then
instsh=1
@@ -891,8 +884,6 @@ do
echo "Use specified CFLAGS [default=\"-g -O2\"]"
printf " --enable-curses "
echo "Use curses library for screen clear [default=yes]"
- printf " --enable-ksh "
- echo "Install executable as ksh [default=no]"
printf " --enable-lto "
echo "Enable link-time optimization [default=no]"
printf " --enable-sh "
@@ -1028,7 +1019,7 @@ if [ $? -ne 0 ] ; then
gnu99check
if [ $? -ne 0 ] ; then
echo "no"
- echo "You must have a C99 compiler to build oksh!"
+ echo "You must have a C99 compiler to build ksh!"
exit 1
else
cflags="$cflags -std=gnu99"
@@ -1164,7 +1155,7 @@ else
if [ $? -eq 0 ] ; then
echo "yes"
else
- echo "Error: oksh requires clock_gettime()"
+ echo "Error: ksh requires clock_gettime()"
exit 1
fi
fi
@@ -1201,14 +1192,14 @@ if [ $curses -eq 1 ] ; then
else
echo "#define NO_CURSES" >> pconfig.h
echo "not found"
- echo "oksh will be built without screen clearing support"
+ echo "ksh will be built without screen clearing support"
fi
fi
fi
else
echo "#define NO_CURSES" >> pconfig.h
echo "disabled by user"
- echo "oksh will be built without screen clearing support"
+ echo "ksh will be built without screen clearing support"
fi
printf "checking for issetugid... "