be defensive about setting {host,group,pass}cat (from Andy Dougherty)
[p5sagit/p5-mst-13.2.git] / hints / cygwin.sh
CommitLineData
5aabfad6 1#! /bin/sh
2c2d71f5 2# cygwin.sh - hints for building perl using the Cygwin environment for Win32
5aabfad6 3#
c22e42be 4# Many of these inflexible settings should be changed to allow command-
5# line overrides and allow for variations in local set-ups.
6# I have made first guesses at some of these, but would welcome
7# corrections from someone actually using Cygwin.
8# Andy Dougherty <doughera@lafayette.edu> Tue Sep 28 12:39:38 EDT 1999
f89d6eaa 9
8736538c 10_exe='.exe'
f89d6eaa 11exe_ext='.exe'
12# work around case-insensitive file names
13firstmakefile='GNUmakefile'
14sharpbang='#!'
15startsh='#!/bin/sh'
16
2c2d71f5 17archname='cygwin'
c22e42be 18test -z "$cc" && cc='gcc'
1cab015a 19libpth='/usr/i586-cygwin32/lib /usr/lib /usr/local/lib'
f89d6eaa 20so='dll'
1cab015a 21libs='-lcygwin -lm -lkernel32'
f89d6eaa 22#optimize='-g'
c22e42be 23# Is -I/usr/include *really* needed?
24# Is -I/usr/local/include *really* needed? I thought gcc always looked there.
25ccflags="$ccflags -DCYGWIN -I/usr/include -I/usr/local/include"
26# Is -L/usr/lib *really* needed?
27ldflags="$ldflags -L/usr/i586-cygwin32/lib -L/usr/lib -L/usr/local/lib"
28test -z "$usemymalloc" && usemymalloc='n'
2c2d71f5 29dlsrc='dl_cygwin.xs'
f89d6eaa 30cccdlflags=' '
8736538c 31ld='ld2'
c22e42be 32# Is -L/usr/local/lib *really* needed?
33lddlflags="$lddlflags -L/usr/local/lib"
8736538c 34useshrplib='true'
f89d6eaa 35libperl='libperl.a'
36dlext='dll'
d493b042 37dynamic_ext=' '
f89d6eaa 38
c22e42be 39# What if they aren't using $prefix=/usr/local ??
40# Why is this needed at all? Doesn't Configure suggest this?
41test -z "$man1dir" && man1dir=/usr/local/man/man1
42test -z "$man3dir" && man3dir=/usr/local/man/man3
5cf1d1f1 43
44case "$ldlibpthname" in
45'') ldlibpthname=PATH ;;
46esac