2 # Original version by rsanders
3 # Additional support by Kenneth Albanowski <kjahds@kjahds.com>
5 # ELF support by H.J. Lu <hjl@nynexst.com>
6 # Additional info from Nigel Head <nhead@ESOC.bitnet>
7 # and Kenneth Albanowski <kjahds@kjahds.com>
9 # Consolidated by Andy Dougherty <doughera@lafcol.lafayette.edu>
11 # Last updated Tue May 30 14:25:02 EDT 1995
13 # If you wish to use something other than 'gcc' for your compiler,
14 # you should specify it on the Configure command line. To use
15 # gcc-elf, for exmample, type
16 # ./Configure -Dcc=gcc-elf
18 # perl goes into the /usr tree. See the Filesystem Standard
19 # available via anonymous FTP at tsx-11.mit.edu in
20 # /pub/linux/docs/linux-standards/fsstnd.
21 # Allow a command line override, e.g. Configure -Dprefix=/foo/bar
26 # Perl expects BSD style signal handling.
27 # gcc-2.6.3 defines _G_HAVE_BOOL to 1, but doesn't actually supply bool.
28 ccflags="-D__USE_BSD_SIGNAL -Dbool=char -DHAS_BOOL $ccflags"
30 # The following functions are gcc built-ins, but the Configure tests
31 # may fail because they don't supply proper prototypes.
32 # This should be fixed as of 5.001f. I'd appreciate reports.
36 # Configure may fail to find lstat() since it's a static/inline
37 # function in <sys/stat.h>.
43 # I think Configure gets this right now, but I'd appreciate reports.
53 # Are we using ELF? Thanks to Kenneth Albanowski <kjahds@kjahds.com>
56 /* Test for whether ELF binaries are produced */
61 int i=open("a.out",O_RDONLY);
64 if(read(i,&buffer[0],4)<4)
66 if(buffer[0] != 127 || buffer[1] != 'E' ||
67 buffer[2] != 'L' || buffer[3] != 'F')
69 exit(0); /* succeed (yes, it's ELF) */
72 if ${cc:-gcc} try.c >/dev/null 2>&1 && ./a.out; then
75 You appear to have ELF support. I'll try to use it for dynamic loading.
80 You don't have an ELF gcc. I will use dld if possible. If you are
81 using a version of DLD earlier than 3.2.6, or don't have it at all, you
82 should probably upgrade. If you are forced to use 3.2.4, you should
83 uncomment a couple of lines in hints/linux.sh and restart Configure so
84 that shared libraries will be disallowed.
87 lddlflags="-r $lddlflags"
88 # These empty values are so that Configure doesn't put in the
94 ## If you are using DLD 3.2.4 which does not support shared libs,
95 ## uncomment the next two lines:
102 if /bin/bash -c exit; then
103 echo You appear to have a working bash. Good.
106 Warning: it would appear you have a defective bash shell installed. This is
107 likely to give you a failure of op/exec test #5 during the test phase of the
108 build, Upgrading to a recent version (1.14.4 or later) should fix the
115 # In addition, on some systems there is a problem with perl and NDBM, which
116 # causes AnyDBM and NDBM_File to lock up. This is evidenced in the tests as
117 # AnyDBM just freezing. Currently we disable NDBM for all linux systems.
118 # If someone can suggest a more robust test, that would be appreciated.
119 # This will generate a harmless message:
120 # Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
121 # Propagating recommended variable d_dbm_open