diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-29 22:56:06 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-29 22:56:06 +0000 |
commit | 34f9bf6909906fd38708a02be6a1882168b8f631 (patch) | |
tree | 06b51fab29857441400d3af27ee1379fc35a05d8 /gnu/usr.bin/perl/hints | |
parent | 28d9bfb21210e90251556c888367330d5e9645ab (diff) |
New configuration method, use a combination of hints and config.over. Also add in OpenBSD-specific patches
Diffstat (limited to 'gnu/usr.bin/perl/hints')
-rw-r--r-- | gnu/usr.bin/perl/hints/openbsd.sh | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/gnu/usr.bin/perl/hints/openbsd.sh b/gnu/usr.bin/perl/hints/openbsd.sh index e9d8ea483d5..81bdf6721f2 100644 --- a/gnu/usr.bin/perl/hints/openbsd.sh +++ b/gnu/usr.bin/perl/hints/openbsd.sh @@ -4,6 +4,9 @@ # Edited to allow Configure command-line overrides by # Andy Dougherty <doughera@lafcol.lafayette.edu> # +# To build with distribution paths, use: +# ./Configure -des -Dopenbsd_distribution=defined +# # OpenBSD has a better malloc than perl... test "$usemymalloc" || usemymalloc='n' @@ -15,10 +18,10 @@ usevfork='true' # setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions # in 4.4BSD. Configure will find these but they are just emulated # and do not have the same semantics as in 4.3BSD. -d_setregid='undef' -d_setreuid='undef' -d_setrgid='undef' -d_setruid='undef' +d_setregid=$undef +d_setreuid=$undef +d_setrgid=$undef +d_setruid=$undef # # Not all platforms support shared libs... @@ -42,7 +45,7 @@ esac libswanted=`echo $libswanted | sed 's/ crypt / /'` # Configure can't figure this out non-interactively -d_suidsafe='define' +d_suidsafe=$define # cc is gcc so we can do better than -O # Allow a command-line override, such as -Doptimize=-g @@ -58,4 +61,23 @@ $define|true|[yY]*) esac EOCBU +# When building in the OpenBSD tree we use different paths +# This is only part of the story, the rest comes from config.over +case "$openbsd_distribution" in +''|$undef|false) ;; +*) + # We put things in /usr, not /usr/local + prefix='/usr' + prefixexp='/usr' + sysman='/usr/share/man/man1' + # Never look for things in /usr/local + glibpth='/usr/lib' + libpth='/usr/lib' + locincpth='' + loclibpth='' + ccflags='' + cppflags='' + ;; +esac + # end |