comparison configure1.in @ 2100:4c081de167f4

* configure: Recognize strings like "sysvr0" or "sysvr1" as System V. * configure: When processing the name of the configure script, collapse `././' to `./', but leave a single `./' prefix alone. * configure: Doc fix. * configure: Handle isc3.0 correctly.
author Jim Blandy <jimb@redhat.com>
date Thu, 11 Mar 1993 06:58:58 +0000
parents b1debd92d79d
children d4bbcd4b1378
comparison
equal deleted inserted replaced
2099:2345bb83831a 2100:4c081de167f4
27 ### Usage: configure config_name 27 ### Usage: configure config_name
28 ### 28 ###
29 ### If configure succeeds, it leaves its status in config.status. 29 ### If configure succeeds, it leaves its status in config.status.
30 ### If configure fails after disturbing the status quo, 30 ### If configure fails after disturbing the status quo,
31 ### config.status is removed. 31 ### config.status is removed.
32 ### 32
33 33
34 34 ### Remove any more than one leading "." element from the path name.
35 ### Remove any leading "." elements from the path name. If we don't 35 ### If we don't remove them, then another "./" will be prepended to
36 ### remove them, then another "./" will be prepended to the file name 36 ### the file name each time we use config.status, and the program name
37 ### each time we use config.status, and the program name will get larger 37 ### will get larger and larger. This wouldn't be a problem, except
38 ### and larger. This wouldn't be a problem, except that since progname 38 ### that since progname gets recorded in all the Makefiles this script
39 ### gets recorded in all the Makefiles this script produces, 39 ### produces, move-if-change thinks they're different when they're
40 ### move-if-change thinks they're different when they're not. 40 ### not.
41 ### 41 ###
42 ### It would be nice if we could put the ./ in a \( \) group and then 42 ### It would be nice if we could put the ./ in a \( \) group and then
43 ### apply the * operator to that, so we remove as many leading ./././'s 43 ### apply the * operator to that, so we remove as many leading ./././'s
44 ### as are present, but some seds (like Ultrix's sed) don't allow you to 44 ### as are present, but some seds (like Ultrix's sed) don't allow you to
45 ### apply * to a \( \) group. Bleah. 45 ### apply * to a \( \) group. Bleah.
46 progname="`echo $0 | sed 's:^\./::'`" 46 progname="`echo $0 | sed 's:^\./\./:\./:'`"
47 47
48 48
49 #### Usage messages. 49 #### Usage messages.
50 50
51 short_usage="Type \`${progname} --usage' for more information about options." 51 short_usage="Type \`${progname} --usage' for more information about options."
258 echo "Checking the configuration name." 258 echo "Checking the configuration name."
259 if configuration=`${srcdir}/config.sub "${configuration}"` ; then : ; else 259 if configuration=`${srcdir}/config.sub "${configuration}"` ; then : ; else
260 exit $? 260 exit $?
261 fi 261 fi
262 262
263 ### If you add support for a new configuration, add code to this
264 ### switch statement to recognize your configuration name and select
265 ### the appropriate operating system and machine description files.
266
263 ### You would hope that you could choose an m/*.h file pretty much 267 ### You would hope that you could choose an m/*.h file pretty much
264 ### based on the machine portion of the configuration name, and an s- 268 ### based on the machine portion of the configuration name, and an s-
265 ### file based on the operating system portion. However, it turns out 269 ### file based on the operating system portion. However, it turns out
266 ### that each m/*.h file is pretty manufacturer-specific - for 270 ### that each m/*.h file is pretty manufacturer-specific - for
267 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are 271 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
268 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS 272 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
269 ### machines. So we basically have to have a special case for each 273 ### machines. So we basically have to have a special case for each
270 ### configuration name. 274 ### configuration name.
271 275 ###
272 ### As far as handling version numbers on operating systems is 276 ### As far as handling version numbers on operating systems is
273 ### concerned, make sure things will fail in a fixable way. If 277 ### concerned, make sure things will fail in a fixable way. If
274 ### /etc/MACHINES doesn't say anything about version numbers, be 278 ### /etc/MACHINES doesn't say anything about version numbers, be
275 ### prepared to handle anything reasonably. If version numbers 279 ### prepared to handle anything reasonably. If version numbers
276 ### matter, be sure /etc/MACHINES says something about it. 280 ### matter, be sure /etc/MACHINES says something about it.
281 ###
282 ### Eric Raymond says we should accept strings like "sysvr4" to mean
283 ### "System V Release 4"; he writes, "The old convention encouraged
284 ### confusion between `system' and `release' levels'."
285
277 machine='' opsys='' unported='false' 286 machine='' opsys='' unported='false'
278 case "${configuration}" in 287 case "${configuration}" in
279 288
280 ## Alliant machines 289 ## Alliant machines
281 ## Strictly speaking, we need the version of the alliant operating 290 ## Strictly speaking, we need the version of the alliant operating
524 ns32k-ns-genix* ) 533 ns32k-ns-genix* )
525 machine=ns32000 opsys=usg5-2 534 machine=ns32000 opsys=usg5-2
526 ;; 535 ;;
527 536
528 ## NCR machines 537 ## NCR machines
529 m68*-ncr-sysv2* ) 538 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
530 machine=tower32 opsys=usg5-2-2 539 machine=tower32 opsys=usg5-2-2
531 ;; 540 ;;
532 m68*-ncr-sysv3* ) 541 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
533 machine=tower32v3 opsys=usg5-3 542 machine=tower32v3 opsys=usg5-3
534 ;; 543 ;;
535 544
536 ## Nixdorf Targon 31 545 ## Nixdorf Targon 31
537 m68*-nixdorf-sysv* ) 546 m68*-nixdorf-sysv* )
646 655
647 ## Vaxen. 656 ## Vaxen.
648 vax-dec-* ) 657 vax-dec-* )
649 machine=vax 658 machine=vax
650 case "${configuration}" in 659 case "${configuration}" in
651 *-bsd4.1 ) opsys=bsd4-1 ;; 660 *-bsd4.1 ) opsys=bsd4-1 ;;
652 *-bsd4.2 | *-ultrix[0-3].* | *-ultrix4.0 ) opsys=bsd4-2 ;; 661 *-bsd4.2 | *-ultrix[0-3].* | *-ultrix4.0 ) opsys=bsd4-2 ;;
653 *-bsd4.3 | *-ultrix* ) opsys=bsd4-3 ;; 662 *-bsd4.3 | *-ultrix* ) opsys=bsd4-3 ;;
654 *-sysv[01]* ) opsys=usg5-0 ;; 663 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
655 *-sysv2* ) opsys=usg5-2 ;; 664 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
656 *-vms* ) opsys=vms ;; 665 *-vms* ) opsys=vms ;;
657 * ) unported=true 666 * ) unported=true
658 esac 667 esac
659 ;; 668 ;;
660 669
661 ## Whitechapel MG1 670 ## Whitechapel MG1
662 ns16k-whitechapel-* ) 671 ns16k-whitechapel-* )
684 if [ ! "${opsys}" ]; then 693 if [ ! "${opsys}" ]; then
685 case "${configuration}" in 694 case "${configuration}" in
686 *-bsd4.[01] ) opsys=bsd4-1 ;; 695 *-bsd4.[01] ) opsys=bsd4-1 ;;
687 *-bsd4.2 ) opsys=bsd4-2 ;; 696 *-bsd4.2 ) opsys=bsd4-2 ;;
688 *-bsd4.3 ) opsys=bsd4-3 ;; 697 *-bsd4.3 ) opsys=bsd4-3 ;;
689 *-sysv0 ) opsys=usg5-0 ;; 698 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
690 *-sysv2 ) opsys=usg5-2 ;; 699 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
691 *-sysv2.2 ) opsys=usg5-2-2 ;; 700 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
692 *-sysv3 ) opsys=usg5-3 ;; 701 *-sysv3 | *-sysvr3 ) opsys=usg5-3 ;;
693 *-sysv4 ) opsys=usg5-4 ;; 702 *-sysv4 | *-sysvr4 ) opsys=usg5-4 ;;
694 * ) 703 * )
695 unported=true 704 unported=true
696 ;; 705 ;;
697 esac 706 esac
698 fi 707 fi