summaryrefslogtreecommitdiff
path: root/yhttpd/src/configure
diff options
context:
space:
mode:
Diffstat (limited to 'yhttpd/src/configure')
-rwxr-xr-xyhttpd/src/configure14
1 files changed, 14 insertions, 0 deletions
diff --git a/yhttpd/src/configure b/yhttpd/src/configure
index 54cf650..b67da46 100755
--- a/yhttpd/src/configure
+++ b/yhttpd/src/configure
@@ -55,8 +55,11 @@ perl -e '
$ENV{HOME}."/lib",
$ENV{HOME}."/usr/lib",
"/lib",
+ "/lib64",
"/usr/lib",
+ "/usr/lib64",
"/usr/local/lib",
+ "/usr/local/lib64",
"/usr/pkg/lib",
"/opt/lib",
"/opt/local/lib"
@@ -65,6 +68,7 @@ perl -e '
my %dependfiles = (
database => ["data"],
ycurses => ["curses", "ycui.cpp", "ycui.h"],
+ ncur => ["ncur"],
logging => ["logd.cpp", "logd.h"],
cli => ["cli"],
opnssl => ["sock/sslsock.cpp", "sock/sslsock.h"]
@@ -101,6 +105,16 @@ perl -e '
`mv ../backuped/$_ .` for @{$dependfiles{cli}};
}
+ if ( /\/\/#define NCURSES/ ) {
+ remove_from_array("ncurses.h",\@headers);
+ remove_from_array("libncurses.so",\@libs);
+ mkdir "../backuped" unless -d "../backuped";
+ `mv $_ ../backuped` for @{$dependfiles{ncur}};
+ }
+ elsif ( /^#define NCURSES/ && !-d "ncur") {
+ `mv ../backuped/$_ .` for @{$dependfiles{ncur}};
+ }
+
if ( /\/\/#define YCURSES/ ) {
for ("ncurses", "menu", "panel") {
remove_from_array("$_.h",\@headers);