Commit | Line | Data |
---|---|---|
2304df62 AD |
1 | #! /bin/sh |
2 | # | |
3 | # If these # comments don't work, trim them. Don't worry about any other | |
4 | # shell scripts, Configure will trim # comments from them for you. | |
5 | # | |
6 | # (If you are trying to port this package to a machine without sh, | |
7 | # I would suggest you have a look at the prototypical config_h.SH file | |
8 | # and edit it to reflect your system. Some packages may include samples | |
9 | # of config.h for certain machines, so you might look for one of those.) | |
10 | # | |
11 | # Yes, you may rip this off to use in other distribution packages. This | |
12 | # script belongs to the public domain and cannot be copyrighted. | |
13 | # | |
f40bbcbf MB |
14 | # Note: this Configure script was generated automatically by the tool |
15 | # called "metaconfig". Rather than working with this copy of Configure, | |
0c6f4d86 | 16 | # you should use metaconfig. Perl uses a modified version of this |
be0984c2 DH |
17 | # tool, and this, together with the metaconfig units, are available |
18 | # in the git repository: | |
1e436e33 | 19 | # $ git clone https://github.com/perl5-metaconfig/metaconfig metaconfig |
4b167619 | 20 | # The original dist package (including metaconfig) is available on github: |
1e436e33 | 21 | # $ git clone https://github.com/rmanfredi/dist.git dist-git |
2304df62 | 22 | # |
6f5be6d1 | 23 | # Though this script was generated by metaconfig from metaunits, it is |
be0984c2 DH |
24 | # OK to send patches against Configure itself (but not to commit them |
25 | # to blead). It's up to | |
26 | # the Configure maintainers to backport the patch to the metaunits if it | |
27 | # is accepted. Exceptions to this rule, and more information, is in | |
28 | # Porting/pumpkin.pod. | |
2304df62 | 29 | |
f6a82ade | 30 | # Generated using [metaconfig 3.5 PL0] |
7f2de2d2 | 31 | # (with additional metaconfig patches by perlbug@perl.org) |
2304df62 | 32 | |
283fdd21 | 33 | cat >c1$$ <<EOF |
2304df62 AD |
34 | ARGGGHHHH!!!!! |
35 | ||
36 | SCO csh still thinks true is false. Write to SCO today and tell them that next | |
37 | year Configure ought to "rm /bin/csh" unless they fix their blasted shell. :-) | |
38 | ||
39 | (Actually, Configure ought to just patch csh in place. Hmm. Hmmmmm. All | |
40 | we'd have to do is go in and swap the && and || tokens, wherever they are.) | |
41 | ||
42 | [End of diatribe. We now return you to your regularly scheduled programming...] | |
43 | EOF | |
283fdd21 | 44 | cat >c2$$ <<EOF |
2304df62 AD |
45 | |
46 | OOPS! You naughty creature! You didn't run Configure with sh! | |
47 | I will attempt to remedy the situation by running sh for you... | |
48 | EOF | |
49 | ||
283fdd21 | 50 | true || cat c1$$ c2$$ |
2304df62 AD |
51 | true || exec sh $0 $argv:q |
52 | ||
283fdd21 | 53 | (exit $?0) || cat c2$$ |
2304df62 | 54 | (exit $?0) || exec sh $0 $argv:q |
283fdd21 | 55 | rm -f c1$$ c2$$ |
2304df62 | 56 | |
f6538904 | 57 | if test -f /dev/cputype -a -f /dev/drivers -a -f /dev/osversion; then |
d03b3b00 | 58 | cat <<EOF |
cbee2ce6 JH |
59 | *** |
60 | *** I'm sorry but this system looks like Plan 9 and Plan 9 doesn't do | |
61 | *** Configure that well. (Plan 9 is close to UNIX but not close enough.) | |
62 | *** Please read the README.plan9 for further instructions. | |
63 | *** Cannot continue, aborting. | |
64 | *** | |
65 | EOF | |
66 | exit 1 | |
67 | fi | |
68 | ||
375e43a7 AB |
69 | if test -f /sys/utilities/MultiView ; then |
70 | # AmigaOS, test -c for /dev/null is not useful | |
71 | : | |
72 | elif test ! -c /dev/null ; then | |
d03b3b00 | 73 | cat <<EOF |
f8e2af1d MC |
74 | *** |
75 | *** I'm sorry, but /dev/null appears to be a file rather than a device. | |
76 | *** Please consult your operating sytem's notes for making a device | |
77 | *** in /dev. | |
78 | *** Cannot continue, aborting. | |
79 | *** | |
80 | EOF | |
81 | exit 1 | |
82 | fi | |
83 | ||
a0d0e21e LW |
84 | : compute my invocation name |
85 | me=$0 | |
86 | case "$0" in | |
87 | */*) | |
88 | me=`echo $0 | sed -e 's!.*/\(.*\)!\1!' 2>/dev/null` | |
89 | test "$me" || me=$0 | |
90 | ;; | |
91 | esac | |
92 | ||
dfe9444c | 93 | : Proper separator for the PATH environment variable |
8e07c86e | 94 | p_=: |
613d6c3e | 95 | : On OS/2 this directory should exist if this is not floppy only system ":-]" |
48a72c67 | 96 | if test -d c:/. || ( uname -a | grep -i 'os\(/\|\)2' 2>&1 ) 2>&1 >/dev/null ; then |
613d6c3e | 97 | if test -n "$OS2_SHELL"; then |
dfe9444c AD |
98 | p_=\; |
99 | PATH=`cmd /c "echo %PATH%" | tr '\\\\' / ` | |
100 | OS2_SHELL=`cmd /c "echo %OS2_SHELL%" | tr '\\\\' / | tr '[A-Z]' '[a-z]'` | |
5c728af0 | 101 | is_os2=yes |
c4f23d77 | 102 | elif test -n "$DJGPP"; then |
495e2cbe | 103 | case "X${MACHTYPE:-nonesuchmach}" in |
8f1aac98 | 104 | *cygwin|*msys) ;; |
495e2cbe MB |
105 | *) p_=\; ;; |
106 | esac | |
dfe9444c | 107 | fi |
39e571d4 | 108 | fi |
a0d0e21e LW |
109 | |
110 | : Proper PATH setting | |
111 | paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin' | |
16d20bd9 | 112 | paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin" |
232e078e | 113 | paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin" |
16d20bd9 | 114 | paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin" |
232e078e | 115 | paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb" |
87bdd940 | 116 | paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin" |
232e078e AD |
117 | paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib" |
118 | paths="$paths /sbin /usr/sbin /usr/libexec" | |
3c728e00 | 119 | paths="$paths /system/gnu_library/bin" |
a0d0e21e LW |
120 | |
121 | for p in $paths | |
122 | do | |
8e07c86e AD |
123 | case "$p_$PATH$p_" in |
124 | *$p_$p$p_*) ;; | |
125 | *) test -d $p && PATH=$PATH$p_$p ;; | |
a0d0e21e LW |
126 | esac |
127 | done | |
128 | ||
8e07c86e | 129 | PATH=.$p_$PATH |
2304df62 AD |
130 | export PATH |
131 | ||
dfe9444c AD |
132 | : shall we be using ksh? |
133 | inksh='' | |
134 | needksh='' | |
135 | avoidksh='' | |
136 | newsh=/bin/ksh | |
137 | changesh='' | |
ff0cee69 | 138 | if (PATH=.; alias -x) >/dev/null 2>&1; then |
dfe9444c AD |
139 | inksh=true |
140 | fi | |
141 | if test -f /hp-ux -a -f /bin/ksh; then | |
142 | needksh='to avoid sh bug in "here document" expansion' | |
143 | fi | |
144 | if test -d /usr/lpp -a -f /usr/bin/bsh -a -f /usr/bin/uname; then | |
145 | if test X`/usr/bin/uname -v` = X4; then | |
146 | avoidksh="to avoid AIX 4's /bin/sh" | |
147 | newsh=/usr/bin/bsh | |
2304df62 | 148 | fi |
dfe9444c | 149 | fi |
cf04f91f JH |
150 | if test -f /osf_boot -a -f /usr/sbin/setld; then |
151 | if test X`/usr/bin/uname -s` = XOSF1; then | |
613d6c3e MB |
152 | avoidksh="to avoid Digital UNIX' ksh" |
153 | newsh=/bin/sh | |
154 | unset BIN_SH | |
cf04f91f JH |
155 | fi |
156 | fi | |
dfe9444c AD |
157 | case "$inksh/$needksh" in |
158 | /[a-z]*) | |
c4f23d77 | 159 | ENV='' |
dfe9444c AD |
160 | changesh=true |
161 | reason="$needksh" | |
162 | ;; | |
163 | esac | |
164 | case "$inksh/$avoidksh" in | |
165 | true/[a-z]*) | |
166 | changesh=true | |
167 | reason="$avoidksh" | |
168 | ;; | |
169 | esac | |
170 | case "$inksh/$needksh-$avoidksh-" in | |
171 | true/--) | |
a0d0e21e LW |
172 | cat <<EOM |
173 | (I see you are using the Korn shell. Some ksh's blow up on $me, | |
dfe9444c | 174 | mainly on older exotic systems. If yours does, try the Bourne shell instead.) |
ff0cee69 | 175 | EOM |
dfe9444c AD |
176 | ;; |
177 | esac | |
178 | case "$changesh" in | |
179 | true) | |
2e2a97a6 | 180 | export newsh |
dfe9444c AD |
181 | echo "(Feeding myself to $newsh $reason.)" |
182 | case "$0" in | |
183 | Configure|*/Configure) exec $newsh $0 "$@";; | |
184 | *) exec $newsh Configure "$@";; | |
185 | esac | |
186 | ;; | |
187 | esac | |
7730b9f4 | 188 | test -x "${newsh}" || unset newsh |
2304df62 | 189 | |
613d6c3e | 190 | : if needed, set CDPATH to a harmless value that is not chatty |
bfb7748a AD |
191 | : avoid bash 2.02 problems with empty CDPATH. |
192 | case "$CDPATH" in | |
193 | '') ;; | |
194 | *) case "$SHELL" in | |
613d6c3e MB |
195 | *bash*) CDPATH='.' ;; |
196 | *) CDPATH='' ;; | |
bfb7748a AD |
197 | esac |
198 | ;; | |
199 | esac | |
613d6c3e | 200 | |
2304df62 AD |
201 | : Configure runs within the UU subdirectory |
202 | test -d UU || mkdir UU | |
8e07c86e | 203 | cd UU && rm -f ./* |
2304df62 | 204 | |
6b356c8e JH |
205 | ccname='' |
206 | ccversion='' | |
b4eb6b3d JH |
207 | ccsymbols='' |
208 | cppccsymbols='' | |
209 | cppsymbols='' | |
5440bc8e | 210 | from='' |
f53a6e0e MB |
211 | hostgenerate='' |
212 | hostosname='' | |
213 | hostperl='' | |
5440bc8e JH |
214 | run='' |
215 | targetarch='' | |
82a085a5 | 216 | targetdir='' |
fa142983 | 217 | targetenv='' |
82a085a5 | 218 | targethost='' |
56b575b9 | 219 | targetmkdir='' |
dad780ec | 220 | targetport='' |
5440bc8e JH |
221 | to='' |
222 | usecrosscompile='' | |
61c26d18 | 223 | extern_C='' |
6b34ded5 | 224 | mistrustnm='' |
1be1b388 | 225 | usedevel='' |
9c839522 | 226 | perllibs='' |
b4eb6b3d JH |
227 | dynamic_ext='' |
228 | extensions='' | |
229 | known_extensions='' | |
230 | nonxs_ext='' | |
231 | static_ext='' | |
232 | useopcode='' | |
233 | useposix='' | |
6fcddf3b | 234 | extras='' |
ecfc5424 | 235 | d_bsd='' |
40a7a20a | 236 | d_eunice='' |
2304df62 AD |
237 | d_xenix='' |
238 | eunicefix='' | |
dfe9444c | 239 | ar='' |
2304df62 AD |
240 | awk='' |
241 | bash='' | |
242 | bison='' | |
243 | byacc='' | |
244 | cat='' | |
245 | chgrp='' | |
246 | chmod='' | |
247 | chown='' | |
ecfc5424 | 248 | comm='' |
2304df62 AD |
249 | compress='' |
250 | cp='' | |
251 | cpio='' | |
252 | cpp='' | |
253 | csh='' | |
254 | date='' | |
255 | echo='' | |
256 | egrep='' | |
257 | emacs='' | |
258 | expr='' | |
259 | find='' | |
260 | flex='' | |
3c728e00 | 261 | gmake='' |
2304df62 | 262 | grep='' |
8ff267be | 263 | gzip='' |
2304df62 AD |
264 | inews='' |
265 | ksh='' | |
266 | less='' | |
267 | line='' | |
268 | lint='' | |
269 | ln='' | |
270 | lp='' | |
271 | lpr='' | |
272 | ls='' | |
273 | mail='' | |
274 | mailx='' | |
dfe9444c | 275 | make='' |
2304df62 AD |
276 | mkdir='' |
277 | more='' | |
278 | mv='' | |
693762b4 | 279 | nm='' |
2304df62 AD |
280 | nroff='' |
281 | perl='' | |
282 | pg='' | |
283 | pmake='' | |
284 | pr='' | |
285 | rm='' | |
286 | rmail='' | |
287 | sed='' | |
288 | sendmail='' | |
2304df62 AD |
289 | shar='' |
290 | sleep='' | |
291 | smail='' | |
292 | sort='' | |
293 | submit='' | |
294 | tail='' | |
295 | tar='' | |
296 | tbl='' | |
693762b4 | 297 | tee='' |
2304df62 AD |
298 | test='' |
299 | touch='' | |
300 | tr='' | |
301 | troff='' | |
302 | uname='' | |
303 | uniq='' | |
304 | uuname='' | |
305 | vi='' | |
306 | zcat='' | |
8ff267be | 307 | zip='' |
b4eb6b3d JH |
308 | full_ar='' |
309 | full_sed='' | |
a0d0e21e | 310 | libswanted='' |
2304df62 AD |
311 | hint='' |
312 | myuname='' | |
85e6fe83 LW |
313 | osname='' |
314 | osvers='' | |
2304df62 AD |
315 | Author='' |
316 | Date='' | |
317 | Header='' | |
318 | Id='' | |
319 | Locker='' | |
320 | Log='' | |
321 | RCSfile='' | |
322 | Revision='' | |
323 | Source='' | |
324 | State='' | |
56b575b9 | 325 | sysroot='' |
dfe9444c AD |
326 | _a='' |
327 | _exe='' | |
328 | _o='' | |
4633a7c4 LW |
329 | archobjs='' |
330 | exe_ext='' | |
331 | firstmakefile='' | |
332 | lib_ext='' | |
333 | obj_ext='' | |
334 | path_sep='' | |
5b813a60 | 335 | rm_try='' |
b4eb6b3d | 336 | afs='' |
a6d26a0d | 337 | afsroot='' |
b4eb6b3d | 338 | alignbytes='' |
b4eb6b3d JH |
339 | archlib='' |
340 | archlibexp='' | |
341 | d_archlib='' | |
342 | installarchlib='' | |
343 | archname='' | |
344 | myarchname='' | |
1a1287f4 | 345 | useversionedarchname='' |
b4eb6b3d JH |
346 | d_atolf='' |
347 | d_atoll='' | |
348 | baserev='' | |
349 | bin='' | |
350 | binexp='' | |
f3f1a2d8 | 351 | initialinstalllocation='' |
b4eb6b3d | 352 | installbin='' |
f3f1a2d8 | 353 | userelocatableinc='' |
b4eb6b3d | 354 | byteorder='' |
2304df62 | 355 | cc='' |
2304df62 AD |
356 | ccflags='' |
357 | cppflags='' | |
358 | ldflags='' | |
359 | lkflags='' | |
8e07c86e | 360 | locincpth='' |
2304df62 | 361 | optimize='' |
b4eb6b3d | 362 | cf_email='' |
2304df62 AD |
363 | cf_by='' |
364 | cf_time='' | |
c193ef60 MB |
365 | charbits='' |
366 | charsize='' | |
2304df62 | 367 | contains='' |
b4eb6b3d | 368 | cpp_stuff='' |
2304df62 AD |
369 | cpplast='' |
370 | cppminus='' | |
371 | cpprun='' | |
372 | cppstdin='' | |
74cac757 | 373 | d__fwalk='' |
5c7252f4 | 374 | d_accept4='' |
b4eb6b3d JH |
375 | d_access='' |
376 | d_accessx='' | |
40613a90 | 377 | d_acosh='' |
55954f19 | 378 | d_aintl='' |
b4eb6b3d | 379 | d_alarm='' |
10bc17b6 JH |
380 | asctime_r_proto='' |
381 | d_asctime_r='' | |
f40bbcbf MB |
382 | d_asinh='' |
383 | d_atanh='' | |
fcdf39cf | 384 | d_attribute_deprecated='' |
0dbb1585 AL |
385 | d_attribute_format='' |
386 | d_attribute_malloc='' | |
387 | d_attribute_nonnull='' | |
388 | d_attribute_noreturn='' | |
389 | d_attribute_pure='' | |
390 | d_attribute_unused='' | |
391 | d_attribute_warn_unused_result='' | |
dcb594bc | 392 | d_printf_format_null='' |
60bd7b48 | 393 | d_backtrace='' |
635aebb7 AL |
394 | d_builtin_choose_expr='' |
395 | d_builtin_expect='' | |
c94a4d04 MB |
396 | d_builtin_add_overflow='' |
397 | d_builtin_mul_overflow='' | |
398 | d_builtin_sub_overflow='' | |
a2d23ec2 | 399 | d_c99_variadic_macros='' |
b4eb6b3d JH |
400 | d_casti32='' |
401 | castflags='' | |
402 | d_castneg='' | |
427d28ce | 403 | d_cbrt='' |
b4eb6b3d JH |
404 | d_chown='' |
405 | d_chroot='' | |
406 | d_chsize='' | |
758a5d79 | 407 | d_class='' |
b0a2e8e6 | 408 | d_clearenv='' |
b4eb6b3d JH |
409 | d_closedir='' |
410 | d_void_closedir='' | |
4e0554ec | 411 | d_cmsghdr_s='' |
b4eb6b3d | 412 | d_const='' |
427d28ce | 413 | d_copysign='' |
36adc09b | 414 | d_copysignl='' |
666ea192 | 415 | d_cplusplus='' |
b4eb6b3d JH |
416 | cryptlib='' |
417 | d_crypt='' | |
10bc17b6 JH |
418 | crypt_r_proto='' |
419 | d_crypt_r='' | |
b4eb6b3d JH |
420 | d_csh='' |
421 | full_csh='' | |
13cfc98d | 422 | d_ctermid='' |
10bc17b6 JH |
423 | ctermid_r_proto='' |
424 | d_ctermid_r='' | |
425 | ctime_r_proto='' | |
426 | d_ctime_r='' | |
b4eb6b3d | 427 | d_cuserid='' |
2ef53570 | 428 | d_dbminitproto='' |
b4eb6b3d | 429 | d_difftime='' |
de52168c | 430 | d_dir_dd_fd='' |
ae0e3d3b | 431 | d_dirfd='' |
470dd224 | 432 | d_dladdr='' |
b4eb6b3d | 433 | d_dlerror='' |
a0d0e21e | 434 | d_dlopen='' |
b4eb6b3d JH |
435 | d_dlsymun='' |
436 | d_dosuid='' | |
437 | d_suidsafe='' | |
10bc17b6 JH |
438 | d_drand48_r='' |
439 | drand48_r_proto='' | |
b4eb6b3d JH |
440 | d_drand48proto='' |
441 | d_dup2='' | |
5c7252f4 | 442 | d_dup3='' |
b4eb6b3d JH |
443 | d_eaccess='' |
444 | d_endgrent='' | |
10bc17b6 JH |
445 | d_endgrent_r='' |
446 | endgrent_r_proto='' | |
b4eb6b3d | 447 | d_endhent='' |
10bc17b6 JH |
448 | d_endhostent_r='' |
449 | endhostent_r_proto='' | |
b4eb6b3d | 450 | d_endnent='' |
10bc17b6 JH |
451 | d_endnetent_r='' |
452 | endnetent_r_proto='' | |
b4eb6b3d | 453 | d_endpent='' |
10bc17b6 JH |
454 | d_endprotoent_r='' |
455 | endprotoent_r_proto='' | |
b4eb6b3d | 456 | d_endpwent='' |
10bc17b6 JH |
457 | d_endpwent_r='' |
458 | endpwent_r_proto='' | |
b4eb6b3d | 459 | d_endsent='' |
10bc17b6 JH |
460 | d_endservent_r='' |
461 | endservent_r_proto='' | |
427d28ce JH |
462 | d_erf='' |
463 | d_erfc='' | |
464 | d_exp2='' | |
465 | d_expm1='' | |
15b61c98 | 466 | d_faststdio='' |
b363b713 | 467 | d_fchdir='' |
b4eb6b3d JH |
468 | d_fchmod='' |
469 | d_fchown='' | |
470 | d_fcntl='' | |
9d9004a9 | 471 | d_fcntl_can_lock='' |
b4eb6b3d JH |
472 | d_fd_macros='' |
473 | d_fd_set='' | |
474 | d_fds_bits='' | |
8b8c6ab7 | 475 | d_fdclose='' |
f40bbcbf | 476 | d_fdim='' |
2f6b96eb | 477 | d_fegetround='' |
b4eb6b3d | 478 | d_fgetpos='' |
758a5d79 JH |
479 | d_finite='' |
480 | d_finitel='' | |
b4eb6b3d JH |
481 | d_flexfnam='' |
482 | d_flock='' | |
2ef53570 | 483 | d_flockproto='' |
427d28ce JH |
484 | d_fma='' |
485 | d_fmax='' | |
486 | d_fmin='' | |
b4eb6b3d | 487 | d_fork='' |
758a5d79 | 488 | d_fp_class='' |
b19ee02c | 489 | d_fp_classl='' |
758a5d79 | 490 | d_fpclass='' |
d0166596 | 491 | d_fp_classify='' |
758a5d79 JH |
492 | d_fpclassify='' |
493 | d_fpclassl='' | |
4c1a9b0c | 494 | d_fpgetround='' |
b4eb6b3d JH |
495 | d_fpos64_t='' |
496 | d_frexpl='' | |
ea442100 | 497 | d_fs_data_s='' |
3c29c5aa MB |
498 | d_fchmodat='' |
499 | d_linkat='' | |
500 | d_openat='' | |
501 | d_renameat='' | |
502 | d_unlinkat='' | |
b4eb6b3d JH |
503 | d_fseeko='' |
504 | d_fsetpos='' | |
ea442100 | 505 | d_fstatfs='' |
411ab01c | 506 | d_fsync='' |
b4eb6b3d JH |
507 | d_ftello='' |
508 | d_ftime='' | |
509 | d_gettimeod='' | |
dc814df1 | 510 | d_futimes='' |
0cc74f39 | 511 | d_gai_strerror='' |
b4eb6b3d | 512 | d_Gconvert='' |
5086dff9 | 513 | d_getaddrinfo='' |
b4eb6b3d JH |
514 | d_getcwd='' |
515 | d_getespwnam='' | |
ea442100 | 516 | d_getfsstat='' |
b4eb6b3d | 517 | d_getgrent='' |
10bc17b6 JH |
518 | d_getgrent_r='' |
519 | getgrent_r_proto='' | |
520 | d_getgrgid_r='' | |
521 | getgrgid_r_proto='' | |
522 | d_getgrnam_r='' | |
523 | getgrnam_r_proto='' | |
b4eb6b3d JH |
524 | d_getgrps='' |
525 | d_gethbyaddr='' | |
526 | d_gethbyname='' | |
527 | d_gethent='' | |
528 | aphostname='' | |
529 | d_gethname='' | |
530 | d_phostname='' | |
531 | d_uname='' | |
10bc17b6 JH |
532 | d_gethostbyaddr_r='' |
533 | gethostbyaddr_r_proto='' | |
534 | d_gethostbyname_r='' | |
535 | gethostbyname_r_proto='' | |
536 | d_gethostent_r='' | |
537 | gethostent_r_proto='' | |
b4eb6b3d | 538 | d_gethostprotos='' |
4e0554ec | 539 | d_getitimer='' |
b4eb6b3d | 540 | d_getlogin='' |
10bc17b6 JH |
541 | d_getlogin_r='' |
542 | getlogin_r_proto='' | |
ea442100 JH |
543 | d_getmnt='' |
544 | d_getmntent='' | |
5086dff9 | 545 | d_getnameinfo='' |
b4eb6b3d JH |
546 | d_getnbyaddr='' |
547 | d_getnbyname='' | |
548 | d_getnent='' | |
10bc17b6 JH |
549 | d_getnetbyaddr_r='' |
550 | getnetbyaddr_r_proto='' | |
551 | d_getnetbyname_r='' | |
552 | getnetbyname_r_proto='' | |
553 | d_getnetent_r='' | |
554 | getnetent_r_proto='' | |
b4eb6b3d | 555 | d_getnetprotos='' |
0c0643d0 | 556 | d_getpagsz='' |
b4eb6b3d JH |
557 | d_getpent='' |
558 | d_getpgid='' | |
559 | d_getpgrp2='' | |
560 | d_bsdgetpgrp='' | |
561 | d_getpgrp='' | |
562 | d_getppid='' | |
563 | d_getprior='' | |
564 | d_getpbyname='' | |
565 | d_getpbynumber='' | |
10bc17b6 JH |
566 | d_getprotobyname_r='' |
567 | getprotobyname_r_proto='' | |
568 | d_getprotobynumber_r='' | |
569 | getprotobynumber_r_proto='' | |
570 | d_getprotoent_r='' | |
571 | getprotoent_r_proto='' | |
b4eb6b3d JH |
572 | d_getprotoprotos='' |
573 | d_getprpwnam='' | |
574 | d_getpwent='' | |
10bc17b6 JH |
575 | d_getpwent_r='' |
576 | getpwent_r_proto='' | |
577 | d_getpwnam_r='' | |
578 | getpwnam_r_proto='' | |
579 | d_getpwuid_r='' | |
580 | getpwuid_r_proto='' | |
b4eb6b3d | 581 | d_getsent='' |
10bc17b6 JH |
582 | d_getservbyname_r='' |
583 | getservbyname_r_proto='' | |
584 | d_getservbyport_r='' | |
585 | getservbyport_r_proto='' | |
586 | d_getservent_r='' | |
587 | getservent_r_proto='' | |
b4eb6b3d JH |
588 | d_getservprotos='' |
589 | d_getspnam='' | |
10bc17b6 JH |
590 | d_getspnam_r='' |
591 | getspnam_r_proto='' | |
b4eb6b3d JH |
592 | d_getsbyname='' |
593 | d_getsbyport='' | |
10bc17b6 JH |
594 | d_gmtime_r='' |
595 | gmtime_r_proto='' | |
a4f3eea9 | 596 | d_gnulibc='' |
5f6e0ee4 | 597 | gnulibc_version='' |
ea442100 | 598 | d_hasmntopt='' |
b4eb6b3d | 599 | d_htonl='' |
427d28ce JH |
600 | d_hypot='' |
601 | d_ilogb='' | |
55954f19 | 602 | d_ilogbl='' |
b4eb6b3d | 603 | d_inetaton='' |
5086dff9 MB |
604 | d_inetntop='' |
605 | d_inetpton='' | |
b4eb6b3d JH |
606 | d_int64_t='' |
607 | d_isascii='' | |
269a7913 | 608 | d_isblank='' |
758a5d79 | 609 | d_isfinite='' |
fa484e60 | 610 | d_isfinitel='' |
758a5d79 | 611 | d_isinf='' |
fa484e60 | 612 | d_isinfl='' |
f40bbcbf | 613 | d_isless='' |
b4eb6b3d JH |
614 | d_isnan='' |
615 | d_isnanl='' | |
427d28ce | 616 | d_isnormal='' |
4671125a JH |
617 | d_j0='' |
618 | d_j0l='' | |
b4eb6b3d | 619 | d_killpg='' |
f40bbcbf | 620 | d_lc_monetary_2008='' |
b4eb6b3d JH |
621 | d_lchown='' |
622 | d_ldbl_dig='' | |
427d28ce JH |
623 | d_lgamma='' |
624 | d_lgamma_r='' | |
0a0abfba | 625 | d_libm_lib_version='' |
b4eb6b3d | 626 | d_link='' |
427d28ce | 627 | d_llrint='' |
bc580dd3 | 628 | d_llrintl='' |
427d28ce | 629 | d_llround='' |
bc580dd3 | 630 | d_llroundl='' |
c94a4d04 | 631 | d_localeconv_l='' |
10bc17b6 | 632 | d_localtime_r='' |
8572b25d | 633 | d_localtime_r_needs_tzset='' |
10bc17b6 | 634 | localtime_r_proto='' |
b4eb6b3d JH |
635 | d_locconv='' |
636 | d_lockf='' | |
427d28ce JH |
637 | d_log1p='' |
638 | d_log2='' | |
639 | d_logb='' | |
f40bbcbf | 640 | d_ldexpl='' |
4cb05021 JH |
641 | d_long_double_style_ieee='' |
642 | d_long_double_style_ieee_doubledouble='' | |
643 | d_long_double_style_ieee_extended='' | |
644 | d_long_double_style_ieee_std='' | |
645 | d_long_double_style_vax='' | |
517f0560 | 646 | d_longdbl='' |
dc91db6c | 647 | longdblkind='' |
b4eb6b3d JH |
648 | longdblsize='' |
649 | d_longlong='' | |
650 | longlongsize='' | |
427d28ce | 651 | d_lrint='' |
bc580dd3 | 652 | d_lrintl='' |
427d28ce | 653 | d_lround='' |
bc580dd3 | 654 | d_lroundl='' |
b4eb6b3d JH |
655 | d_lseekproto='' |
656 | d_lstat='' | |
657 | d_madvise='' | |
7dd121ae MB |
658 | d_malloc_good_size='' |
659 | d_malloc_size='' | |
b4eb6b3d | 660 | d_mblen='' |
c94a4d04 MB |
661 | d_mbrlen='' |
662 | d_mbrtowc='' | |
b4eb6b3d JH |
663 | d_mbstowcs='' |
664 | d_mbtowc='' | |
3879c54d | 665 | d_memmem='' |
1e436e33 | 666 | d_memrchr='' |
b4eb6b3d JH |
667 | d_mkdir='' |
668 | d_mkdtemp='' | |
669 | d_mkfifo='' | |
670 | d_mkstemp='' | |
671 | d_mkstemps='' | |
672 | d_mktime='' | |
673 | d_mmap='' | |
674 | mmaptype='' | |
675 | d_modfl='' | |
bc9a1b2c | 676 | d_modflproto='' |
b4eb6b3d JH |
677 | d_mprotect='' |
678 | d_msg='' | |
679 | d_msgctl='' | |
680 | d_msgget='' | |
4e0554ec | 681 | d_msghdr_s='' |
b4eb6b3d JH |
682 | d_msgrcv='' |
683 | d_msgsnd='' | |
684 | d_msync='' | |
685 | d_munmap='' | |
427d28ce | 686 | d_nan='' |
c94a4d04 | 687 | d_nanosleep='' |
427d28ce | 688 | d_nearbyint='' |
7e69463d | 689 | d_duplocale='' |
ecb44b8e MB |
690 | d_freelocale='' |
691 | d_newlocale='' | |
bc900e45 | 692 | d_querylocale='' |
ecb44b8e | 693 | d_uselocale='' |
7e69463d | 694 | i_xlocale='' |
427d28ce JH |
695 | d_nextafter='' |
696 | d_nexttoward='' | |
b4eb6b3d | 697 | d_nice='' |
2765b840 | 698 | d_nl_langinfo='' |
c94a4d04 | 699 | d_thread_safe_nl_langinfo_l='' |
b4eb6b3d JH |
700 | d_off64_t='' |
701 | d_open3='' | |
702 | d_fpathconf='' | |
703 | d_pathconf='' | |
704 | d_pause='' | |
5c7252f4 | 705 | d_pipe2='' |
b4eb6b3d JH |
706 | d_pipe='' |
707 | d_poll='' | |
2304df62 | 708 | d_portable='' |
c796e3db MB |
709 | d_prctl='' |
710 | d_prctl_set_name='' | |
a33c94aa | 711 | d_procselfexe='' |
f24dbf84 | 712 | procselfexe='' |
b4eb6b3d JH |
713 | d_old_pthread_create_joinable='' |
714 | old_pthread_create_joinable='' | |
d6483fcc | 715 | d_pthread_atfork='' |
58d975c3 | 716 | d_pthread_attr_setscope='' |
b4eb6b3d JH |
717 | d_pthread_yield='' |
718 | d_sched_yield='' | |
719 | sched_yield='' | |
0e0c5f82 | 720 | d_ptrdiff_t='' |
b4eb6b3d | 721 | d_qgcvt='' |
10bc17b6 JH |
722 | d_random_r='' |
723 | random_r_proto='' | |
724 | d_readdir64_r='' | |
725 | readdir64_r_proto='' | |
b4eb6b3d JH |
726 | d_readdir='' |
727 | d_rewinddir='' | |
728 | d_seekdir='' | |
729 | d_telldir='' | |
10bc17b6 JH |
730 | d_readdir_r='' |
731 | readdir_r_proto='' | |
b4eb6b3d | 732 | d_readlink='' |
4e0554ec JH |
733 | d_readv='' |
734 | d_recvmsg='' | |
f40bbcbf MB |
735 | d_re_comp='' |
736 | d_regcmp='' | |
737 | d_regcomp='' | |
427d28ce JH |
738 | d_remainder='' |
739 | d_remquo='' | |
b4eb6b3d | 740 | d_rename='' |
427d28ce | 741 | d_rint='' |
b4eb6b3d | 742 | d_rmdir='' |
427d28ce | 743 | d_round='' |
ef9f17be | 744 | d_sbrkproto='' |
427d28ce | 745 | d_scalbn='' |
55954f19 | 746 | d_scalbnl='' |
b4eb6b3d JH |
747 | d_select='' |
748 | d_sem='' | |
749 | d_semctl='' | |
750 | d_semget='' | |
751 | d_semop='' | |
4e0554ec | 752 | d_sendmsg='' |
b4eb6b3d JH |
753 | d_setegid='' |
754 | d_seteuid='' | |
755 | d_setgrent='' | |
10bc17b6 JH |
756 | d_setgrent_r='' |
757 | setgrent_r_proto='' | |
b4eb6b3d JH |
758 | d_setgrps='' |
759 | d_sethent='' | |
10bc17b6 JH |
760 | d_sethostent_r='' |
761 | sethostent_r_proto='' | |
4e0554ec | 762 | d_setitimer='' |
b4eb6b3d JH |
763 | d_setlinebuf='' |
764 | d_setlocale='' | |
10bc17b6 JH |
765 | d_setlocale_r='' |
766 | setlocale_r_proto='' | |
b4eb6b3d | 767 | d_setnent='' |
10bc17b6 JH |
768 | d_setnetent_r='' |
769 | setnetent_r_proto='' | |
b4eb6b3d JH |
770 | d_setpent='' |
771 | d_setpgid='' | |
772 | d_setpgrp2='' | |
773 | d_bsdsetpgrp='' | |
774 | d_setpgrp='' | |
775 | d_setprior='' | |
776 | d_setproctitle='' | |
10bc17b6 JH |
777 | d_setprotoent_r='' |
778 | setprotoent_r_proto='' | |
b4eb6b3d | 779 | d_setpwent='' |
10bc17b6 JH |
780 | d_setpwent_r='' |
781 | setpwent_r_proto='' | |
b4eb6b3d JH |
782 | d_setregid='' |
783 | d_setresgid='' | |
784 | d_setresuid='' | |
785 | d_setreuid='' | |
786 | d_setrgid='' | |
787 | d_setruid='' | |
788 | d_setsent='' | |
10bc17b6 JH |
789 | d_setservent_r='' |
790 | setservent_r_proto='' | |
b4eb6b3d JH |
791 | d_setsid='' |
792 | d_setvbuf='' | |
b4eb6b3d JH |
793 | d_shm='' |
794 | d_shmat='' | |
795 | d_shmatprototype='' | |
796 | shmattype='' | |
797 | d_shmctl='' | |
798 | d_shmdt='' | |
799 | d_shmget='' | |
800 | d_sigaction='' | |
2640dfa8 MB |
801 | d_siginfo_si_addr='' |
802 | d_siginfo_si_band='' | |
cdfe2e65 | 803 | d_siginfo_si_errno='' |
7e69463d | 804 | d_siginfo_si_fd='' |
cdfe2e65 | 805 | d_siginfo_si_pid='' |
cdfe2e65 | 806 | d_siginfo_si_status='' |
2640dfa8 | 807 | d_siginfo_si_uid='' |
cdfe2e65 | 808 | d_siginfo_si_value='' |
ed140128 | 809 | d_signbit='' |
983dbef6 | 810 | d_sigprocmask='' |
b4eb6b3d | 811 | d_sigsetjmp='' |
5f106f9c | 812 | usesitecustomize='' |
4059ba87 AC |
813 | d_snprintf='' |
814 | d_vsnprintf='' | |
49a78c82 | 815 | d_sockatmark='' |
2ef53570 | 816 | d_sockatmarkproto='' |
122b9bf4 | 817 | d_ip_mreq='' |
3e06601f | 818 | d_ip_mreq_source='' |
18126d98 | 819 | d_ipv6_mreq='' |
3e06601f | 820 | d_ipv6_mreq_source='' |
b4eb6b3d JH |
821 | d_msg_ctrunc='' |
822 | d_msg_dontroute='' | |
823 | d_msg_oob='' | |
824 | d_msg_peek='' | |
825 | d_msg_proxy='' | |
826 | d_oldsock='' | |
827 | d_scm_rights='' | |
f53580fe | 828 | d_sin6_scope_id='' |
18126d98 | 829 | d_sockaddr_in6='' |
b8677e3b | 830 | d_sockaddr_sa_len='' |
b4eb6b3d JH |
831 | d_socket='' |
832 | d_sockpair='' | |
833 | sockethdr='' | |
834 | socketlib='' | |
835 | d_socklen_t='' | |
836 | d_socks5_init='' | |
837 | d_sqrtl='' | |
10bc17b6 JH |
838 | d_srand48_r='' |
839 | srand48_r_proto='' | |
840 | d_srandom_r='' | |
841 | srandom_r_proto='' | |
eef837ea | 842 | d_sresgproto='' |
640374d0 | 843 | d_sresuproto='' |
f40bbcbf | 844 | d_stat='' |
b4eb6b3d | 845 | d_statblks='' |
ea442100 JH |
846 | d_statfs_f_flags='' |
847 | d_statfs_s='' | |
17a6c8e3 AD |
848 | d_static_inline='' |
849 | perl_static_inline='' | |
ea442100 JH |
850 | d_fstatvfs='' |
851 | d_statvfs='' | |
b4eb6b3d JH |
852 | d_stdio_cnt_lval='' |
853 | d_stdio_ptr_lval='' | |
a7ffa9b9 NC |
854 | d_stdio_ptr_lval_nochange_cnt='' |
855 | d_stdio_ptr_lval_sets_cnt='' | |
b4eb6b3d JH |
856 | d_stdiobase='' |
857 | d_stdstdio='' | |
858 | stdio_base='' | |
859 | stdio_bufsiz='' | |
860 | stdio_cnt='' | |
861 | stdio_filbuf='' | |
862 | stdio_ptr='' | |
b4eb6b3d | 863 | d_strcoll='' |
b4eb6b3d JH |
864 | d_sysernlst='' |
865 | d_syserrlst='' | |
ef55c673 | 866 | d_strerror_l='' |
10bc17b6 JH |
867 | d_strerror_r='' |
868 | strerror_r_proto='' | |
b3c85772 | 869 | d_strftime='' |
08c92000 MB |
870 | d_strlcat='' |
871 | d_strlcpy='' | |
c94a4d04 | 872 | d_strnlen='' |
b4eb6b3d JH |
873 | d_strtod='' |
874 | d_strtol='' | |
875 | d_strtold='' | |
c94a4d04 | 876 | d_strtold_l='' |
b4eb6b3d | 877 | d_strtoll='' |
28e5dec8 | 878 | d_strtoq='' |
b4eb6b3d JH |
879 | d_strtoul='' |
880 | d_strtoull='' | |
881 | d_strtouq='' | |
882 | d_strxfrm='' | |
883 | d_symlink='' | |
884 | d_syscall='' | |
2ef53570 | 885 | d_syscallproto='' |
b4eb6b3d JH |
886 | d_sysconf='' |
887 | d_system='' | |
888 | d_tcgetpgrp='' | |
889 | d_tcsetpgrp='' | |
890 | d_telldirproto='' | |
f40bbcbf | 891 | d_tgamma='' |
b4eb6b3d JH |
892 | d_time='' |
893 | timetype='' | |
96938616 MB |
894 | d_asctime64='' |
895 | d_ctime64='' | |
896 | d_difftime64='' | |
897 | d_gmtime64='' | |
898 | d_localtime64='' | |
899 | d_mktime64='' | |
cbb9e8a7 | 900 | d_timegm='' |
b4eb6b3d JH |
901 | clocktype='' |
902 | d_times='' | |
10bc17b6 JH |
903 | d_tmpnam_r='' |
904 | tmpnam_r_proto='' | |
427d28ce | 905 | d_trunc='' |
b4eb6b3d | 906 | d_truncate='' |
4842dad7 | 907 | d_truncl='' |
10bc17b6 JH |
908 | d_ttyname_r='' |
909 | ttyname_r_proto='' | |
b4eb6b3d | 910 | d_tzname='' |
4e0554ec JH |
911 | d_u32align='' |
912 | d_ualarm='' | |
b4eb6b3d JH |
913 | d_umask='' |
914 | d_semctl_semid_ds='' | |
915 | d_semctl_semun='' | |
916 | d_union_semun='' | |
758a5d79 | 917 | d_unordered='' |
bdf33aa7 | 918 | d_unsetenv='' |
4e0554ec | 919 | d_usleep='' |
2ef53570 | 920 | d_usleepproto='' |
ea442100 | 921 | d_ustat='' |
233e16ce | 922 | d_pseudofork='' |
b4eb6b3d JH |
923 | d_vfork='' |
924 | usevfork='' | |
925 | d_voidsig='' | |
926 | signal_t='' | |
b4eb6b3d JH |
927 | d_wait4='' |
928 | d_waitpid='' | |
9cdcdad1 | 929 | d_wcscmp='' |
b4eb6b3d | 930 | d_wcstombs='' |
9cdcdad1 | 931 | d_wcsxfrm='' |
b4eb6b3d | 932 | d_wctomb='' |
4e0554ec | 933 | d_writev='' |
12e83779 | 934 | default_inc_excludes_dot='' |
b4eb6b3d | 935 | dlext='' |
f1ce3bf1 | 936 | bin_ELF='' |
85e6fe83 LW |
937 | cccdlflags='' |
938 | ccdlflags='' | |
2304df62 | 939 | dlsrc='' |
232e078e | 940 | ld='' |
9ec4dadf | 941 | ld_can_script='' |
85e6fe83 | 942 | lddlflags='' |
2304df62 | 943 | usedl='' |
b4eb6b3d | 944 | doublesize='' |
2640dfa8 | 945 | dtraceobject='' |
f2a60c1f | 946 | dtracexnolibs='' |
b4eb6b3d JH |
947 | ebcdic='' |
948 | fflushNULL='' | |
949 | fflushall='' | |
950 | fpossize='' | |
951 | fpostype='' | |
2d736872 | 952 | gccansipedantic='' |
5b463ca7 | 953 | gccosandvers='' |
8a27cf78 | 954 | gccversion='' |
b4eb6b3d JH |
955 | gidformat='' |
956 | gidsign='' | |
957 | gidsize='' | |
958 | gidtype='' | |
959 | groupstype='' | |
960 | h_fcntl='' | |
961 | h_sysfile='' | |
6e1038e0 MB |
962 | html1dir='' |
963 | html1direxp='' | |
964 | installhtml1dir='' | |
965 | html3dir='' | |
966 | html3direxp='' | |
967 | installhtml3dir='' | |
b4eb6b3d | 968 | i_arpainet='' |
470dd224 | 969 | i_bfd='' |
10bc17b6 | 970 | i_crypt='' |
b4eb6b3d JH |
971 | db_hashtype='' |
972 | db_prefixtype='' | |
640374d0 JH |
973 | db_version_major='' |
974 | db_version_minor='' | |
975 | db_version_patch='' | |
b4eb6b3d JH |
976 | i_db='' |
977 | i_dbm='' | |
978 | i_rpcsvcdbm='' | |
979 | d_dirnamlen='' | |
980 | direntrytype='' | |
981 | i_dirent='' | |
b4eb6b3d | 982 | i_dlfcn='' |
470dd224 | 983 | i_execinfo='' |
b4eb6b3d | 984 | i_fcntl='' |
2f6b96eb | 985 | i_fenv='' |
758a5d79 JH |
986 | i_fp='' |
987 | i_fp_class='' | |
b4eb6b3d JH |
988 | i_gdbm='' |
989 | d_grpasswd='' | |
990 | i_grp='' | |
b4eb6b3d JH |
991 | i_ieeefp='' |
992 | i_inttypes='' | |
2765b840 | 993 | i_langinfo='' |
b4eb6b3d | 994 | i_libutil='' |
b4eb6b3d JH |
995 | i_locale='' |
996 | i_machcthr='' | |
997 | i_malloc='' | |
1cd66f7c | 998 | i_mallocmalloc='' |
ea442100 | 999 | i_mntent='' |
e74475c7 MHM |
1000 | d_gdbm_ndbm_h_uses_prototypes='' |
1001 | d_gdbmndbm_h_uses_prototypes='' | |
a33f2d9f | 1002 | d_ndbm='' |
e74475c7 | 1003 | d_ndbm_h_uses_prototypes='' |
a33f2d9f AD |
1004 | i_gdbm_ndbm='' |
1005 | i_gdbmndbm='' | |
b4eb6b3d JH |
1006 | i_ndbm='' |
1007 | i_netdb='' | |
1008 | i_neterrno='' | |
1009 | i_netinettcp='' | |
1010 | i_niin='' | |
1011 | i_sysin='' | |
1012 | i_poll='' | |
1013 | i_prot='' | |
1014 | i_pthread='' | |
1015 | d_pwage='' | |
1016 | d_pwchange='' | |
1017 | d_pwclass='' | |
1018 | d_pwcomment='' | |
1019 | d_pwexpire='' | |
1020 | d_pwgecos='' | |
1021 | d_pwpasswd='' | |
1022 | d_pwquota='' | |
1023 | i_pwd='' | |
4e5044f0 | 1024 | i_quadmath='' |
b4eb6b3d JH |
1025 | i_shadow='' |
1026 | i_socks='' | |
bd31be4b | 1027 | i_stdbool='' |
83f6d82b | 1028 | i_stdint='' |
b4eb6b3d | 1029 | i_stdlib='' |
b4eb6b3d JH |
1030 | i_sunmath='' |
1031 | i_sysaccess='' | |
1032 | i_sysdir='' | |
1033 | i_sysfile='' | |
1034 | d_voidtty='' | |
1035 | i_bsdioctl='' | |
1036 | i_sysfilio='' | |
1037 | i_sysioctl='' | |
1038 | i_syssockio='' | |
1039 | i_syslog='' | |
1040 | i_sysmman='' | |
1041 | i_sysmode='' | |
ea442100 | 1042 | i_sysmount='' |
b4eb6b3d JH |
1043 | i_sysndir='' |
1044 | i_sysparam='' | |
216dac04 | 1045 | i_syspoll='' |
b4eb6b3d JH |
1046 | i_sysresrc='' |
1047 | i_syssecrt='' | |
1048 | i_sysselct='' | |
1049 | i_sysstat='' | |
ea442100 JH |
1050 | i_sysstatfs='' |
1051 | i_sysstatvfs='' | |
b4eb6b3d JH |
1052 | i_systimes='' |
1053 | i_systypes='' | |
1054 | i_sysuio='' | |
1055 | i_sysun='' | |
1056 | i_sysutsname='' | |
ea442100 | 1057 | i_sysvfs='' |
b4eb6b3d JH |
1058 | i_syswait='' |
1059 | i_sgtty='' | |
1060 | i_termio='' | |
1061 | i_termios='' | |
14b90194 JH |
1062 | d_tm_tm_gmtoff='' |
1063 | d_tm_tm_zone='' | |
b4eb6b3d JH |
1064 | i_systime='' |
1065 | i_systimek='' | |
1066 | i_time='' | |
1067 | timeincl='' | |
1068 | i_unistd='' | |
ea442100 | 1069 | i_ustat='' |
b4eb6b3d | 1070 | i_utime='' |
b4eb6b3d | 1071 | i_vfork='' |
c94a4d04 | 1072 | i_wchar='' |
f3f1a2d8 | 1073 | d_inc_version_list='' |
b4eb6b3d JH |
1074 | inc_version_list='' |
1075 | inc_version_list_init='' | |
e6704a40 MB |
1076 | doubleinfbytes='' |
1077 | doublenanbytes='' | |
1078 | longdblinfbytes='' | |
1079 | longdblnanbytes='' | |
b4eb6b3d JH |
1080 | installprefix='' |
1081 | installprefixexp='' | |
1082 | installstyle='' | |
1083 | installusrbinperl='' | |
1084 | intsize='' | |
1085 | longsize='' | |
1086 | shortsize='' | |
4b661809 | 1087 | issymlink='' |
2304df62 | 1088 | libc='' |
b4eb6b3d JH |
1089 | ldlibpthname='' |
1090 | libperl='' | |
1091 | shrpenv='' | |
1092 | useshrplib='' | |
a0d0e21e | 1093 | glibpth='' |
56b575b9 | 1094 | incpth='' |
2304df62 | 1095 | libpth='' |
8e07c86e | 1096 | loclibpth='' |
2304df62 AD |
1097 | plibpth='' |
1098 | xlibpth='' | |
1cfa4ec7 | 1099 | ignore_versioned_solibs='' |
2304df62 | 1100 | libs='' |
43999f95 JH |
1101 | libsdirs='' |
1102 | libsfiles='' | |
1103 | libsfound='' | |
13b3f787 | 1104 | libspath='' |
85e6fe83 | 1105 | lns='' |
b4eb6b3d JH |
1106 | d_PRIEUldbl='' |
1107 | d_PRIFUldbl='' | |
1108 | d_PRIGUldbl='' | |
1109 | d_PRIeldbl='' | |
1110 | d_PRIfldbl='' | |
1111 | d_PRIgldbl='' | |
1112 | d_SCNfldbl='' | |
517f0560 MB |
1113 | d_double_has_inf='' |
1114 | d_double_has_nan='' | |
1115 | d_double_has_negative_zero='' | |
1116 | d_double_has_subnormals='' | |
1117 | d_double_style_cray='' | |
1118 | d_double_style_ibm='' | |
1119 | d_double_style_ieee='' | |
1120 | d_double_style_vax='' | |
f40bbcbf | 1121 | doublekind='' |
b4eb6b3d JH |
1122 | sPRIEUldbl='' |
1123 | sPRIFUldbl='' | |
1124 | sPRIGUldbl='' | |
1125 | sPRIeldbl='' | |
1126 | sPRIfldbl='' | |
1127 | sPRIgldbl='' | |
1128 | sSCNfldbl='' | |
1129 | lseeksize='' | |
1130 | lseektype='' | |
f3f1a2d8 MB |
1131 | make_set_make='' |
1132 | d_mymalloc='' | |
1133 | freetype='' | |
b4eb6b3d JH |
1134 | mallocobj='' |
1135 | mallocsrc='' | |
1136 | malloctype='' | |
9df442c2 | 1137 | usemallocwrap='' |
b4eb6b3d JH |
1138 | usemymalloc='' |
1139 | installman1dir='' | |
1140 | man1dir='' | |
1141 | man1direxp='' | |
1142 | man1ext='' | |
1143 | installman3dir='' | |
1144 | man3dir='' | |
1145 | man3direxp='' | |
1146 | man3ext='' | |
e6704a40 MB |
1147 | doublemantbits='' |
1148 | longdblmantbits='' | |
1149 | nvmantbits='' | |
b4eb6b3d JH |
1150 | modetype='' |
1151 | multiarch='' | |
1152 | mydomain='' | |
1153 | myhostname='' | |
1154 | phostname='' | |
2304df62 AD |
1155 | c='' |
1156 | n='' | |
b4eb6b3d JH |
1157 | d_eofnblk='' |
1158 | eagain='' | |
1159 | o_nonblock='' | |
1160 | rd_nodata='' | |
2cc61e15 | 1161 | need_va_copy='' |
b4eb6b3d JH |
1162 | netdb_hlen_type='' |
1163 | netdb_host_type='' | |
1164 | netdb_name_type='' | |
1165 | netdb_net_type='' | |
1166 | groupcat='' | |
1167 | hostcat='' | |
1168 | passcat='' | |
1169 | orderlib='' | |
1170 | ranlib='' | |
1171 | d_perl_otherlibdirs='' | |
1172 | otherlibdirs='' | |
2304df62 AD |
1173 | package='' |
1174 | spackage='' | |
b4eb6b3d JH |
1175 | pager='' |
1176 | api_revision='' | |
1177 | api_subversion='' | |
1178 | api_version='' | |
1179 | api_versionstring='' | |
1180 | patchlevel='' | |
151e6568 | 1181 | perl_patchlevel='' |
b4eb6b3d JH |
1182 | revision='' |
1183 | subversion='' | |
1184 | version='' | |
861eb78d | 1185 | version_patchlevel_string='' |
b4eb6b3d JH |
1186 | perl5='' |
1187 | perladmin='' | |
91f55cc7 | 1188 | perlpath='' |
b4eb6b3d | 1189 | d_nv_preserves_uv='' |
f607920a | 1190 | d_nv_zero_is_allbits_zero='' |
b4eb6b3d JH |
1191 | i16size='' |
1192 | i16type='' | |
1193 | i32size='' | |
1194 | i32type='' | |
1195 | i64size='' | |
1196 | i64type='' | |
1197 | i8size='' | |
1198 | i8type='' | |
1199 | ivsize='' | |
1200 | ivtype='' | |
b68c599a | 1201 | nv_overflows_integers_at='' |
4137585d | 1202 | nv_preserves_uv_bits='' |
b4eb6b3d JH |
1203 | nvsize='' |
1204 | nvtype='' | |
1205 | u16size='' | |
1206 | u16type='' | |
1207 | u32size='' | |
1208 | u32type='' | |
1209 | u64size='' | |
1210 | u64type='' | |
1211 | u8size='' | |
1212 | u8type='' | |
1213 | uvsize='' | |
1214 | uvtype='' | |
1215 | ivdformat='' | |
1216 | nvEUformat='' | |
1217 | nvFUformat='' | |
1218 | nvGUformat='' | |
1219 | nveformat='' | |
1220 | nvfformat='' | |
1221 | nvgformat='' | |
1222 | uvXUformat='' | |
1223 | uvoformat='' | |
1224 | uvuformat='' | |
1225 | uvxformat='' | |
1226 | pidtype='' | |
1227 | prefix='' | |
1228 | prefixexp='' | |
1229 | installprivlib='' | |
1230 | privlib='' | |
1231 | privlibexp='' | |
b4eb6b3d JH |
1232 | ptrsize='' |
1233 | d_PRIXU64='' | |
1234 | d_PRId64='' | |
1235 | d_PRIi64='' | |
1236 | d_PRIo64='' | |
1237 | d_PRIu64='' | |
1238 | d_PRIx64='' | |
1239 | sPRIXU64='' | |
1240 | sPRId64='' | |
1241 | sPRIi64='' | |
1242 | sPRIo64='' | |
1243 | sPRIu64='' | |
1244 | sPRIx64='' | |
1245 | d_quad='' | |
1246 | quadkind='' | |
1247 | quadtype='' | |
1248 | uquadtype='' | |
1249 | drand01='' | |
1250 | randbits='' | |
1251 | randfunc='' | |
1252 | randseedtype='' | |
1253 | seedfunc='' | |
1254 | installscript='' | |
1255 | scriptdir='' | |
1256 | scriptdirexp='' | |
1257 | selectminbits='' | |
1258 | selecttype='' | |
8ff267be | 1259 | sh='' |
f53a6e0e | 1260 | targetsh='' |
b4eb6b3d JH |
1261 | sig_count='' |
1262 | sig_name='' | |
1263 | sig_name_init='' | |
1264 | sig_num='' | |
1265 | sig_num_init='' | |
76d3c696 | 1266 | sig_size='' |
f3f1a2d8 | 1267 | d_sitearch='' |
b4eb6b3d JH |
1268 | installsitearch='' |
1269 | sitearch='' | |
1270 | sitearchexp='' | |
1271 | installsitebin='' | |
1272 | sitebin='' | |
1273 | sitebinexp='' | |
8d2cbf27 JH |
1274 | installsitehtml1dir='' |
1275 | sitehtml1dir='' | |
1276 | sitehtml1direxp='' | |
1277 | installsitehtml3dir='' | |
1278 | sitehtml3dir='' | |
1279 | sitehtml3direxp='' | |
b4eb6b3d JH |
1280 | installsitelib='' |
1281 | sitelib='' | |
1282 | sitelib_stem='' | |
1283 | sitelibexp='' | |
91e123a8 JH |
1284 | installsiteman1dir='' |
1285 | siteman1dir='' | |
1286 | siteman1direxp='' | |
1287 | installsiteman3dir='' | |
1288 | siteman3dir='' | |
1289 | siteman3direxp='' | |
b4eb6b3d JH |
1290 | siteprefix='' |
1291 | siteprefixexp='' | |
6e1038e0 MB |
1292 | installsitescript='' |
1293 | sitescript='' | |
1294 | sitescriptexp='' | |
b4eb6b3d JH |
1295 | sizesize='' |
1296 | sizetype='' | |
56b575b9 | 1297 | d_libname_unique='' |
a0d0e21e | 1298 | so='' |
b4eb6b3d | 1299 | socksizetype='' |
2304df62 AD |
1300 | sharpbang='' |
1301 | shsharp='' | |
1302 | spitshell='' | |
dfe9444c | 1303 | src='' |
b4eb6b3d | 1304 | ssizetype='' |
668fdbe1 MB |
1305 | st_ino_sign='' |
1306 | st_ino_size='' | |
b4eb6b3d | 1307 | startperl='' |
2304df62 | 1308 | startsh='' |
b4eb6b3d JH |
1309 | stdchar='' |
1310 | d_stdio_stream_array='' | |
1311 | stdio_stream_array='' | |
1312 | sysman='' | |
81c4fd9e MB |
1313 | sGMTIME_max='' |
1314 | sGMTIME_min='' | |
73e6e416 MB |
1315 | sLOCALTIME_max='' |
1316 | sLOCALTIME_min='' | |
5ff3f7a4 | 1317 | trnl='' |
b4eb6b3d JH |
1318 | uidformat='' |
1319 | uidsign='' | |
1320 | uidsize='' | |
1321 | uidtype='' | |
1322 | archname64='' | |
1323 | use64bitall='' | |
1324 | use64bitint='' | |
470dd224 | 1325 | usecbacktrace='' |
34f1896b MB |
1326 | dtrace='' |
1327 | usedtrace='' | |
15b61c98 | 1328 | usefaststdio='' |
d78f9ffa | 1329 | usekernprocpathname='' |
b4eb6b3d JH |
1330 | ccflags_uselargefiles='' |
1331 | ldflags_uselargefiles='' | |
1332 | libswanted_uselargefiles='' | |
1333 | uselargefiles='' | |
1334 | uselongdouble='' | |
1335 | usemorebits='' | |
1336 | usemultiplicity='' | |
2304df62 | 1337 | nm_opt='' |
40a7a20a | 1338 | nm_so_opt='' |
2304df62 AD |
1339 | runnm='' |
1340 | usenm='' | |
ae60cb46 | 1341 | usensgetexecutablepath='' |
b4eb6b3d | 1342 | useperlio='' |
f40bbcbf | 1343 | usequadmath='' |
29209bc5 | 1344 | usesocks='' |
b4eb6b3d JH |
1345 | d_oldpthreads='' |
1346 | use5005threads='' | |
1347 | useithreads='' | |
9514c62b | 1348 | usereentrant='' |
b4eb6b3d | 1349 | usethreads='' |
2304df62 | 1350 | incpath='' |
2304df62 AD |
1351 | mips_type='' |
1352 | usrinc='' | |
b4eb6b3d JH |
1353 | d_vendorarch='' |
1354 | installvendorarch='' | |
1355 | vendorarch='' | |
1356 | vendorarchexp='' | |
1357 | d_vendorbin='' | |
1358 | installvendorbin='' | |
1359 | vendorbin='' | |
1360 | vendorbinexp='' | |
8d2cbf27 JH |
1361 | installvendorhtml1dir='' |
1362 | vendorhtml1dir='' | |
1363 | vendorhtml1direxp='' | |
1364 | installvendorhtml3dir='' | |
1365 | vendorhtml3dir='' | |
1366 | vendorhtml3direxp='' | |
b4eb6b3d JH |
1367 | d_vendorlib='' |
1368 | installvendorlib='' | |
1369 | vendorlib='' | |
1370 | vendorlib_stem='' | |
1371 | vendorlibexp='' | |
91e123a8 JH |
1372 | installvendorman1dir='' |
1373 | vendorman1dir='' | |
1374 | vendorman1direxp='' | |
1375 | installvendorman3dir='' | |
1376 | vendorman3dir='' | |
1377 | vendorman3direxp='' | |
b4eb6b3d JH |
1378 | usevendorprefix='' |
1379 | vendorprefix='' | |
1380 | vendorprefixexp='' | |
6e1038e0 MB |
1381 | d_vendorscript='' |
1382 | installvendorscript='' | |
1383 | vendorscript='' | |
1384 | vendorscriptexp='' | |
d56c5707 | 1385 | versiononly='' |
3659ebf1 JH |
1386 | yacc='' |
1387 | yaccflags='' | |
2304df62 AD |
1388 | CONFIG='' |
1389 | ||
34f1896b | 1390 | : Detect odd OSs |
ecfc5424 AD |
1391 | define='define' |
1392 | undef='undef' | |
1393 | smallmach='pdp11 i8086 z8000 i80286 iAPX286' | |
1394 | rmlist='' | |
1395 | ||
1396 | : We must find out about Eunice early | |
1397 | eunicefix=':' | |
1398 | if test -f /etc/unixtovms; then | |
1399 | eunicefix=/etc/unixtovms | |
1400 | fi | |
1401 | if test -f /etc/unixtovms.exe; then | |
1402 | eunicefix=/etc/unixtovms.exe | |
1403 | fi | |
1404 | ||
cfb04860 | 1405 | : Set executable suffix now -- needed before hints available |
6153ba32 PG |
1406 | if test -f "/libs/version.library"; then |
1407 | : Amiga OS | |
1408 | _exe="" | |
1409 | elif test -f "/system/gnu_library/bin/ar.pm"; then | |
1410 | : Stratus VOS | |
cfb04860 | 1411 | _exe=".pm" |
6153ba32 PG |
1412 | elif test -n "$DJGPP"; then |
1413 | : DOS DJGPP | |
cfb04860 | 1414 | _exe=".exe" |
531d75b0 MB |
1415 | elif test -f /kern/cookiejar; then |
1416 | : MiNT | |
1417 | _exe="" | |
5c728af0 | 1418 | elif test -d c:/. -o -n "$is_os2" ; then |
506faf56 | 1419 | : OS/2 or cygwin |
ba863942 JH |
1420 | _exe=".exe" |
1421 | fi | |
868439a2 | 1422 | |
1d8eaf8c | 1423 | groupstype='' |
b4eb6b3d | 1424 | i_whoami='' |
b8677e3b MB |
1425 | : Possible local include directories to search. |
1426 | : Set locincpth to "" in a hint file to defeat local include searches. | |
1427 | locincpth="/usr/local/include /opt/local/include /usr/gnu/include" | |
1428 | locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include" | |
1429 | : | |
1430 | : no include file wanted by default | |
1431 | inclwanted='' | |
1432 | ||
1433 | : Enable -DEBUGGING and -DDEBUGGING from the command line | |
1434 | EBUGGING='' | |
356123f1 | 1435 | DEBUGGING='' |
b8677e3b | 1436 | |
7e69463d AC |
1437 | : Trailing extension. Override this in a hint file, if needed. |
1438 | : Extra object files, if any, needed on this platform. | |
1439 | archobjs='' | |
64615a5e | 1440 | libnames='' |
732c9516 JH |
1441 | : change the next line if compiling for Xenix/286 on Xenix/386 |
1442 | xlibpth='/usr/lib/386 /lib/386' | |
732c9516 JH |
1443 | : Possible local library directories to search. |
1444 | loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib" | |
1445 | loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" | |
1446 | ||
1447 | : general looking path for locating libraries | |
5869b1f1 | 1448 | glibpth="/lib /usr/lib $xlibpth" |
732c9516 | 1449 | glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib" |
f7dd4e7f JH |
1450 | test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth" |
1451 | test -f /shlib/libc.so && glibpth="/shlib $glibpth" | |
faae14e6 | 1452 | test -d /usr/lib64 && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64" |
732c9516 JH |
1453 | |
1454 | : Private path used by Configure to find libraries. Its value | |
1455 | : is prepended to libpth. This variable takes care of special | |
1456 | : machines, like the mips. Usually, it should be empty. | |
1457 | plibpth='' | |
1458 | ||
1cfa4ec7 GS |
1459 | : default library list |
1460 | libswanted='' | |
921b2963 | 1461 | : some systems want to use only the non-versioned libso:s |
1cfa4ec7 | 1462 | ignore_versioned_solibs='' |
ed140128 AD |
1463 | ccname='' |
1464 | ccversion='' | |
1465 | perllibs='' | |
1466 | : set useposix=false in your hint file to disable the POSIX extension. | |
1467 | useposix=true | |
1468 | : set useopcode=false in your hint file to disable the Opcode extension. | |
1469 | useopcode=true | |
b4eb6b3d JH |
1470 | archname64='' |
1471 | ccflags_uselargefiles='' | |
1472 | ldflags_uselargefiles='' | |
1473 | libswanted_uselargefiles='' | |
1474 | : set usemultiplicity on the Configure command line to enable multiplicity. | |
29209bc5 | 1475 | : set usesocks on the Configure command line to enable socks. |
7e69463d AC |
1476 | archname='' |
1477 | : set usethreads on the Configure command line to enable threads. | |
1478 | usereentrant='undef' | |
ecfc5424 | 1479 | : List of libraries we want. |
15431986 | 1480 | : If anyone needs extra -lxxx, put those in a hint file. |
4732711e | 1481 | libswanted="cl pthread socket bind inet nsl ndbm gdbm dbm db malloc dl ld" |
90207ba1 | 1482 | libswanted="$libswanted sun m crypt sec util c cposix posix ucb bsd BSD" |
1aef975c | 1483 | : We probably want to search /usr/shlib before most other libraries. |
94b6baf5 | 1484 | : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. |
ecfc5424 AD |
1485 | glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'` |
1486 | glibpth="/usr/shlib $glibpth" | |
1487 | : Do not use vfork unless overridden by a hint file. | |
1488 | usevfork=false | |
1489 | ||
8ff267be PP |
1490 | : Find the basic shell for Bourne shell scripts |
1491 | case "$sh" in | |
1492 | '') | |
8ff267be PP |
1493 | case "$SYSTYPE" in |
1494 | *bsd*|sys5*) xxx="/$SYSTYPE/bin/sh";; | |
1495 | *) xxx='/bin/sh';; | |
1496 | esac | |
1497 | if test -f "$xxx"; then | |
1498 | sh="$xxx" | |
1499 | else | |
1500 | : Build up a list and do a single loop so we can 'break' out. | |
1501 | pth=`echo $PATH | sed -e "s/$p_/ /g"` | |
1502 | for xxx in sh bash ksh pdksh ash; do | |
1503 | for p in $pth; do | |
1504 | try="$try ${p}/${xxx}" | |
1505 | done | |
1506 | done | |
1507 | for xxx in $try; do | |
1508 | if test -f "$xxx"; then | |
1509 | sh="$xxx"; | |
8ff267be | 1510 | break |
a5a94ea5 JH |
1511 | elif test "X$_exe" != X -a -f "$xxx$_exe"; then |
1512 | sh="$xxx"; | |
1513 | break | |
8ff267be PP |
1514 | elif test -f "$xxx.exe"; then |
1515 | sh="$xxx"; | |
8ff267be PP |
1516 | break |
1517 | fi | |
1518 | done | |
1519 | fi | |
1520 | ;; | |
1521 | esac | |
1522 | ||
1523 | case "$sh" in | |
a33c94aa | 1524 | '') cat >&2 <<EOM |
1332606d | 1525 | $me: Fatal Error: I can't find a Bourne Shell anywhere. |
dfe9444c | 1526 | |
8ff267be | 1527 | Usually it's in /bin/sh. How did you even get this far? |
1332606d | 1528 | Please contact me (Perl Maintainers) at perlbug@perl.org and |
dfe9444c | 1529 | we'll try to straighten this all out. |
8ff267be PP |
1530 | EOM |
1531 | exit 1 | |
1532 | ;; | |
1533 | esac | |
1534 | ||
871414da JR |
1535 | : When cross-compiling we need to separate the sh-to-run-Configure-with from the sh-to-use-in-Perl |
1536 | : default both to the same thing, cross-compilers can then set targetsh differently if they like | |
1537 | targetsh=$sh | |
1538 | ||
760ac839 | 1539 | : see if sh knows # comments |
73614538 | 1540 | if `$sh -c '#' >/dev/null 2>&1`; then |
760ac839 LW |
1541 | shsharp=true |
1542 | spitshell=cat | |
760ac839 | 1543 | xcat=/bin/cat |
a931254c JH |
1544 | test -f $xcat$_exe || xcat=/usr/bin/cat |
1545 | if test ! -f $xcat$_exe; then | |
4bdb8fb5 | 1546 | for p in `echo $PATH | sed -e "s/$p_/ /g"` $paths; do |
a931254c | 1547 | if test -f $p/cat$_exe; then |
1deb0a86 | 1548 | xcat=$p/cat |
3c728e00 JH |
1549 | break |
1550 | fi | |
1551 | done | |
1deb0a86 JH |
1552 | if test ! -f $xcat$_exe; then |
1553 | echo "Can't find cat anywhere!" | |
3c728e00 JH |
1554 | exit 1 |
1555 | fi | |
1556 | fi | |
5440bc8e JH |
1557 | echo "#!$xcat" >sharp |
1558 | $eunicefix sharp | |
1559 | chmod +x sharp | |
1d8eaf8c | 1560 | ./sharp > today 2>/dev/null |
760ac839 | 1561 | if test -s today; then |
760ac839 LW |
1562 | sharpbang='#!' |
1563 | else | |
5440bc8e JH |
1564 | echo "#! $xcat" > sharp |
1565 | $eunicefix sharp | |
1566 | chmod +x sharp | |
1d8eaf8c | 1567 | ./sharp > today 2>/dev/null |
760ac839 | 1568 | if test -s today; then |
760ac839 LW |
1569 | sharpbang='#! ' |
1570 | else | |
760ac839 LW |
1571 | sharpbang=': use ' |
1572 | fi | |
1573 | fi | |
1574 | else | |
dfe9444c | 1575 | echo " " |
8ff267be | 1576 | echo "Your $sh doesn't grok # comments--I will strip them later on." |
760ac839 LW |
1577 | shsharp=false |
1578 | cd .. | |
1579 | echo "exec grep -v '^[ ]*#'" >spitshell | |
1580 | chmod +x spitshell | |
1581 | $eunicefix spitshell | |
1582 | spitshell=`pwd`/spitshell | |
1583 | cd UU | |
1584 | echo "I presume that if # doesn't work, #! won't work either!" | |
1585 | sharpbang=': use ' | |
1586 | fi | |
5440bc8e | 1587 | rm -f sharp today |
760ac839 LW |
1588 | |
1589 | : figure out how to guarantee sh startup | |
8ff267be PP |
1590 | case "$startsh" in |
1591 | '') startsh=${sharpbang}${sh} ;; | |
1592 | *) | |
760ac839 | 1593 | esac |
5440bc8e | 1594 | cat >sharp <<EOSS |
760ac839 LW |
1595 | $startsh |
1596 | set abc | |
1597 | test "$?abc" != 1 | |
1598 | EOSS | |
1599 | ||
5440bc8e JH |
1600 | chmod +x sharp |
1601 | $eunicefix sharp | |
1602 | if ./sharp; then | |
8ff267be | 1603 | : echo "Yup, it does." |
760ac839 | 1604 | else |
dfe9444c AD |
1605 | echo "Hmm... '$startsh' does not guarantee sh startup..." |
1606 | echo "You may have to fix up the shell scripts to make sure $sh runs them." | |
760ac839 | 1607 | fi |
5440bc8e | 1608 | rm -f sharp |
760ac839 | 1609 | |
aebf16e7 AD |
1610 | : Save command line options in file UU/cmdline.opt for later use in |
1611 | : generating config.sh. | |
1612 | cat > cmdline.opt <<EOSH | |
613d6c3e | 1613 | : Configure command line arguments. |
aebf16e7 AD |
1614 | config_arg0='$0' |
1615 | config_args='$*' | |
1616 | config_argc=$# | |
1617 | EOSH | |
1618 | argn=1 | |
ee45ea83 IZ |
1619 | args_exp='' |
1620 | args_sep='' | |
aebf16e7 AD |
1621 | for arg in "$@"; do |
1622 | cat >>cmdline.opt <<EOSH | |
1623 | config_arg$argn='$arg' | |
1624 | EOSH | |
ee45ea83 IZ |
1625 | cat <<EOC | sed -e "s/'/'"'"'"'"'"'"'/g" > cmdl.opt |
1626 | $arg | |
1627 | EOC | |
1628 | arg_exp=`cat cmdl.opt` | |
1629 | args_exp="$args_exp$args_sep'$arg_exp'" | |
aebf16e7 | 1630 | argn=`expr $argn + 1` |
ee45ea83 | 1631 | args_sep=' ' |
aebf16e7 | 1632 | done |
ee45ea83 | 1633 | rm -f cmdl.opt |
aebf16e7 | 1634 | |
2304df62 AD |
1635 | : produce awk script to parse command line options |
1636 | cat >options.awk <<'EOF' | |
1637 | BEGIN { | |
02e93a22 | 1638 | optstr = "A:dD:eEf:hKOrsSU:V"; # getopt-style specification |
2304df62 AD |
1639 | |
1640 | len = length(optstr); | |
1641 | for (i = 1; i <= len; i++) { | |
1642 | c = substr(optstr, i, 1); | |
1643 | if (i < len) a = substr(optstr, i + 1, 1); else a = ""; | |
1644 | if (a == ":") { | |
1645 | arg[c] = 1; | |
1646 | i++; | |
1647 | } | |
1648 | opt[c] = 1; | |
1649 | } | |
1650 | } | |
1651 | { | |
1652 | expect = 0; | |
1653 | str = $0; | |
1654 | if (substr(str, 1, 1) != "-") { | |
1655 | printf("'%s'\n", str); | |
1656 | next; | |
1657 | } | |
1658 | len = length($0); | |
1659 | for (i = 2; i <= len; i++) { | |
1660 | c = substr(str, i, 1); | |
1661 | if (!opt[c]) { | |
1662 | printf("-%s\n", substr(str, i)); | |
1663 | next; | |
1664 | } | |
1665 | printf("-%s\n", c); | |
1666 | if (arg[c]) { | |
1667 | if (i < len) | |
1668 | printf("'%s'\n", substr(str, i + 1)); | |
1669 | else | |
1670 | expect = 1; | |
1671 | next; | |
1672 | } | |
1673 | } | |
1674 | } | |
1675 | END { | |
1676 | if (expect) | |
1677 | print "?"; | |
1678 | } | |
1679 | EOF | |
1680 | ||
1681 | : process the command line options | |
4633a7c4 LW |
1682 | set X `for arg in "$@"; do echo "X$arg"; done | |
1683 | sed -e s/X// | awk -f options.awk` | |
2304df62 AD |
1684 | eval "set $*" |
1685 | shift | |
1686 | rm -f options.awk | |
1687 | ||
1688 | : set up default values | |
1689 | fastread='' | |
1690 | reuseval=false | |
1691 | config_sh='' | |
1692 | alldone='' | |
1693 | error='' | |
1694 | silent='' | |
1695 | extractsh='' | |
16d20bd9 | 1696 | knowitall='' |
02e93a22 | 1697 | rm -f optdef.sh posthint.sh |
28757baa PP |
1698 | cat >optdef.sh <<EOS |
1699 | $startsh | |
1700 | EOS | |
2304df62 | 1701 | |
dfe9444c | 1702 | |
2304df62 AD |
1703 | : option parsing |
1704 | while test $# -gt 0; do | |
1705 | case "$1" in | |
1706 | -d) shift; fastread=yes;; | |
1707 | -e) shift; alldone=cont;; | |
1708 | -f) | |
1709 | shift | |
1710 | cd .. | |
1711 | if test -r "$1"; then | |
1712 | config_sh="$1" | |
1713 | else | |
a0d0e21e | 1714 | echo "$me: cannot read config file $1." >&2 |
2304df62 AD |
1715 | error=true |
1716 | fi | |
1717 | cd UU | |
1718 | shift;; | |
3f30fabf | 1719 | --help|\ |
2304df62 AD |
1720 | -h) shift; error=true;; |
1721 | -r) shift; reuseval=true;; | |
dfe9444c | 1722 | -s) shift; silent=true; realsilent=true;; |
2304df62 | 1723 | -E) shift; alldone=exit;; |
16d20bd9 | 1724 | -K) shift; knowitall=true;; |
41d73075 | 1725 | -O) shift;; |
dfe9444c | 1726 | -S) shift; silent=true; extractsh=true;; |
a0d0e21e LW |
1727 | -D) |
1728 | shift | |
1729 | case "$1" in | |
1730 | *=) | |
1731 | echo "$me: use '-U symbol=', not '-D symbol='." >&2 | |
1732 | echo "$me: ignoring -D $1" >&2 | |
1733 | ;; | |
ecfc5424 | 1734 | *=*) echo "$1" | \ |
1aef975c AD |
1735 | sed -e "s/'/'\"'\"'/g" -e "s/=\(.*\)/='\1'/" >> optdef.sh;; |
1736 | *) echo "$1='define'" >> optdef.sh;; | |
a0d0e21e LW |
1737 | esac |
1738 | shift | |
1739 | ;; | |
1740 | -U) | |
1741 | shift | |
1742 | case "$1" in | |
1aef975c | 1743 | *=) echo "$1" >> optdef.sh;; |
a0d0e21e LW |
1744 | *=*) |
1745 | echo "$me: use '-D symbol=val', not '-U symbol=val'." >&2 | |
1746 | echo "$me: ignoring -U $1" >&2 | |
1747 | ;; | |
1aef975c | 1748 | *) echo "$1='undef'" >> optdef.sh;; |
a0d0e21e LW |
1749 | esac |
1750 | shift | |
1751 | ;; | |
02e93a22 JH |
1752 | -A) |
1753 | shift | |
1754 | xxx='' | |
1755 | yyy="$1" | |
02e93a22 | 1756 | zzz='' |
5f83a3e9 | 1757 | uuu=undef |
02e93a22 | 1758 | case "$yyy" in |
f7c31117 | 1759 | *=*) zzz=`echo "$yyy"|sed 's!=.*!!'` |
5f83a3e9 JH |
1760 | case "$zzz" in |
1761 | *:*) zzz='' ;; | |
1762 | *) xxx=append | |
613d6c3e | 1763 | zzz=" "`echo "$yyy"|sed 's!^[^=]*=!!'` |
f7c31117 | 1764 | yyy=`echo "$yyy"|sed 's!=.*!!'` ;; |
5f83a3e9 JH |
1765 | esac |
1766 | ;; | |
1767 | esac | |
1768 | case "$xxx" in | |
1769 | '') case "$yyy" in | |
f7c31117 JH |
1770 | *:*) xxx=`echo "$yyy"|sed 's!:.*!!'` |
1771 | yyy=`echo "$yyy"|sed 's!^[^:]*:!!'` | |
1772 | zzz=`echo "$yyy"|sed 's!^[^=]*=!!'` | |
1773 | yyy=`echo "$yyy"|sed 's!=.*!!'` ;; | |
1774 | *) xxx=`echo "$yyy"|sed 's!:.*!!'` | |
1775 | yyy=`echo "$yyy"|sed 's!^[^:]*:!!'` ;; | |
5f83a3e9 | 1776 | esac |
613d6c3e | 1777 | ;; |
5f83a3e9 | 1778 | esac |
02e93a22 JH |
1779 | case "$xxx" in |
1780 | append) | |
5f83a3e9 | 1781 | echo "$yyy=\"\${$yyy}$zzz\"" >> posthint.sh ;; |
02e93a22 | 1782 | clear) |
5f83a3e9 | 1783 | echo "$yyy=''" >> posthint.sh ;; |
02e93a22 JH |
1784 | define) |
1785 | case "$zzz" in | |
1786 | '') zzz=define ;; | |
1787 | esac | |
5f83a3e9 | 1788 | echo "$yyy='$zzz'" >> posthint.sh ;; |
02e93a22 | 1789 | eval) |
5f83a3e9 | 1790 | echo "eval \"$yyy=$zzz\"" >> posthint.sh ;; |
02e93a22 | 1791 | prepend) |
5f83a3e9 | 1792 | echo "$yyy=\"$zzz\${$yyy}\"" >> posthint.sh ;; |
02e93a22 JH |
1793 | undef) |
1794 | case "$zzz" in | |
1795 | '') zzz="$uuu" ;; | |
1796 | esac | |
5f83a3e9 JH |
1797 | echo "$yyy=$zzz" >> posthint.sh ;; |
1798 | *) echo "$me: unknown -A command '$xxx', ignoring -A $1" >&2 ;; | |
02e93a22 | 1799 | esac |
bde6b06b | 1800 | shift |
02e93a22 | 1801 | ;; |
216dac04 | 1802 | -V) echo "$me generated by metaconfig 3.5 PL0." >&2 |
5f83a3e9 | 1803 | exit 0;; |
2304df62 | 1804 | --) break;; |
a0d0e21e | 1805 | -*) echo "$me: unknown option $1" >&2; shift; error=true;; |
2304df62 AD |
1806 | *) break;; |
1807 | esac | |
1808 | done | |
1809 | ||
1810 | case "$error" in | |
1811 | true) | |
1812 | cat >&2 <<EOM | |
2afac517 | 1813 | Usage: $me [-dehrsEKOSV] [-f config.sh] [-D symbol] [-D symbol=value] |
02e93a22 | 1814 | [-U symbol] [-U symbol=] [-A command:symbol...] |
2304df62 AD |
1815 | -d : use defaults for all answers. |
1816 | -e : go on without questioning past the production of config.sh. | |
1817 | -f : specify an alternate default configuration file. | |
1818 | -h : print this help message and exit (with an error status). | |
1819 | -r : reuse C symbols value if possible (skips costly nm extraction). | |
1820 | -s : silent mode, only echoes questions and essential information. | |
a0d0e21e LW |
1821 | -D : define symbol to have some value: |
1822 | -D symbol symbol gets the value 'define' | |
1823 | -D symbol=value symbol gets the value 'value' | |
3f30fabf MB |
1824 | common used examples (see INSTALL for more info): |
1825 | -Duse64bitint use 64bit integers | |
b79e0b55 | 1826 | -Duse64bitall use 64bit integers and pointers |
3f30fabf | 1827 | -Dusethreads use thread support |
b79e0b55 | 1828 | -Dinc_version_list=none do not include older perl trees in @INC |
3f30fabf MB |
1829 | -DEBUGGING=none DEBUGGING options |
1830 | -Dcc=gcc choose your compiler | |
1831 | -Dprefix=/opt/perl5 choose your destination | |
2304df62 | 1832 | -E : stop at the end of questions, after having produced config.sh. |
16d20bd9 | 1833 | -K : do not use unless you know what you are doing. |
41d73075 | 1834 | -O : ignored for backward compatibility |
2304df62 | 1835 | -S : perform variable substitutions on all .SH files (can mix with -f) |
a0d0e21e LW |
1836 | -U : undefine symbol: |
1837 | -U symbol symbol gets the value 'undef' | |
1838 | -U symbol= symbol gets completely empty | |
3f30fabf | 1839 | e.g.: -Uversiononly |
02e93a22 | 1840 | -A : manipulate symbol after the platform specific hints have been applied: |
2ac814f3 MB |
1841 | -A append:symbol=value append value to symbol |
1842 | -A symbol=value like append:, but with a separating space | |
1843 | -A define:symbol=value define symbol to have value | |
1844 | -A clear:symbol define symbol to be '' | |
1845 | -A define:symbol define symbol to be 'define' | |
1846 | -A eval:symbol=value define symbol to be eval of value | |
1847 | -A prepend:symbol=value prepend value to symbol | |
1848 | -A undef:symbol define symbol to be 'undef' | |
1849 | -A undef:symbol= define symbol to be '' | |
3f30fabf | 1850 | e.g.: -A prepend:libswanted='cl pthread ' |
2ac814f3 | 1851 | -A ccflags=-DSOME_MACRO |
2304df62 AD |
1852 | -V : print version number and exit (with a zero status). |
1853 | EOM | |
1854 | exit 1 | |
1855 | ;; | |
1856 | esac | |
1857 | ||
dfe9444c AD |
1858 | : Sanity checks |
1859 | case "$fastread$alldone" in | |
1860 | yescont|yesexit) ;; | |
1861 | *) | |
aaeb8e51 GS |
1862 | case "$extractsh" in |
1863 | true) ;; | |
1864 | *) | |
1865 | if test ! -t 0; then | |
1866 | echo "Say 'sh Configure', not 'sh <Configure'" | |
1867 | exit 1 | |
1868 | fi | |
1869 | ;; | |
1870 | esac | |
dfe9444c AD |
1871 | ;; |
1872 | esac | |
1873 | ||
2304df62 AD |
1874 | exec 4>&1 |
1875 | case "$silent" in | |
1876 | true) exec 1>/dev/null;; | |
1877 | esac | |
1878 | ||
ecfc5424 | 1879 | : run the defines and the undefines, if any, but leave the file out there... |
1aef975c | 1880 | touch optdef.sh |
e244340e | 1881 | grep '\\' optdef.sh >/dev/null 2>&1 |
e6704a40 MB |
1882 | if test $? = 0; then |
1883 | echo "Configure does not support \\ in -D arguments" | |
1884 | exit 1 | |
1885 | fi | |
1aef975c | 1886 | . ./optdef.sh |
02e93a22 JH |
1887 | : create the posthint manipulation script and leave the file out there... |
1888 | touch posthint.sh | |
a0d0e21e | 1889 | |
2304df62 | 1890 | : set package name |
34f1896b | 1891 | package='perl5' |
b4eb6b3d JH |
1892 | first=`echo $package | sed -e 's/^\(.\).*/\1/'` |
1893 | last=`echo $package | sed -e 's/^.\(.*\)/\1/'` | |
e129ac51 AB |
1894 | case "`echo AbyZ | tr '[:lower:]' '[:upper:]' 2>/dev/null`"-"`echo AbyZ | tr '[:upper:]' '[:lower:]' 2>/dev/null`" in |
1895 | ABYZ-abyz) spackage=`echo $first | tr '[:lower:]' '[:upper:]'`$last;; | |
b4eb6b3d JH |
1896 | *) spackage=`echo $first | tr '[a-z]' '[A-Z]'`$last;; |
1897 | esac | |
2304df62 | 1898 | |
2304df62 AD |
1899 | : Some greps do not return status, grrr. |
1900 | echo "grimblepritz" >grimble | |
1901 | if grep blurfldyick grimble >/dev/null 2>&1 ; then | |
1902 | contains=contains | |
1903 | elif grep grimblepritz grimble >/dev/null 2>&1 ; then | |
1904 | contains=grep | |
1905 | else | |
1906 | contains=contains | |
1907 | fi | |
1908 | rm -f grimble | |
1909 | : the following should work in any shell | |
1910 | case "$contains" in | |
1911 | contains*) | |
1912 | echo " " | |
1913 | echo "AGH! Grep doesn't return a status. Attempting remedial action." | |
1914 | cat >contains <<'EOSS' | |
1915 | grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp | |
1916 | EOSS | |
1917 | chmod +x contains | |
1918 | esac | |
1919 | ||
dfe9444c AD |
1920 | : Find the path to the source tree |
1921 | case "$src" in | |
1922 | '') case "$0" in | |
b233458b JH |
1923 | */*) src=`echo $0 | sed -e 's%/[^/][^/]*$%%'` |
1924 | case "$src" in | |
1925 | /*) ;; | |
8504afb7 | 1926 | .) ;; |
b233458b JH |
1927 | *) src=`cd ../$src && pwd` ;; |
1928 | esac | |
1929 | ;; | |
dfe9444c AD |
1930 | *) src='.';; |
1931 | esac;; | |
1932 | esac | |
1933 | case "$src" in | |
1934 | '') src=/ | |
1935 | rsrc=/ | |
1936 | ;; | |
34f1896b MB |
1937 | /*) rsrc="$src";; |
1938 | *) rsrc="../$src";; | |
dfe9444c AD |
1939 | esac |
1940 | if test -f $rsrc/Configure && \ | |
34f1896b | 1941 | $contains "^package='$package'\$" $rsrc/Configure >/dev/null 2>&1 |
dfe9444c AD |
1942 | then |
1943 | : found it, so we are ok. | |
1944 | else | |
1945 | rsrc='' | |
1946 | for src in . .. ../.. ../../.. ../../../..; do | |
1947 | if test -f ../$src/Configure && \ | |
1948 | $contains "^package=$package$" ../$src/Configure >/dev/null 2>&1 | |
1949 | then | |
1950 | rsrc=../$src | |
1951 | break | |
1952 | fi | |
1953 | done | |
1954 | fi | |
1955 | case "$rsrc" in | |
1956 | '') | |
1957 | cat <<EOM >&4 | |
1958 | ||
1959 | Sorry, I can't seem to locate the source dir for $package. Please start | |
1960 | Configure with an explicit path -- i.e. /some/path/Configure. | |
1961 | ||
1962 | EOM | |
1963 | exit 1 | |
1964 | ;; | |
1965 | ../.) rsrc='..';; | |
1966 | *) | |
1967 | echo " " | |
1968 | echo "Sources for $package found in \"$src\"." >&4 | |
1969 | ;; | |
1970 | esac | |
1971 | ||
1972 | : script used to extract .SH files with variable substitutions | |
1973 | cat >extract <<'EOS' | |
a02608de | 1974 | PERL_CONFIG_SH=true |
dfe9444c | 1975 | echo "Doing variable substitutions on .SH files..." |
24ccb310 JH |
1976 | if test -f MANIFEST; then |
1977 | set x `awk '{print $1}' < MANIFEST | grep '\.SH$'` | |
dfe9444c AD |
1978 | else |
1979 | echo "(Looking for .SH files under the source directory.)" | |
6904989c | 1980 | set x `(cd "$src"; find . -name "*.SH" -print)` |
dfe9444c AD |
1981 | fi |
1982 | shift | |
1983 | case $# in | |
6904989c | 1984 | 0) set x `(cd "$src"; echo *.SH)`; shift;; |
dfe9444c | 1985 | esac |
6904989c | 1986 | if test ! -f "$src/$1"; then |
dfe9444c AD |
1987 | shift |
1988 | fi | |
1989 | mkdir_p=' | |
1990 | name=$1; | |
1991 | create=""; | |
1992 | while test $name; do | |
1993 | if test ! -d "$name"; then | |
1994 | create="$name $create"; | |
1995 | name=`echo $name | sed -e "s|^[^/]*$||"`; | |
1996 | name=`echo $name | sed -e "s|\(.*\)/.*|\1|"`; | |
1997 | else | |
1998 | name=""; | |
1999 | fi; | |
2000 | done; | |
2001 | for file in $create; do | |
2002 | mkdir $file; | |
2003 | done | |
2004 | ' | |
2005 | for file in $*; do | |
2006 | case "$src" in | |
2007 | ".") | |
2008 | case "$file" in | |
2009 | */*) | |
2010 | dir=`expr X$file : 'X\(.*\)/'` | |
2011 | file=`expr X$file : 'X.*/\(.*\)'` | |
6904989c | 2012 | (cd "$dir" && . ./$file) |
dfe9444c AD |
2013 | ;; |
2014 | *) | |
2015 | . ./$file | |
2016 | ;; | |
2017 | esac | |
2018 | ;; | |
2019 | *) | |
2020 | case "$file" in | |
2021 | */*) | |
2022 | dir=`expr X$file : 'X\(.*\)/'` | |
2023 | file=`expr X$file : 'X.*/\(.*\)'` | |
2024 | (set x $dir; shift; eval $mkdir_p) | |
6904989c | 2025 | sh <"$src/$dir/$file" |
dfe9444c AD |
2026 | ;; |
2027 | *) | |
6904989c | 2028 | sh <"$src/$file" |
dfe9444c AD |
2029 | ;; |
2030 | esac | |
2031 | ;; | |
2032 | esac | |
2033 | done | |
6904989c | 2034 | if test -f "$src/config_h.SH"; then |
dfe9444c AD |
2035 | if test ! -f config.h; then |
2036 | : oops, they left it out of MANIFEST, probably, so do it anyway. | |
6904989c | 2037 | . "$src/config_h.SH" |
dfe9444c AD |
2038 | fi |
2039 | fi | |
2040 | EOS | |
2041 | ||
2042 | : extract files and exit if asked to do so | |
2043 | case "$extractsh" in | |
2044 | true) | |
2045 | case "$realsilent" in | |
2046 | true) ;; | |
2047 | *) exec 1>&4;; | |
2048 | esac | |
2049 | case "$config_sh" in | |
2050 | '') config_sh='config.sh';; | |
2051 | esac | |
2052 | echo " " | |
2053 | echo "Fetching answers from $config_sh..." | |
2054 | cd .. | |
2055 | . $config_sh | |
7a4fcb3f | 2056 | . UU/optdef.sh |
dfe9444c AD |
2057 | echo " " |
2058 | . UU/extract | |
2059 | rm -rf UU | |
24ccb310 | 2060 | echo "Extraction done." |
dfe9444c AD |
2061 | exit 0 |
2062 | ;; | |
2063 | esac | |
2064 | ||
2065 | : Eunice requires " " instead of "", can you believe it | |
2066 | echo " " | |
2067 | : Here we go... | |
2068 | echo "Beginning of configuration questions for $package." | |
2069 | ||
2070 | trap 'echo " "; test -d ../UU && rm -rf X $rmlist; exit 1' 1 2 3 15 | |
2071 | ||
2304df62 AD |
2072 | : first determine how to suppress newline on echo command |
2073 | echo " " | |
2074 | echo "Checking echo to see how to suppress newlines..." | |
2075 | (echo "hi there\c" ; echo " ") >.echotmp | |
2076 | if $contains c .echotmp >/dev/null 2>&1 ; then | |
2077 | echo "...using -n." | |
2078 | n='-n' | |
2079 | c='' | |
2080 | else | |
2081 | cat <<'EOM' | |
2082 | ...using \c | |
2083 | EOM | |
2084 | n='' | |
2085 | c='\c' | |
2086 | fi | |
2087 | echo $n "The star should be here-->$c" | |
2088 | echo '*' | |
2089 | rm -f .echotmp | |
2090 | ||
2091 | : Now test for existence of everything in MANIFEST | |
2092 | echo " " | |
6904989c | 2093 | if test -f "$rsrc/MANIFEST"; then |
2304df62 | 2094 | echo "First let's make sure your kit is complete. Checking..." >&4 |
1d8eaf8c | 2095 | awk '$1 !~ /PACK[A-Z]+/ {print $1}' "$rsrc/MANIFEST" | \ |
776a38e3 | 2096 | (split -l 50 2>/dev/null || split -50) |
2304df62 | 2097 | rm -f missing |
dfe9444c | 2098 | tmppwd=`pwd` |
2304df62 | 2099 | for filelist in x??; do |
776a38e3 MB |
2100 | (cd "$rsrc"; ls `cat "$tmppwd/$filelist"` \ |
2101 | >/dev/null 2>>"$tmppwd/missing") | |
2304df62 AD |
2102 | done |
2103 | if test -s missing; then | |
2104 | cat missing >&4 | |
2105 | cat >&4 <<'EOM' | |
2106 | ||
2107 | THIS PACKAGE SEEMS TO BE INCOMPLETE. | |
2108 | ||
2109 | You have the option of continuing the configuration process, despite the | |
2110 | distinct possibility that your kit is damaged, by typing 'y'es. If you | |
2111 | do, don't blame me if something goes wrong. I advise you to type 'n'o | |
7f2de2d2 | 2112 | and contact the author (perlbug@perl.org). |
2304df62 AD |
2113 | |
2114 | EOM | |
2115 | echo $n "Continue? [n] $c" >&4 | |
2116 | read ans | |
2117 | case "$ans" in | |
2118 | y*) | |
2119 | echo "Continuing..." >&4 | |
2120 | rm -f missing | |
2121 | ;; | |
2122 | *) | |
2123 | echo "ABORTING..." >&4 | |
2124 | kill $$ | |
2125 | ;; | |
2126 | esac | |
2127 | else | |
dfe9444c | 2128 | echo "Looks good..." |
2304df62 AD |
2129 | fi |
2130 | else | |
2131 | echo "There is no MANIFEST file. I hope your kit is complete !" | |
2132 | fi | |
2133 | rm -f missing x?? | |
2134 | ||
5ff3f7a4 GS |
2135 | : Find the appropriate value for a newline for tr |
2136 | if test -n "$DJGPP"; then | |
2137 | trnl='\012' | |
2138 | fi | |
2139 | if test X"$trnl" = X; then | |
7e69463d | 2140 | case "`echo foo | tr '\n' x 2>/dev/null`" in |
5ff3f7a4 GS |
2141 | foox) trnl='\n' ;; |
2142 | esac | |
2143 | fi | |
2144 | if test X"$trnl" = X; then | |
7e69463d | 2145 | case "`echo foo | tr '\012' x 2>/dev/null`" in |
5ff3f7a4 GS |
2146 | foox) trnl='\012' ;; |
2147 | esac | |
2148 | fi | |
2149 | if test X"$trnl" = X; then | |
7e69463d | 2150 | case "`echo foo | tr '\r\n' xy 2>/dev/null`" in |
8be2c24c JH |
2151 | fooxy) trnl='\n\r' ;; |
2152 | esac | |
2153 | fi | |
2154 | if test X"$trnl" = X; then | |
5ff3f7a4 GS |
2155 | cat <<EOM >&2 |
2156 | ||
2157 | $me: Fatal Error: cannot figure out how to translate newlines with 'tr'. | |
2158 | ||
2159 | EOM | |
2160 | exit 1 | |
2161 | fi | |
2162 | ||
2304df62 AD |
2163 | : compute the number of columns on the terminal for proper question formatting |
2164 | case "$COLUMNS" in | |
2165 | '') COLUMNS='80';; | |
2166 | esac | |
2167 | ||
2168 | : set up the echo used in my read | |
2169 | myecho="case \"\$xxxm\" in | |
2170 | '') echo $n \"\$rp $c\" >&4;; | |
2171 | *) case \"\$rp\" in | |
2172 | '') echo $n \"[\$xxxm] $c\";; | |
2173 | *) | |
2174 | if test \`echo \"\$rp [\$xxxm] \" | wc -c\` -ge $COLUMNS; then | |
2175 | echo \"\$rp\" >&4 | |
2176 | echo $n \"[\$xxxm] $c\" >&4 | |
2177 | else | |
2178 | echo $n \"\$rp [\$xxxm] $c\" >&4 | |
2179 | fi | |
2180 | ;; | |
2181 | esac;; | |
2182 | esac" | |
2183 | ||
2184 | : now set up to do reads with possible shell escape and default assignment | |
2185 | cat <<EOSC >myread | |
28757baa | 2186 | $startsh |
2304df62 AD |
2187 | xxxm=\$dflt |
2188 | $myecho | |
2189 | ans='!' | |
2190 | case "\$fastread" in | |
2191 | yes) case "\$dflt" in | |
2192 | '') ;; | |
2193 | *) ans=''; | |
2194 | case "\$silent-\$rp" in | |
2195 | true-) ;; | |
2196 | *) echo " " >&4;; | |
2197 | esac;; | |
2198 | esac;; | |
2199 | *) case "\$silent" in | |
2200 | true) case "\$rp" in | |
2201 | '') ans='';; | |
2202 | esac;; | |
2203 | esac;; | |
2204 | esac | |
2205 | while expr "X\$ans" : "X!" >/dev/null; do | |
2206 | read answ | |
2207 | set x \$xxxm | |
2208 | shift | |
dfe9444c | 2209 | aok=''; eval "ans=\\"\$answ\\"" && aok=y |
2304df62 | 2210 | case "\$answ" in |
dfe9444c AD |
2211 | "!") |
2212 | sh 1>&4 | |
2213 | echo " " | |
2214 | $myecho | |
2215 | ;; | |
2216 | !*) | |
2217 | set x \`expr "X\$ans" : "X!\(.*\)\$"\` | |
2218 | shift | |
2219 | sh 1>&4 -c "\$*" | |
2220 | echo " " | |
2221 | $myecho | |
2222 | ;; | |
2304df62 AD |
2223 | "\$ans") |
2224 | case "\$ans" in | |
ecfc5424 AD |
2225 | \\&*) |
2226 | set x \`expr "X\$ans" : "X&\(.*\)\$"\` | |
2227 | shift | |
2228 | case "\$1" in | |
2229 | -d) | |
2230 | fastread=yes | |
40a7a20a | 2231 | echo "(OK, I'll run with -d after this question.)" >&4 |
ecfc5424 AD |
2232 | ;; |
2233 | -*) | |
40a7a20a | 2234 | echo "*** Sorry, \$1 not supported yet." >&4 |
ecfc5424 AD |
2235 | ;; |
2236 | esac | |
2237 | $myecho | |
2238 | ans=! | |
2239 | ;; | |
2304df62 AD |
2240 | esac;; |
2241 | *) | |
2242 | case "\$aok" in | |
2243 | y) | |
2244 | echo "*** Substitution done -- please confirm." | |
2245 | xxxm="\$ans" | |
c9795ab7 | 2246 | ans=\`echo $n "\$ans$c" | tr '$trnl' ' '\` |
2304df62 AD |
2247 | xxxm="\$ans" |
2248 | ans=! | |
2249 | ;; | |
2250 | *) | |
2251 | echo "*** Error -- try again." | |
2252 | ans=! | |
2253 | ;; | |
2254 | esac | |
2255 | $myecho | |
2256 | ;; | |
2257 | esac | |
2258 | case "\$ans\$xxxm\$nostick" in | |
2259 | '') | |
2260 | ans=! | |
2261 | $myecho | |
2262 | ;; | |
2263 | esac | |
2264 | done | |
2265 | case "\$ans" in | |
2266 | '') ans="\$xxxm";; | |
2267 | esac | |
2268 | EOSC | |
2269 | ||
2270 | : create .config dir to save info across Configure sessions | |
2271 | test -d ../.config || mkdir ../.config | |
2272 | cat >../.config/README <<EOF | |
2273 | This directory created by Configure to save information that should | |
dfe9444c | 2274 | persist across sessions for $package. |
2304df62 AD |
2275 | |
2276 | You may safely delete it if you wish. | |
2277 | EOF | |
2278 | ||
613d6c3e | 2279 | : See if we are using a devel version and want that |
9507cadf | 2280 | xversion=`awk '/define[ ]+PERL_VERSION/ {print $3}' $rsrc/patchlevel.h` |
af960fef | 2281 | case "$usedevel" in |
1be1b388 MB |
2282 | $define|true|[yY]*) |
2283 | usedevel="$define" ;; | |
9507cadf | 2284 | *) case "$xversion" in |
0107c034 JH |
2285 | *[13579]) |
2286 | cat >&4 <<EOH | |
2287 | *** WHOA THERE!!! *** | |
2288 | ||
2289 | This is an UNSTABLE DEVELOPMENT release. | |
9507cadf JH |
2290 | The version of this $package distribution is $xversion, that is, odd, |
2291 | (as opposed to even) and that signifies a development release. | |
3d5d58b1 | 2292 | If you want a maintenance release, you want an even-numbered version. |
0107c034 JH |
2293 | |
2294 | Do ***NOT*** install this into production use. | |
2295 | Data corruption and crashes are possible. | |
2296 | ||
2297 | It is most seriously suggested that you do not continue any further | |
2298 | unless you want to help in developing and debugging Perl. | |
2299 | ||
6adc6a45 JH |
2300 | If you *still* want to build perl, you can answer 'y' now, |
2301 | or pass -Dusedevel to Configure. | |
2302 | ||
0107c034 JH |
2303 | EOH |
2304 | rp='Do you really want to continue?' | |
2305 | dflt='n' | |
2306 | . ./myread | |
2307 | case "$ans" in | |
8feeef0e JH |
2308 | [yY]) echo >&4 "Okay, continuing." |
2309 | usedevel="$define" ;; | |
0107c034 JH |
2310 | *) echo >&4 "Okay, bye." |
2311 | exit 1 | |
2312 | ;; | |
2313 | esac | |
2314 | ;; | |
2315 | esac | |
1be1b388 | 2316 | usedevel="$undef" |
0107c034 JH |
2317 | ;; |
2318 | esac | |
8feeef0e JH |
2319 | case "$usedevel" in |
2320 | $define|true|[yY]*) | |
2321 | case "$versiononly" in | |
2322 | '') versiononly="$define" ;; | |
2323 | esac | |
2324 | case "$installusrbinperl" in | |
2325 | '') installusrbinperl="$undef" ;; | |
2326 | esac | |
2327 | ;; | |
2328 | esac | |
0107c034 | 2329 | |
2304df62 AD |
2330 | : general instructions |
2331 | needman=true | |
2332 | firsttime=true | |
760ac839 | 2333 | user=`(logname) 2>/dev/null` |
dfe9444c AD |
2334 | case "$user" in |
2335 | '') user=`whoami 2>&1`;; | |
760ac839 | 2336 | esac |
2304df62 AD |
2337 | if $contains "^$user\$" ../.config/instruct >/dev/null 2>&1; then |
2338 | firsttime=false | |
2339 | echo " " | |
2340 | rp='Would you like to see the instructions?' | |
2341 | dflt=n | |
2342 | . ./myread | |
2343 | case "$ans" in | |
2344 | [yY]*) ;; | |
2345 | *) needman=false;; | |
2346 | esac | |
2347 | fi | |
2348 | if $needman; then | |
2349 | cat <<EOH | |
4e2a5f63 | 2350 | |
2304df62 | 2351 | This installation shell script will examine your system and ask you questions |
a0d0e21e | 2352 | to determine how the perl5 package should be installed. If you get |
2304df62 AD |
2353 | stuck on a question, you may use a ! shell escape to start a subshell or |
2354 | execute a command. Many of the questions will have default answers in square | |
2355 | brackets; typing carriage return will give you the default. | |
2356 | ||
2357 | On some of the questions which ask for file or directory names you are allowed | |
2358 | to use the ~name construct to specify the login directory belonging to "name", | |
2359 | even if you don't have a shell which knows about that. Questions where this is | |
2360 | allowed will be marked "(~name ok)". | |
2361 | ||
2362 | EOH | |
2363 | rp='' | |
2364 | dflt='Type carriage return to continue' | |
2365 | . ./myread | |
2366 | cat <<'EOH' | |
2367 | ||
2368 | The prompter used in this script allows you to use shell variables and | |
2369 | backticks in your answers. You may use $1, $2, etc... to refer to the words | |
2370 | in the default answer, as if the default line was a set of arguments given to a | |
2371 | script shell. This means you may also use $* to repeat the whole default line, | |
2372 | so you do not have to re-type everything to add something to the default. | |
2373 | ||
cd95ead5 | 2374 | Every time there is a substitution, you will have to confirm. If there is an |
2304df62 AD |
2375 | error (e.g. an unmatched backtick), the default answer will remain unchanged |
2376 | and you will be prompted again. | |
2377 | ||
2378 | If you are in a hurry, you may run 'Configure -d'. This will bypass nearly all | |
2379 | the questions and use the computed defaults (or the previous answers if there | |
2380 | was already a config.sh file). Type 'Configure -h' for a list of options. | |
ecfc5424 | 2381 | You may also start interactively and then answer '& -d' at any prompt to turn |
dfe9444c | 2382 | on the non-interactive behaviour for the remainder of the execution. |
2304df62 AD |
2383 | |
2384 | EOH | |
2385 | . ./myread | |
2386 | cat <<EOH | |
2387 | ||
2388 | Much effort has been expended to ensure that this shell script will run on any | |
2389 | Unix system. If despite that it blows up on yours, your best bet is to edit | |
40000a8c AD |
2390 | Configure and run it again. If you can't run Configure for some reason, |
2391 | you'll have to generate a config.sh file by hand. Whatever problems you | |
7f2de2d2 | 2392 | have, let me (perlbug@perl.org) know how I blew it. |
2304df62 AD |
2393 | |
2394 | This installation script affects things in two ways: | |
2395 | ||
2396 | 1) it may do direct variable substitutions on some of the files included | |
2397 | in this kit. | |
2398 | 2) it builds a config.h file for inclusion in C programs. You may edit | |
2399 | any of these files as the need arises after running this script. | |
2400 | ||
2401 | If you make a mistake on a question, there is no easy way to back up to it | |
2402 | currently. The easiest thing to do is to edit config.sh and rerun all the SH | |
2403 | files. Configure will offer to let you do this before it runs the SH files. | |
2404 | ||
2405 | EOH | |
2406 | dflt='Type carriage return to continue' | |
2407 | . ./myread | |
2408 | case "$firsttime" in | |
2409 | true) echo $user >>../.config/instruct;; | |
2410 | esac | |
2411 | fi | |
2412 | ||
56b575b9 MB |
2413 | : Set 'sysroot' to change the logical root directory to your headers and libraries see man gcc |
2414 | : This is primarily meant for cross-compile environments, and may fail to be useful in other cases | |
2415 | if test "X$sysroot" = X; then | |
2416 | sysroot="" | |
2417 | else | |
2418 | case "$cc" in | |
2419 | *gcc*|*g++*) | |
2420 | echo "Using $sysroot to find your headers and libraries, adding to ccflags" | |
2421 | # _sysroot is used in places where we need --sysroot=foo | |
2422 | # but using the rest of the flags could cause issues. | |
2423 | _sysroot="--sysroot=$sysroot"; | |
2424 | case "$ccflags" in | |
2425 | *sysroot*) ;; | |
2426 | 'undef'|*) | |
2427 | ccflags="$ccflags $_sysroot" | |
2428 | esac | |
2429 | case "$ldflags" in | |
2430 | *sysroot*) ;; | |
2431 | 'undef'|*) | |
2432 | ldflags="$ldflags $_sysroot" | |
2433 | esac | |
2434 | case "$cppflags" in | |
2435 | *sysroot*) ;; | |
2436 | 'undef'|*) | |
2437 | cppflags="$cppflags $_sysroot" | |
2438 | esac | |
2439 | # lddlflags updated below in lddlflags section; | |
2440 | # same with cccdlflags | |
2441 | ;; | |
2442 | esac | |
2443 | ||
2444 | # Adjust some defaults to also use $sysroot | |
2445 | for var in xlibpth loclibpth locincpth glibpth; do | |
2446 | eval xxx=\$$var | |
2447 | eval $var='' | |
2448 | for path in $xxx; do | |
2449 | eval $var=\"\$$var $sysroot$path\" | |
2450 | done | |
2451 | done | |
2452 | ||
2453 | fi | |
2454 | ||
2304df62 AD |
2455 | : find out where common programs are |
2456 | echo " " | |
2457 | echo "Locating common programs..." >&4 | |
2458 | cat <<EOSC >loc | |
2459 | $startsh | |
2460 | case \$# in | |
2461 | 0) exit 1;; | |
2462 | esac | |
2463 | thing=\$1 | |
2464 | shift | |
2465 | dflt=\$1 | |
2466 | shift | |
2467 | for dir in \$*; do | |
2468 | case "\$thing" in | |
2469 | .) | |
2470 | if test -d \$dir/\$thing; then | |
2471 | echo \$dir | |
2472 | exit 0 | |
2473 | fi | |
2474 | ;; | |
2475 | *) | |
a0d0e21e | 2476 | for thisthing in \$dir/\$thing; do |
ecfc5424 | 2477 | : just loop through to pick last item |
a0d0e21e | 2478 | done |
25f94b33 | 2479 | if test -f \$thisthing; then |
a0d0e21e | 2480 | echo \$thisthing |
2304df62 | 2481 | exit 0 |
a5a94ea5 JH |
2482 | elif test "X$_exe" != X -a -f \$thisthing$_exe; then |
2483 | echo \$thisthing | |
776a38e3 | 2484 | exit 0 |
2304df62 | 2485 | elif test -f \$dir/\$thing.exe; then |
c4f23d77 AD |
2486 | if test -n "$DJGPP"; then |
2487 | echo \$dir/\$thing.exe | |
b921d661 | 2488 | elif test "$eunicefix" != ":"; then |
c4f23d77 AD |
2489 | : on Eunice apparently |
2490 | echo \$dir/\$thing | |
2491 | fi | |
2d736872 | 2492 | exit 0 |
2304df62 AD |
2493 | fi |
2494 | ;; | |
2495 | esac | |
2496 | done | |
2497 | echo \$dflt | |
2498 | exit 1 | |
2499 | EOSC | |
2500 | chmod +x loc | |
2501 | $eunicefix loc | |
2502 | loclist=" | |
2503 | awk | |
2504 | cat | |
f8006fac | 2505 | chmod |
b4eb6b3d JH |
2506 | comm |
2507 | cp | |
2304df62 AD |
2508 | echo |
2509 | expr | |
2510 | grep | |
a0d0e21e | 2511 | ls |
b4eb6b3d | 2512 | mkdir |
2304df62 AD |
2513 | rm |
2514 | sed | |
b4eb6b3d | 2515 | sort |
85e6fe83 | 2516 | touch |
2304df62 | 2517 | tr |
b4eb6b3d | 2518 | uniq |
2304df62 AD |
2519 | " |
2520 | trylist=" | |
dfe9444c | 2521 | ar |
3659ebf1 | 2522 | bison |
b4eb6b3d | 2523 | byacc |
2304df62 | 2524 | cpp |
b4eb6b3d | 2525 | csh |
2304df62 AD |
2526 | date |
2527 | egrep | |
1fef16b3 | 2528 | gmake |
8ff267be | 2529 | gzip |
b4eb6b3d | 2530 | less |
8ff267be | 2531 | ln |
3c728e00 | 2532 | make |
b4eb6b3d | 2533 | more |
693762b4 | 2534 | nm |
b4eb6b3d | 2535 | nroff |
b8677e3b | 2536 | perl |
b4eb6b3d | 2537 | pg |
2304df62 AD |
2538 | test |
2539 | uname | |
8ff267be | 2540 | zip |
2304df62 | 2541 | " |
8e07c86e | 2542 | pth=`echo $PATH | sed -e "s/$p_/ /g"` |
98b12e44 | 2543 | pth="$pth $sysroot/lib $sysroot/usr/lib" |
2304df62 | 2544 | for file in $loclist; do |
dfe9444c AD |
2545 | eval xxx=\$$file |
2546 | case "$xxx" in | |
2547 | /*|?:[\\/]*) | |
2548 | if test -f "$xxx"; then | |
2549 | : ok | |
2550 | else | |
2551 | echo "WARNING: no $xxx -- ignoring your setting for $file." >&4 | |
2552 | xxx=`./loc $file $file $pth` | |
2553 | fi | |
2554 | ;; | |
2555 | '') xxx=`./loc $file $file $pth`;; | |
2556 | *) xxx=`./loc $xxx $xxx $pth`;; | |
2557 | esac | |
a5a94ea5 | 2558 | eval $file=$xxx$_exe |
2304df62 AD |
2559 | eval _$file=$xxx |
2560 | case "$xxx" in | |
2561 | /*) | |
2562 | echo $file is in $xxx. | |
2563 | ;; | |
8e07c86e AD |
2564 | ?:[\\/]*) |
2565 | echo $file is in $xxx. | |
2566 | ;; | |
2304df62 | 2567 | *) |
25f94b33 AD |
2568 | echo "I don't know where '$file' is, and my life depends on it." >&4 |
2569 | echo "Go find a public domain implementation or fix your PATH setting!" >&4 | |
4633a7c4 | 2570 | exit 1 |
2304df62 AD |
2571 | ;; |
2572 | esac | |
2573 | done | |
2574 | echo " " | |
2575 | echo "Don't worry if any of the following aren't found..." | |
2576 | say=offhand | |
2577 | for file in $trylist; do | |
dfe9444c AD |
2578 | eval xxx=\$$file |
2579 | case "$xxx" in | |
2580 | /*|?:[\\/]*) | |
2581 | if test -f "$xxx"; then | |
2582 | : ok | |
2583 | else | |
2584 | echo "WARNING: no $xxx -- ignoring your setting for $file." >&4 | |
2585 | xxx=`./loc $file $file $pth` | |
2586 | fi | |
2587 | ;; | |
2588 | '') xxx=`./loc $file $file $pth`;; | |
2589 | *) xxx=`./loc $xxx $xxx $pth`;; | |
2590 | esac | |
306a8474 | 2591 | eval $file=$xxx$_exe |
2304df62 AD |
2592 | eval _$file=$xxx |
2593 | case "$xxx" in | |
2594 | /*) | |
2595 | echo $file is in $xxx. | |
2596 | ;; | |
8e07c86e AD |
2597 | ?:[\\/]*) |
2598 | echo $file is in $xxx. | |
2599 | ;; | |
2304df62 AD |
2600 | *) |
2601 | echo "I don't see $file out there, $say." | |
2602 | say=either | |
2603 | ;; | |
2604 | esac | |
2605 | done | |
2606 | case "$egrep" in | |
1fef16b3 | 2607 | egrep) |
2304df62 AD |
2608 | echo "Substituting grep for egrep." |
2609 | egrep=$grep | |
868439a2 | 2610 | _egrep=$grep |
2304df62 AD |
2611 | ;; |
2612 | esac | |
3141af47 MB |
2613 | case "$less" in |
2614 | '') ;; | |
a872f748 | 2615 | *) if $less -R </dev/null >/dev/null 2>&1; then |
3141af47 MB |
2616 | echo "Substituting less -R for less." |
2617 | less="$less -R" | |
2618 | _less=$less | |
2619 | fi | |
2620 | ;; | |
2621 | esac | |
8ff267be | 2622 | case "$ln" in |
1fef16b3 | 2623 | ln) |
8ff267be PP |
2624 | echo "Substituting cp for ln." |
2625 | ln=$cp | |
868439a2 | 2626 | _ln=$cp |
8ff267be PP |
2627 | ;; |
2628 | esac | |
2e26f1d5 | 2629 | case "$make" in |
613d6c3e | 2630 | make) |
2e26f1d5 JH |
2631 | case "$gmake" in |
2632 | gmake) | |
2633 | echo "I can't find make or gmake, and my life depends on it." >&4 | |
2634 | echo "Go find a public domain implementation or fix your PATH setting!" >&4 | |
2635 | exit 1 | |
2636 | ;; | |
2637 | esac | |
2638 | ;; | |
613d6c3e | 2639 | esac |
2e26f1d5 JH |
2640 | case "$gmake" in |
2641 | gmake) ;; | |
2642 | *) # We can't have osname yet. | |
1fef16b3 JH |
2643 | if test -f "/system/gnu_library/bin/ar.pm"; then # Stratus VOS |
2644 | # Assume that gmake, if found, is definitely GNU make | |
2645 | # and prefer it over the system make. | |
2646 | echo "Substituting gmake for make." | |
2647 | make=$gmake | |
868439a2 | 2648 | _make=$gmake |
1fef16b3 JH |
2649 | fi |
2650 | ;; | |
a5a94ea5 | 2651 | esac |
2304df62 AD |
2652 | case "$test" in |
2653 | test) | |
2654 | echo "Hopefully test is built into your sh." | |
2655 | ;; | |
2656 | *) | |
73614538 | 2657 | if `sh -c "PATH= test true" >/dev/null 2>&1`; then |
5d644a95 | 2658 | echo "Using the test built into your sh." |
2304df62 AD |
2659 | test=test |
2660 | _test=test | |
2661 | fi | |
2662 | ;; | |
2663 | esac | |
2664 | case "$echo" in | |
2665 | echo) | |
2666 | echo "Hopefully echo is built into your sh." | |
2667 | ;; | |
2668 | '') ;; | |
2669 | *) | |
2670 | echo " " | |
2671 | echo "Checking compatibility between $echo and builtin echo (if any)..." >&4 | |
2672 | $echo $n "hi there$c" >foo1 | |
2673 | echo $n "hi there$c" >foo2 | |
2674 | if cmp foo1 foo2 >/dev/null 2>&1; then | |
2675 | echo "They are compatible. In fact, they may be identical." | |
2676 | else | |
2677 | case "$n" in | |
2678 | '-n') n='' c='\c';; | |
2679 | *) n='-n' c='';; | |
2680 | esac | |
2681 | cat <<FOO | |
2682 | They are not compatible! You are probably running ksh on a non-USG system. | |
2683 | I'll have to use $echo instead of the builtin, since Bourne shell doesn't | |
2684 | have echo built in and we may have to run some Bourne shell scripts. That | |
2685 | means I'll have to use '$n$c' to suppress newlines now. Life is ridiculous. | |
2686 | ||
2687 | FOO | |
2688 | $echo $n "The star should be here-->$c" | |
2689 | $echo "*" | |
2690 | fi | |
2691 | $rm -f foo1 foo2 | |
2692 | ;; | |
2693 | esac | |
2694 | ||
2f88d857 MB |
2695 | # This question was auctioned at YAPC::Europe-2007 in Vienna |
2696 | # I never promised you could answer it. I only auctioned the question. | |
2697 | cat <<FOO | |
2698 | The following message is sponsored by | |
2699 | ||
2700 | Dresden.pm<--The stars should be here. | |
2701 | ||
2702 | Dear Perl user, system administrator or package | |
2703 | maintainer, the Perl community sends greetings to | |
2704 | you. Do you (emblematical) greet back [Y/n]? n | |
2705 | ||
2706 | FOO | |
2707 | ||
613d6c3e | 2708 | : Check what type of C compiler we use |
6b769f8f | 2709 | cat <<EOS >trygcc |
2573c5f9 JH |
2710 | $startsh |
2711 | EOS | |
6b769f8f | 2712 | cat <<'EOSC' >>trygcc |
2573c5f9 JH |
2713 | case "$cc" in |
2714 | '') ;; | |
2715 | *) $rm -f try try.* | |
2716 | $cat >try.c <<EOM | |
2717 | int main(int argc, char *argv[]) { | |
2718 | return 0; | |
2719 | } | |
2720 | EOM | |
e4778687 | 2721 | if $cc -o try $ccflags $ldflags try.c; then |
2573c5f9 JH |
2722 | : |
2723 | else | |
2724 | echo "Uh-oh, the C compiler '$cc' doesn't seem to be working." >&4 | |
2725 | despair=yes | |
2726 | trygcc=yes | |
2727 | case "$cc" in | |
2728 | *gcc*) trygcc=no ;; | |
2729 | esac | |
dce40316 AD |
2730 | # Skip this test because it gives a false match on output like: |
2731 | # ./trygcc: line 23: cc: command not found | |
2732 | # case "`$cc -v -c try.c 2>&1`" in | |
2733 | # *gcc*) trygcc=no ;; | |
2734 | # esac | |
2573c5f9 JH |
2735 | if $test X"$trygcc" = Xyes; then |
2736 | if gcc -o try -c try.c; then | |
2737 | echo " " | |
2738 | echo "You seem to have a working gcc, though." >&4 | |
dce40316 AD |
2739 | # Switching compilers may undo the work of hints files. |
2740 | # The most common problem is -D_REENTRANT for threads. | |
2741 | # This heuristic catches that case, but gets false positives | |
2742 | # if -Dusethreads was not actually specified. Better to | |
d0166596 | 2743 | # bail out here with a useful message than fail |
dce40316 AD |
2744 | # mysteriously later. Should we perhaps just try to |
2745 | # re-invoke Configure -Dcc=gcc config_args ? | |
2746 | if $test -f usethreads.cbu; then | |
d0166596 | 2747 | $cat >&4 <<EOM |
dce40316 AD |
2748 | |
2749 | *** However, any setting of the C compiler flags (e.g. for thread support) | |
2750 | *** will be lost. It may be necessary for you to restart Configure and | |
2751 | *** add -Dcc=gcc to your Configure command line. | |
2752 | ||
2753 | EOM | |
2754 | rp="Would you like to go ahead and try gcc anyway?" | |
2755 | dflt=n | |
2756 | else | |
2757 | rp="Would you like to use it?" | |
2758 | dflt=y | |
2759 | fi | |
2573c5f9 JH |
2760 | if $test -f myread; then |
2761 | . ./myread | |
2762 | else | |
2763 | if $test -f UU/myread; then | |
2764 | . ./UU/myread | |
2765 | else | |
2766 | echo "Cannot find myread, sorry. Aborting." >&2 | |
2767 | exit 1 | |
2768 | fi | |
d0166596 | 2769 | fi |
2573c5f9 | 2770 | case "$ans" in |
6371411c | 2771 | [yY]*) cc=gcc; ccname=gcc; ccflags=''; despair=no; |
2573c5f9 JH |
2772 | esac |
2773 | fi | |
2774 | fi | |
6b769f8f RB |
2775 | fi |
2776 | $rm -f try try.* | |
2777 | ;; | |
2778 | esac | |
2779 | EOSC | |
2780 | ||
2781 | cat <<EOS >checkcc | |
2782 | $startsh | |
2783 | EOS | |
2784 | cat <<'EOSC' >>checkcc | |
d0166596 | 2785 | case "$cc" in |
6b769f8f | 2786 | '') ;; |
d0166596 | 2787 | *) $rm -f try try.* |
6b769f8f RB |
2788 | $cat >try.c <<EOM |
2789 | int main(int argc, char *argv[]) { | |
2790 | return 0; | |
2791 | } | |
2792 | EOM | |
2793 | if $cc -o try $ccflags $ldflags try.c; then | |
2794 | : | |
2795 | else | |
2573c5f9 | 2796 | if $test X"$despair" = Xyes; then |
6b769f8f RB |
2797 | echo "Uh-oh, the C compiler '$cc' doesn't seem to be working." >&4 |
2798 | fi | |
d0166596 | 2799 | $cat >&4 <<EOM |
5dd4fbdf MB |
2800 | You need to find a working C compiler. |
2801 | Either (purchase and) install the C compiler supplied by your OS vendor, | |
2802 | or for a free C compiler try http://gcc.gnu.org/ | |
2803 | I cannot continue any further, aborting. | |
2804 | EOM | |
6b769f8f | 2805 | exit 1 |
2573c5f9 JH |
2806 | fi |
2807 | $rm -f try try.* | |
2808 | ;; | |
2809 | esac | |
2810 | EOSC | |
2811 | ||
a0d0e21e LW |
2812 | : determine whether symbolic links are supported |
2813 | echo " " | |
2814 | $touch blurfl | |
2815 | if $ln -s blurfl sym > /dev/null 2>&1 ; then | |
2816 | echo "Symbolic links are supported." >&4 | |
818f00be | 2817 | lns="$ln -s" |
a0d0e21e LW |
2818 | else |
2819 | echo "Symbolic links are NOT supported." >&4 | |
2820 | lns="$ln" | |
2821 | fi | |
2822 | $rm -f blurfl sym | |
2823 | ||
dafca956 JH |
2824 | : determine whether symbolic links are supported |
2825 | echo " " | |
2826 | case "$lns" in | |
18ea2752 | 2827 | *"ln"*" -s") |
dafca956 JH |
2828 | echo "Checking how to test for symbolic links..." >&4 |
2829 | $lns blurfl sym | |
4b661809 | 2830 | if $test "X$issymlink" = X; then |
2e2a97a6 JH |
2831 | case "$newsh" in |
2832 | '') sh -c "PATH= test -h sym" >/dev/null 2>&1 ;; | |
2833 | *) $newsh -c "PATH= test -h sym" >/dev/null 2>&1 ;; | |
2834 | esac | |
5d644a95 MB |
2835 | if test $? = 0; then |
2836 | issymlink="test -h" | |
2e2a97a6 JH |
2837 | else |
2838 | echo "Your builtin 'test -h' may be broken." >&4 | |
2839 | case "$test" in | |
2840 | /*) ;; | |
2841 | *) pth=`echo $PATH | sed -e "s/$p_/ /g"` | |
2842 | for p in $pth | |
2843 | do | |
2844 | if test -f "$p/$test"; then | |
2845 | test="$p/$test" | |
2846 | break | |
2847 | fi | |
2848 | done | |
2849 | ;; | |
2850 | esac | |
2851 | case "$test" in | |
2852 | /*) | |
2853 | echo "Trying external '$test -h'." >&4 | |
2854 | issymlink="$test -h" | |
2855 | if $test ! -h sym >/dev/null 2>&1; then | |
3c728e00 | 2856 | echo "External '$test -h' is broken, too." >&4 |
2e2a97a6 JH |
2857 | issymlink='' |
2858 | fi | |
2859 | ;; | |
2860 | *) issymlink='' ;; | |
2861 | esac | |
1332606d | 2862 | fi |
5d644a95 | 2863 | fi |
4b661809 | 2864 | if $test "X$issymlink" = X; then |
dafca956 | 2865 | if $test -L sym 2>/dev/null; then |
5d644a95 | 2866 | issymlink="$test -L" |
2e2a97a6 | 2867 | echo "The builtin '$test -L' worked." >&4 |
dafca956 JH |
2868 | fi |
2869 | fi | |
4b661809 | 2870 | if $test "X$issymlink" != X; then |
5d644a95 | 2871 | echo "You can test for symbolic links with '$issymlink'." >&4 |
dafca956 JH |
2872 | else |
2873 | echo "I do not know how you can test for symbolic links." >&4 | |
2874 | fi | |
2875 | $rm -f blurfl sym | |
2876 | ;; | |
2877 | *) echo "No symbolic links, so not testing for their testing..." >&4 | |
2878 | ;; | |
2879 | esac | |
dafca956 | 2880 | |
34f1896b | 2881 | : Make symlinks util |
dafca956 JH |
2882 | case "$mksymlinks" in |
2883 | $define|true|[yY]*) | |
2884 | case "$src" in | |
2885 | ''|'.') echo "Cannot create symlinks in the original directory." >&4 | |
2886 | exit 1 | |
2887 | ;; | |
4b661809 | 2888 | *) case "$lns:$issymlink" in |
f314eb9f | 2889 | *"ln"*" -s:"*"test -"?) |
dafca956 | 2890 | echo "Creating the symbolic links..." >&4 |
dafca956 | 2891 | cd .. |
7191ba82 AF |
2892 | awk '{print $1}' $src/MANIFEST | sed -e 's:/\([^/]*\)$: \1:' | |
2893 | awk 'NF == 1 { | |
2894 | dir="."; | |
2895 | file=$1 ""; | |
2896 | } | |
2897 | NF == 2 { | |
2898 | dir=$1 ""; | |
2899 | file=$2 ""; | |
2900 | } | |
2901 | { | |
2902 | print "# dir = ", dir, "file = ", file | |
f40bbcbf | 2903 | mf[dir] = mf[dir]" "source"/"dir"/"file; |
7191ba82 AF |
2904 | } END { |
2905 | for (d in mf) { | |
2906 | if (d != ".") { print("mkdir -p "d) } | |
2907 | print("ln -sf "mf[d]" "d); | |
2908 | } | |
f40bbcbf | 2909 | }' source="$src" > UU/mksymlinks.$$ |
7191ba82 AF |
2910 | sh UU/mksymlinks.$$ |
2911 | rm UU/mksymlinks.$$ | |
dafca956 JH |
2912 | # Sanity check 1. |
2913 | if test ! -d t/base; then | |
2914 | echo "Failed to create the subdirectories. Aborting." >&4 | |
2915 | exit 1 | |
2916 | fi | |
dafca956 | 2917 | # Sanity check 2. |
a0d24b8a JH |
2918 | if test ! -f t/base/lex.t; then |
2919 | echo "Failed to create the symlinks (t/base/lex.t missing). Aborting." >&4 | |
dafca956 JH |
2920 | exit 1 |
2921 | fi | |
7191ba82 AF |
2922 | if test ! -f win32/win32.c; then |
2923 | echo "Failed to create the symlinks (win32/win32.c missing). Aborting." >&4 | |
2924 | exit 1 | |
2925 | fi | |
dafca956 JH |
2926 | cd UU |
2927 | ;; | |
2928 | *) echo "(I cannot figure out how to do symbolic links, ignoring mksymlinks)." >&4 | |
2929 | ;; | |
2930 | esac | |
2931 | ;; | |
2932 | esac | |
2933 | ;; | |
2934 | esac | |
2935 | ||
613d6c3e | 2936 | : Check for Cross-Compilation |
56b575b9 MB |
2937 | if $test "X$targethost" = "X"; then |
2938 | targethost="" | |
2939 | fi | |
f53a6e0e MB |
2940 | if $test "X$targetenv" = "X"; then |
2941 | targetenv="" | |
2942 | fi | |
5440bc8e JH |
2943 | case "$usecrosscompile" in |
2944 | $define|true|[yY]*) | |
93bc48fa | 2945 | $echo "Cross-compiling..." |
56b575b9 MB |
2946 | croak='' |
2947 | case "$cc" in | |
2948 | *-gcc*|*-g++*) # A cross-compiling gcc, probably. | |
2949 | # arm-linux-androideabi-gcc -> arm-linux-androideabi | |
2950 | # x86_64-w64-mingw32-gcc.exe -> x86_64-w64-mingw32 | |
2951 | targetarch=`$echo $cc|$sed 's/-g[c\+][c\+].*$//'` | |
2952 | ar=`$echo $cc|$sed 's/-g[c\+][c\+]/-ar/'` | |
2953 | # leave out ld, choosing it is more complex | |
2954 | nm=`$echo $cc|$sed 's/-g[c\+][c\+]/-nm/'` | |
2955 | ranlib=`$echo $cc|$sed 's/-g[c\+][c\+]/-ranlib/'` | |
2956 | # We are in a weird spot. Just before us, some values | |
2957 | # were 'saved', to be restored after the hints are | |
2958 | # run. This means that the changes we made to ar, | |
2959 | # nm and ranlib will get reverted. | |
2960 | # To avoid that, we hijack the saving mechanism and | |
2961 | # have it save our new values. | |
2962 | for file in ar nm ranlib; do | |
2963 | eval xxx=\$$file | |
2964 | eval $file=$xxx$_exe | |
2965 | eval _$file=$xxx | |
2966 | done | |
2967 | ;; | |
5440bc8e JH |
2968 | esac |
2969 | case "$targetarch" in | |
93bc48fa | 2970 | '') echo "Targetarch not defined." >&4; croak=y ;; |
56b575b9 | 2971 | *) echo "Using targetarch $targetarch." >&4 ;; |
5440bc8e | 2972 | esac |
93bc48fa | 2973 | case "$targethost" in |
23695c07 | 2974 | '') echo "Targethost not defined." >&4; croak=n ;; |
56b575b9 | 2975 | *) echo "Using targethost $targethost." >&4 |
5440bc8e | 2976 | esac |
93bc48fa JH |
2977 | locincpth=' ' |
2978 | loclibpth=' ' | |
5440bc8e | 2979 | case "$croak" in |
93bc48fa | 2980 | y) echo "Cannot continue, aborting." >&4; exit 1 ;; |
5440bc8e | 2981 | esac |
b98f6b80 JR |
2982 | : compile a host miniperl and generate_uudmap, unless we got passed them |
2983 | if $test "X$hostperl" = X; then | |
2984 | echo "Building host miniperl and generate_uudmap binaries" >&4 | |
4346df8f | 2985 | before_host=`pwd` |
b98f6b80 | 2986 | cd .. |
4346df8f BF |
2987 | cd $src |
2988 | src=`pwd` | |
f53a6e0e MB |
2989 | rm -rf $src/host |
2990 | mkdir $src/host | |
2991 | cd $src/host | |
4346df8f | 2992 | $src/Configure -des -Dusedevel -Dmksymlinks |
1ca484ac BF |
2993 | $make miniperl |
2994 | case "$hostgenerate" in | |
2995 | '') $make generate_uudmap | |
f53a6e0e | 2996 | hostgenerate=$src/host/generate_uudmap |
1ca484ac BF |
2997 | ;; |
2998 | "$undef") hostgenerate='' | |
2999 | ;; | |
3000 | esac | |
4346df8f | 3001 | hostperl=$src/host/miniperl |
4346df8f | 3002 | cd $before_host |
b98f6b80 | 3003 | fi |
b36f1e2d | 3004 | hostosname=`$hostperl -le 'print $^O'` |
cb87e003 JR |
3005 | ;; |
3006 | *) | |
b75b1e25 | 3007 | usecrosscompile="$undef" |
cb87e003 JR |
3008 | ;; |
3009 | esac | |
3010 | ||
3011 | : Define -Dtargethost=somecomputer to run compiled tests on another machine | |
0eafc8c9 | 3012 | case "$targethost" in |
97076f2d NW |
3013 | '') echo "Checking for cross-compile" >&4 |
3014 | case "$usecrosscompile$multiarch" in | |
dbb1f24e | 3015 | *$define*) echo "Skipping the try tests in the rest of Configure as no targethost was defined when cross-compiling" >&4 |
97076f2d NW |
3016 | if [ -f Makefile ]; then |
3017 | echo " " | |
3018 | echo "Now you must ensure config.sh, config.h and the generated headers exist and run a $make." | |
3019 | else | |
3020 | echo "Configure done." | |
3021 | fi | |
3022 | exit 0 | |
3023 | ;; | |
97076f2d | 3024 | *) echo "No targethost for running compiler tests against defined, running locally" >&4 |
0eafc8c9 JR |
3025 | run='' |
3026 | to=: | |
3027 | from=: | |
3028 | ;; | |
dbb1f24e NW |
3029 | esac |
3030 | ;; | |
0eafc8c9 | 3031 | *) echo "Using targethost $targethost." >&4 |
5440bc8e JH |
3032 | case "$src" in |
3033 | /*) run=$src/Cross/run | |
93c0359c | 3034 | targetmkdir=$src/Cross/mkdir |
5440bc8e JH |
3035 | to=$src/Cross/to |
3036 | from=$src/Cross/from | |
3037 | ;; | |
93bc48fa | 3038 | *) pwd=`$test -f ../Configure & cd ..; pwd` |
5440bc8e | 3039 | run=$pwd/Cross/run |
f8006fac | 3040 | targetmkdir=$pwd/Cross/mkdir |
5440bc8e JH |
3041 | to=$pwd/Cross/to |
3042 | from=$pwd/Cross/from | |
3043 | ;; | |
3044 | esac | |
3045 | case "$targetrun" in | |
3046 | '') targetrun=ssh ;; | |
3047 | esac | |
3048 | case "$targetto" in | |
3049 | '') targetto=scp ;; | |
3050 | esac | |
3051 | case "$targetfrom" in | |
3052 | '') targetfrom=scp ;; | |
3053 | esac | |
56b575b9 MB |
3054 | run=$run-$targetrun |
3055 | to=$to-$targetto | |
3056 | from=$from-$targetfrom | |
93bc48fa JH |
3057 | case "$targetdir" in |
3058 | '') targetdir=/tmp | |
56b575b9 MB |
3059 | echo "Guessing targetdir $targetdir." >&4 |
3060 | ;; | |
93bc48fa | 3061 | esac |
5440bc8e | 3062 | case "$targetuser" in |
93bc48fa | 3063 | '') targetuser=root |
56b575b9 MB |
3064 | echo "Guessing targetuser $targetuser." >&4 |
3065 | ;; | |
5440bc8e | 3066 | esac |
dad780ec JR |
3067 | case "$targetport" in |
3068 | '') targetport=22 | |
56b575b9 MB |
3069 | echo "Guessing targetport $targetport." >&4 |
3070 | ;; | |
dad780ec | 3071 | esac |
5440bc8e JH |
3072 | case "$targetfrom" in |
3073 | scp) q=-q ;; | |
3074 | *) q='' ;; | |
3075 | esac | |
3076 | case "$targetrun" in | |
3077 | ssh|rsh) | |
3078 | cat >$run <<EOF | |
3079 | #!/bin/sh | |
d1739b52 | 3080 | env='' |
93c0359c JH |
3081 | case "\$1" in |
3082 | -cwd) | |
3083 | shift | |
3084 | cwd=\$1 | |
3085 | shift | |
3086 | ;; | |
3087 | esac | |
d1739b52 BF |
3088 | case "\$1" in |
3089 | -env) | |
3090 | shift | |
3091 | env=\$1 | |
3092 | shift | |
3093 | ;; | |
3094 | esac | |
93c0359c JH |
3095 | case "\$cwd" in |
3096 | '') cwd=$targetdir ;; | |
3097 | esac | |
5440bc8e JH |
3098 | exe=\$1 |
3099 | shift | |
dad780ec | 3100 | $to \$exe |
03deea9f | 3101 | $targetrun -p $targetport -l $targetuser $targethost "cd \$cwd && \$env \$exe \$@" |
5440bc8e JH |
3102 | EOF |
3103 | ;; | |
e9867f21 BF |
3104 | adb) |
3105 | $touch $run | |
3106 | ;; | |
93bc48fa | 3107 | *) echo "Unknown targetrun '$targetrun'" >&4 |
5440bc8e JH |
3108 | exit 1 |
3109 | ;; | |
3110 | esac | |
93c0359c JH |
3111 | case "$targetmkdir" in |
3112 | */Cross/mkdir) | |
3113 | cat >$targetmkdir <<EOF | |
3114 | #!/bin/sh | |
dad780ec | 3115 | $targetrun -p $targetport -l $targetuser $targethost "mkdir -p \$@" |
93c0359c | 3116 | EOF |
f8006fac | 3117 | $chmod a+rx $targetmkdir |
93c0359c JH |
3118 | ;; |
3119 | *) echo "Unknown targetmkdir '$targetmkdir'" >&4 | |
3120 | exit 1 | |
3121 | ;; | |
3122 | esac | |
5440bc8e JH |
3123 | case "$targetto" in |
3124 | scp|rcp) | |
3125 | cat >$to <<EOF | |
3126 | #!/bin/sh | |
3127 | for f in \$@ | |
3128 | do | |
93c0359c JH |
3129 | case "\$f" in |
3130 | /*) | |
3131 | $targetmkdir \`dirname \$f\` | |
f53a6e0e | 3132 | $targetto -P $targetport -r $q \$f $targetuser@$targethost:\$f 2>/dev/null || exit 1 |
93c0359c JH |
3133 | ;; |
3134 | *) | |
3135 | $targetmkdir $targetdir/\`dirname \$f\` | |
f53a6e0e | 3136 | $targetto -P $targetport -r $q \$f $targetuser@$targethost:$targetdir/\$f 2>/dev/null || exit 1 |
93c0359c JH |
3137 | ;; |
3138 | esac | |
5440bc8e JH |
3139 | done |
3140 | exit 0 | |
3141 | EOF | |
3142 | ;; | |
3143 | cp) cat >$to <<EOF | |
3144 | #!/bin/sh | |
93c0359c JH |
3145 | for f in \$@ |
3146 | do | |
3147 | case "\$f" in | |
3148 | /*) | |
3149 | $mkdir -p $targetdir/\`dirname \$f\` | |
3150 | $cp \$f $targetdir/\$f || exit 1 | |
3151 | ;; | |
3152 | *) | |
3153 | $targetmkdir $targetdir/\`dirname \$f\` | |
3154 | $cp \$f $targetdir/\$f || exit 1 | |
3155 | ;; | |
3156 | esac | |
3157 | done | |
3158 | exit 0 | |
5440bc8e JH |
3159 | EOF |
3160 | ;; | |
93bc48fa | 3161 | *) echo "Unknown targetto '$targetto'" >&4 |
5440bc8e JH |
3162 | exit 1 |
3163 | ;; | |
3164 | esac | |
3165 | case "$targetfrom" in | |
3166 | scp|rcp) | |
3167 | cat >$from <<EOF | |
3168 | #!/bin/sh | |
3169 | for f in \$@ | |
3170 | do | |
93c0359c | 3171 | $rm -f \$f |
dad780ec | 3172 | $targetfrom -P $targetport $q $targetuser@$targethost:$targetdir/\$f . || exit 1 |
5440bc8e JH |
3173 | done |
3174 | exit 0 | |
3175 | EOF | |
3176 | ;; | |
3177 | cp) cat >$from <<EOF | |
3178 | #!/bin/sh | |
3179 | for f in \$@ | |
3180 | do | |
93c0359c | 3181 | $rm -f \$f |
5440bc8e JH |
3182 | cp $targetdir/\$f . || exit 1 |
3183 | done | |
3184 | exit 0 | |
3185 | EOF | |
3186 | ;; | |
93bc48fa | 3187 | *) echo "Unknown targetfrom '$targetfrom'" >&4 |
5440bc8e JH |
3188 | exit 1 |
3189 | ;; | |
3190 | esac | |
93bc48fa JH |
3191 | if $test ! -f $run; then |
3192 | echo "Target 'run' script '$run' not found." >&4 | |
5440bc8e | 3193 | else |
f8006fac | 3194 | $chmod a+rx $run |
5440bc8e | 3195 | fi |
93bc48fa JH |
3196 | if $test ! -f $to; then |
3197 | echo "Target 'to' script '$to' not found." >&4 | |
5440bc8e | 3198 | else |
f8006fac | 3199 | $chmod a+rx $to |
5440bc8e | 3200 | fi |
93bc48fa JH |
3201 | if $test ! -f $from; then |
3202 | echo "Target 'from' script '$from' not found." >&4 | |
5440bc8e | 3203 | else |
f8006fac | 3204 | $chmod a+rx $from |
5440bc8e | 3205 | fi |
93bc48fa | 3206 | if $test ! -f $run -o ! -f $to -o ! -f $from; then |
5440bc8e JH |
3207 | exit 1 |
3208 | fi | |
3209 | cat >&4 <<EOF | |
f8006fac JH |
3210 | Using '$run' for remote execution, |
3211 | and '$from' and '$to' | |
93bc48fa | 3212 | for remote file transfer. |
5440bc8e JH |
3213 | EOF |
3214 | ;; | |
3215 | *) run='' | |
3216 | to=: | |
3217 | from=: | |
b75b1e25 | 3218 | usecrosscompile="$undef" |
5440bc8e JH |
3219 | targetarch='' |
3220 | ;; | |
3221 | esac | |
3222 | ||
ecfc5424 AD |
3223 | : see whether [:lower:] and [:upper:] are supported character classes |
3224 | echo " " | |
e129ac51 AB |
3225 | case "`echo AbyZ | $tr '[:lower:]' '[:upper:]' 2>/dev/null`"-"`echo AbyZ | $tr '[:upper:]' '[:lower:]' 2>/dev/null`" in |
3226 | ABYZ-abyz) | |
ecfc5424 AD |
3227 | echo "Good, your tr supports [:lower:] and [:upper:] to convert case." >&4 |
3228 | up='[:upper:]' | |
3229 | low='[:lower:]' | |
3230 | ;; | |
416d0bea MB |
3231 | *) # There is a discontinuity in EBCDIC between 'R' and 'S' |
3232 | # (0xd9 and 0xe2), therefore that is a nice testing point. | |
3233 | if test "X$up" = X -o "X$low" = X; then | |
3234 | case "`echo RS | $tr '[R-S]' '[r-s]' 2>/dev/null`" in | |
3235 | rs) up='[A-Z]' | |
3236 | low='[a-z]' | |
28e8609d JH |
3237 | ;; |
3238 | esac | |
416d0bea | 3239 | fi |
28e8609d | 3240 | if test "X$up" = X -o "X$low" = X; then |
416d0bea MB |
3241 | case "`echo RS | $tr R-S r-s 2>/dev/null`" in |
3242 | rs) up='A-Z' | |
28e8609d JH |
3243 | low='a-z' |
3244 | ;; | |
3245 | esac | |
416d0bea | 3246 | fi |
28e8609d | 3247 | if test "X$up" = X -o "X$low" = X; then |
416d0bea MB |
3248 | case "`echo RS | od -x 2>/dev/null`" in |
3249 | *D9E2*|*d9e2*) | |
28e8609d JH |
3250 | echo "Hey, this might be EBCDIC." >&4 |
3251 | if test "X$up" = X -o "X$low" = X; then | |
416d0bea MB |
3252 | case "`echo RS | $tr '[A-IJ-RS-Z]' '[a-ij-rs-z]' 2>/dev/null`" in |
3253 | rs) up='[A-IJ-RS-Z]' | |
3254 | low='[a-ij-rs-z]' | |
28e8609d JH |
3255 | ;; |
3256 | esac | |
3257 | fi | |
3258 | if test "X$up" = X -o "X$low" = X; then | |
416d0bea MB |
3259 | case "`echo RS | $tr A-IJ-RS-Z a-ij-rs-z 2>/dev/null`" in |
3260 | rs) up='A-IJ-RS-Z' | |
3261 | low='a-ij-rs-z' | |
28e8609d JH |
3262 | ;; |
3263 | esac | |
3264 | fi | |
3265 | ;; | |
3266 | esac | |
3267 | fi | |
3268 | esac | |
416d0bea MB |
3269 | case "`echo RS | $tr \"$up\" \"$low\" 2>/dev/null`" in |
3270 | rs) | |
28e8609d JH |
3271 | echo "Using $up and $low to convert case." >&4 |
3272 | ;; | |
ecfc5424 | 3273 | *) |
28e8609d JH |
3274 | echo "I don't know how to translate letters from upper to lower case." >&4 |
3275 | echo "Your tr is not acting any way I know of." >&4 | |
3276 | exit 1 | |
3277 | ;; | |
ecfc5424 AD |
3278 | esac |
3279 | : set up the translation script tr, must be called with ./tr of course | |
3280 | cat >tr <<EOSC | |
3281 | $startsh | |
3282 | case "\$1\$2" in | |
3283 | '[A-Z][a-z]') exec $tr '$up' '$low';; | |
3284 | '[a-z][A-Z]') exec $tr '$low' '$up';; | |
3285 | esac | |
3286 | exec $tr "\$@" | |
3287 | EOSC | |
3288 | chmod +x tr | |
3289 | $eunicefix tr | |
3290 | ||
2304df62 AD |
3291 | : Try to determine whether config.sh was made on this system |
3292 | case "$config_sh" in | |
3293 | '') | |
43999f95 JH |
3294 | myuname=`$uname -a 2>/dev/null` |
3295 | $test -z "$myuname" && myuname=`hostname 2>/dev/null` | |
f4dc174a | 3296 | # Downcase everything to avoid ambiguity. |
1332606d | 3297 | # Remove slashes and single quotes so we can use parts of this in |
f4dc174a AD |
3298 | # directory and file names. |
3299 | # Remove newlines so myuname is sane to use elsewhere. | |
28e8609d JH |
3300 | # tr '[A-Z]' '[a-z]' would not work in EBCDIC |
3301 | # because the A-Z/a-z are not consecutive. | |
f4dc174a | 3302 | myuname=`echo $myuname | $sed -e "s,['/],,g" | \ |
3eaeeeae | 3303 | ./tr '[A-Z]' '[a-z]' | $tr $trnl ' '` |
1aef975c | 3304 | newmyuname="$myuname" |
2304df62 | 3305 | dflt=n |
16d20bd9 AD |
3306 | case "$knowitall" in |
3307 | '') | |
3308 | if test -f ../config.sh; then | |
3309 | if $contains myuname= ../config.sh >/dev/null 2>&1; then | |
3310 | eval "`grep myuname= ../config.sh`" | |
3311 | fi | |
3312 | if test "X$myuname" = "X$newmyuname"; then | |
3313 | dflt=y | |
3314 | fi | |
2304df62 | 3315 | fi |
16d20bd9 AD |
3316 | ;; |
3317 | *) dflt=y;; | |
3318 | esac | |
2304df62 AD |
3319 | |
3320 | : Get old answers from old config file if Configure was run on the | |
3321 | : same system, otherwise use the hints. | |
3322 | hint=default | |
3323 | cd .. | |
3324 | if test -f config.sh; then | |
16d20bd9 AD |
3325 | echo " " |
3326 | rp="I see a config.sh file. Shall I use it to set the defaults?" | |
2304df62 AD |
3327 | . UU/myread |
3328 | case "$ans" in | |
f83701cd AD |
3329 | n*|N*) echo "OK, I'll ignore it." |
3330 | mv config.sh config.sh.old | |
3331 | myuname="$newmyuname" | |
3332 | ;; | |
2304df62 | 3333 | *) echo "Fetching default answers from your old config.sh file..." >&4 |
ecfc5424 AD |
3334 | tmp_n="$n" |
3335 | tmp_c="$c" | |
85cad39c | 3336 | tmp_sh="$sh" |
2304df62 AD |
3337 | . ./config.sh |
3338 | cp config.sh UU | |
ecfc5424 AD |
3339 | n="$tmp_n" |
3340 | c="$tmp_c" | |
85cad39c PP |
3341 | : Older versions did not always set $sh. Catch re-use of such |
3342 | : an old config.sh. | |
3343 | case "$sh" in | |
3344 | '') sh="$tmp_sh" ;; | |
3345 | esac | |
2304df62 AD |
3346 | hint=previous |
3347 | ;; | |
3348 | esac | |
3349 | fi | |
2573c5f9 | 3350 | . ./UU/checkcc |
2304df62 AD |
3351 | if test ! -f config.sh; then |
3352 | $cat <<EOM | |
3353 | ||
4e2a5f63 AD |
3354 | First time through, eh? I have some defaults handy for some systems |
3355 | that need some extra help getting the Configure answers right: | |
2304df62 AD |
3356 | |
3357 | EOM | |
dfe9444c | 3358 | (cd $src/hints; ls -C *.sh) | $sed 's/\.sh/ /g' >&4 |
2304df62 AD |
3359 | dflt='' |
3360 | : Half the following guesses are probably wrong... If you have better | |
7f2de2d2 | 3361 | : tests or hints, please send them to perlbug@perl.org |
2304df62 | 3362 | : The metaconfig authors would also appreciate a copy... |
a0d0e21e | 3363 | $test -f /irix && osname=irix |
85e6fe83 LW |
3364 | $test -f /xenix && osname=sco_xenix |
3365 | $test -f /dynix && osname=dynix | |
3366 | $test -f /dnix && osname=dnix | |
5f05dabc PP |
3367 | $test -f /lynx.os && osname=lynxos |
3368 | $test -f /unicos && osname=unicos && osvers=`$uname -r` | |
c71a9cee | 3369 | $test -f /unicosmk && osname=unicosmk && osvers=`$uname -r` |
7a4c00b4 | 3370 | $test -f /unicosmk.ar && osname=unicosmk && osvers=`$uname -r` |
85e6fe83 | 3371 | $test -f /bin/mips && /bin/mips && osname=mips |
a0d0e21e LW |
3372 | $test -d /usr/apollo/bin && osname=apollo |
3373 | $test -f /etc/saf/_sactab && osname=svr4 | |
0cf583b0 | 3374 | $test -d /usr/include/minix && osname=minix && osvers=`$uname -r` |
d54344fc | 3375 | $test -f /system/gnu_library/bin/ar.pm && osname=vos |
dabb2532 | 3376 | $test -f /sys/utilities/MultiView && osname=amigaos |
e060872b | 3377 | if $test -d /MachTen -o -d /MachTen_Folder; then |
dfe9444c | 3378 | osname=machten |
4633a7c4 | 3379 | if $test -x /sbin/version; then |
dfe9444c | 3380 | osvers=`/sbin/version | $awk '{print $2}' | |
4633a7c4 LW |
3381 | $sed -e 's/[A-Za-z]$//'` |
3382 | elif $test -x /usr/etc/version; then | |
dfe9444c | 3383 | osvers=`/usr/etc/version | $awk '{print $2}' | |
4633a7c4 LW |
3384 | $sed -e 's/[A-Za-z]$//'` |
3385 | else | |
3386 | osvers="$2.$3" | |
3387 | fi | |
3388 | fi | |
aaacdc8b GS |
3389 | |
3390 | $test -f /sys/posix.dll && | |
3391 | $test -f /usr/bin/what && | |
3392 | set X `/usr/bin/what /sys/posix.dll` && | |
3393 | $test "$3" = UWIN && | |
3394 | osname=uwin && | |
3395 | osvers="$5" | |
3396 | ||
2304df62 AD |
3397 | if $test -f $uname; then |
3398 | set X $myuname | |
3399 | shift | |
3400 | ||
2304df62 | 3401 | case "$5" in |
85e6fe83 | 3402 | fps*) osname=fps ;; |
2304df62 AD |
3403 | mips*) |
3404 | case "$4" in | |
85e6fe83 LW |
3405 | umips) osname=umips ;; |
3406 | *) osname=mips ;; | |
2304df62 | 3407 | esac;; |
85e6fe83 | 3408 | [23]100) osname=mips ;; |
ecfc5424 | 3409 | i386*) |
c6912327 JH |
3410 | tmp=`/bin/uname -X 2>/dev/null|awk '/3\.2v[45]/{ print $(NF) }'` |
3411 | if $test "$tmp" != "" -a "$3" = "3.2" -a -f '/etc/systemid'; then | |
619ffc2b JH |
3412 | osname='sco' |
3413 | osvers=$tmp | |
3414 | elif $test -f /etc/kconfig; then | |
ecfc5424 | 3415 | osname=isc |
bd628c73 | 3416 | if test "$lns" = "$ln -s"; then |
a0d0e21e LW |
3417 | osvers=4 |
3418 | elif $contains _SYSV3 /usr/include/stdio.h > /dev/null 2>&1 ; then | |
3419 | osvers=3 | |
2304df62 | 3420 | elif $contains _POSIX_SOURCE /usr/include/stdio.h > /dev/null 2>&1 ; then |
a0d0e21e | 3421 | osvers=2 |
ecfc5424 AD |
3422 | fi |
3423 | fi | |
2000072c | 3424 | tmp='' |
ecfc5424 | 3425 | ;; |
c4f23d77 AD |
3426 | pc*) |
3427 | if test -n "$DJGPP"; then | |
3428 | osname=dos | |
3429 | osvers=djgpp | |
3430 | fi | |
3431 | ;; | |
2304df62 AD |
3432 | esac |
3433 | ||
3434 | case "$1" in | |
a0d0e21e LW |
3435 | aix) osname=aix |
3436 | tmp=`( (oslevel) 2>/dev/null || echo "not found") 2>&1` | |
3437 | case "$tmp" in | |
e81c5c2a NC |
3438 | # oslevel can fail with: |
3439 | # oslevel: Unable to acquire lock. | |
3440 | *not\ found) osvers="$4"."$3" ;; | |
a0d0e21e LW |
3441 | '<3240'|'<>3240') osvers=3.2.0 ;; |
3442 | '=3240'|'>3240'|'<3250'|'<>3250') osvers=3.2.4 ;; | |
3443 | '=3250'|'>3250') osvers=3.2.5 ;; | |
1aef975c | 3444 | *) osvers=$tmp;; |
a0d0e21e LW |
3445 | esac |
3446 | ;; | |
287574fe MB |
3447 | bitrig) osname=bitrig |
3448 | osvers="$3" | |
3449 | ;; | |
aaacdc8b GS |
3450 | bsd386) osname=bsd386 |
3451 | osvers=`$uname -r` | |
3452 | ;; | |
3453 | cygwin*) osname=cygwin | |
3454 | osvers="$3" | |
3455 | ;; | |
23f87696 SZ |
3456 | *dc.osx) osname=dcosx |
3457 | osvers="$3" | |
3458 | ;; | |
a0d0e21e LW |
3459 | dnix) osname=dnix |
3460 | osvers="$3" | |
3461 | ;; | |
3462 | domainos) osname=apollo | |
3463 | osvers="$3" | |
3464 | ;; | |
a774dfe6 RSG |
3465 | dgux) osname=dgux |
3466 | osvers="$3" | |
3467 | ;; | |
3468 | dragonfly) osname=dragonfly | |
a0d0e21e LW |
3469 | osvers="$3" |
3470 | ;; | |
760ac839 | 3471 | dynixptx*) osname=dynixptx |
e58e581d | 3472 | osvers=`echo "$4"|sed 's/^v//'` |
760ac839 | 3473 | ;; |
a774dfe6 | 3474 | freebsd) osname=freebsd |
a0d0e21e | 3475 | osvers="$3" ;; |
761ee4e8 BD |
3476 | genix) osname=genix ;; |
3477 | gnu) osname=gnu | |
3478 | osvers="$3" ;; | |
a774dfe6 | 3479 | hp*) osname=hpux |
bfb7748a | 3480 | osvers=`echo "$3" | $sed 's,.*\.\([0-9]*\.[0-9]*\),\1,'` |
a0d0e21e | 3481 | ;; |
761ee4e8 | 3482 | irix*) osname=irix |
a0d0e21e LW |
3483 | case "$3" in |
3484 | 4*) osvers=4 ;; | |
3485 | 5*) osvers=5 ;; | |
ecfc5424 | 3486 | *) osvers="$3" ;; |
a0d0e21e LW |
3487 | esac |
3488 | ;; | |
761ee4e8 | 3489 | linux) osname=linux |
a0d0e21e | 3490 | case "$3" in |
a0d0e21e LW |
3491 | *) osvers="$3" ;; |
3492 | esac | |
78ada538 | 3493 | $test -f /system/lib/libandroid.so && osname=linux-android |
a0d0e21e | 3494 | ;; |
761ee4e8 | 3495 | MiNT) osname=mint |
28e8609d JH |
3496 | ;; |
3497 | netbsd*) osname=netbsd | |
ecfc5424 AD |
3498 | osvers="$3" |
3499 | ;; | |
4e81affe MMIJG |
3500 | news-os) osvers="$3" |
3501 | case "$3" in | |
3502 | 4*) osname=newsos4 ;; | |
3503 | *) osname=newsos ;; | |
3504 | esac | |
3505 | ;; | |
28bb1e2c | 3506 | nonstop-ux) osname=nonstopux ;; |
65dc58a1 TM |
3507 | openbsd) osname=openbsd |
3508 | osvers="$3" | |
3509 | ;; | |
5c728af0 IZ |
3510 | os2) osname=os2 |
3511 | osvers="$4" | |
3512 | ;; | |
aaacdc8b GS |
3513 | POSIX-BC | posix-bc ) osname=posix-bc |
3514 | osvers="$3" | |
a0d0e21e | 3515 | ;; |
ae3afa4e TH |
3516 | powerux | power_ux | powermax_os | powermaxos | \ |
3517 | powerunix | power_unix) osname=powerux | |
3518 | osvers="$3" | |
3519 | ;; | |
aaacdc8b GS |
3520 | qnx) osname=qnx |
3521 | osvers="$4" | |
3522 | ;; | |
a0d0e21e LW |
3523 | solaris) osname=solaris |
3524 | case "$3" in | |
3525 | 5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;; | |
ecfc5424 | 3526 | *) osvers="$3" ;; |
a0d0e21e LW |
3527 | esac |
3528 | ;; | |
85e6fe83 LW |
3529 | sunos) osname=sunos |
3530 | case "$3" in | |
85e6fe83 LW |
3531 | 5*) osname=solaris |
3532 | osvers=`echo $3 | $sed 's/^5/2/g'` ;; | |
a0d0e21e | 3533 | *) osvers="$3" ;; |
2304df62 AD |
3534 | esac |
3535 | ;; | |
a0d0e21e | 3536 | titanos) osname=titanos |
85e6fe83 | 3537 | case "$3" in |
a0d0e21e LW |
3538 | 1*) osvers=1 ;; |
3539 | 2*) osvers=2 ;; | |
3540 | 3*) osvers=3 ;; | |
3541 | 4*) osvers=4 ;; | |
ecfc5424 | 3542 | *) osvers="$3" ;; |
2304df62 AD |
3543 | esac |
3544 | ;; | |
85e6fe83 | 3545 | ultrix) osname=ultrix |
ecfc5424 | 3546 | osvers="$3" |
2304df62 | 3547 | ;; |
28757baa | 3548 | osf1|mls+) case "$5" in |
fed7345c AD |
3549 | alpha) |
3550 | osname=dec_osf | |
fdd85a03 | 3551 | osvers=`sizer -v | awk -FUNIX '{print $2}' | awk '{print $1}' | tr '[A-Z]' '[a-z]' | sed 's/^[xvt]//'` |
2aa76180 JH |
3552 | case "$osvers" in |
3553 | [1-9].[0-9]*) ;; | |
3554 | *) osvers=`echo "$3" | sed 's/^[xvt]//'` ;; | |
3555 | esac | |
ecfc5424 AD |
3556 | ;; |
3557 | hp*) osname=hp_osf1 ;; | |
3558 | mips) osname=mips_osf1 ;; | |
85e6fe83 LW |
3559 | esac |
3560 | ;; | |
af1ff193 | 3561 | # UnixWare 7.1.2 is known as Open UNIX 8 |
381c1bae | 3562 | openunix|unixware) osname=svr5 |
0337d152 A |
3563 | osvers="$4" |
3564 | ;; | |
3c728e00 | 3565 | uts) osname=uts |
a0d0e21e LW |
3566 | osvers="$3" |
3567 | ;; | |
3c728e00 JH |
3568 | vos) osvers="$3" |
3569 | ;; | |
85e6fe83 | 3570 | $2) case "$osname" in |
2304df62 | 3571 | *isc*) ;; |
a0d0e21e | 3572 | *freebsd*) ;; |
5f05dabc | 3573 | svr*) |
a0d0e21e | 3574 | : svr4.x or possibly later |
a774dfe6 | 3575 | case "svr$3" in |
a0d0e21e LW |
3576 | ${osname}*) |
3577 | osname=svr$3 | |
3578 | osvers=$4 | |
3579 | ;; | |
3580 | esac | |
3581 | case "$osname" in | |
3582 | svr4.0) | |
3583 | : Check for ESIX | |
3584 | if test -f /stand/boot ; then | |
3585 | eval `grep '^INITPROG=[a-z/0-9]*$' /stand/boot` | |
ecfc5424 AD |
3586 | if test -n "$INITPROG" -a -f "$INITPROG"; then |
3587 | isesix=`strings -a $INITPROG|grep 'ESIX SYSTEM V/386 Release 4.0'` | |
3588 | if test -n "$isesix"; then | |
a0d0e21e LW |
3589 | osname=esix4 |
3590 | fi | |
3591 | fi | |
3592 | fi | |
3593 | ;; | |
3594 | esac | |
3595 | ;; | |
2304df62 | 3596 | *) if test -f /etc/systemid; then |
a0d0e21e LW |
3597 | osname=sco |
3598 | set `echo $3 | $sed 's/\./ /g'` $4 | |
c4f23d77 | 3599 | if $test -f $src/hints/sco_$1_$2_$3.sh; then |
85e6fe83 | 3600 | osvers=$1.$2.$3 |
c4f23d77 | 3601 | elif $test -f $src/hints/sco_$1_$2.sh; then |
85e6fe83 | 3602 | osvers=$1.$2 |
c4f23d77 | 3603 | elif $test -f $src/hints/sco_$1.sh; then |
85e6fe83 | 3604 | osvers=$1 |
2304df62 | 3605 | fi |
a0d0e21e LW |
3606 | else |
3607 | case "$osname" in | |
3608 | '') : Still unknown. Probably a generic Sys V. | |
3609 | osname="sysv" | |
3610 | osvers="$3" | |
3611 | ;; | |
3612 | esac | |
2304df62 AD |
3613 | fi |
3614 | ;; | |
3615 | esac | |
3616 | ;; | |
a0d0e21e LW |
3617 | *) case "$osname" in |
3618 | '') : Still unknown. Probably a generic BSD. | |
3619 | osname="$1" | |
3620 | osvers="$3" | |
3621 | ;; | |
3622 | esac | |
3623 | ;; | |
2304df62 AD |
3624 | esac |
3625 | else | |
dfe9444c AD |
3626 | if test -f /vmunix -a -f $src/hints/news_os.sh; then |
3627 | (what /vmunix | UU/tr '[A-Z]' '[a-z]') > UU/kernel.what 2>&1 | |
3628 | if $contains news-os UU/kernel.what >/dev/null 2>&1; then | |
3629 | osname=news_os | |
2304df62 | 3630 | fi |
dfe9444c | 3631 | $rm -f UU/kernel.what |
5c728af0 | 3632 | elif test -d c:/. -o -n "$is_os2" ; then |
8e07c86e AD |
3633 | set X $myuname |
3634 | osname=os2 | |
3635 | osvers="$5" | |
2304df62 AD |
3636 | fi |
3637 | fi | |
a774dfe6 | 3638 | |
5440bc8e JH |
3639 | case "$targetarch" in |
3640 | '') ;; | |
3641 | *) hostarch=$osname | |
82643807 BF |
3642 | case "$targetarch" in |
3643 | nto*|*-nto-*) | |
c413f034 BF |
3644 | # Will load qnx.sh, which should change osname to nto |
3645 | osname=qnx | |
0d460bac | 3646 | osvers='' |
82643807 BF |
3647 | ;; |
3648 | *linux-android*) | |
3649 | # Catch arm-linux-androideabi, mipsel-linux-android, | |
3650 | # and i686-linux-android | |
3651 | osname=linux-android | |
0d460bac | 3652 | osvers='' |
82643807 | 3653 | ;; |
6f372547 BF |
3654 | *linux*) |
3655 | # Something like arm-linux-gnueabihf is really just | |
3656 | # plain linux. | |
3657 | osname=linux | |
0d460bac BF |
3658 | osvers='' |
3659 | ;; | |
3660 | *solaris*|*sunos*) | |
3661 | osname=solaris | |
3662 | # XXX perhaps we should just assume | |
3663 | # osvers to be 2, or maybe take the value | |
3664 | # from targetarch. Using $run before the | |
3665 | # hints are run is somewhat icky. | |
3666 | set X `$run $uname -a 2>/dev/null` | |
3667 | shift | |
3668 | case "$3" in | |
3669 | 5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;; | |
3670 | *) osvers="$3" ;; | |
3671 | esac | |
6f372547 | 3672 | ;; |
82643807 | 3673 | *) |
f53a6e0e MB |
3674 | osname=`echo $targetarch|sed 's,^[^-]*-,,'` |
3675 | osvers='' | |
82643807 BF |
3676 | ;; |
3677 | esac | |
5440bc8e JH |
3678 | ;; |
3679 | esac | |
3680 | ||
a0d0e21e LW |
3681 | : Now look for a hint file osname_osvers, unless one has been |
3682 | : specified already. | |
3683 | case "$hintfile" in | |
3684 | ''|' ') | |
1e127011 | 3685 | file=`echo "${osname}_${osvers}" | $sed -e 's%\.%_%g' -e 's%_$%%'` |
a0d0e21e | 3686 | : Also try without trailing minor version numbers. |
1e127011 DD |
3687 | xfile=`echo $file | $sed -e 's%_[^_]*$%%'` |
3688 | xxfile=`echo $xfile | $sed -e 's%_[^_]*$%%'` | |
3689 | xxxfile=`echo $xxfile | $sed -e 's%_[^_]*$%%'` | |
3690 | xxxxfile=`echo $xxxfile | $sed -e 's%_[^_]*$%%'` | |
a0d0e21e LW |
3691 | case "$file" in |
3692 | '') dflt=none ;; | |
3693 | *) case "$osvers" in | |
3694 | '') dflt=$file | |
3695 | ;; | |
dfe9444c | 3696 | *) if $test -f $src/hints/$file.sh ; then |
a0d0e21e | 3697 | dflt=$file |
dfe9444c | 3698 | elif $test -f $src/hints/$xfile.sh ; then |
a0d0e21e | 3699 | dflt=$xfile |
dfe9444c | 3700 | elif $test -f $src/hints/$xxfile.sh ; then |
a0d0e21e | 3701 | dflt=$xxfile |
dfe9444c | 3702 | elif $test -f $src/hints/$xxxfile.sh ; then |
a0d0e21e | 3703 | dflt=$xxxfile |
dfe9444c | 3704 | elif $test -f $src/hints/$xxxxfile.sh ; then |
a0d0e21e | 3705 | dflt=$xxxxfile |
dfe9444c | 3706 | elif $test -f "$src/hints/${osname}.sh" ; then |
a0d0e21e LW |
3707 | dflt="${osname}" |
3708 | else | |
3709 | dflt=none | |
3710 | fi | |
3711 | ;; | |
3712 | esac | |
85e6fe83 LW |
3713 | ;; |
3714 | esac | |
4e2a5f63 AD |
3715 | if $test -f Policy.sh ; then |
3716 | case "$dflt" in | |
3717 | *Policy*) ;; | |
3718 | none) dflt="Policy" ;; | |
3719 | *) dflt="Policy $dflt" ;; | |
3720 | esac | |
3721 | fi | |
85e6fe83 | 3722 | ;; |
a0d0e21e | 3723 | *) |
ecfc5424 | 3724 | dflt=`echo $hintfile | $sed 's/\.sh$//'` |
a0d0e21e | 3725 | ;; |
2304df62 | 3726 | esac |
1aef975c | 3727 | |
4e2a5f63 AD |
3728 | if $test -f Policy.sh ; then |
3729 | $cat <<EOM | |
3730 | ||
3731 | There's also a Policy hint file available, which should make the | |
3732 | site-specific (policy) questions easier to answer. | |
3733 | EOM | |
3734 | ||
3735 | fi | |
3736 | ||
2304df62 AD |
3737 | $cat <<EOM |
3738 | ||
3739 | You may give one or more space-separated answers, or "none" if appropriate. | |
a2d23ec2 MB |
3740 | If you have a handcrafted Policy.sh file or a Policy.sh file generated by a |
3741 | previous run of Configure, you may specify it as well as or instead of | |
3742 | OS-specific hints. If hints are provided for your OS, you should use them: | |
3743 | although Perl can probably be built without |