| 1 | # hints file for dos/djgpp v2.xx |
| 2 | # Original by Laszlo Molnar <molnarl@cdata.tvnet.hu> |
| 3 | |
| 4 | # 971015 - archname changed from 'djgpp' to 'dos-djgpp' |
| 5 | # 971210 - threads support |
| 6 | # 000222 - added -DPERL_EXTERNAL_GLOB to ccflags |
| 7 | |
| 8 | archname='dos-djgpp' |
| 9 | archobjs='djgpp.o' |
| 10 | path_sep=\; |
| 11 | startsh="#! /bin/sh" |
| 12 | |
| 13 | cc='gcc' |
| 14 | ld='gcc' |
| 15 | usrinc="$DJDIR/include" |
| 16 | |
| 17 | libpth="$DJDIR/lib" |
| 18 | libc="$libpth/libc.a" |
| 19 | |
| 20 | so='none' |
| 21 | usedl='n' |
| 22 | |
| 23 | firstmakefile='GNUmakefile' |
| 24 | exe_ext='.exe' |
| 25 | |
| 26 | randbits=31 |
| 27 | lns='cp' |
| 28 | |
| 29 | usenm='true' |
| 30 | |
| 31 | # this reportedly causes compile errors in system includes |
| 32 | i_ieeefp='undef' |
| 33 | |
| 34 | d_link='undef' # these are empty functions in libc.a |
| 35 | d_symlink='undef' |
| 36 | d_fork='undef' |
| 37 | d_pipe='undef' |
| 38 | |
| 39 | startperl='#!perl' |
| 40 | |
| 41 | case "X$optimize" in |
| 42 | X) |
| 43 | case `gcc -v 2>&1|grep "gcc version"` in |
| 44 | "gcc version 3."*) |
| 45 | optimize="-O2 -falign-loops=2 -falign-jumps=2 -falign-functions=2" ;; |
| 46 | *) |
| 47 | optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2" ;; |
| 48 | esac |
| 49 | ldflags='-s' |
| 50 | ;; |
| 51 | X*) |
| 52 | ldflags=' ' |
| 53 | ;; |
| 54 | esac |
| 55 | ccflags="$ccflags -DPERL_EXTERNAL_GLOB" |
| 56 | usemymalloc='n' |
| 57 | timetype='time_t' |
| 58 | |
| 59 | prefix=$DJDIR |
| 60 | privlib=$prefix/lib/perl5 |
| 61 | archlib=$privlib |
| 62 | sitelib=$privlib/site |
| 63 | sitearch=$sitelib |
| 64 | |
| 65 | eagain='EAGAIN' |
| 66 | rd_nodata='-1' |
| 67 | |
| 68 | # This script UU/usethreads.cbu will get 'called-back' by Configure |
| 69 | # after it has prompted the user for whether to use threads. |
| 70 | cat > UU/usethreads.cbu <<'EOCBU' |
| 71 | case "$usethreads" in |
| 72 | $define|true|[yY]*) |
| 73 | set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'` |
| 74 | shift |
| 75 | libswanted="$*" |
| 76 | ;; |
| 77 | esac |
| 78 | EOCBU |
| 79 | |
| 80 | useperlio='undef' |
| 81 | uselargefiles='undef' |