This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate with Sarathy.
[perl5.git] / hints / dos_djgpp.sh
index 85455c3..478c076 100644 (file)
@@ -2,11 +2,13 @@
 # Original by Laszlo Molnar <molnarl@cdata.tvnet.hu>
 
 # 971015 - archname changed from 'djgpp' to 'dos-djgpp'
+# 971210 - threads support
+# 000222 - added -DPERL_EXTERNAL_GLOB to ccflags
 
 archname='dos-djgpp'
 archobjs='djgpp.o'
 path_sep=\;
-startsh="#!sh"
+startsh="#! /bin/sh"
 
 cc='gcc'
 ld='gcc'
@@ -22,12 +24,9 @@ firstmakefile='GNUmakefile'
 exe_ext='.exe'
 
 randbits=31
-
-ln='cp'             # no REAL ln on dos
 lns='cp'
 
 usenm='true'
-d_bincompat3='undef'
 
 d_link='undef'      # these are empty functions in libc.a
 d_symlink='undef'
@@ -38,9 +37,10 @@ startperl='#!perl'
 
 case "X$optimize" in
   X)
-       optimize="-O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2"
+       optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
        ;;
 esac
+ccflags="$ccflags -DPERL_EXTERNAL_GLOB"
 ldflags='-s'
 usemymalloc='n'
 timetype='time_t'
@@ -51,13 +51,17 @@ archlib=$privlib
 sitelib=$privlib/site
 sitearch=$sitelib
 
-: set up the translation script tr
+eagain='EAGAIN'
+rd_nodata='-1'
 
-cat >../UU/tr <<EOSC
-$startsh
-case "\$1\$2" in
-'[A-Z][a-z]') exec tr.exe '[:upper:]' '[:lower:]';;
-'[a-z][A-Z]') exec tr.exe '[:lower:]' '[:upper:]';;
+# This script UU/usethreads.cbu will get 'called-back' by Configure 
+# after it has prompted the user for whether to use threads.
+cat > UU/usethreads.cbu <<'EOCBU'
+case "$usethreads" in
+$define|true|[yY]*)
+        set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
+        shift
+        libswanted="$*"
+       ;;
 esac
-exec tr.exe "\$@"
-EOSC
+EOCBU