Codebase list cpl-plugin-amber / dc62849
New upstream version 4.4.1+dfsg Ole Streicher 2 years ago
20 changed file(s) with 4077 addition(s) and 3555 deletion(s). Raw diff Collapse all Expand all
9090 target_triplet = @target@
9191 subdir = .
9292 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl.m4 \
94 $(top_srcdir)/m4macros/eso.m4 $(top_srcdir)/m4macros/gsl.m4 \
95 $(top_srcdir)/m4macros/hdrl.m4 \
93 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl-pipeline.m4 \
94 $(top_srcdir)/m4macros/cpl.m4 $(top_srcdir)/m4macros/eso.m4 \
95 $(top_srcdir)/m4macros/gsl.m4 $(top_srcdir)/m4macros/hdrl.m4 \
9696 $(top_srcdir)/m4macros/libtool.m4 \
9797 $(top_srcdir)/m4macros/ltoptions.m4 \
9898 $(top_srcdir)/m4macros/ltsugar.m4 \
312312 LD = @LD@
313313 LDFLAGS = @LDFLAGS@
314314 LIBAMBER = @LIBAMBER@
315 LIBCEXT = @LIBCEXT@
315316 LIBCFITSIO = @LIBCFITSIO@
316317 LIBCPLCORE = @LIBCPLCORE@
317318 LIBCPLDFS = @LIBCPLDFS@
11911191 AC_SUBST([am__untar])
11921192 ]) # _AM_PROG_TAR
11931193
1194 m4_include([m4macros/cpl-pipeline.m4])
11941195 m4_include([m4macros/cpl.m4])
11951196 m4_include([m4macros/eso.m4])
11961197 m4_include([m4macros/gsl.m4])
11 # Attempt to guess a canonical system name.
22 # Copyright 1992-2018 Free Software Foundation, Inc.
33
4 timestamp='2018-03-08'
4 timestamp='2018-08-29'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
8383 exit 1
8484 fi
8585
86 trap 'exit 1' 1 2 15
87
8886 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
8987 # compiler to aid in system detection is discouraged as it requires
9088 # temporary files to be created and, as you can see below, it is a
9593
9694 # Portable tmp directory creation inspired by the Autoconf team.
9795
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
96 tmp=
97 # shellcheck disable=SC2172
98 trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
99 trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
100
101 set_cc_for_build() {
102 : "${TMPDIR=/tmp}"
103 # shellcheck disable=SC2039
104 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
105 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
106 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
107 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
108 dummy=$tmp/dummy
109 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
110 ,,) echo "int x;" > "$dummy.c"
111 for driver in cc gcc c89 c99 ; do
112 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
113 CC_FOR_BUILD="$driver"
114 break
115 fi
116 done
117 if test x"$CC_FOR_BUILD" = x ; then
118 CC_FOR_BUILD=no_compiler_found
119 fi
120 ;;
121 ,,*) CC_FOR_BUILD=$CC ;;
122 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
123 esac
124 }
122125
123126 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124127 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
128 if test -f /.attbin/uname ; then
126129 PATH=$PATH:/.attbin ; export PATH
127130 fi
128131
137140 # We could probably try harder.
138141 LIBC=gnu
139142
140 eval "$set_cc_for_build"
143 set_cc_for_build
141144 cat <<-EOF > "$dummy.c"
142145 #include <features.h>
143146 #if defined(__UCLIBC__)
198201 os=netbsdelf
199202 ;;
200203 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
204 set_cc_for_build
202205 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
203206 | grep -q __ELF__
204207 then
236239 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
237240 # contains redundant information, the shorter form:
238241 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
239 echo "$machine-${os}${release}${abi}"
242 echo "$machine-${os}${release}${abi-}"
240243 exit ;;
241244 *:Bitrig:*:*)
242245 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
388391 echo i386-pc-auroraux"$UNAME_RELEASE"
389392 exit ;;
390393 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
393 # If there is a compiler, see if it is configured for 64-bit objects.
394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
395 # This test works for both compilers.
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
399 grep IS_64BIT_ARCH >/dev/null
400 then
401 SUN_ARCH=x86_64
402 fi
403 fi
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
394 UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
395 case `isainfo -b` in
396 32)
397 echo i386-pc-solaris2"$UNAME_REL"
398 ;;
399 64)
400 echo x86_64-pc-solaris2"$UNAME_REL"
401 ;;
402 esac
405403 exit ;;
406404 sun4*:SunOS:6*:*)
407405 # According to config.sub, this is the proper way to canonicalize
481479 echo clipper-intergraph-clix"$UNAME_RELEASE"
482480 exit ;;
483481 mips:*:*:UMIPS | mips:*:*:RISCos)
484 eval "$set_cc_for_build"
482 set_cc_for_build
485483 sed 's/^ //' << EOF > "$dummy.c"
486484 #ifdef __cplusplus
487485 #include <stdio.h> /* for printf() prototype */
578576 exit ;;
579577 *:AIX:2:3)
580578 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
581 eval "$set_cc_for_build"
579 set_cc_for_build
582580 sed 's/^ //' << EOF > "$dummy.c"
583581 #include <sys/systemcfg.h>
584582
659657 esac
660658 fi
661659 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
660 set_cc_for_build
663661 sed 's/^ //' << EOF > "$dummy.c"
664662
665663 #define _HPUX_SOURCE
699697 esac
700698 if [ "$HP_ARCH" = hppa2.0w ]
701699 then
702 eval "$set_cc_for_build"
700 set_cc_for_build
703701
704702 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
705703 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
725723 echo ia64-hp-hpux"$HPUX_REV"
726724 exit ;;
727725 3050*:HI-UX:*:*)
728 eval "$set_cc_for_build"
726 set_cc_for_build
729727 sed 's/^ //' << EOF > "$dummy.c"
730728 #include <unistd.h>
731729 int
839837 *:BSD/OS:*:*)
840838 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
841839 exit ;;
840 arm:FreeBSD:*:*)
841 UNAME_PROCESSOR=`uname -p`
842 set_cc_for_build
843 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
844 | grep -q __ARM_PCS_VFP
845 then
846 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
847 else
848 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
849 fi
850 exit ;;
842851 *:FreeBSD:*:*)
843852 UNAME_PROCESSOR=`/usr/bin/uname -p`
844853 case "$UNAME_PROCESSOR" in
893902 # other systems with GNU libc and userland
894903 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
895904 exit ;;
896 i*86:Minix:*:*)
897 echo "$UNAME_MACHINE"-pc-minix
905 *:Minix:*:*)
906 echo "$UNAME_MACHINE"-unknown-minix
898907 exit ;;
899908 aarch64:Linux:*:*)
900909 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
921930 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
922931 exit ;;
923932 arm*:Linux:*:*)
924 eval "$set_cc_for_build"
933 set_cc_for_build
925934 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
926935 | grep -q __ARM_EABI__
927936 then
970979 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971980 exit ;;
972981 mips:Linux:*:* | mips64:Linux:*:*)
973 eval "$set_cc_for_build"
982 set_cc_for_build
974983 sed 's/^ //' << EOF > "$dummy.c"
975984 #undef CPU
976985 #undef ${UNAME_MACHINE}
12841293 exit ;;
12851294 *:Darwin:*:*)
12861295 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1287 eval "$set_cc_for_build"
1296 set_cc_for_build
12881297 if test "$UNAME_PROCESSOR" = unknown ; then
12891298 UNAME_PROCESSOR=powerpc
12901299 fi
13571366 # "uname -m" is not consistent, so use $cputype instead. 386
13581367 # is converted to i386 for consistency with other x86
13591368 # operating systems.
1369 # shellcheck disable=SC2154
13601370 if test "$cputype" = 386; then
13611371 UNAME_MACHINE=i386
13621372 else
11 # Configuration validation subroutine script.
22 # Copyright 1992-2018 Free Software Foundation, Inc.
33
4 timestamp='2018-05-05'
4 timestamp='2018-08-29'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
109109 exit 1;;
110110 esac
111111
112 # Spilt fields of configuration type
112 # Split fields of configuration type
113113 IFS="-" read -r field1 field2 field3 field4 <<EOF
114114 $1
115115 EOF
116116
117117 # Separate into logical components for further validation
118118 case $1 in
119 *-*-*-*-*)
120 echo Invalid configuration \`"$1"\': more than four components >&2
121 exit 1
122 ;;
119123 *-*-*-*)
120124 basic_machine=$field1-$field2
121 os=-$field3-$field4
125 os=$field3-$field4
122126 ;;
123127 *-*-*)
124128 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
131135 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
132136 | storm-chaos* | os2-emx* | rtmk-nova*)
133137 basic_machine=$field1
134 os=-$maybe_os
138 os=$maybe_os
135139 ;;
136140 android-linux)
137141 basic_machine=$field1-unknown
138 os=-linux-android
142 os=linux-android
139143 ;;
140144 *)
141145 basic_machine=$field1-$field2
142 os=-$field3
146 os=$field3
143147 ;;
144148 esac
145149 ;;
146150 *-*)
147 basic_machine=$field1
148 os=-$field2
151 # A lone config we happen to match not fitting any patern
152 case $field1-$field2 in
153 decstation-3100)
154 basic_machine=mips-dec
155 os=
156 ;;
157 *-*)
158 # Second component is usually, but not always the OS
159 case $field2 in
160 # Prevent following clause from handling this valid os
161 sun*os*)
162 basic_machine=$field1
163 os=$field2
164 ;;
165 # Manufacturers
166 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
167 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
168 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
169 | convergent* | ncr* | news | 32* | 3600* | 3100* \
170 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
171 | ultra | tti* | harris | dolphin | highlevel | gould \
172 | cbm | ns | masscomp | apple | axis | knuth | cray \
173 | microblaze* | sim | cisco \
174 | oki | wec | wrs | winbond)
175 basic_machine=$field1-$field2
176 os=
177 ;;
178 *)
179 basic_machine=$field1
180 os=$field2
181 ;;
182 esac
183 ;;
184 esac
149185 ;;
150186 *)
151 basic_machine=$1
152 os=
187 # Convert single-component short-hands not valid as part of
188 # multi-component configurations.
189 case $field1 in
190 386bsd)
191 basic_machine=i386-pc
192 os=bsd
193 ;;
194 a29khif)
195 basic_machine=a29k-amd
196 os=udi
197 ;;
198 adobe68k)
199 basic_machine=m68010-adobe
200 os=scout
201 ;;
202 alliant)
203 basic_machine=fx80-alliant
204 os=
205 ;;
206 altos | altos3068)
207 basic_machine=m68k-altos
208 os=
209 ;;
210 am29k)
211 basic_machine=a29k-none
212 os=bsd
213 ;;
214 amdahl)
215 basic_machine=580-amdahl
216 os=sysv
217 ;;
218 amiga)
219 basic_machine=m68k-unknown
220 os=
221 ;;
222 amigaos | amigados)
223 basic_machine=m68k-unknown
224 os=amigaos
225 ;;
226 amigaunix | amix)
227 basic_machine=m68k-unknown
228 os=sysv4
229 ;;
230 apollo68)
231 basic_machine=m68k-apollo
232 os=sysv
233 ;;
234 apollo68bsd)
235 basic_machine=m68k-apollo
236 os=bsd
237 ;;
238 aros)
239 basic_machine=i386-pc
240 os=aros
241 ;;
242 aux)
243 basic_machine=m68k-apple
244 os=aux
245 ;;
246 balance)
247 basic_machine=ns32k-sequent
248 os=dynix
249 ;;
250 blackfin)
251 basic_machine=bfin-unknown
252 os=linux
253 ;;
254 cegcc)
255 basic_machine=arm-unknown
256 os=cegcc
257 ;;
258 convex-c1)
259 basic_machine=c1-convex
260 os=bsd
261 ;;
262 convex-c2)
263 basic_machine=c2-convex
264 os=bsd
265 ;;
266 convex-c32)
267 basic_machine=c32-convex
268 os=bsd
269 ;;
270 convex-c34)
271 basic_machine=c34-convex
272 os=bsd
273 ;;
274 convex-c38)
275 basic_machine=c38-convex
276 os=bsd
277 ;;
278 cray)
279 basic_machine=j90-cray
280 os=unicos
281 ;;
282 crds | unos)
283 basic_machine=m68k-crds
284 os=
285 ;;
286 da30)
287 basic_machine=m68k-da30
288 os=
289 ;;
290 decstation | pmax | pmin | dec3100 | decstatn)
291 basic_machine=mips-dec
292 os=
293 ;;
294 delta88)
295 basic_machine=m88k-motorola
296 os=sysv3
297 ;;
298 dicos)
299 basic_machine=i686-pc
300 os=dicos
301 ;;
302 djgpp)
303 basic_machine=i586-pc
304 os=msdosdjgpp
305 ;;
306 ebmon29k)
307 basic_machine=a29k-amd
308 os=ebmon
309 ;;
310 es1800 | OSE68k | ose68k | ose | OSE)
311 basic_machine=m68k-ericsson
312 os=ose
313 ;;
314 gmicro)
315 basic_machine=tron-gmicro
316 os=sysv
317 ;;
318 go32)
319 basic_machine=i386-pc
320 os=go32
321 ;;
322 h8300hms)
323 basic_machine=h8300-hitachi
324 os=hms
325 ;;
326 h8300xray)
327 basic_machine=h8300-hitachi
328 os=xray
329 ;;
330 h8500hms)
331 basic_machine=h8500-hitachi
332 os=hms
333 ;;
334 harris)
335 basic_machine=m88k-harris
336 os=sysv3
337 ;;
338 hp300)
339 basic_machine=m68k-hp
340 ;;
341 hp300bsd)
342 basic_machine=m68k-hp
343 os=bsd
344 ;;
345 hp300hpux)
346 basic_machine=m68k-hp
347 os=hpux
348 ;;
349 hppaosf)
350 basic_machine=hppa1.1-hp
351 os=osf
352 ;;
353 hppro)
354 basic_machine=hppa1.1-hp
355 os=proelf
356 ;;
357 i386mach)
358 basic_machine=i386-mach
359 os=mach
360 ;;
361 vsta)
362 basic_machine=i386-pc
363 os=vsta
364 ;;
365 isi68 | isi)
366 basic_machine=m68k-isi
367 os=sysv
368 ;;
369 m68knommu)
370 basic_machine=m68k-unknown
371 os=linux
372 ;;
373 magnum | m3230)
374 basic_machine=mips-mips
375 os=sysv
376 ;;
377 merlin)
378 basic_machine=ns32k-utek
379 os=sysv
380 ;;
381 mingw64)
382 basic_machine=x86_64-pc
383 os=mingw64
384 ;;
385 mingw32)
386 basic_machine=i686-pc
387 os=mingw32
388 ;;
389 mingw32ce)
390 basic_machine=arm-unknown
391 os=mingw32ce
392 ;;
393 monitor)
394 basic_machine=m68k-rom68k
395 os=coff
396 ;;
397 morphos)
398 basic_machine=powerpc-unknown
399 os=morphos
400 ;;
401 moxiebox)
402 basic_machine=moxie-unknown
403 os=moxiebox
404 ;;
405 msdos)
406 basic_machine=i386-pc
407 os=msdos
408 ;;
409 msys)
410 basic_machine=i686-pc
411 os=msys
412 ;;
413 mvs)
414 basic_machine=i370-ibm
415 os=mvs
416 ;;
417 nacl)
418 basic_machine=le32-unknown
419 os=nacl
420 ;;
421 ncr3000)
422 basic_machine=i486-ncr
423 os=sysv4
424 ;;
425 netbsd386)
426 basic_machine=i386-pc
427 os=netbsd
428 ;;
429 netwinder)
430 basic_machine=armv4l-rebel
431 os=linux
432 ;;
433 news | news700 | news800 | news900)
434 basic_machine=m68k-sony
435 os=newsos
436 ;;
437 news1000)
438 basic_machine=m68030-sony
439 os=newsos
440 ;;
441 necv70)
442 basic_machine=v70-nec
443 os=sysv
444 ;;
445 nh3000)
446 basic_machine=m68k-harris
447 os=cxux
448 ;;
449 nh[45]000)
450 basic_machine=m88k-harris
451 os=cxux
452 ;;
453 nindy960)
454 basic_machine=i960-intel
455 os=nindy
456 ;;
457 mon960)
458 basic_machine=i960-intel
459 os=mon960
460 ;;
461 nonstopux)
462 basic_machine=mips-compaq
463 os=nonstopux
464 ;;
465 os400)
466 basic_machine=powerpc-ibm
467 os=os400
468 ;;
469 OSE68000 | ose68000)
470 basic_machine=m68000-ericsson
471 os=ose
472 ;;
473 os68k)
474 basic_machine=m68k-none
475 os=os68k
476 ;;
477 paragon)
478 basic_machine=i860-intel
479 os=osf
480 ;;
481 parisc)
482 basic_machine=hppa-unknown
483 os=linux
484 ;;
485 pw32)
486 basic_machine=i586-unknown
487 os=pw32
488 ;;
489 rdos | rdos64)
490 basic_machine=x86_64-pc
491 os=rdos
492 ;;
493 rdos32)
494 basic_machine=i386-pc
495 os=rdos
496 ;;
497 rom68k)
498 basic_machine=m68k-rom68k
499 os=coff
500 ;;
501 sa29200)
502 basic_machine=a29k-amd
503 os=udi
504 ;;
505 sei)
506 basic_machine=mips-sei
507 os=seiux
508 ;;
509 sequent)
510 basic_machine=i386-sequent
511 os=
512 ;;
513 sps7)
514 basic_machine=m68k-bull
515 os=sysv2
516 ;;
517 st2000)
518 basic_machine=m68k-tandem
519 os=
520 ;;
521 stratus)
522 basic_machine=i860-stratus
523 os=sysv4
524 ;;
525 sun2)
526 basic_machine=m68000-sun
527 os=
528 ;;
529 sun2os3)
530 basic_machine=m68000-sun
531 os=sunos3
532 ;;
533 sun2os4)
534 basic_machine=m68000-sun
535 os=sunos4
536 ;;
537 sun3)
538 basic_machine=m68k-sun
539 os=
540 ;;
541 sun3os3)
542 basic_machine=m68k-sun
543 os=sunos3
544 ;;
545 sun3os4)
546 basic_machine=m68k-sun
547 os=sunos4
548 ;;
549 sun4)
550 basic_machine=sparc-sun
551 os=
552 ;;
553 sun4os3)
554 basic_machine=sparc-sun
555 os=sunos3
556 ;;
557 sun4os4)
558 basic_machine=sparc-sun
559 os=sunos4
560 ;;
561 sun4sol2)
562 basic_machine=sparc-sun
563 os=solaris2
564 ;;
565 sun386 | sun386i | roadrunner)
566 basic_machine=i386-sun
567 os=
568 ;;
569 sv1)
570 basic_machine=sv1-cray
571 os=unicos
572 ;;
573 symmetry)
574 basic_machine=i386-sequent
575 os=dynix
576 ;;
577 t3e)
578 basic_machine=alphaev5-cray
579 os=unicos
580 ;;
581 t90)
582 basic_machine=t90-cray
583 os=unicos
584 ;;
585 toad1)
586 basic_machine=pdp10-xkl
587 os=tops20
588 ;;
589 tpf)
590 basic_machine=s390x-ibm
591 os=tpf
592 ;;
593 udi29k)
594 basic_machine=a29k-amd
595 os=udi
596 ;;
597 ultra3)
598 basic_machine=a29k-nyu
599 os=sym1
600 ;;
601 v810 | necv810)
602 basic_machine=v810-nec
603 os=none
604 ;;
605 vaxv)
606 basic_machine=vax-dec
607 os=sysv
608 ;;
609 vms)
610 basic_machine=vax-dec
611 os=vms
612 ;;
613 vxworks960)
614 basic_machine=i960-wrs
615 os=vxworks
616 ;;
617 vxworks68)
618 basic_machine=m68k-wrs
619 os=vxworks
620 ;;
621 vxworks29k)
622 basic_machine=a29k-wrs
623 os=vxworks
624 ;;
625 xbox)
626 basic_machine=i686-pc
627 os=mingw32
628 ;;
629 ymp)
630 basic_machine=ymp-cray
631 os=unicos
632 ;;
633 *)
634 basic_machine=$1
635 os=
636 ;;
637 esac
153638 ;;
154639 esac
155640
156 ### Let's recognize common machines as not being operating systems so
157 ### that things like config.sub decstation-3100 work. We also
158 ### recognize some manufacturers as not being operating systems, so we
159 ### can provide default operating systems below.
160 case $os in
161 -sun*os*)
162 # Prevent following clause from handling this invalid input.
163 ;;
164 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
165 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
166 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
167 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
168 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
169 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
170 -apple | -axis | -knuth | -cray | -microblaze*)
171 os=
172 basic_machine=$1
173 ;;
174 -bluegene*)
175 os=-cnk
176 ;;
177 -sim | -cisco | -oki | -wec | -winbond)
178 os=
179 basic_machine=$1
180 ;;
181 -scout)
182 ;;
183 -wrs)
184 os=-vxworks
185 basic_machine=$1
186 ;;
187 -chorusos*)
188 os=-chorusos
189 basic_machine=$1
190 ;;
191 -chorusrdb)
192 os=-chorusrdb
193 basic_machine=$1
194 ;;
195 -hiux*)
196 os=-hiuxwe2
197 ;;
198 -sco6)
199 os=-sco5v6
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco5)
203 os=-sco3.2v5
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -sco4)
207 os=-sco3.2v4
208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -sco3.2.[4-9]*)
211 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
212 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -sco3.2v[4-9]*)
215 # Don't forget version if it is 3.2v4 or newer.
216 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
217 ;;
218 -sco5v6*)
219 # Don't forget version if it is 3.2v4 or newer.
220 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
221 ;;
222 -sco*)
223 os=-sco3.2v2
224 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
225 ;;
226 -udk*)
227 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
228 ;;
229 -isc)
230 os=-isc2.2
231 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
232 ;;
233 -clix*)
234 basic_machine=clipper-intergraph
235 ;;
236 -isc*)
237 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
238 ;;
239 -lynx*178)
240 os=-lynxos178
241 ;;
242 -lynx*5)
243 os=-lynxos5
244 ;;
245 -lynx*)
246 os=-lynxos
247 ;;
248 -ptx*)
249 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
250 ;;
251 -psos*)
252 os=-psos
253 ;;
254 -mint | -mint[0-9]*)
255 basic_machine=m68k-atari
256 os=-mint
257 ;;
258 esac
259
260 # Decode aliases for certain CPU-COMPANY combinations.
641 # Decode 1-component or ad-hoc basic machines
261642 case $basic_machine in
262 # Recognize the basic CPU types without company name.
263 # Some are omitted here because they have special meanings below.
264 1750a | 580 \
265 | a29k \
266 | aarch64 | aarch64_be \
267 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
268 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
269 | am33_2.0 \
270 | arc | arceb \
271 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
272 | avr | avr32 \
273 | ba \
274 | be32 | be64 \
275 | bfin \
276 | c4x | c8051 | clipper | csky \
277 | d10v | d30v | dlx | dsp16xx \
278 | e2k | epiphany \
279 | fido | fr30 | frv | ft32 \
280 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
281 | hexagon \
282 | i370 | i860 | i960 | ia16 | ia64 \
283 | ip2k | iq2000 \
284 | k1om \
285 | le32 | le64 \
286 | lm32 \
287 | m32c | m32r | m32rle | m68000 | m68k | m88k \
288 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
289 | mips | mipsbe | mipseb | mipsel | mipsle \
290 | mips16 \
291 | mips64 | mips64el \
292 | mips64octeon | mips64octeonel \
293 | mips64orion | mips64orionel \
294 | mips64r5900 | mips64r5900el \
295 | mips64vr | mips64vrel \
296 | mips64vr4100 | mips64vr4100el \
297 | mips64vr4300 | mips64vr4300el \
298 | mips64vr5000 | mips64vr5000el \
299 | mips64vr5900 | mips64vr5900el \
300 | mipsisa32 | mipsisa32el \
301 | mipsisa32r2 | mipsisa32r2el \
302 | mipsisa32r6 | mipsisa32r6el \
303 | mipsisa64 | mipsisa64el \
304 | mipsisa64r2 | mipsisa64r2el \
305 | mipsisa64r6 | mipsisa64r6el \
306 | mipsisa64sb1 | mipsisa64sb1el \
307 | mipsisa64sr71k | mipsisa64sr71kel \
308 | mipsr5900 | mipsr5900el \
309 | mipstx39 | mipstx39el \
310 | mn10200 | mn10300 \
311 | moxie \
312 | mt \
313 | msp430 \
314 | nds32 | nds32le | nds32be \
315 | nfp \
316 | nios | nios2 | nios2eb | nios2el \
317 | ns16k | ns32k \
318 | open8 | or1k | or1knd | or32 \
319 | pdp10 | pj | pjl \
320 | powerpc | powerpc64 | powerpc64le | powerpcle \
321 | pru \
322 | pyramid \
323 | riscv32 | riscv64 \
324 | rl78 | rx \
325 | score \
326 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
327 | sh64 | sh64le \
328 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
329 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
330 | spu \
331 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
332 | ubicom32 \
333 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
334 | visium \
335 | wasm32 \
336 | x86 | xc16x | xstormy16 | xtensa \
337 | z8k | z80)
338 basic_machine=$basic_machine-unknown
339 ;;
340 c54x)
341 basic_machine=tic54x-unknown
342 ;;
343 c55x)
344 basic_machine=tic55x-unknown
345 ;;
346 c6x)
347 basic_machine=tic6x-unknown
643 # Here we handle the default manufacturer of certain CPU types. It is in
644 # some cases the only manufacturer, in others, it is the most popular.
645 w89k)
646 cpu=hppa1.1
647 vendor=winbond
648 ;;
649 op50n)
650 cpu=hppa1.1
651 vendor=oki
652 ;;
653 op60c)
654 cpu=hppa1.1
655 vendor=oki
656 ;;
657 ibm*)
658 cpu=i370
659 vendor=ibm
660 ;;
661 orion105)
662 cpu=clipper
663 vendor=highlevel
664 ;;
665 mac | mpw | mac-mpw)
666 cpu=m68k
667 vendor=apple
668 ;;
669 pmac | pmac-mpw)
670 cpu=powerpc
671 vendor=apple
672 ;;
673
674 # Recognize the various machine names and aliases which stand
675 # for a CPU type and a company and sometimes even an OS.
676 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
677 cpu=m68000
678 vendor=att
679 ;;
680 3b*)
681 cpu=we32k
682 vendor=att
683 ;;
684 bluegene*)
685 cpu=powerpc
686 vendor=ibm
687 os=cnk
688 ;;
689 decsystem10* | dec10*)
690 cpu=pdp10
691 vendor=dec
692 os=tops10
693 ;;
694 decsystem20* | dec20*)
695 cpu=pdp10
696 vendor=dec
697 os=tops20
698 ;;
699 delta | 3300 | motorola-3300 | motorola-delta \
700 | 3300-motorola | delta-motorola)
701 cpu=m68k
702 vendor=motorola
703 ;;
704 dpx2*)
705 cpu=m68k
706 vendor=bull
707 os=sysv3
708 ;;
709 encore | umax | mmax)
710 cpu=ns32k
711 vendor=encore
712 ;;
713 elxsi)
714 cpu=elxsi
715 vendor=elxsi
716 os=${os:-bsd}
717 ;;
718 fx2800)
719 cpu=i860
720 vendor=alliant
721 ;;
722 genix)
723 cpu=ns32k
724 vendor=ns
725 ;;
726 h3050r* | hiux*)
727 cpu=hppa1.1
728 vendor=hitachi
729 os=hiuxwe2
730 ;;
731 hp3k9[0-9][0-9] | hp9[0-9][0-9])
732 cpu=hppa1.0
733 vendor=hp
734 ;;
735 hp9k2[0-9][0-9] | hp9k31[0-9])
736 cpu=m68000
737 vendor=hp
738 ;;
739 hp9k3[2-9][0-9])
740 cpu=m68k
741 vendor=hp
742 ;;
743 hp9k6[0-9][0-9] | hp6[0-9][0-9])
744 cpu=hppa1.0
745 vendor=hp
746 ;;
747 hp9k7[0-79][0-9] | hp7[0-79][0-9])
748 cpu=hppa1.1
749 vendor=hp
750 ;;
751 hp9k78[0-9] | hp78[0-9])
752 # FIXME: really hppa2.0-hp
753 cpu=hppa1.1
754 vendor=hp
755 ;;
756 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
757 # FIXME: really hppa2.0-hp
758 cpu=hppa1.1
759 vendor=hp
760 ;;
761 hp9k8[0-9][13679] | hp8[0-9][13679])
762 cpu=hppa1.1
763 vendor=hp
764 ;;
765 hp9k8[0-9][0-9] | hp8[0-9][0-9])
766 cpu=hppa1.0
767 vendor=hp
768 ;;
769 i*86v32)
770 cpu=`echo "$1" | sed -e 's/86.*/86/'`
771 vendor=pc
772 os=sysv32
773 ;;
774 i*86v4*)
775 cpu=`echo "$1" | sed -e 's/86.*/86/'`
776 vendor=pc
777 os=sysv4
778 ;;
779 i*86v)
780 cpu=`echo "$1" | sed -e 's/86.*/86/'`
781 vendor=pc
782 os=sysv
783 ;;
784 i*86sol2)
785 cpu=`echo "$1" | sed -e 's/86.*/86/'`
786 vendor=pc
787 os=solaris2
788 ;;
789 j90 | j90-cray)
790 cpu=j90
791 vendor=cray
792 os=${os:-unicos}
793 ;;
794 iris | iris4d)
795 cpu=mips
796 vendor=sgi
797 case $os in
798 irix*)
799 ;;
800 *)
801 os=irix4
802 ;;
803 esac
804 ;;
805 miniframe)
806 cpu=m68000
807 vendor=convergent
808 ;;
809 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
810 cpu=m68k
811 vendor=atari
812 os=mint
813 ;;
814 news-3600 | risc-news)
815 cpu=mips
816 vendor=sony
817 os=newsos
818 ;;
819 next | m*-next)
820 cpu=m68k
821 vendor=next
822 case $os in
823 nextstep* )
824 ;;
825 ns2*)
826 os=nextstep2
827 ;;
828 *)
829 os=nextstep3
830 ;;
831 esac
832 ;;
833 np1)
834 cpu=np1
835 vendor=gould
836 ;;
837 op50n-* | op60c-*)
838 cpu=hppa1.1
839 vendor=oki
840 os=proelf
841 ;;
842 pa-hitachi)
843 cpu=hppa1.1
844 vendor=hitachi
845 os=hiuxwe2
846 ;;
847 pbd)
848 cpu=sparc
849 vendor=tti
850 ;;
851 pbb)
852 cpu=m68k
853 vendor=tti
854 ;;
855 pc532)
856 cpu=ns32k
857 vendor=pc532
858 ;;
859 pn)
860 cpu=pn
861 vendor=gould
862 ;;
863 power)
864 cpu=power
865 vendor=ibm
866 ;;
867 ps2)
868 cpu=i386
869 vendor=ibm
870 ;;
871 rm[46]00)
872 cpu=mips
873 vendor=siemens
874 ;;
875 rtpc | rtpc-*)
876 cpu=romp
877 vendor=ibm
878 ;;
879 sde)
880 cpu=mipsisa32
881 vendor=sde
882 os=${os:-elf}
883 ;;
884 simso-wrs)
885 cpu=sparclite
886 vendor=wrs
887 os=vxworks
888 ;;
889 tower | tower-32)
890 cpu=m68k
891 vendor=ncr
892 ;;
893 vpp*|vx|vx-*)
894 cpu=f301
895 vendor=fujitsu
896 ;;
897 w65)
898 cpu=w65
899 vendor=wdc
900 ;;
901 w89k-*)
902 cpu=hppa1.1
903 vendor=winbond
904 os=proelf
905 ;;
906 none)
907 cpu=none
908 vendor=none
348909 ;;
349910 leon|leon[3-9])
350 basic_machine=sparc-$basic_machine
351 ;;
352 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
353 basic_machine=$basic_machine-unknown
354 os=-none
355 ;;
356 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
357 ;;
358 m9s12z | m68hcs12z | hcs12z | s12z)
359 basic_machine=s12z-unknown
360 os=-none
361 ;;
362 ms1)
363 basic_machine=mt-unknown
364 ;;
365
366 strongarm | thumb | xscale)
367 basic_machine=arm-unknown
368 ;;
369 xgate)
370 basic_machine=$basic_machine-unknown
371 os=-none
372 ;;
373 xscaleeb)
374 basic_machine=armeb-unknown
375 ;;
376
377 xscaleel)
378 basic_machine=armel-unknown
379 ;;
380
911 cpu=sparc
912 vendor=$basic_machine
913 ;;
914 leon-*|leon[3-9]-*)
915 cpu=sparc
916 vendor=`echo "$basic_machine" | sed 's/-.*//'`
917 ;;
918
919 *-*)
920 IFS="-" read -r cpu vendor <<EOF
921 $basic_machine
922 EOF
923 ;;
381924 # We use `pc' rather than `unknown'
382925 # because (1) that's what they normally are, and
383926 # (2) the word "unknown" tends to confuse beginning users.
384927 i*86 | x86_64)
385 basic_machine=$basic_machine-pc
386 ;;
387 # Object if more than one company name word.
388 *-*-*)
389 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
390 exit 1
391 ;;
392 # Recognize the basic CPU types with company name.
393 580-* \
394 | a29k-* \
395 | aarch64-* | aarch64_be-* \
396 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
397 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
398 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
399 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
400 | avr-* | avr32-* \
401 | ba-* \
402 | be32-* | be64-* \
403 | bfin-* | bs2000-* \
404 | c[123]* | c30-* | [cjt]90-* | c4x-* \
405 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
406 | d10v-* | d30v-* | dlx-* \
407 | e2k-* | elxsi-* \
408 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
409 | h8300-* | h8500-* \
410 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
411 | hexagon-* \
412 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
413 | ip2k-* | iq2000-* \
414 | k1om-* \
415 | le32-* | le64-* \
416 | lm32-* \
417 | m32c-* | m32r-* | m32rle-* \
418 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
419 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
420 | microblaze-* | microblazeel-* \
421 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
422 | mips16-* \
423 | mips64-* | mips64el-* \
424 | mips64octeon-* | mips64octeonel-* \
425 | mips64orion-* | mips64orionel-* \
426 | mips64r5900-* | mips64r5900el-* \
427 | mips64vr-* | mips64vrel-* \
428 | mips64vr4100-* | mips64vr4100el-* \
429 | mips64vr4300-* | mips64vr4300el-* \
430 | mips64vr5000-* | mips64vr5000el-* \
431 | mips64vr5900-* | mips64vr5900el-* \
432 | mipsisa32-* | mipsisa32el-* \
433 | mipsisa32r2-* | mipsisa32r2el-* \
434 | mipsisa32r6-* | mipsisa32r6el-* \
435 | mipsisa64-* | mipsisa64el-* \
436 | mipsisa64r2-* | mipsisa64r2el-* \
437 | mipsisa64r6-* | mipsisa64r6el-* \
438 | mipsisa64sb1-* | mipsisa64sb1el-* \
439 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
440 | mipsr5900-* | mipsr5900el-* \
441 | mipstx39-* | mipstx39el-* \
442 | mmix-* \
443 | mt-* \
444 | msp430-* \
445 | nds32-* | nds32le-* | nds32be-* \
446 | nfp-* \
447 | nios-* | nios2-* | nios2eb-* | nios2el-* \
448 | none-* | np1-* | ns16k-* | ns32k-* \
449 | open8-* \
450 | or1k*-* \
451 | orion-* \
452 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
453 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
454 | pru-* \
455 | pyramid-* \
456 | riscv32-* | riscv64-* \
457 | rl78-* | romp-* | rs6000-* | rx-* \
458 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
459 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
460 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
461 | sparclite-* \
462 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
463 | tahoe-* \
464 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
465 | tile*-* \
466 | tron-* \
467 | ubicom32-* \
468 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
469 | vax-* \
470 | visium-* \
471 | wasm32-* \
472 | we32k-* \
473 | x86-* | x86_64-* | xc16x-* | xps100-* \
474 | xstormy16-* | xtensa*-* \
475 | ymp-* \
476 | z8k-* | z80-*)
477 ;;
478 # Recognize the basic CPU types without company name, with glob match.
479 xtensa*)
480 basic_machine=$basic_machine-unknown
481 ;;
482 # Recognize the various machine names and aliases which stand
483 # for a CPU type and a company and sometimes even an OS.
484 386bsd)
485 basic_machine=i386-pc
486 os=-bsd
487 ;;
488 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
489 basic_machine=m68000-att
490 ;;
491 3b*)
492 basic_machine=we32k-att
493 ;;
494 a29khif)
495 basic_machine=a29k-amd
496 os=-udi
497 ;;
498 abacus)
499 basic_machine=abacus-unknown
500 ;;
501 adobe68k)
502 basic_machine=m68010-adobe
503 os=-scout
504 ;;
505 alliant | fx80)
506 basic_machine=fx80-alliant
507 ;;
508 altos | altos3068)
509 basic_machine=m68k-altos
510 ;;
511 am29k)
512 basic_machine=a29k-none
513 os=-bsd
514 ;;
515 amd64)
516 basic_machine=x86_64-pc
517 ;;
928 cpu=$basic_machine
929 vendor=pc
930 ;;
931 # These rules are duplicated from below for sake of the special case above;
932 # i.e. things that normalized to x86 arches should also default to "pc"
933 pc98)
934 cpu=i386
935 vendor=pc
936 ;;
937 x64 | amd64)
938 cpu=x86_64
939 vendor=pc
940 ;;
941 # Recognize the basic CPU types without company name.
942 *)
943 cpu=$basic_machine
944 vendor=unknown
945 ;;
946 esac
947
948 unset -v basic_machine
949
950 # Decode basic machines in the full and proper CPU-Company form.
951 case $cpu-$vendor in
952 # Here we handle the default manufacturer of certain CPU types in cannonical form. It is in
953 # some cases the only manufacturer, in others, it is the most popular.
954 craynv-unknown)
955 vendor=cray
956 os=${os:-unicosmp}
957 ;;
958 c90-unknown | c90-cray)
959 vendor=cray
960 os=${os:-unicos}
961 ;;
962 fx80-unknown)
963 vendor=alliant
964 ;;
965 romp-unknown)
966 vendor=ibm
967 ;;
968 mmix-unknown)
969 vendor=knuth
970 ;;
971 microblaze-unknown | microblazeel-unknown)
972 vendor=xilinx
973 ;;
974 rs6000-unknown)
975 vendor=ibm
976 ;;
977 vax-unknown)
978 vendor=dec
979 ;;
980 pdp11-unknown)
981 vendor=dec
982 ;;
983 we32k-unknown)
984 vendor=att
985 ;;
986 cydra-unknown)
987 vendor=cydrome
988 ;;
989 i370-ibm*)
990 vendor=ibm
991 ;;
992 orion-unknown)
993 vendor=highlevel
994 ;;
995 xps-unknown | xps100-unknown)
996 cpu=xps100
997 vendor=honeywell
998 ;;
999
1000 # Here we normalize CPU types with a missing or matching vendor
1001 dpx20-unknown | dpx20-bull)
1002 cpu=rs6000
1003 vendor=bull
1004 os=${os:-bosx}
1005 ;;
1006
1007 # Here we normalize CPU types irrespective of the vendor
5181008 amd64-*)
519 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
520 ;;
521 amdahl)
522 basic_machine=580-amdahl
523 os=-sysv
524 ;;
525 amiga | amiga-*)
526 basic_machine=m68k-unknown
527 ;;
528 amigaos | amigados)
529 basic_machine=m68k-unknown
530 os=-amigaos
531 ;;
532 amigaunix | amix)
533 basic_machine=m68k-unknown
534 os=-sysv4
535 ;;
536 apollo68)
537 basic_machine=m68k-apollo
538 os=-sysv
539 ;;
540 apollo68bsd)
541 basic_machine=m68k-apollo
542 os=-bsd
543 ;;
544 aros)
545 basic_machine=i386-pc
546 os=-aros
547 ;;
548 asmjs)
549 basic_machine=asmjs-unknown
550 ;;
551 aux)
552 basic_machine=m68k-apple
553 os=-aux
554 ;;
555 balance)
556 basic_machine=ns32k-sequent
557 os=-dynix
558 ;;
559 blackfin)
560 basic_machine=bfin-unknown
561 os=-linux
1009 cpu=x86_64
5621010 ;;
5631011 blackfin-*)
564 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
565 os=-linux
566 ;;
567 bluegene*)
568 basic_machine=powerpc-ibm
569 os=-cnk
1012 cpu=bfin
1013 os=linux
5701014 ;;
5711015 c54x-*)
572 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1016 cpu=tic54x
5731017 ;;
5741018 c55x-*)
575 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1019 cpu=tic55x
5761020 ;;
5771021 c6x-*)
578 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
579 ;;
580 c90)
581 basic_machine=c90-cray
582 os=-unicos
583 ;;
584 cegcc)
585 basic_machine=arm-unknown
586 os=-cegcc
587 ;;
588 convex-c1)
589 basic_machine=c1-convex
590 os=-bsd
591 ;;
592 convex-c2)
593 basic_machine=c2-convex
594 os=-bsd
595 ;;
596 convex-c32)
597 basic_machine=c32-convex
598 os=-bsd
599 ;;
600 convex-c34)
601 basic_machine=c34-convex
602 os=-bsd
603 ;;
604 convex-c38)
605 basic_machine=c38-convex
606 os=-bsd
607 ;;
608 cray | j90)
609 basic_machine=j90-cray
610 os=-unicos
611 ;;
612 craynv)
613 basic_machine=craynv-cray
614 os=-unicosmp
615 ;;
616 cr16 | cr16-*)
617 basic_machine=cr16-unknown
618 os=-elf
619 ;;
620 crds | unos)
621 basic_machine=m68k-crds
622 ;;
623 crisv32 | crisv32-* | etraxfs*)
624 basic_machine=crisv32-axis
625 ;;
626 cris | cris-* | etrax*)
627 basic_machine=cris-axis
628 ;;
629 crx)
630 basic_machine=crx-unknown
631 os=-elf
632 ;;
633 da30 | da30-*)
634 basic_machine=m68k-da30
635 ;;
636 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
637 basic_machine=mips-dec
638 ;;
639 decsystem10* | dec10*)
640 basic_machine=pdp10-dec
641 os=-tops10
642 ;;
643 decsystem20* | dec20*)
644 basic_machine=pdp10-dec
645 os=-tops20
646 ;;
647 delta | 3300 | motorola-3300 | motorola-delta \
648 | 3300-motorola | delta-motorola)
649 basic_machine=m68k-motorola
650 ;;
651 delta88)
652 basic_machine=m88k-motorola
653 os=-sysv3
654 ;;
655 dicos)
656 basic_machine=i686-pc
657 os=-dicos
658 ;;
659 djgpp)
660 basic_machine=i586-pc
661 os=-msdosdjgpp
662 ;;
663 dpx20 | dpx20-*)
664 basic_machine=rs6000-bull
665 os=-bosx
666 ;;
667 dpx2*)
668 basic_machine=m68k-bull
669 os=-sysv3
670 ;;
671 e500v[12])
672 basic_machine=powerpc-unknown
1022 cpu=tic6x
1023 ;;
1024 e500v[12]-*)
1025 cpu=powerpc
6731026 os=$os"spe"
6741027 ;;
675 e500v[12]-*)
676 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
677 os=$os"spe"
678 ;;
679 ebmon29k)
680 basic_machine=a29k-amd
681 os=-ebmon
682 ;;
683 elxsi)
684 basic_machine=elxsi-elxsi
685 os=-bsd
686 ;;
687 encore | umax | mmax)
688 basic_machine=ns32k-encore
689 ;;
690 es1800 | OSE68k | ose68k | ose | OSE)
691 basic_machine=m68k-ericsson
692 os=-ose
693 ;;
694 fx2800)
695 basic_machine=i860-alliant
696 ;;
697 genix)
698 basic_machine=ns32k-ns
699 ;;
700 gmicro)
701 basic_machine=tron-gmicro
702 os=-sysv
703 ;;
704 go32)
705 basic_machine=i386-pc
706 os=-go32
707 ;;
708 h3050r* | hiux*)
709 basic_machine=hppa1.1-hitachi
710 os=-hiuxwe2
711 ;;
712 h8300hms)
713 basic_machine=h8300-hitachi
714 os=-hms
715 ;;
716 h8300xray)
717 basic_machine=h8300-hitachi
718 os=-xray
719 ;;
720 h8500hms)
721 basic_machine=h8500-hitachi
722 os=-hms
723 ;;
724 harris)
725 basic_machine=m88k-harris
726 os=-sysv3
727 ;;
728 hp300-*)
729 basic_machine=m68k-hp
730 ;;
731 hp300bsd)
732 basic_machine=m68k-hp
733 os=-bsd
734 ;;
735 hp300hpux)
736 basic_machine=m68k-hp
737 os=-hpux
738 ;;
739 hp3k9[0-9][0-9] | hp9[0-9][0-9])
740 basic_machine=hppa1.0-hp
741 ;;
742 hp9k2[0-9][0-9] | hp9k31[0-9])
743 basic_machine=m68000-hp
744 ;;
745 hp9k3[2-9][0-9])
746 basic_machine=m68k-hp
747 ;;
748 hp9k6[0-9][0-9] | hp6[0-9][0-9])
749 basic_machine=hppa1.0-hp
750 ;;
751 hp9k7[0-79][0-9] | hp7[0-79][0-9])
752 basic_machine=hppa1.1-hp
753 ;;
754 hp9k78[0-9] | hp78[0-9])
755 # FIXME: really hppa2.0-hp
756 basic_machine=hppa1.1-hp
757 ;;
758 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
759 # FIXME: really hppa2.0-hp
760 basic_machine=hppa1.1-hp
761 ;;
762 hp9k8[0-9][13679] | hp8[0-9][13679])
763 basic_machine=hppa1.1-hp
764 ;;
765 hp9k8[0-9][0-9] | hp8[0-9][0-9])
766 basic_machine=hppa1.0-hp
767 ;;
768 hppaosf)
769 basic_machine=hppa1.1-hp
770 os=-osf
771 ;;
772 hppro)
773 basic_machine=hppa1.1-hp
774 os=-proelf
775 ;;
776 i370-ibm* | ibm*)
777 basic_machine=i370-ibm
778 ;;
779 i*86v32)
780 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
781 os=-sysv32
782 ;;
783 i*86v4*)
784 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
785 os=-sysv4
786 ;;
787 i*86v)
788 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
789 os=-sysv
790 ;;
791 i*86sol2)
792 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
793 os=-solaris2
794 ;;
795 i386mach)
796 basic_machine=i386-mach
797 os=-mach
798 ;;
799 vsta)
800 basic_machine=i386-unknown
801 os=-vsta
802 ;;
803 iris | iris4d)
804 basic_machine=mips-sgi
805 case $os in
806 -irix*)
807 ;;
808 *)
809 os=-irix4
810 ;;
1028 mips3*-*)
1029 cpu=mips64
1030 ;;
1031 ms1-*)
1032 cpu=mt
1033 ;;
1034 m68knommu-*)
1035 cpu=m68k
1036 os=linux
1037 ;;
1038 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1039 cpu=s12z
1040 ;;
1041 openrisc-*)
1042 cpu=or32
1043 ;;
1044 parisc-*)
1045 cpu=hppa
1046 os=linux
1047 ;;
1048 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1049 cpu=i586
1050 ;;
1051 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1052 cpu=i686
1053 ;;
1054 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1055 cpu=i686
1056 ;;
1057 pentium4-*)
1058 cpu=i786
1059 ;;
1060 pc98-*)
1061 cpu=i386
1062 ;;
1063 ppc-* | ppcbe-*)
1064 cpu=powerpc
1065 ;;
1066 ppcle-* | powerpclittle-*)
1067 cpu=powerpcle
1068 ;;
1069 ppc64-*)
1070 cpu=powerpc64
1071 ;;
1072 ppc64le-* | powerpc64little-*)
1073 cpu=powerpc64le
1074 ;;
1075 sb1-*)
1076 cpu=mipsisa64sb1
1077 ;;
1078 sb1el-*)
1079 cpu=mipsisa64sb1el
1080 ;;
1081 sh5e[lb]-*)
1082 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1083 ;;
1084 spur-*)
1085 cpu=spur
1086 ;;
1087 strongarm-* | thumb-*)
1088 cpu=arm
1089 ;;
1090 tx39-*)
1091 cpu=mipstx39
1092 ;;
1093 tx39el-*)
1094 cpu=mipstx39el
1095 ;;
1096 x64-*)
1097 cpu=x86_64
1098 ;;
1099 xscale-* | xscalee[bl]-*)
1100 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1101 ;;
1102
1103 # Recognize the cannonical CPU Types that limit and/or modify the
1104 # company names they are paired with.
1105 cr16-*)
1106 os=${os:-elf}
1107 ;;
1108 crisv32-* | etraxfs*-*)
1109 cpu=crisv32
1110 vendor=axis
1111 ;;
1112 cris-* | etrax*-*)
1113 cpu=cris
1114 vendor=axis
1115 ;;
1116 crx-*)
1117 os=${os:-elf}
1118 ;;
1119 neo-tandem)
1120 cpu=neo
1121 vendor=tandem
1122 ;;
1123 nse-tandem)
1124 cpu=nse
1125 vendor=tandem
1126 ;;
1127 nsr-tandem)
1128 cpu=nsr
1129 vendor=tandem
1130 ;;
1131 nsv-tandem)
1132 cpu=nsv
1133 vendor=tandem
1134 ;;
1135 nsx-tandem)
1136 cpu=nsx
1137 vendor=tandem
1138 ;;
1139 s390-*)
1140 cpu=s390
1141 vendor=ibm
1142 ;;
1143 s390x-*)
1144 cpu=s390x
1145 vendor=ibm
1146 ;;
1147 tile*-*)
1148 os=${os:-linux-gnu}
1149 ;;
1150
1151 *)
1152 # Recognize the cannonical CPU types that are allowed with any
1153 # company name.
1154 case $cpu in
1155 1750a | 580 \
1156 | a29k \
1157 | aarch64 | aarch64_be \
1158 | abacus \
1159 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1160 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1161 | alphapca5[67] | alpha64pca5[67] \
1162 | am33_2.0 \
1163 | arc | arceb \
1164 | arm | arm[lb]e | arme[lb] | armv* \
1165 | avr | avr32 \
1166 | asmjs \
1167 | ba \
1168 | be32 | be64 \
1169 | bfin | bs2000 \
1170 | c[123]* | c30 | [cjt]90 | c4x \
1171 | c8051 | clipper | craynv | csky | cydra \
1172 | d10v | d30v | dlx | dsp16xx \
1173 | e2k | elxsi | epiphany \
1174 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1175 | h8300 | h8500 \
1176 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1177 | hexagon \
1178 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1179 | ip2k | iq2000 \
1180 | k1om \
1181 | le32 | le64 \
1182 | lm32 \
1183 | m32c | m32r | m32rle \
1184 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
1185 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
1186 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1187 | microblaze | microblazeel \
1188 | mips | mipsbe | mipseb | mipsel | mipsle \
1189 | mips16 \
1190 | mips64 | mips64el \
1191 | mips64octeon | mips64octeonel \
1192 | mips64orion | mips64orionel \
1193 | mips64r5900 | mips64r5900el \
1194 | mips64vr | mips64vrel \
1195 | mips64vr4100 | mips64vr4100el \
1196 | mips64vr4300 | mips64vr4300el \
1197 | mips64vr5000 | mips64vr5000el \
1198 | mips64vr5900 | mips64vr5900el \
1199 | mipsisa32 | mipsisa32el \
1200 | mipsisa32r2 | mipsisa32r2el \
1201 | mipsisa32r6 | mipsisa32r6el \
1202 | mipsisa64 | mipsisa64el \
1203 | mipsisa64r2 | mipsisa64r2el \
1204 | mipsisa64r6 | mipsisa64r6el \
1205 | mipsisa64sb1 | mipsisa64sb1el \
1206 | mipsisa64sr71k | mipsisa64sr71kel \
1207 | mipsr5900 | mipsr5900el \
1208 | mipstx39 | mipstx39el \
1209 | mmix \
1210 | mn10200 | mn10300 \
1211 | moxie \
1212 | mt \
1213 | msp430 \
1214 | nds32 | nds32le | nds32be \
1215 | nfp \
1216 | nios | nios2 | nios2eb | nios2el \
1217 | none | np1 | ns16k | ns32k \
1218 | open8 \
1219 | or1k* \
1220 | or32 \
1221 | orion \
1222 | pdp10 | pdp11 | pj | pjl | pn | power \
1223 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1224 | pru \
1225 | pyramid \
1226 | riscv | riscv32 | riscv64 \
1227 | rl78 | romp | rs6000 | rx \
1228 | score \
1229 | sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1230 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1231 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1232 | sparclite \
1233 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1234 | spu \
1235 | tahoe \
1236 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1237 | tron \
1238 | ubicom32 \
1239 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1240 | vax \
1241 | visium \
1242 | wasm32 \
1243 | we32k \
1244 | x86 | x86_64 | xc16x | xgate | xps100 \
1245 | xstormy16 | xtensa* \
1246 | ymp \
1247 | z8k | z80)
1248 ;;
1249
1250 *)
1251 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1252 exit 1
1253 ;;
8111254 esac
8121255 ;;
813 isi68 | isi)
814 basic_machine=m68k-isi
815 os=-sysv
816 ;;
817 leon-*|leon[3-9]-*)
818 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
819 ;;
820 m68knommu)
821 basic_machine=m68k-unknown
822 os=-linux
823 ;;
824 m68knommu-*)
825 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
826 os=-linux
827 ;;
828 magnum | m3230)
829 basic_machine=mips-mips
830 os=-sysv
831 ;;
832 merlin)
833 basic_machine=ns32k-utek
834 os=-sysv
835 ;;
836 microblaze*)
837 basic_machine=microblaze-xilinx
838 ;;
839 mingw64)
840 basic_machine=x86_64-pc
841 os=-mingw64
842 ;;
843 mingw32)
844 basic_machine=i686-pc
845 os=-mingw32
846 ;;
847 mingw32ce)
848 basic_machine=arm-unknown
849 os=-mingw32ce
850 ;;
851 miniframe)
852 basic_machine=m68000-convergent
853 ;;
854 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
855 basic_machine=m68k-atari
856 os=-mint
857 ;;
858 mips3*-*)
859 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
860 ;;
861 mips3*)
862 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
863 ;;
864 monitor)
865 basic_machine=m68k-rom68k
866 os=-coff
867 ;;
868 morphos)
869 basic_machine=powerpc-unknown
870 os=-morphos
871 ;;
872 moxiebox)
873 basic_machine=moxie-unknown
874 os=-moxiebox
875 ;;
876 msdos)
877 basic_machine=i386-pc
878 os=-msdos
879 ;;
880 ms1-*)
881 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
882 ;;
883 msys)
884 basic_machine=i686-pc
885 os=-msys
886 ;;
887 mvs)
888 basic_machine=i370-ibm
889 os=-mvs
890 ;;
891 nacl)
892 basic_machine=le32-unknown
893 os=-nacl
894 ;;
895 ncr3000)
896 basic_machine=i486-ncr
897 os=-sysv4
898 ;;
899 netbsd386)
900 basic_machine=i386-unknown
901 os=-netbsd
902 ;;
903 netwinder)
904 basic_machine=armv4l-rebel
905 os=-linux
906 ;;
907 news | news700 | news800 | news900)
908 basic_machine=m68k-sony
909 os=-newsos
910 ;;
911 news1000)
912 basic_machine=m68030-sony
913 os=-newsos
914 ;;
915 news-3600 | risc-news)
916 basic_machine=mips-sony
917 os=-newsos
918 ;;
919 necv70)
920 basic_machine=v70-nec
921 os=-sysv
922 ;;
923 next | m*-next)
924 basic_machine=m68k-next
925 case $os in
926 -nextstep* )
927 ;;
928 -ns2*)
929 os=-nextstep2
930 ;;
931 *)
932 os=-nextstep3
933 ;;
934 esac
935 ;;
936 nh3000)
937 basic_machine=m68k-harris
938 os=-cxux
939 ;;
940 nh[45]000)
941 basic_machine=m88k-harris
942 os=-cxux
943 ;;
944 nindy960)
945 basic_machine=i960-intel
946 os=-nindy
947 ;;
948 mon960)
949 basic_machine=i960-intel
950 os=-mon960
951 ;;
952 nonstopux)
953 basic_machine=mips-compaq
954 os=-nonstopux
955 ;;
956 np1)
957 basic_machine=np1-gould
958 ;;
959 neo-tandem)
960 basic_machine=neo-tandem
961 ;;
962 nse-tandem)
963 basic_machine=nse-tandem
964 ;;
965 nsr-tandem)
966 basic_machine=nsr-tandem
967 ;;
968 nsv-tandem)
969 basic_machine=nsv-tandem
970 ;;
971 nsx-tandem)
972 basic_machine=nsx-tandem
973 ;;
974 op50n-* | op60c-*)
975 basic_machine=hppa1.1-oki
976 os=-proelf
977 ;;
978 openrisc | openrisc-*)
979 basic_machine=or32-unknown
980 ;;
981 os400)
982 basic_machine=powerpc-ibm
983 os=-os400
984 ;;
985 OSE68000 | ose68000)
986 basic_machine=m68000-ericsson
987 os=-ose
988 ;;
989 os68k)
990 basic_machine=m68k-none
991 os=-os68k
992 ;;
993 pa-hitachi)
994 basic_machine=hppa1.1-hitachi
995 os=-hiuxwe2
996 ;;
997 paragon)
998 basic_machine=i860-intel
999 os=-osf
1000 ;;
1001 parisc)
1002 basic_machine=hppa-unknown
1003 os=-linux
1004 ;;
1005 parisc-*)
1006 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1007 os=-linux
1008 ;;
1009 pbd)
1010 basic_machine=sparc-tti
1011 ;;
1012 pbb)
1013 basic_machine=m68k-tti
1014 ;;
1015 pc532 | pc532-*)
1016 basic_machine=ns32k-pc532
1017 ;;
1018 pc98)
1019 basic_machine=i386-pc
1020 ;;
1021 pc98-*)
1022 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1023 ;;
1024 pentium | p5 | k5 | k6 | nexgen | viac3)
1025 basic_machine=i586-pc
1026 ;;
1027 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1028 basic_machine=i686-pc
1029 ;;
1030 pentiumii | pentium2 | pentiumiii | pentium3)
1031 basic_machine=i686-pc
1032 ;;
1033 pentium4)
1034 basic_machine=i786-pc
1035 ;;
1036 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1037 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1038 ;;
1039 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1040 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1043 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1044 ;;
1045 pentium4-*)
1046 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1047 ;;
1048 pn)
1049 basic_machine=pn-gould
1050 ;;
1051 power) basic_machine=power-ibm
1052 ;;
1053 ppc | ppcbe) basic_machine=powerpc-unknown
1054 ;;
1055 ppc-* | ppcbe-*)
1056 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1057 ;;
1058 ppcle | powerpclittle)
1059 basic_machine=powerpcle-unknown
1060 ;;
1061 ppcle-* | powerpclittle-*)
1062 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1063 ;;
1064 ppc64) basic_machine=powerpc64-unknown
1065 ;;
1066 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1067 ;;
1068 ppc64le | powerpc64little)
1069 basic_machine=powerpc64le-unknown
1070 ;;
1071 ppc64le-* | powerpc64little-*)
1072 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1073 ;;
1074 ps2)
1075 basic_machine=i386-ibm
1076 ;;
1077 pw32)
1078 basic_machine=i586-unknown
1079 os=-pw32
1080 ;;
1081 rdos | rdos64)
1082 basic_machine=x86_64-pc
1083 os=-rdos
1084 ;;
1085 rdos32)
1086 basic_machine=i386-pc
1087 os=-rdos
1088 ;;
1089 rom68k)
1090 basic_machine=m68k-rom68k
1091 os=-coff
1092 ;;
1093 rm[46]00)
1094 basic_machine=mips-siemens
1095 ;;
1096 rtpc | rtpc-*)
1097 basic_machine=romp-ibm
1098 ;;
1099 s390 | s390-*)
1100 basic_machine=s390-ibm
1101 ;;
1102 s390x | s390x-*)
1103 basic_machine=s390x-ibm
1104 ;;
1105 sa29200)
1106 basic_machine=a29k-amd
1107 os=-udi
1108 ;;
1109 sb1)
1110 basic_machine=mipsisa64sb1-unknown
1111 ;;
1112 sb1el)
1113 basic_machine=mipsisa64sb1el-unknown
1114 ;;
1115 sde)
1116 basic_machine=mipsisa32-sde
1117 os=-elf
1118 ;;
1119 sei)
1120 basic_machine=mips-sei
1121 os=-seiux
1122 ;;
1123 sequent)
1124 basic_machine=i386-sequent
1125 ;;
1126 sh5el)
1127 basic_machine=sh5le-unknown
1128 ;;
1129 simso-wrs)
1130 basic_machine=sparclite-wrs
1131 os=-vxworks
1132 ;;
1133 sps7)
1134 basic_machine=m68k-bull
1135 os=-sysv2
1136 ;;
1137 spur)
1138 basic_machine=spur-unknown
1139 ;;
1140 st2000)
1141 basic_machine=m68k-tandem
1142 ;;
1143 stratus)
1144 basic_machine=i860-stratus
1145 os=-sysv4
1146 ;;
1147 strongarm-* | thumb-*)
1148 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1149 ;;
1150 sun2)
1151 basic_machine=m68000-sun
1152 ;;
1153 sun2os3)
1154 basic_machine=m68000-sun
1155 os=-sunos3
1156 ;;
1157 sun2os4)
1158 basic_machine=m68000-sun
1159 os=-sunos4
1160 ;;
1161 sun3os3)
1162 basic_machine=m68k-sun
1163 os=-sunos3
1164 ;;
1165 sun3os4)
1166 basic_machine=m68k-sun
1167 os=-sunos4
1168 ;;
1169 sun4os3)
1170 basic_machine=sparc-sun
1171 os=-sunos3
1172 ;;
1173 sun4os4)
1174 basic_machine=sparc-sun
1175 os=-sunos4
1176 ;;
1177 sun4sol2)
1178 basic_machine=sparc-sun
1179 os=-solaris2
1180 ;;
1181 sun3 | sun3-*)
1182 basic_machine=m68k-sun
1183 ;;
1184 sun4)
1185 basic_machine=sparc-sun
1186 ;;
1187 sun386 | sun386i | roadrunner)
1188 basic_machine=i386-sun
1189 ;;
1190 sv1)
1191 basic_machine=sv1-cray
1192 os=-unicos
1193 ;;
1194 symmetry)
1195 basic_machine=i386-sequent
1196 os=-dynix
1197 ;;
1198 t3e)
1199 basic_machine=alphaev5-cray
1200 os=-unicos
1201 ;;
1202 t90)
1203 basic_machine=t90-cray
1204 os=-unicos
1205 ;;
1206 tile*)
1207 basic_machine=$basic_machine-unknown
1208 os=-linux-gnu
1209 ;;
1210 tx39)
1211 basic_machine=mipstx39-unknown
1212 ;;
1213 tx39el)
1214 basic_machine=mipstx39el-unknown
1215 ;;
1216 toad1)
1217 basic_machine=pdp10-xkl
1218 os=-tops20
1219 ;;
1220 tower | tower-32)
1221 basic_machine=m68k-ncr
1222 ;;
1223 tpf)
1224 basic_machine=s390x-ibm
1225 os=-tpf
1226 ;;
1227 udi29k)
1228 basic_machine=a29k-amd
1229 os=-udi
1230 ;;
1231 ultra3)
1232 basic_machine=a29k-nyu
1233 os=-sym1
1234 ;;
1235 v810 | necv810)
1236 basic_machine=v810-nec
1237 os=-none
1238 ;;
1239 vaxv)
1240 basic_machine=vax-dec
1241 os=-sysv
1242 ;;
1243 vms)
1244 basic_machine=vax-dec
1245 os=-vms
1246 ;;
1247 vpp*|vx|vx-*)
1248 basic_machine=f301-fujitsu
1249 ;;
1250 vxworks960)
1251 basic_machine=i960-wrs
1252 os=-vxworks
1253 ;;
1254 vxworks68)
1255 basic_machine=m68k-wrs
1256 os=-vxworks
1257 ;;
1258 vxworks29k)
1259 basic_machine=a29k-wrs
1260 os=-vxworks
1261 ;;
1262 w65*)
1263 basic_machine=w65-wdc
1264 os=-none
1265 ;;
1266 w89k-*)
1267 basic_machine=hppa1.1-winbond
1268 os=-proelf
1269 ;;
1270 x64)
1271 basic_machine=x86_64-pc
1272 ;;
1273 xbox)
1274 basic_machine=i686-pc
1275 os=-mingw32
1276 ;;
1277 xps | xps100)
1278 basic_machine=xps100-honeywell
1279 ;;
1280 xscale-* | xscalee[bl]-*)
1281 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1282 ;;
1283 ymp)
1284 basic_machine=ymp-cray
1285 os=-unicos
1286 ;;
1287 none)
1288 basic_machine=none-none
1289 os=-none
1290 ;;
1291
1292 # Here we handle the default manufacturer of certain CPU types. It is in
1293 # some cases the only manufacturer, in others, it is the most popular.
1294 w89k)
1295 basic_machine=hppa1.1-winbond
1296 ;;
1297 op50n)
1298 basic_machine=hppa1.1-oki
1299 ;;
1300 op60c)
1301 basic_machine=hppa1.1-oki
1302 ;;
1303 romp)
1304 basic_machine=romp-ibm
1305 ;;
1306 mmix)
1307 basic_machine=mmix-knuth
1308 ;;
1309 rs6000)
1310 basic_machine=rs6000-ibm
1311 ;;
1312 vax)
1313 basic_machine=vax-dec
1314 ;;
1315 pdp11)
1316 basic_machine=pdp11-dec
1317 ;;
1318 we32k)
1319 basic_machine=we32k-att
1320 ;;
1321 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1322 basic_machine=sh-unknown
1323 ;;
1324 cydra)
1325 basic_machine=cydra-cydrome
1326 ;;
1327 orion)
1328 basic_machine=orion-highlevel
1329 ;;
1330 orion105)
1331 basic_machine=clipper-highlevel
1332 ;;
1333 mac | mpw | mac-mpw)
1334 basic_machine=m68k-apple
1335 ;;
1336 pmac | pmac-mpw)
1337 basic_machine=powerpc-apple
1338 ;;
1339 *-unknown)
1340 # Make sure to match an already-canonicalized machine name.
1341 ;;
1342 *)
1343 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1344 exit 1
1345 ;;
13461256 esac
13471257
13481258 # Here we canonicalize certain aliases for manufacturers.
1349 case $basic_machine in
1350 *-digital*)
1351 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1352 ;;
1353 *-commodore*)
1354 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1259 case $vendor in
1260 digital*)
1261 vendor=dec
1262 ;;
1263 commodore*)
1264 vendor=cbm
13551265 ;;
13561266 *)
13571267 ;;
13641274 case $os in
13651275 # First match some system type aliases that might get confused
13661276 # with valid system types.
1367 # -solaris* is a basic system type, with this one exception.
1368 -auroraux)
1369 os=-auroraux
1370 ;;
1371 -solaris1 | -solaris1.*)
1277 # solaris* is a basic system type, with this one exception.
1278 auroraux)
1279 os=auroraux
1280 ;;
1281 bluegene*)
1282 os=cnk
1283 ;;
1284 solaris1 | solaris1.*)
13721285 os=`echo $os | sed -e 's|solaris1|sunos4|'`
13731286 ;;
1374 -solaris)
1375 os=-solaris2
1376 ;;
1377 -unixware*)
1378 os=-sysv4.2uw
1379 ;;
1380 -gnu/linux*)
1287 solaris)
1288 os=solaris2
1289 ;;
1290 unixware*)
1291 os=sysv4.2uw
1292 ;;
1293 gnu/linux*)
13811294 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
13821295 ;;
13831296 # es1800 is here to avoid being matched by es* (a different OS)
1384 -es1800*)
1385 os=-ose
1297 es1800*)
1298 os=ose
1299 ;;
1300 # Some version numbers need modification
1301 chorusos*)
1302 os=chorusos
1303 ;;
1304 isc)
1305 os=isc2.2
1306 ;;
1307 sco6)
1308 os=sco5v6
1309 ;;
1310 sco5)
1311 os=sco3.2v5
1312 ;;
1313 sco4)
1314 os=sco3.2v4
1315 ;;
1316 sco3.2.[4-9]*)
1317 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1318 ;;
1319 sco3.2v[4-9]* | sco5v6*)
1320 # Don't forget version if it is 3.2v4 or newer.
1321 ;;
1322 scout)
1323 # Don't match below
1324 ;;
1325 sco*)
1326 os=sco3.2v2
1327 ;;
1328 psos*)
1329 os=psos
13861330 ;;
13871331 # Now accept the basic system types.
13881332 # The portable systems comes first.
13891333 # Each alternative MUST end in a * to match a version number.
1390 # -sysv* is not here because it comes later, after sysvr4.
1391 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1392 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1393 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1394 | -sym* | -kopensolaris* | -plan9* \
1395 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1396 | -aos* | -aros* | -cloudabi* | -sortix* \
1397 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1398 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1399 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1400 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1401 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1402 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1403 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1404 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
1405 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1406 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1407 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1408 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1409 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1410 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1411 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1412 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1413 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1414 | -morphos* | -superux* | -rtmk* | -windiss* \
1415 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1416 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1417 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1418 | -midnightbsd*)
1334 # sysv* is not here because it comes later, after sysvr4.
1335 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1336 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
1337 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1338 | sym* | kopensolaris* | plan9* \
1339 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1340 | aos* | aros* | cloudabi* | sortix* \
1341 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1342 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1343 | knetbsd* | mirbsd* | netbsd* \
1344 | bitrig* | openbsd* | solidbsd* | libertybsd* \
1345 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
1346 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1347 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1348 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
1349 | chorusrdb* | cegcc* | glidix* \
1350 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1351 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1352 | linux-newlib* | linux-musl* | linux-uclibc* \
1353 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1354 | interix* | uwin* | mks* | rhapsody* | darwin* \
1355 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1356 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1357 | os2* | vos* | palmos* | uclinux* | nucleus* \
1358 | morphos* | superux* | rtmk* | windiss* \
1359 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1360 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1361 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1362 | midnightbsd*)
14191363 # Remember, each alternative MUST END IN *, to match a version number.
14201364 ;;
1421 -qnx*)
1422 case $basic_machine in
1423 x86-* | i*86-*)
1365 qnx*)
1366 case $cpu in
1367 x86 | i*86)
14241368 ;;
14251369 *)
1426 os=-nto$os
1370 os=nto-$os
14271371 ;;
14281372 esac
14291373 ;;
1430 -nto-qnx*)
1431 ;;
1432 -nto*)
1374 hiux*)
1375 os=hiuxwe2
1376 ;;
1377 nto-qnx*)
1378 ;;
1379 nto*)
14331380 os=`echo $os | sed -e 's|nto|nto-qnx|'`
14341381 ;;
1435 -sim | -xray | -os68k* | -v88r* \
1436 | -windows* | -osx | -abug | -netware* | -os9* \
1437 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1438 ;;
1439 -mac*)
1382 sim | xray | os68k* | v88r* \
1383 | windows* | osx | abug | netware* | os9* \
1384 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
1385 ;;
1386 linux-dietlibc)
1387 os=linux-dietlibc
1388 ;;
1389 linux*)
1390 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1391 ;;
1392 lynx*178)
1393 os=lynxos178
1394 ;;
1395 lynx*5)
1396 os=lynxos5
1397 ;;
1398 lynx*)
1399 os=lynxos
1400 ;;
1401 mac*)
14401402 os=`echo "$os" | sed -e 's|mac|macos|'`
14411403 ;;
1442 -linux-dietlibc)
1443 os=-linux-dietlibc
1444 ;;
1445 -linux*)
1446 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1447 ;;
1448 -sunos5*)
1404 opened*)
1405 os=openedition
1406 ;;
1407 os400*)
1408 os=os400
1409 ;;
1410 sunos5*)
14491411 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14501412 ;;
1451 -sunos6*)
1413 sunos6*)
14521414 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14531415 ;;
1454 -opened*)
1455 os=-openedition
1456 ;;
1457 -os400*)
1458 os=-os400
1459 ;;
1460 -wince*)
1461 os=-wince
1462 ;;
1463 -utek*)
1464 os=-bsd
1465 ;;
1466 -dynix*)
1467 os=-bsd
1468 ;;
1469 -acis*)
1470 os=-aos
1471 ;;
1472 -atheos*)
1473 os=-atheos
1474 ;;
1475 -syllable*)
1476 os=-syllable
1477 ;;
1478 -386bsd)
1479 os=-bsd
1480 ;;
1481 -ctix* | -uts*)
1482 os=-sysv
1483 ;;
1484 -nova*)
1485 os=-rtmk-nova
1486 ;;
1487 -ns2)
1488 os=-nextstep2
1489 ;;
1490 -nsk*)
1491 os=-nsk
1416 wince*)
1417 os=wince
1418 ;;
1419 utek*)
1420 os=bsd
1421 ;;
1422 dynix*)
1423 os=bsd
1424 ;;
1425 acis*)
1426 os=aos
1427 ;;
1428 atheos*)
1429 os=atheos
1430 ;;
1431 syllable*)
1432 os=syllable
1433 ;;
1434 386bsd)
1435 os=bsd
1436 ;;
1437 ctix* | uts*)
1438 os=sysv
1439 ;;
1440 nova*)
1441 os=rtmk-nova
1442 ;;
1443 ns2)
1444 os=nextstep2
1445 ;;
1446 nsk*)
1447 os=nsk
14921448 ;;
14931449 # Preserve the version number of sinix5.
1494 -sinix5.*)
1450 sinix5.*)
14951451 os=`echo $os | sed -e 's|sinix|sysv|'`
14961452 ;;
1497 -sinix*)
1498 os=-sysv4
1499 ;;
1500 -tpf*)
1501 os=-tpf
1502 ;;
1503 -triton*)
1504 os=-sysv3
1505 ;;
1506 -oss*)
1507 os=-sysv3
1508 ;;
1509 -svr4*)
1510 os=-sysv4
1511 ;;
1512 -svr3)
1513 os=-sysv3
1514 ;;
1515 -sysvr4)
1516 os=-sysv4
1517 ;;
1518 # This must come after -sysvr4.
1519 -sysv*)
1520 ;;
1521 -ose*)
1522 os=-ose
1523 ;;
1524 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1525 os=-mint
1526 ;;
1527 -zvmoe)
1528 os=-zvmoe
1529 ;;
1530 -dicos*)
1531 os=-dicos
1532 ;;
1533 -pikeos*)
1453 sinix*)
1454 os=sysv4
1455 ;;
1456 tpf*)
1457 os=tpf
1458 ;;
1459 triton*)
1460 os=sysv3
1461 ;;
1462 oss*)
1463 os=sysv3
1464 ;;
1465 svr4*)
1466 os=sysv4
1467 ;;
1468 svr3)
1469 os=sysv3
1470 ;;
1471 sysvr4)
1472 os=sysv4
1473 ;;
1474 # This must come after sysvr4.
1475 sysv*)
1476 ;;
1477 ose*)
1478 os=ose
1479 ;;
1480 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1481 os=mint
1482 ;;
1483 zvmoe)
1484 os=zvmoe
1485 ;;
1486 dicos*)
1487 os=dicos
1488 ;;
1489 pikeos*)
15341490 # Until real need of OS specific support for
15351491 # particular features comes up, bare metal
15361492 # configurations are quite functional.
1537 case $basic_machine in
1493 case $cpu in
15381494 arm*)
1539 os=-eabi
1495 os=eabi
15401496 ;;
15411497 *)
1542 os=-elf
1498 os=elf
15431499 ;;
15441500 esac
15451501 ;;
1546 -nacl*)
1547 ;;
1548 -ios)
1549 ;;
1550 -none)
1551 ;;
1552 -*-eabi)
1553 case $basic_machine in
1554 arm*)
1555 ;;
1556 esac
1502 nacl*)
1503 ;;
1504 ios)
1505 ;;
1506 none)
1507 ;;
1508 *-eabi)
15571509 ;;
15581510 *)
1559 # Get rid of the `-' at the beginning of $os.
1560 os=`echo $os | sed 's/[^-]*-//'`
15611511 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15621512 exit 1
15631513 ;;
15741524 # will signal an error saying that MANUFACTURER isn't an operating
15751525 # system, and we'll never get to this point.
15761526
1577 case $basic_machine in
1527 case $cpu-$vendor in
15781528 score-*)
1579 os=-elf
1529 os=elf
15801530 ;;
15811531 spu-*)
1582 os=-elf
1532 os=elf
15831533 ;;
15841534 *-acorn)
1585 os=-riscix1.2
1535 os=riscix1.2
15861536 ;;
15871537 arm*-rebel)
1588 os=-linux
1538 os=linux
15891539 ;;
15901540 arm*-semi)
1591 os=-aout
1541 os=aout
15921542 ;;
15931543 c4x-* | tic4x-*)
1594 os=-coff
1544 os=coff
15951545 ;;
15961546 c8051-*)
1597 os=-elf
1547 os=elf
1548 ;;
1549 clipper-intergraph)
1550 os=clix
15981551 ;;
15991552 hexagon-*)
1600 os=-elf
1553 os=elf
16011554 ;;
16021555 tic54x-*)
1603 os=-coff
1556 os=coff
16041557 ;;
16051558 tic55x-*)
1606 os=-coff
1559 os=coff
16071560 ;;
16081561 tic6x-*)
1609 os=-coff
1562 os=coff
16101563 ;;
16111564 # This must come before the *-dec entry.
16121565 pdp10-*)
1613 os=-tops20
1566 os=tops20
16141567 ;;
16151568 pdp11-*)
1616 os=-none
1569 os=none
16171570 ;;
16181571 *-dec | vax-*)
1619 os=-ultrix4.2
1572 os=ultrix4.2
16201573 ;;
16211574 m68*-apollo)
1622 os=-domain
1575 os=domain
16231576 ;;
16241577 i386-sun)
1625 os=-sunos4.0.2
1578 os=sunos4.0.2
16261579 ;;
16271580 m68000-sun)
1628 os=-sunos3
1581 os=sunos3
16291582 ;;
16301583 m68*-cisco)
1631 os=-aout
1584 os=aout
16321585 ;;
16331586 mep-*)
1634 os=-elf
1587 os=elf
16351588 ;;
16361589 mips*-cisco)
1637 os=-elf
1590 os=elf
16381591 ;;
16391592 mips*-*)
1640 os=-elf
1593 os=elf
16411594 ;;
16421595 or32-*)
1643 os=-coff
1596 os=coff
16441597 ;;
16451598 *-tti) # must be before sparc entry or we get the wrong os.
1646 os=-sysv3
1599 os=sysv3
16471600 ;;
16481601 sparc-* | *-sun)
1649 os=-sunos4.1.1
1602 os=sunos4.1.1
16501603 ;;
16511604 pru-*)
1652 os=-elf
1605 os=elf
16531606 ;;
16541607 *-be)
1655 os=-beos
1608 os=beos
16561609 ;;
16571610 *-ibm)
1658 os=-aix
1611 os=aix
16591612 ;;
16601613 *-knuth)
1661 os=-mmixware
1614 os=mmixware
16621615 ;;
16631616 *-wec)
1664 os=-proelf
1617 os=proelf
16651618 ;;
16661619 *-winbond)
1667 os=-proelf
1620 os=proelf
16681621 ;;
16691622 *-oki)
1670 os=-proelf
1623 os=proelf
16711624 ;;
16721625 *-hp)
1673 os=-hpux
1626 os=hpux
16741627 ;;
16751628 *-hitachi)
1676 os=-hiux
1629 os=hiux
16771630 ;;
16781631 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1679 os=-sysv
1632 os=sysv
16801633 ;;
16811634 *-cbm)
1682 os=-amigaos
1635 os=amigaos
16831636 ;;
16841637 *-dg)
1685 os=-dgux
1638 os=dgux
16861639 ;;
16871640 *-dolphin)
1688 os=-sysv3
1641 os=sysv3
16891642 ;;
16901643 m68k-ccur)
1691 os=-rtu
1644 os=rtu
16921645 ;;
16931646 m88k-omron*)
1694 os=-luna
1647 os=luna
16951648 ;;
16961649 *-next)
1697 os=-nextstep
1650 os=nextstep
16981651 ;;
16991652 *-sequent)
1700 os=-ptx
1653 os=ptx
17011654 ;;
17021655 *-crds)
1703 os=-unos
1656 os=unos
17041657 ;;
17051658 *-ns)
1706 os=-genix
1659 os=genix
17071660 ;;
17081661 i370-*)
1709 os=-mvs
1662 os=mvs
17101663 ;;
17111664 *-gould)
1712 os=-sysv
1665 os=sysv
17131666 ;;
17141667 *-highlevel)
1715 os=-bsd
1668 os=bsd
17161669 ;;
17171670 *-encore)
1718 os=-bsd
1671 os=bsd
17191672 ;;
17201673 *-sgi)
1721 os=-irix
1674 os=irix
17221675 ;;
17231676 *-siemens)
1724 os=-sysv4
1677 os=sysv4
17251678 ;;
17261679 *-masscomp)
1727 os=-rtu
1680 os=rtu
17281681 ;;
17291682 f30[01]-fujitsu | f700-fujitsu)
1730 os=-uxpv
1683 os=uxpv
17311684 ;;
17321685 *-rom68k)
1733 os=-coff
1686 os=coff
17341687 ;;
17351688 *-*bug)
1736 os=-coff
1689 os=coff
17371690 ;;
17381691 *-apple)
1739 os=-macos
1692 os=macos
17401693 ;;
17411694 *-atari*)
1742 os=-mint
1695 os=mint
1696 ;;
1697 *-wrs)
1698 os=vxworks
17431699 ;;
17441700 *)
1745 os=-none
1701 os=none
17461702 ;;
17471703 esac
17481704 fi
17491705
17501706 # Here we handle the case where we know the os, and the CPU type, but not the
17511707 # manufacturer. We pick the logical manufacturer.
1752 vendor=unknown
1753 case $basic_machine in
1754 *-unknown)
1708 case $vendor in
1709 unknown)
17551710 case $os in
1756 -riscix*)
1711 riscix*)
17571712 vendor=acorn
17581713 ;;
1759 -sunos*)
1714 sunos*)
17601715 vendor=sun
17611716 ;;
1762 -cnk*|-aix*)
1717 cnk*|-aix*)
17631718 vendor=ibm
17641719 ;;
1765 -beos*)
1720 beos*)
17661721 vendor=be
17671722 ;;
1768 -hpux*)
1723 hpux*)
17691724 vendor=hp
17701725 ;;
1771 -mpeix*)
1726 mpeix*)
17721727 vendor=hp
17731728 ;;
1774 -hiux*)
1729 hiux*)
17751730 vendor=hitachi
17761731 ;;
1777 -unos*)
1732 unos*)
17781733 vendor=crds
17791734 ;;
1780 -dgux*)
1735 dgux*)
17811736 vendor=dg
17821737 ;;
1783 -luna*)
1738 luna*)
17841739 vendor=omron
17851740 ;;
1786 -genix*)
1741 genix*)
17871742 vendor=ns
17881743 ;;
1789 -mvs* | -opened*)
1744 clix*)
1745 vendor=intergraph
1746 ;;
1747 mvs* | opened*)
17901748 vendor=ibm
17911749 ;;
1792 -os400*)
1750 os400*)
17931751 vendor=ibm
17941752 ;;
1795 -ptx*)
1753 ptx*)
17961754 vendor=sequent
17971755 ;;
1798 -tpf*)
1756 tpf*)
17991757 vendor=ibm
18001758 ;;
1801 -vxsim* | -vxworks* | -windiss*)
1759 vxsim* | vxworks* | windiss*)
18021760 vendor=wrs
18031761 ;;
1804 -aux*)
1762 aux*)
18051763 vendor=apple
18061764 ;;
1807 -hms*)
1765 hms*)
18081766 vendor=hitachi
18091767 ;;
1810 -mpw* | -macos*)
1768 mpw* | macos*)
18111769 vendor=apple
18121770 ;;
1813 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1771 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
18141772 vendor=atari
18151773 ;;
1816 -vos*)
1774 vos*)
18171775 vendor=stratus
18181776 ;;
18191777 esac
1820 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
18211778 ;;
18221779 esac
18231780
1824 echo "$basic_machine$os"
1781 echo "$cpu-$vendor-$os"
18251782 exit
18261783
18271784 # Local variables:
9191 target_triplet = @target@
9292 subdir = amber
9393 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
94 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl.m4 \
95 $(top_srcdir)/m4macros/eso.m4 $(top_srcdir)/m4macros/gsl.m4 \
96 $(top_srcdir)/m4macros/hdrl.m4 \
94 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl-pipeline.m4 \
95 $(top_srcdir)/m4macros/cpl.m4 $(top_srcdir)/m4macros/eso.m4 \
96 $(top_srcdir)/m4macros/gsl.m4 $(top_srcdir)/m4macros/hdrl.m4 \
9797 $(top_srcdir)/m4macros/libtool.m4 \
9898 $(top_srcdir)/m4macros/ltoptions.m4 \
9999 $(top_srcdir)/m4macros/ltsugar.m4 \
330330 LD = @LD@
331331 LDFLAGS = @LDFLAGS@
332332 LIBAMBER = @LIBAMBER@
333 LIBCEXT = @LIBCEXT@
333334 LIBCFITSIO = @LIBCFITSIO@
334335 LIBCPLCORE = @LIBCPLCORE@
335336 LIBCPLDFS = @LIBCPLDFS@
0 4333c5fd4565d1edbbacccebf0f6f1a20c49b3de
44 COMPONENT_FONT=Dialog:14
55 CUBE_TO_VIEWER=/scisoft/bin/fv
66 CUBE_VIEWER_TYPE=SHELLCOMMAND
7 DATA_FILES=/usr/share/esopipes/datastatic/amber-4.4.0
7 DATA_FILES=/usr/share/esopipes/datastatic/amber-4.4.1
88 DBOBS_DISPLAY_COLUMNS=CLASSIFICATION:RA:DEC:TPL.EXPNO:TPL.NEXP
99 DBOBS_DISPLAY_COLUMNS_SIZE=0:0:0:0:0
1010 DBOBS_INSTRUMENT=All
4040 PRINT_FONT=Monospaced:16
4141 PRINT_ORIENTATION=P
4242 RADEC_CONVERSION=true
43 RECIPE_SET=amber_BeamPos=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_BeamPos.so;amber_SciCal=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_SciCal.so;amber_ascii_export=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_ascii_export.so;amber_detector=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_detector.so;amber_p2vm=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_p2vm.so;amber_raw_to_fitsimage=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_raw_to_fitsimage.so;amber_selector=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_selector.so;amber_trf=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_trf.so;amber_calibrate=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_calibrate.so;amber_oimerge=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_oimerge.so;amber_spectral_calibration=/usr/lib64/esopipes-plugins/amber-4.4.0/amber_spectral_calibration.so
43 RECIPE_SET=amber_BeamPos=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_BeamPos.so;amber_SciCal=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_SciCal.so;amber_ascii_export=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_ascii_export.so;amber_detector=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_detector.so;amber_p2vm=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_p2vm.so;amber_raw_to_fitsimage=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_raw_to_fitsimage.so;amber_selector=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_selector.so;amber_trf=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_trf.so;amber_calibrate=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_calibrate.so;amber_oimerge=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_oimerge.so;amber_spectral_calibration=/usr/lib64/esopipes-plugins/amber-4.4.1/amber_spectral_calibration.so
4444 SCRIPTS_DIR=/home/astrov/gasgano/scripts/amber
4545 SHORTEN_FILES_PATH=false
4646 SHORT_FILENAME=true
2222
2323 /* Absolute path to the plugin directory tree */
2424 #undef AMBER_PLUGIN_PATH
25
26 /* used version of CFITSIO */
27 #undef CPL_CFITSIO_VERSION
2528
2629 /* Defined if FFTW (single precision) is available */
2730 #undef CPL_FFTWF_INSTALLED
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for AMBER Instrument Pipeline 4.4.0.
2 # Generated by GNU Autoconf 2.69 for AMBER Instrument Pipeline 4.4.1.
33 #
44 # Report bugs to <usd-help@eso.org>.
55 #
565565
566566 SHELL=${CONFIG_SHELL-/bin/sh}
567567
568 as_awk_strverscmp='
569 # Use only awk features that work with 7th edition Unix awk (1978).
570 # My, what an old awk you have, Mr. Solaris!
571 END {
572 while (length(v1) && length(v2)) {
573 # Set d1 to be the next thing to compare from v1, and likewise for d2.
574 # Normally this is a single character, but if v1 and v2 contain digits,
575 # compare them as integers and fractions as strverscmp does.
576 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
577 # Split v1 and v2 into their leading digit string components d1 and d2,
578 # and advance v1 and v2 past the leading digit strings.
579 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
580 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
581 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
582 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
583 if (d1 ~ /^0/) {
584 if (d2 ~ /^0/) {
585 # Compare two fractions.
586 while (d1 ~ /^0/ && d2 ~ /^0/) {
587 d1 = substr(d1, 2); len1--
588 d2 = substr(d2, 2); len2--
589 }
590 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
591 # The two components differ in length, and the common prefix
592 # contains only leading zeros. Consider the longer to be less.
593 d1 = -len1
594 d2 = -len2
595 } else {
596 # Otherwise, compare as strings.
597 d1 = "x" d1
598 d2 = "x" d2
599 }
600 } else {
601 # A fraction is less than an integer.
602 exit 1
603 }
604 } else {
605 if (d2 ~ /^0/) {
606 # An integer is greater than a fraction.
607 exit 2
608 } else {
609 # Compare two integers.
610 d1 += 0
611 d2 += 0
612 }
613 }
614 } else {
615 # The normal case, without worrying about digits.
616 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
617 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
618 }
619 if (d1 < d2) exit 1
620 if (d1 > d2) exit 2
621 }
622 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
623 # which mishandles some comparisons of empty strings to integers.
624 if (length(v2)) exit 1
625 if (length(v1)) exit 2
626 }
627 '
568628
569629 test -n "$DJDIR" || exec 7<&0 </dev/null
570630 exec 6>&1
589649 # Identity of this package.
590650 PACKAGE_NAME='AMBER Instrument Pipeline'
591651 PACKAGE_TARNAME='amber'
592 PACKAGE_VERSION='4.4.0'
593 PACKAGE_STRING='AMBER Instrument Pipeline 4.4.0'
652 PACKAGE_VERSION='4.4.1'
653 PACKAGE_STRING='AMBER Instrument Pipeline 4.4.1'
594654 PACKAGE_BUGREPORT='usd-help@eso.org'
595655 PACKAGE_URL=''
596656
640700 PRODUCT_DID
641701 all_ldflags
642702 all_includes
703 CPL_CFLAGS
643704 LIBAMBER
644705 AMBER_LDFLAGS
645706 AMBER_INCLUDES
674735 CFITSIODIR
675736 LIBPTHREAD
676737 PTHREAD_CFLAGS
677 CPL_LDFLAGS
678 CPL_CFLAGS
679 CPL_INCLUDES
738 LIBCEXT
680739 LIBCPLDFS
681740 LIBCPLUI
682741 LIBCPLDRS
683742 LIBCPLCORE
743 CPL_LDFLAGS
744 CPL_INCLUDES
684745 LIBTOOL_DEPS
685746 LT_SYS_LIBRARY_PATH
686747 OTOOL64
14081469 # Omit some internal or obsolete options to make the list less imposing.
14091470 # This message is too long to be a string in the A/UX 3.1 sh.
14101471 cat <<_ACEOF
1411 \`configure' configures AMBER Instrument Pipeline 4.4.0 to adapt to many kinds of systems.
1472 \`configure' configures AMBER Instrument Pipeline 4.4.1 to adapt to many kinds of systems.
14121473
14131474 Usage: $0 [OPTION]... [VAR=VALUE]...
14141475
14791540
14801541 if test -n "$ac_init_help"; then
14811542 case $ac_init_help in
1482 short | recursive ) echo "Configuration of AMBER Instrument Pipeline 4.4.0:";;
1543 short | recursive ) echo "Configuration of AMBER Instrument Pipeline 4.4.1:";;
14831544 esac
14841545 cat <<\_ACEOF
14851546
16211682 test -n "$ac_init_help" && exit $ac_status
16221683 if $ac_init_version; then
16231684 cat <<\_ACEOF
1624 AMBER Instrument Pipeline configure 4.4.0
1685 AMBER Instrument Pipeline configure 4.4.1
16251686 generated by GNU Autoconf 2.69
16261687
16271688 Copyright (C) 2012 Free Software Foundation, Inc.
20322093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20332094
20342095 } # ac_fn_c_check_decl
2096
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2101 # computed
2102 ac_fn_c_compute_int ()
2103 {
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2114 test_array [0] = 0;
2115 return test_array [0];
2116
2117 ;
2118 return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_lo=0 ac_mid=0
2123 while :; do
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2131 test_array [0] = 0;
2132 return test_array [0];
2133
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_hi=$ac_mid; break
2140 else
2141 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2142 if test $ac_lo -le $ac_mid; then
2143 ac_lo= ac_hi=
2144 break
2145 fi
2146 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 done
2150 else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 $4
2154 int
2155 main ()
2156 {
2157 static int test_array [1 - 2 * !(($2) < 0)];
2158 test_array [0] = 0;
2159 return test_array [0];
2160
2161 ;
2162 return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_hi=-1 ac_mid=-1
2167 while :; do
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2175 test_array [0] = 0;
2176 return test_array [0];
2177
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_lo=$ac_mid; break
2184 else
2185 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2186 if test $ac_mid -le $ac_hi; then
2187 ac_lo= ac_hi=
2188 break
2189 fi
2190 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 done
2194 else
2195 ac_lo= ac_hi=
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 # Binary search between lo and hi bounds.
2201 while test "x$ac_lo" != "x$ac_hi"; do
2202 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 $4
2206 int
2207 main ()
2208 {
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 test_array [0] = 0;
2211 return test_array [0];
2212
2213 ;
2214 return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_hi=$ac_mid
2219 else
2220 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 done
2224 case $ac_lo in #((
2225 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2226 '') ac_retval=1 ;;
2227 esac
2228 else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $4
2232 static long int longval () { return $2; }
2233 static unsigned long int ulongval () { return $2; }
2234 #include <stdio.h>
2235 #include <stdlib.h>
2236 int
2237 main ()
2238 {
2239
2240 FILE *f = fopen ("conftest.val", "w");
2241 if (! f)
2242 return 1;
2243 if (($2) < 0)
2244 {
2245 long int i = longval ();
2246 if (i != ($2))
2247 return 1;
2248 fprintf (f, "%ld", i);
2249 }
2250 else
2251 {
2252 unsigned long int i = ulongval ();
2253 if (i != ($2))
2254 return 1;
2255 fprintf (f, "%lu", i);
2256 }
2257 /* Do not output a trailing newline, as this causes \r\n confusion
2258 on some platforms. */
2259 return ferror (f) || fclose (f) != 0;
2260
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_run "$LINENO"; then :
2266 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2267 else
2268 ac_retval=1
2269 fi
2270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2271 conftest.$ac_objext conftest.beam conftest.$ac_ext
2272 rm -f conftest.val
2273
2274 fi
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 as_fn_set_status $ac_retval
2277
2278 } # ac_fn_c_compute_int
20352279 cat >config.log <<_ACEOF
20362280 This file contains any messages produced by compilers while
20372281 running configure, to aid debugging if configure makes a mistake.
20382282
2039 It was created by AMBER Instrument Pipeline $as_me 4.4.0, which was
2283 It was created by AMBER Instrument Pipeline $as_me 4.4.1, which was
20402284 generated by GNU Autoconf 2.69. Invocation command line was
20412285
20422286 $ $0 $@
30143258
30153259 # Define the identity of the package.
30163260 PACKAGE='amber'
3017 VERSION='4.4.0'
3261 VERSION='4.4.1'
30183262
30193263
30203264 cat >>confdefs.h <<_ACEOF
1354913793
1355013794
1355113795
13552 cpl_check_version=""
13553 cpl_check_header="cpl.h"
13554 cpl_check_libraries="-lcplcore"
13555
13556 cpl_pkgconfig="cpl"
13557
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPL" >&5
13797 $as_echo_n "checking for CPL... " >&6; }
13798
13799 # assumes if one is there all are there as there is no way to do a partial
13800 # install with cpl
13801 cpl_check_cpl_lib="-lcplcore"
13802
13803 cpl_includes=""
13804 cpl_ldflags=""
1355813805
1355913806
1356013807 # Check whether --with-cpl was given.
1356113808 if test "${with_cpl+set}" = set; then :
1356213809 withval=$with_cpl;
13563 cpl_with_cpl=$withval
13810 cpl_with_cpl_includes=$withval/include
13811 # opensuse defaults also non systems installations to lib64 ...
13812 cpl_with_cpl_libs="-L$withval/lib -L$withval/lib64 -L$withval/lib32"
1356413813
1356513814 fi
1356613815
1357513824
1357613825 # Check whether --with-cpl-libs was given.
1357713826 if test "${with_cpl_libs+set}" = set; then :
13578 withval=$with_cpl_libs; cpl_with_cpl_libs=$withval
13827 withval=$with_cpl_libs; cpl_with_cpl_libs=-L$withval
1357913828 fi
1358013829
1358113830
1358813837
1358913838
1359013839
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPL" >&5
13592 $as_echo_n "checking for CPL... " >&6; }
13593
1359413840 if test "x$cpl_enable_cpl_test" = xyes; then
1359513841
13596 # Initially assume a standard system installation of the
13597 # package. This may then be updated by the following checks.
13598
13599 cpl_libs="$cpl_check_libraries"
13600 cpl_cflags="-I/usr/include/cpl -I/usr/include"
13601 cpl_ldflags=""
13602
13603 if test -n "${PKGCONFIG}"; then
13604
13605 $PKGCONFIG --exists $cpl_pkgconfig
13606
13607 if test x$? = x0; then
13608 cpl_cflags="`$PKGCONFIG --cflags $cpl_pkgconfig`"
13609 cpl_ldflags="`$PKGCONFIG --libs-only-L $cpl_pkgconfig`"
13610 cpl_libs="`$PKGCONFIG --libs-only-l $cpl_pkgconfig`"
13611 fi
13612
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for cpl" >&5
13843 $as_echo_n "checking checking for cpl... " >&6; }
13844 save_LDFLAGS="$LDFLAGS"
13845 save_LIBS="$LIBS"
13846 save_CFLAGS="$CFLAGS"
13847 if test -n "$cpl_with_cpl_libs"; then
13848 LDFLAGS="$cpl_with_cpl_libs"
13849 elif test -n "$CPLDIR"; then
13850 LDFLAGS="-L$CPLDIR/lib -L$CPLDIR/lib64 -L$CPLDIR/lib32"
13851 else
13852 LDFLAGS=""
1361313853 fi
13614
13615 # Directories given as arguments replace a standard system installation
13616 # setup if they are given.
13617
13618 if test -n "$CPLDIR"; then
13619 cpl_cflags="-I$CPLDIR/include/cpl -I$CPLDIR/include"
13620 cpl_ldflags="-L$CPLDIR/lib64 -L$CPLDIR/lib"
13854 if test -n "$cpl_with_cpl_includes"; then
13855 CFLAGS="-I$cpl_with_cpl_includes"
13856 elif test -n "$CPLDIR"; then
13857 CFLAGS="-I$CPLDIR/include"
13858 else
13859 CFLAGS=""
1362113860 fi
13622
13623 if test -n "$cpl_with_cpl"; then
13624 cpl_cflags="-I$cpl_with_cpl/include/cpl -I$cpl_with_cpl/include"
13625 cpl_ldflags="-L$cpl_with_cpl/lib64 -L$cpl_with_cpl/lib"
13626 fi
13627
13628 if test -n "$cpl_with_cpl_includes"; then
13629 cpl_cflags="-I$cpl_with_cpl_includes"
13630 fi
13631
13632 if test -n "$cpl_with_cpl_libs"; then
13633 cpl_ldflags="-L$cpl_with_cpl_libs"
13634 fi
13635
13636 # Check whether the header files and the library are present and
13637 # whether they can be used.
13638
13639 cpl_have_libraries="no"
13640 cpl_have_headers="no"
13641
13642 ac_ext=c
13643 ac_cpp='$CPP $CPPFLAGS'
13644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13647
13648
13649 cpl_cflags_save="$CFLAGS"
13650 cpl_ldflags_save="$LDFLAGS"
13651 cpl_libs_save="$LIBS"
13652
13653 CFLAGS="$cpl_cflags"
13654 LDFLAGS="$cpl_ldflags"
13655 LIBS="$cpl_libs"
13861 LIBS=$cpl_check_cpl_lib
1365613862
1365713863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1365813864 /* end confdefs.h. */
13659
13660 #include <$cpl_check_header>
13661
13865 #include <cpl.h>
1366213866 int
1366313867 main ()
1366413868 {
13665
13666 cpl_image *image;
13667
13668 ;
13669 return 0;
13670 }
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673
13674 cpl_have_headers="yes"
13675
13676 else
13677
13678 cpl_have_headers="no"
13679
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685
13686
13687 int
13688 main ()
13689 {
13690
13691 cpl_init(0);
13692
13869 cpl_init(0);
1369313870 ;
1369413871 return 0;
1369513872 }
1369613873 _ACEOF
1369713874 if ac_fn_c_try_link "$LINENO"; then :
1369813875
13699 cpl_have_libraries="yes"
13700
13701 else
13702
13703 cpl_have_libraries="no"
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13877 $as_echo "yes" >&6; }
13878 cpl_includes=$CFLAGS
13879 cpl_ldflags=$LDFLAGS
13880
13881 else
13882
13883 as_fn_error $? "CPL not found" "$LINENO" 5
1370413884
1370513885 fi
1370613886 rm -f core conftest.err conftest.$ac_objext \
1370713887 conftest$ac_exeext conftest.$ac_ext
1370813888
13709 ac_ext=c
13710 ac_cpp='$CPP $CPPFLAGS'
13711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13714
13715
13716 CFLAGS="$cpl_cflags_save"
13717 LDFLAGS="$cpl_ldflags_save"
13718 LIBS="$cpl_libs_save"
13719
13720 if test x"$cpl_have_libraries" = xno || \
13721 test x"$cpl_have_headers" = xno; then
13722 cpl_notfound=""
13723
13724 if test x"$cpl_have_headers" = xno; then
13725 if test x"$cpl_have_libraries" = xno; then
13726 cpl_notfound="(headers and libraries)"
13727 else
13728 cpl_notfound="(headers)"
13729 fi
13730 else
13731 cpl_notfound="(libraries)"
13732 fi
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13736 as_fn_error $? "CPL $cpl_notfound was not found on your system." "$LINENO" 5
13737
13738 else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13740 $as_echo "yes" >&6; }
13741
13742 CPL_INCLUDES="$cpl_cflags"
13743 CPL_CFLAGS="$cpl_cflags"
13744 CPL_LDFLAGS="$cpl_ldflags"
13745
13746
13747 if test -z ""; then
13889 # Set up the symbols
13890
13891 CPL_INCLUDES="$cpl_includes"
13892 CPL_LDFLAGS="$cpl_ldflags"
13893 LDFLAGS="$save_LDFLAGS"
13894 LIBS="$save_LIBS"
13895 CFLAGS="$save_CFLAGS"
13896
1374813897 LIBCPLCORE='-lcplcore'
1374913898 LIBCPLDRS='-lcpldrs'
1375013899 LIBCPLUI='-lcplui'
1375113900 LIBCPLDFS='-lcpldfs'
13901 LIBCEXT='-lcext'
1375213902 else
13753 LIBCPLCORE='$(top_builddir)/cplcore/libcplcore.la'
13754 LIBCPLDRS='$(top_builddir)/cpldrs/libcpldrs.la'
13755 LIBCPLUI='$(top_builddir)/cplui/libcplui.la'
13756 LIBCPLDFS='$(top_builddir)/cpldfs/libcpldfs.la'
13757 fi
13758
13759
13760
13761
13762
13763
13764
13765
13766 if test -n "$cpl_check_version"; then
13767
13768 # Check library version
13769
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a cpl version >= $cpl_check_version" >&5
13771 $as_echo_n "checking for a cpl version >= $cpl_check_version... " >&6; }
13772
13773 ac_ext=c
13774 ac_cpp='$CPP $CPPFLAGS'
13775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13778
13779
13780 cpl_cflags_save="$CFLAGS"
13781 cpl_ldflags_save="$LDFLAGS"
13782 cpl_libs_save="$LIBS"
13783
13784 CFLAGS="$CPL_CFLAGS"
13785 LDFLAGS="$CPL_LDFLAGS"
13786 LIBS="$LIBCPLCORE"
13787
13788 if test "$cross_compiling" = yes; then :
13789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13791 as_fn_error $? "cannot run test program while cross compiling
13792 See \`config.log' for more details" "$LINENO" 5; }
13793 else
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796
13797 #include <stdio.h>
13798 #include <cpl.h>
13799
13800 #define stringify(v) stringify_arg(v)
13801 #define stringify_arg(v) #v
13802
13803 int
13804 main ()
13805 {
13806
13807 char vmin[] = "$cpl_check_version";
13808 char vlib[] = CPL_VERSION_STRING;
13809
13810 int min_major = 0;
13811 int min_minor = 0;
13812 int min_micro = 0;
13813
13814 int lib_major = 0;
13815 int lib_minor = 0;
13816 int lib_micro = 0;
13817
13818 sscanf(vmin, "%d.%d.%d", &min_major, &min_minor, &min_micro);
13819 sscanf(vlib, "%d.%d.%d", &lib_major, &lib_minor, &lib_micro);
13820
13821 FILE *f = fopen("conftest.out", "w");
13822 fprintf(f, "%s\n", vlib);
13823 fclose(f);
13824
13825 if (lib_major < min_major) {
13826 return 1;
13827 }
13828 else {
13829 if (lib_major == min_major) {
13830 if (lib_minor < min_minor) {
13831 return 1;
13832 }
13833 else {
13834 if (lib_minor == min_minor) {
13835 if (lib_micro < min_micro) {
13836 return 1;
13837 }
13838 }
13839 }
13840 }
13841 }
13842
13843 return 0;
13844
13845 ;
13846 return 0;
13847 }
13848 _ACEOF
13849 if ac_fn_c_try_run "$LINENO"; then :
13850
13851 cpl_version="`cat conftest.out`";
13852 rm -f conftest.out
13853
13854 else
13855
13856 cpl_version="no";
13857 cpl_version_found="unknown";
13858 test -r conftest.out && cpl_version_found="`cat conftest.out`";
13859 rm -f conftest.out
13860
13861 fi
13862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13863 conftest.$ac_objext conftest.beam conftest.$ac_ext
13864 fi
13865
13866
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpl_version" >&5
13868 $as_echo "$cpl_version" >&6; }
13869
13870 ac_ext=c
13871 ac_cpp='$CPP $CPPFLAGS'
13872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13875
13876
13877 CFLAGS="$cpl_cflags_save"
13878 LDFLAGS="$cpl_ldflags_save"
13879 LIBS="$cpl_libs_save"
13880
13881
13882 if test x"$cpl_version" = xno; then
13883
13884 as_fn_error $? "Installed CPL ($cpl_version_found) is too old" "$LINENO" 5
13885
13886 CPL_INCLUDES=""
13887 CPL_CFLAGS=""
13888 CPL_LDFLAGS=""
13889
13890 LIBCPLCORE=""
13891 LIBCPLDRS=""
13892 LIBCPLUI=""
13893 LIBCPLDFS=""
13894
13895 fi
13896
13897 fi
13898
13899 fi
13900
13901 else
13902
1390313903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
1390413904 $as_echo "disabled" >&6; }
1390513905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CPL checks have been disabled! This package may not build!" >&5
1390613906 $as_echo "$as_me: WARNING: CPL checks have been disabled! This package may not build!" >&2;}
13907
1390813907 CPL_INCLUDES=""
13909 CPL_CFLAGS=""
1391013908 CPL_LDFLAGS=""
13911
1391213909 LIBCPLCORE=""
1391313910 LIBCPLDRS=""
1391413911 LIBCPLUI=""
1391513912 LIBCPLDFS=""
13916
13913 LIBCEXT=""
1391713914 fi
13918
13919
1392013915
1392113916
1392213917
1429814293
1429914294
1430014295
14301 cpl_cfitsio_check_version="3.310"
14296 cpl_cfitsio_check_version="3.31"
1430214297 cpl_cfitsio_check_header="fitsio.h"
1430314298 cpl_cfitsio_check_libraries="-lcfitsio -lpthread -lm "
1430414299
1434214337
1434314338
1434414339
14345 if test "x$cpl_enable_cfitsio_test" = xyes; then
14340 if test x"$cpl_enable_cfitsio_test" = xyes; then
1434614341
1434714342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfitsio" >&5
1434814343 $as_echo_n "checking for cfitsio... " >&6; }
1438514380 # Check whether the header files and the library are present and
1438614381 # whether they can be used.
1438714382
14388 cpl_have_cfitsio_libraries="no"
14389 cpl_have_cfitsio_headers="no"
14383 cpl_have_cfitsio_libraries="unknown"
14384 cpl_have_cfitsio_headers="unknown"
1439014385
1439114386 ac_ext=c
1439214387 ac_cpp='$CPP $CPPFLAGS'
1442914424 fi
1443014425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1443114426
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 if test x"$cpl_have_cfitsio_headers" = xyes; then
14428
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1443314430 /* end confdefs.h. */
1443414431
14432 #include <$cpl_cfitsio_check_header>
1443514433
1443614434 int
1443714435 main ()
1443814436 {
1443914437
14440 float v;
14441 ffvers(&v);
14438 float v;
14439 ffvers(&v);
1444214440
1444314441 ;
1444414442 return 0;
1444614444 _ACEOF
1444714445 if ac_fn_c_try_link "$LINENO"; then :
1444814446
14449 cpl_have_cfitsio_libraries="yes"
14450
14451 else
14452
14453 cpl_have_cfitsio_libraries="no"
14447 cpl_have_cfitsio_libraries="yes"
14448
14449 else
14450
14451 cpl_have_cfitsio_libraries="no"
1445414452
1445514453 fi
1445614454 rm -f core conftest.err conftest.$ac_objext \
1445714455 conftest$ac_exeext conftest.$ac_ext
14456
14457 fi
1445814458
1445914459 ac_ext=c
1446014460 ac_cpp='$CPP $CPPFLAGS'
1450414504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a cfitsio version >= $cpl_cfitsio_check_version" >&5
1450514505 $as_echo_n "checking for a cfitsio version >= $cpl_cfitsio_check_version... " >&6; }
1450614506
14507 ac_ext=c
14508 ac_cpp='$CPP $CPPFLAGS'
14509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14512
14513
1451414507 cpl_cfitsio_cflags_save="$CFLAGS"
1451514508 cpl_cfitsio_ldflags_save="$LDFLAGS"
1451614509 cpl_cfitsio_libs_save="$LIBS"
1451714510
14518 CFLAGS="$CFITSIO_CFLAGS"
14511 # AC_COMPUTE_INT internally runs a test program and thus depents on the
14512 # current runtime environment configuration! Since the following test for
14513 # checking the version number only needs the CFITSIO headers and not the
14514 # library make sure that the generated test does not depend on it. Leaving
14515 # the library dependency in place here can actually make the test fail
14516 # if the library is not found in the library search path!
14517
14518 CFLAGS="$CFITSIO_INCLUDES"
1451914519 LDFLAGS="$CFITSIO_LDFLAGS"
14520 LIBS="$LIBCFITSIO"
14521
14522 if test "$cross_compiling" = yes; then :
14523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14525 as_fn_error $? "cannot run test program while cross compiling
14526 See \`config.log' for more details" "$LINENO" 5; }
14527 else
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530
14531 #include <stdio.h>
14532 #include <fitsio.h>
14533
14534 int
14535 main ()
14536 {
14537
14538 int vlib = 0;
14539 int vmin = (int)(1000. * $cpl_cfitsio_check_version + 0.5);
14540
14541 float v = CFITSIO_VERSION;
14542
14543 vlib = (int)(v * 1000 + 0.5);
14544
14545 FILE* f = fopen("conftest.out", "w");
14546 fprintf(f, "%5.3f\n", v);
14547 fclose(f);
14548
14549 if (vlib < vmin) {
14550 return 1;
14551 }
14552
14553 return 0;
14554
14555 ;
14556 return 0;
14557 }
14558 _ACEOF
14559 if ac_fn_c_try_run "$LINENO"; then :
14560
14561 cpl_cfitsio_version="`cat conftest.out`";
14562 rm -f conftest.out
14563
14564 else
14565
14566 cpl_cfitsio_version="no";
14567 cpl_cfitsio_version_found="unknown";
14568 test -r conftest.out && cpl_cfitsio_version_found="`cat conftest.out`";
14569 rm -f conftest.out
14570
14571 fi
14572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14573 conftest.$ac_objext conftest.beam conftest.$ac_ext
14574 fi
14575
14576
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpl_cfitsio_version" >&5
14578 $as_echo "$cpl_cfitsio_version" >&6; }
14579
14580 ac_ext=c
14581 ac_cpp='$CPP $CPPFLAGS'
14582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14585
14520 LIBS=""
14521
14522 cpl_cfitsio_version=""
14523 if ac_fn_c_compute_int "$LINENO" "CFITSIO_MAJOR" "cpl_cfitsio_major" "#include <fitsio.h>"; then :
14524
14525 else
14526 cpl_cfitsio_version="no"
14527 fi
14528
14529 if ac_fn_c_compute_int "$LINENO" "CFITSIO_MINOR" "cpl_cfitsio_minor" "#include <fitsio.h>"; then :
14530
14531 else
14532 cpl_cfitsio_version="no"
14533 fi
14534
14535 if test x"$cpl_cfitsio_version" = xno; then :
14536 cpl_cfitsio_version_found="unknown"
14537 else
14538 cpl_cfitsio_version_found="$cpl_cfitsio_major.$cpl_cfitsio_minor"
14539 fi
1458614540
1458714541 CFLAGS="$cpl_cfitsio_cflags_save"
1458814542 LDFLAGS="$cpl_cfitsio_ldflags_save"
1458914543 LIBS="$cpl_cfitsio_libs_save"
1459014544
14591
1459214545 if test x"$cpl_cfitsio_version" = xno; then
14593
14594 as_fn_error $? "Installed cfitsio ($cpl_cfitsio_version_found) is too old" "$LINENO" 5
1459514546
1459614547 CFITSIO_INCLUDES=""
1459714548 CFITSIO_CFLAGS=""
1459814549 CFITSIO_LDFLAGS=""
1459914550 LIBCFITSIO=""
1460014551
14552 as_fn_error $? "cannot determine cfitsio version!" "$LINENO" 5
14553
14554 else
14555 as_arg_v1=$cpl_cfitsio_check_version
14556 as_arg_v2=$cpl_cfitsio_version_found
14557 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14558 case $? in #(
14559 1) :
14560 ;; #(
14561 0) :
14562 ;; #(
14563 2) :
14564 cpl_cfitsio_version="no" ;; #(
14565 *) :
14566 ;;
14567 esac
14568
14569 if test x"$cpl_cfitsio_version" = xno; then
14570 as_fn_error $? "installed cfitsio ($cpl_cfitsio_version_found) is too old" "$LINENO" 5
14571 else
14572
14573 cat >>confdefs.h <<_ACEOF
14574 #define CPL_CFITSIO_VERSION $cpl_cfitsio_version_found
14575 _ACEOF
14576
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpl_cfitsio_version_found" >&5
14578 $as_echo "$cpl_cfitsio_version_found" >&6; }
14579
14580 fi
1460114581 fi
1460214582
1460314583 fi
1493714917 # Check whether the header files and the library are present and
1493814918 # whether they can be used.
1493914919
14940 cpl_have_fftw_libraries="no"
14941 cpl_have_fftw_headers="no"
14920 cpl_have_fftw_libraries="unknown"
14921 cpl_have_fftw_headers="unknown"
1494214922
1494314923 ac_ext=c
1494414924 ac_cpp='$CPP $CPPFLAGS'
1498114961 fi
1498214962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1498314963
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 if test x"$cpl_have_fftw_headers" = xyes; then
14965
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1498514967 /* end confdefs.h. */
1498614968
14969 #include <$cpl_fftw_check_header>
1498714970
1498814971 int
1498914972 main ()
1499014973 {
1499114974
14992 fftw_plan_dft_1d(0, (void *)0, (void *)0, 0, 0);
14975 fftw_plan_dft_1d(0, (void *)0, (void *)0, 0, 0);
1499314976
1499414977 ;
1499514978 return 0;
1499714980 _ACEOF
1499814981 if ac_fn_c_try_link "$LINENO"; then :
1499914982
15000 cpl_have_fftw_libraries="yes"
15001
15002 else
15003
15004 cpl_have_fftw_libraries="no"
14983 cpl_have_fftw_libraries="yes"
14984
14985 else
14986
14987 cpl_have_fftw_libraries="no"
1500514988
1500614989 fi
1500714990 rm -f core conftest.err conftest.$ac_objext \
1500814991 conftest$ac_exeext conftest.$ac_ext
14992
14993 fi
1500914994
1501014995 ac_ext=c
1501114996 ac_cpp='$CPP $CPPFLAGS'
1524815233 # Check whether the header files and the library are present and
1524915234 # whether they can be used.
1525015235
15251 cpl_have_fftw_libraries="no"
15252 cpl_have_fftw_headers="no"
15236 cpl_have_fftw_libraries="unknown"
15237 cpl_have_fftw_headers="unknown"
1525315238
1525415239 ac_ext=c
1525515240 ac_cpp='$CPP $CPPFLAGS'
1529215277 fi
1529315278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1529415279
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 if test x"$cpl_have_fftw_headers" = xyes; then
15281
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529615283 /* end confdefs.h. */
1529715284
15285 #include <$cpl_fftw_check_header>
1529815286
1529915287 int
1530015288 main ()
1530115289 {
1530215290
15303 fftwf_plan_dft_1d(0, (void *)0, (void *)0, 0, 0);
15291 fftwf_plan_dft_1d(0, (void *)0, (void *)0, 0, 0);
1530415292
1530515293 ;
1530615294 return 0;
1530815296 _ACEOF
1530915297 if ac_fn_c_try_link "$LINENO"; then :
1531015298
15311 cpl_have_fftw_libraries="yes"
15312
15313 else
15314
15315 cpl_have_fftw_libraries="no"
15299 cpl_have_fftw_libraries="yes"
15300
15301 else
15302
15303 cpl_have_fftw_libraries="no"
1531615304
1531715305 fi
1531815306 rm -f core conftest.err conftest.$ac_objext \
1531915307 conftest$ac_exeext conftest.$ac_ext
15308
15309 fi
1532015310
1532115311 ac_ext=c
1532215312 ac_cpp='$CPP $CPPFLAGS'
1574215732 cat >>confdefs.h <<_ACEOF
1574315733 #define AMBER_PLUGIN_PATH "$plugin_path"
1574415734 _ACEOF
15735
15736
15737
15738
15739
15740 cpl_check_version=""
15741 cpl_check_header="cpl.h"
15742 cpl_check_libraries="-lcplcore"
15743
15744 cpl_pkgconfig="cpl"
15745
15746
15747
15748 # Check whether --with-cpl was given.
15749 if test "${with_cpl+set}" = set; then :
15750 withval=$with_cpl; cpl_with_cpl=$withval
15751 else
15752 cpl_with_cpl=""
15753 fi
15754
15755
15756
15757 # Check whether --with-cpl-includes was given.
15758 if test "${with_cpl_includes+set}" = set; then :
15759 withval=$with_cpl_includes; cpl_with_cpl_includes=$withval
15760 else
15761 cpl_with_cpl_includes=""
15762
15763 fi
15764
15765
15766
15767 # Check whether --with-cpl-libs was given.
15768 if test "${with_cpl_libs+set}" = set; then :
15769 withval=$with_cpl_libs; cpl_with_cpl_libs=$withval
15770 else
15771 cpl_with_cpl_libs=""
15772 fi
15773
15774
15775 # Check whether --enable-cpl-test was given.
15776 if test "${enable_cpl_test+set}" = set; then :
15777 enableval=$enable_cpl_test; cpl_enable_cpl_test=$enableval
15778 else
15779 cpl_enable_cpl_test=yes
15780 fi
15781
15782
15783
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPL" >&5
15785 $as_echo_n "checking for CPL... " >&6; }
15786
15787 if test x"$cpl_enable_cpl_test" = xyes; then
15788
15789 # Initially assume a standard system installation of the
15790 # package. This may then be updated by the following checks.
15791
15792 cpl_libs="$cpl_check_libraries"
15793 cpl_cflags="-I/usr/include/cpl -I/usr/include"
15794 cpl_ldflags=""
15795
15796 if test -n "${PKGCONFIG}"; then
15797
15798 $PKGCONFIG --exists $cpl_pkgconfig
15799
15800 if test x$? = x0; then
15801 cpl_cflags="`$PKGCONFIG --cflags $cpl_pkgconfig`"
15802 cpl_ldflags="`$PKGCONFIG --libs-only-L $cpl_pkgconfig`"
15803 cpl_libs="`$PKGCONFIG --libs-only-l $cpl_pkgconfig`"
15804 fi
15805
15806 fi
15807
15808 # Directories given as arguments replace a standard system installation
15809 # setup if they are given.
15810
15811 if test -n "$CPLDIR"; then
15812 cpl_cflags="-I$CPLDIR/include/cpl -I$CPLDIR/include"
15813 cpl_ldflags="-L$CPLDIR/lib64 -L$CPLDIR/lib"
15814 fi
15815
15816 if test -n "$cpl_with_cpl"; then
15817 cpl_cflags="-I$cpl_with_cpl/include/cpl -I$cpl_with_cpl/include"
15818 cpl_ldflags="-L$cpl_with_cpl/lib64 -L$cpl_with_cpl/lib"
15819 fi
15820
15821 if test -n "$cpl_with_cpl_includes"; then
15822 cpl_cflags="-I$cpl_with_cpl_includes"
15823 fi
15824
15825 if test -n "$cpl_with_cpl_libs"; then
15826 cpl_ldflags="-L$cpl_with_cpl_libs"
15827 fi
15828
15829 # Check whether the header files and the library are present and
15830 # whether they can be used.
15831
15832 cpl_have_libraries="unknown"
15833 cpl_have_headers="unknown"
15834
15835 ac_ext=c
15836 ac_cpp='$CPP $CPPFLAGS'
15837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15840
15841
15842 cpl_cflags_save="$CFLAGS"
15843 cpl_ldflags_save="$LDFLAGS"
15844 cpl_libs_save="$LIBS"
15845
15846 CFLAGS="$cpl_cflags"
15847 LDFLAGS="$cpl_ldflags"
15848 LIBS="$cpl_libs"
15849
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852
15853 #include <$cpl_check_header>
15854
15855 int
15856 main ()
15857 {
15858
15859 cpl_image *image;
15860
15861 ;
15862 return 0;
15863 }
15864 _ACEOF
15865 if ac_fn_c_try_compile "$LINENO"; then :
15866
15867 cpl_have_headers="yes"
15868
15869 else
15870
15871 cpl_have_headers="no"
15872
15873 fi
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875
15876 if test x"$cpl_have_headers" = xyes; then
15877
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880
15881 #include <$cpl_check_header>
15882
15883 int
15884 main ()
15885 {
15886
15887 cpl_init(0);
15888
15889 ;
15890 return 0;
15891 }
15892 _ACEOF
15893 if ac_fn_c_try_link "$LINENO"; then :
15894
15895 cpl_have_libraries="yes"
15896
15897 else
15898
15899 cpl_have_libraries="no"
15900
15901 fi
15902 rm -f core conftest.err conftest.$ac_objext \
15903 conftest$ac_exeext conftest.$ac_ext
15904
15905 fi
15906
15907 ac_ext=c
15908 ac_cpp='$CPP $CPPFLAGS'
15909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15912
15913
15914 CFLAGS="$cpl_cflags_save"
15915 LDFLAGS="$cpl_ldflags_save"
15916 LIBS="$cpl_libs_save"
15917
15918 if test x"$cpl_have_libraries" = xno || \
15919 test x"$cpl_have_headers" = xno; then
15920 cpl_notfound=""
15921
15922 if test x"$cpl_have_headers" = xno; then
15923 if test x"$cpl_have_libraries" = xno; then
15924 cpl_notfound="(headers and libraries)"
15925 else
15926 cpl_notfound="(headers)"
15927 fi
15928 else
15929 cpl_notfound="(libraries)"
15930 fi
15931
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933 $as_echo "no" >&6; }
15934 as_fn_error $? "CPL $cpl_notfound was not found on your system." "$LINENO" 5
15935
15936 else
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15938 $as_echo "yes" >&6; }
15939
15940 CPL_INCLUDES="$cpl_cflags"
15941 CPL_CFLAGS="$cpl_cflags"
15942 CPL_LDFLAGS="$cpl_ldflags"
15943
15944
15945 if test -z ""; then
15946 LIBCPLCORE='-lcplcore'
15947 LIBCPLDRS='-lcpldrs'
15948 LIBCPLUI='-lcplui'
15949 LIBCPLDFS='-lcpldfs'
15950 else
15951 LIBCPLCORE='$(top_builddir)/cplcore/libcplcore.la'
15952 LIBCPLDRS='$(top_builddir)/cpldrs/libcpldrs.la'
15953 LIBCPLUI='$(top_builddir)/cplui/libcplui.la'
15954 LIBCPLDFS='$(top_builddir)/cpldfs/libcpldfs.la'
15955 fi
15956
15957
15958
15959
15960
15961
15962
15963
15964 if test -n "$cpl_check_version"; then
15965
15966 # Check library version
15967
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a cpl version >= $cpl_check_version" >&5
15969 $as_echo_n "checking for a cpl version >= $cpl_check_version... " >&6; }
15970
15971 ac_ext=c
15972 ac_cpp='$CPP $CPPFLAGS'
15973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15976
15977
15978 cpl_cflags_save="$CFLAGS"
15979 cpl_ldflags_save="$LDFLAGS"
15980 cpl_libs_save="$LIBS"
15981
15982 # Do not add the library as a dependency here!
15983 CFLAGS="$CPL_CFLAGS"
15984 LDFLAGS="$CPL_LDFLAGS"
15985 LIBS=""
15986
15987 if test "$cross_compiling" = yes; then :
15988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15990 as_fn_error $? "cannot run test program while cross compiling
15991 See \`config.log' for more details" "$LINENO" 5; }
15992 else
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15995
15996 #include <stdio.h>
15997 #include <cpl.h>
15998
15999 #define stringify(v) stringify_arg(v)
16000 #define stringify_arg(v) #v
16001
16002 int
16003 main ()
16004 {
16005
16006 char vmin[] = "$cpl_check_version";
16007 char vlib[] = CPL_VERSION_STRING;
16008
16009 int min_major = 0;
16010 int min_minor = 0;
16011 int min_micro = 0;
16012
16013 int lib_major = 0;
16014 int lib_minor = 0;
16015 int lib_micro = 0;
16016
16017 sscanf(vmin, "%d.%d.%d", &min_major, &min_minor, &min_micro);
16018 sscanf(vlib, "%d.%d.%d", &lib_major, &lib_minor, &lib_micro);
16019
16020 FILE *f = fopen("conftest.out", "w");
16021 fprintf(f, "%s\n", vlib);
16022 fclose(f);
16023
16024 if (lib_major < min_major) {
16025 return 1;
16026 }
16027 else {
16028 if (lib_major == min_major) {
16029 if (lib_minor < min_minor) {
16030 return 1;
16031 }
16032 else {
16033 if (lib_minor == min_minor) {
16034 if (lib_micro < min_micro) {
16035 return 1;
16036 }
16037 }
16038 }
16039 }
16040 }
16041
16042 return 0;
16043
16044 ;
16045 return 0;
16046 }
16047 _ACEOF
16048 if ac_fn_c_try_run "$LINENO"; then :
16049
16050 cpl_version="`cat conftest.out`";
16051 rm -f conftest.out
16052
16053 else
16054
16055 cpl_version="no";
16056 cpl_version_found="unknown";
16057 test -r conftest.out && cpl_version_found="`cat conftest.out`";
16058 rm -f conftest.out
16059
16060 fi
16061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16062 conftest.$ac_objext conftest.beam conftest.$ac_ext
16063 fi
16064
16065
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpl_version" >&5
16067 $as_echo "$cpl_version" >&6; }
16068
16069 ac_ext=c
16070 ac_cpp='$CPP $CPPFLAGS'
16071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16074
16075
16076 CFLAGS="$cpl_cflags_save"
16077 LDFLAGS="$cpl_ldflags_save"
16078 LIBS="$cpl_libs_save"
16079
16080
16081 if test x"$cpl_version" = xno; then
16082
16083 as_fn_error $? "Installed CPL ($cpl_version_found) is too old" "$LINENO" 5
16084
16085 CPL_INCLUDES=""
16086 CPL_CFLAGS=""
16087 CPL_LDFLAGS=""
16088
16089 LIBCPLCORE=""
16090 LIBCPLDRS=""
16091 LIBCPLUI=""
16092 LIBCPLDFS=""
16093
16094 fi
16095
16096 fi
16097
16098 fi
16099
16100 else
16101
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16103 $as_echo "disabled" >&6; }
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CPL checks have been disabled! This package may not build!" >&5
16105 $as_echo "$as_me: WARNING: CPL checks have been disabled! This package may not build!" >&2;}
16106
16107 CPL_INCLUDES=""
16108 CPL_CFLAGS=""
16109 CPL_LDFLAGS=""
16110
16111 LIBCPLCORE=""
16112 LIBCPLDRS=""
16113 LIBCPLUI=""
16114 LIBCPLDFS=""
16115
16116 fi
16117
16118
16119
16120
16121
16122
16123
16124
1574516125
1574616126
1574716127
1644116821 # report actual input values of CONFIG_FILES etc. instead of their
1644216822 # values after options handling.
1644316823 ac_log="
16444 This file was extended by AMBER Instrument Pipeline $as_me 4.4.0, which was
16824 This file was extended by AMBER Instrument Pipeline $as_me 4.4.1, which was
1644516825 generated by GNU Autoconf 2.69. Invocation command line was
1644616826
1644716827 CONFIG_FILES = $CONFIG_FILES
1650716887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1650816888 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1650916889 ac_cs_version="\\
16510 AMBER Instrument Pipeline config.status 4.4.0
16890 AMBER Instrument Pipeline config.status 4.4.1
1651116891 configured by $0, generated by GNU Autoconf 2.69,
1651216892 with options \\"\$ac_cs_config\\"
1651316893
00 # Process this file with autoconf to produce a configure script.
11
2 AC_INIT([AMBER Instrument Pipeline], [4.4.0], [usd-help@eso.org], [amber])
2 AC_INIT([AMBER Instrument Pipeline], [4.4.1], [usd-help@eso.org], [amber])
33 AC_PREREQ([2.59])
44
55 AC_CONFIG_SRCDIR([Makefile.am])
7676
7777 # Check for CPL/cfitsio presence and usability
7878
79 CPL_CHECK_LIBS
80 CPL_CHECK_CFITSIO([3.310])
79 ESO_CHECK_CPL
80 CPL_CHECK_CFITSIO([3.31])
8181 CPL_CHECK_FFTW([3.3.3])
8282
8383 # check and define all required variables to build and
11 # Attempt to guess a canonical system name.
22 # Copyright 1992-2018 Free Software Foundation, Inc.
33
4 timestamp='2018-03-08'
4 timestamp='2018-08-29'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
8383 exit 1
8484 fi
8585
86 trap 'exit 1' 1 2 15
87
8886 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
8987 # compiler to aid in system detection is discouraged as it requires
9088 # temporary files to be created and, as you can see below, it is a
9593
9694 # Portable tmp directory creation inspired by the Autoconf team.
9795
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
96 tmp=
97 # shellcheck disable=SC2172
98 trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
99 trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
100
101 set_cc_for_build() {
102 : "${TMPDIR=/tmp}"
103 # shellcheck disable=SC2039
104 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
105 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
106 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
107 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
108 dummy=$tmp/dummy
109 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
110 ,,) echo "int x;" > "$dummy.c"
111 for driver in cc gcc c89 c99 ; do
112 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
113 CC_FOR_BUILD="$driver"
114 break
115 fi
116 done
117 if test x"$CC_FOR_BUILD" = x ; then
118 CC_FOR_BUILD=no_compiler_found
119 fi
120 ;;
121 ,,*) CC_FOR_BUILD=$CC ;;
122 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
123 esac
124 }
122125
123126 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124127 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
128 if test -f /.attbin/uname ; then
126129 PATH=$PATH:/.attbin ; export PATH
127130 fi
128131
137140 # We could probably try harder.
138141 LIBC=gnu
139142
140 eval "$set_cc_for_build"
143 set_cc_for_build
141144 cat <<-EOF > "$dummy.c"
142145 #include <features.h>
143146 #if defined(__UCLIBC__)
198201 os=netbsdelf
199202 ;;
200203 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
204 set_cc_for_build
202205 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
203206 | grep -q __ELF__
204207 then
236239 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
237240 # contains redundant information, the shorter form:
238241 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
239 echo "$machine-${os}${release}${abi}"
242 echo "$machine-${os}${release}${abi-}"
240243 exit ;;
241244 *:Bitrig:*:*)
242245 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
388391 echo i386-pc-auroraux"$UNAME_RELEASE"
389392 exit ;;
390393 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
393 # If there is a compiler, see if it is configured for 64-bit objects.
394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
395 # This test works for both compilers.
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
399 grep IS_64BIT_ARCH >/dev/null
400 then
401 SUN_ARCH=x86_64
402 fi
403 fi
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
394 UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
395 case `isainfo -b` in
396 32)
397 echo i386-pc-solaris2"$UNAME_REL"
398 ;;
399 64)
400 echo x86_64-pc-solaris2"$UNAME_REL"
401 ;;
402 esac
405403 exit ;;
406404 sun4*:SunOS:6*:*)
407405 # According to config.sub, this is the proper way to canonicalize
481479 echo clipper-intergraph-clix"$UNAME_RELEASE"
482480 exit ;;
483481 mips:*:*:UMIPS | mips:*:*:RISCos)
484 eval "$set_cc_for_build"
482 set_cc_for_build
485483 sed 's/^ //' << EOF > "$dummy.c"
486484 #ifdef __cplusplus
487485 #include <stdio.h> /* for printf() prototype */
578576 exit ;;
579577 *:AIX:2:3)
580578 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
581 eval "$set_cc_for_build"
579 set_cc_for_build
582580 sed 's/^ //' << EOF > "$dummy.c"
583581 #include <sys/systemcfg.h>
584582
659657 esac
660658 fi
661659 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
660 set_cc_for_build
663661 sed 's/^ //' << EOF > "$dummy.c"
664662
665663 #define _HPUX_SOURCE
699697 esac
700698 if [ "$HP_ARCH" = hppa2.0w ]
701699 then
702 eval "$set_cc_for_build"
700 set_cc_for_build
703701
704702 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
705703 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
725723 echo ia64-hp-hpux"$HPUX_REV"
726724 exit ;;
727725 3050*:HI-UX:*:*)
728 eval "$set_cc_for_build"
726 set_cc_for_build
729727 sed 's/^ //' << EOF > "$dummy.c"
730728 #include <unistd.h>
731729 int
839837 *:BSD/OS:*:*)
840838 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
841839 exit ;;
840 arm:FreeBSD:*:*)
841 UNAME_PROCESSOR=`uname -p`
842 set_cc_for_build
843 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
844 | grep -q __ARM_PCS_VFP
845 then
846 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
847 else
848 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
849 fi
850 exit ;;
842851 *:FreeBSD:*:*)
843852 UNAME_PROCESSOR=`/usr/bin/uname -p`
844853 case "$UNAME_PROCESSOR" in
893902 # other systems with GNU libc and userland
894903 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
895904 exit ;;
896 i*86:Minix:*:*)
897 echo "$UNAME_MACHINE"-pc-minix
905 *:Minix:*:*)
906 echo "$UNAME_MACHINE"-unknown-minix
898907 exit ;;
899908 aarch64:Linux:*:*)
900909 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
921930 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
922931 exit ;;
923932 arm*:Linux:*:*)
924 eval "$set_cc_for_build"
933 set_cc_for_build
925934 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
926935 | grep -q __ARM_EABI__
927936 then
970979 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971980 exit ;;
972981 mips:Linux:*:* | mips64:Linux:*:*)
973 eval "$set_cc_for_build"
982 set_cc_for_build
974983 sed 's/^ //' << EOF > "$dummy.c"
975984 #undef CPU
976985 #undef ${UNAME_MACHINE}
12841293 exit ;;
12851294 *:Darwin:*:*)
12861295 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1287 eval "$set_cc_for_build"
1296 set_cc_for_build
12881297 if test "$UNAME_PROCESSOR" = unknown ; then
12891298 UNAME_PROCESSOR=powerpc
12901299 fi
13571366 # "uname -m" is not consistent, so use $cputype instead. 386
13581367 # is converted to i386 for consistency with other x86
13591368 # operating systems.
1369 # shellcheck disable=SC2154
13601370 if test "$cputype" = 386; then
13611371 UNAME_MACHINE=i386
13621372 else
11 # Configuration validation subroutine script.
22 # Copyright 1992-2018 Free Software Foundation, Inc.
33
4 timestamp='2018-05-05'
4 timestamp='2018-08-29'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
109109 exit 1;;
110110 esac
111111
112 # Spilt fields of configuration type
112 # Split fields of configuration type
113113 IFS="-" read -r field1 field2 field3 field4 <<EOF
114114 $1
115115 EOF
116116
117117 # Separate into logical components for further validation
118118 case $1 in
119 *-*-*-*-*)
120 echo Invalid configuration \`"$1"\': more than four components >&2
121 exit 1
122 ;;
119123 *-*-*-*)
120124 basic_machine=$field1-$field2
121 os=-$field3-$field4
125 os=$field3-$field4
122126 ;;
123127 *-*-*)
124128 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
131135 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
132136 | storm-chaos* | os2-emx* | rtmk-nova*)
133137 basic_machine=$field1
134 os=-$maybe_os
138 os=$maybe_os
135139 ;;
136140 android-linux)
137141 basic_machine=$field1-unknown
138 os=-linux-android
142 os=linux-android
139143 ;;
140144 *)
141145 basic_machine=$field1-$field2
142 os=-$field3
146 os=$field3
143147 ;;
144148 esac
145149 ;;
146150 *-*)
147 basic_machine=$field1
148 os=-$field2
151 # A lone config we happen to match not fitting any patern
152 case $field1-$field2 in
153 decstation-3100)
154 basic_machine=mips-dec
155 os=
156 ;;
157 *-*)
158 # Second component is usually, but not always the OS
159 case $field2 in
160 # Prevent following clause from handling this valid os
161 sun*os*)
162 basic_machine=$field1
163 os=$field2
164 ;;
165 # Manufacturers
166 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
167 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
168 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
169 | convergent* | ncr* | news | 32* | 3600* | 3100* \
170 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
171 | ultra | tti* | harris | dolphin | highlevel | gould \
172 | cbm | ns | masscomp | apple | axis | knuth | cray \
173 | microblaze* | sim | cisco \
174 | oki | wec | wrs | winbond)
175 basic_machine=$field1-$field2
176 os=
177 ;;
178 *)
179 basic_machine=$field1
180 os=$field2
181 ;;
182 esac
183 ;;
184 esac
149185 ;;
150186 *)
151 basic_machine=$1
152 os=
187 # Convert single-component short-hands not valid as part of
188 # multi-component configurations.
189 case $field1 in
190 386bsd)
191 basic_machine=i386-pc
192 os=bsd
193 ;;
194 a29khif)
195 basic_machine=a29k-amd
196 os=udi
197 ;;
198 adobe68k)
199 basic_machine=m68010-adobe
200 os=scout
201 ;;
202 alliant)
203 basic_machine=fx80-alliant
204 os=
205 ;;
206 altos | altos3068)
207 basic_machine=m68k-altos
208 os=
209 ;;
210 am29k)
211 basic_machine=a29k-none
212 os=bsd
213 ;;
214 amdahl)
215 basic_machine=580-amdahl
216 os=sysv
217 ;;
218 amiga)
219 basic_machine=m68k-unknown
220 os=
221 ;;
222 amigaos | amigados)
223 basic_machine=m68k-unknown
224 os=amigaos
225 ;;
226 amigaunix | amix)
227 basic_machine=m68k-unknown
228 os=sysv4
229 ;;
230 apollo68)
231 basic_machine=m68k-apollo
232 os=sysv
233 ;;
234 apollo68bsd)
235 basic_machine=m68k-apollo
236 os=bsd
237 ;;
238 aros)
239 basic_machine=i386-pc
240 os=aros
241 ;;
242 aux)
243 basic_machine=m68k-apple
244 os=aux
245 ;;
246 balance)
247 basic_machine=ns32k-sequent
248 os=dynix
249 ;;
250 blackfin)
251 basic_machine=bfin-unknown
252 os=linux
253 ;;
254 cegcc)
255 basic_machine=arm-unknown
256 os=cegcc
257 ;;
258 convex-c1)
259 basic_machine=c1-convex
260 os=bsd
261 ;;
262 convex-c2)
263 basic_machine=c2-convex
264 os=bsd
265 ;;
266 convex-c32)
267 basic_machine=c32-convex
268 os=bsd
269 ;;
270 convex-c34)
271 basic_machine=c34-convex
272 os=bsd
273 ;;
274 convex-c38)
275 basic_machine=c38-convex
276 os=bsd
277 ;;
278 cray)
279 basic_machine=j90-cray
280 os=unicos
281 ;;
282 crds | unos)
283 basic_machine=m68k-crds
284 os=
285 ;;
286 da30)
287 basic_machine=m68k-da30
288 os=
289 ;;
290 decstation | pmax | pmin | dec3100 | decstatn)
291 basic_machine=mips-dec
292 os=
293 ;;
294 delta88)
295 basic_machine=m88k-motorola
296 os=sysv3
297 ;;
298 dicos)
299 basic_machine=i686-pc
300 os=dicos
301 ;;
302 djgpp)
303 basic_machine=i586-pc
304 os=msdosdjgpp
305 ;;
306 ebmon29k)
307 basic_machine=a29k-amd
308 os=ebmon
309 ;;
310 es1800 | OSE68k | ose68k | ose | OSE)
311 basic_machine=m68k-ericsson
312 os=ose
313 ;;
314 gmicro)
315 basic_machine=tron-gmicro
316 os=sysv
317 ;;
318 go32)
319 basic_machine=i386-pc
320 os=go32
321 ;;
322 h8300hms)
323 basic_machine=h8300-hitachi
324 os=hms
325 ;;
326 h8300xray)
327 basic_machine=h8300-hitachi
328 os=xray
329 ;;
330 h8500hms)
331 basic_machine=h8500-hitachi
332 os=hms
333 ;;
334 harris)
335 basic_machine=m88k-harris
336 os=sysv3
337 ;;
338 hp300)
339 basic_machine=m68k-hp
340 ;;
341 hp300bsd)
342 basic_machine=m68k-hp
343 os=bsd
344 ;;
345 hp300hpux)
346 basic_machine=m68k-hp
347 os=hpux
348 ;;
349 hppaosf)
350 basic_machine=hppa1.1-hp
351 os=osf
352 ;;
353 hppro)
354 basic_machine=hppa1.1-hp
355 os=proelf
356 ;;
357 i386mach)
358 basic_machine=i386-mach
359 os=mach
360 ;;
361 vsta)
362 basic_machine=i386-pc
363 os=vsta
364 ;;
365 isi68 | isi)
366 basic_machine=m68k-isi
367 os=sysv
368 ;;
369 m68knommu)
370 basic_machine=m68k-unknown
371 os=linux
372 ;;
373 magnum | m3230)
374 basic_machine=mips-mips
375 os=sysv
376 ;;
377 merlin)
378 basic_machine=ns32k-utek
379 os=sysv
380 ;;
381 mingw64)
382 basic_machine=x86_64-pc
383 os=mingw64
384 ;;
385 mingw32)
386 basic_machine=i686-pc
387 os=mingw32
388 ;;
389 mingw32ce)
390 basic_machine=arm-unknown
391 os=mingw32ce
392 ;;
393 monitor)
394 basic_machine=m68k-rom68k
395 os=coff
396 ;;
397 morphos)
398 basic_machine=powerpc-unknown
399 os=morphos
400 ;;
401 moxiebox)
402 basic_machine=moxie-unknown
403 os=moxiebox
404 ;;
405 msdos)
406 basic_machine=i386-pc
407 os=msdos
408 ;;
409 msys)
410 basic_machine=i686-pc
411 os=msys
412 ;;
413 mvs)
414 basic_machine=i370-ibm
415 os=mvs
416 ;;
417 nacl)
418 basic_machine=le32-unknown
419 os=nacl
420 ;;
421 ncr3000)
422 basic_machine=i486-ncr
423 os=sysv4
424 ;;
425 netbsd386)
426 basic_machine=i386-pc
427 os=netbsd
428 ;;
429 netwinder)
430 basic_machine=armv4l-rebel
431 os=linux
432 ;;
433 news | news700 | news800 | news900)
434 basic_machine=m68k-sony
435 os=newsos
436 ;;
437 news1000)
438 basic_machine=m68030-sony
439 os=newsos
440 ;;
441 necv70)
442 basic_machine=v70-nec
443 os=sysv
444 ;;
445 nh3000)
446 basic_machine=m68k-harris
447 os=cxux
448 ;;
449 nh[45]000)
450 basic_machine=m88k-harris
451 os=cxux
452 ;;
453 nindy960)
454 basic_machine=i960-intel
455 os=nindy
456 ;;
457 mon960)
458 basic_machine=i960-intel
459 os=mon960
460 ;;
461 nonstopux)
462 basic_machine=mips-compaq
463 os=nonstopux
464 ;;
465 os400)
466 basic_machine=powerpc-ibm
467 os=os400
468 ;;
469 OSE68000 | ose68000)
470 basic_machine=m68000-ericsson
471 os=ose
472 ;;
473 os68k)
474 basic_machine=m68k-none
475 os=os68k
476 ;;
477 paragon)
478 basic_machine=i860-intel
479 os=osf
480 ;;
481 parisc)
482 basic_machine=hppa-unknown
483 os=linux
484 ;;
485 pw32)
486 basic_machine=i586-unknown
487 os=pw32
488 ;;
489 rdos | rdos64)
490 basic_machine=x86_64-pc
491 os=rdos
492 ;;
493 rdos32)
494 basic_machine=i386-pc
495 os=rdos
496 ;;
497 rom68k)
498 basic_machine=m68k-rom68k
499 os=coff
500 ;;
501 sa29200)
502 basic_machine=a29k-amd
503 os=udi
504 ;;
505 sei)
506 basic_machine=mips-sei
507 os=seiux
508 ;;
509 sequent)
510 basic_machine=i386-sequent
511 os=
512 ;;
513 sps7)
514 basic_machine=m68k-bull
515 os=sysv2
516 ;;
517 st2000)
518 basic_machine=m68k-tandem
519 os=
520 ;;
521 stratus)
522 basic_machine=i860-stratus
523 os=sysv4
524 ;;
525 sun2)
526 basic_machine=m68000-sun
527 os=
528 ;;
529 sun2os3)
530 basic_machine=m68000-sun
531 os=sunos3
532 ;;
533 sun2os4)
534 basic_machine=m68000-sun
535 os=sunos4
536 ;;
537 sun3)
538 basic_machine=m68k-sun
539 os=
540 ;;
541 sun3os3)
542 basic_machine=m68k-sun
543 os=sunos3
544 ;;
545 sun3os4)
546 basic_machine=m68k-sun
547 os=sunos4
548 ;;
549 sun4)
550 basic_machine=sparc-sun
551 os=
552 ;;
553 sun4os3)
554 basic_machine=sparc-sun
555 os=sunos3
556 ;;
557 sun4os4)
558 basic_machine=sparc-sun
559 os=sunos4
560 ;;
561 sun4sol2)
562 basic_machine=sparc-sun
563 os=solaris2
564 ;;
565 sun386 | sun386i | roadrunner)
566 basic_machine=i386-sun
567 os=
568 ;;
569 sv1)
570 basic_machine=sv1-cray
571 os=unicos
572 ;;
573 symmetry)
574 basic_machine=i386-sequent
575 os=dynix
576 ;;
577 t3e)
578 basic_machine=alphaev5-cray
579 os=unicos
580 ;;
581 t90)
582 basic_machine=t90-cray
583 os=unicos
584 ;;
585 toad1)
586 basic_machine=pdp10-xkl
587 os=tops20
588 ;;
589 tpf)
590 basic_machine=s390x-ibm
591 os=tpf
592 ;;
593 udi29k)
594 basic_machine=a29k-amd
595 os=udi
596 ;;
597 ultra3)
598 basic_machine=a29k-nyu
599 os=sym1
600 ;;
601 v810 | necv810)
602 basic_machine=v810-nec
603 os=none
604 ;;
605 vaxv)
606 basic_machine=vax-dec
607 os=sysv
608 ;;
609 vms)
610 basic_machine=vax-dec
611 os=vms
612 ;;
613 vxworks960)
614 basic_machine=i960-wrs
615 os=vxworks
616 ;;
617 vxworks68)
618 basic_machine=m68k-wrs
619 os=vxworks
620 ;;
621 vxworks29k)
622 basic_machine=a29k-wrs
623 os=vxworks
624 ;;
625 xbox)
626 basic_machine=i686-pc
627 os=mingw32
628 ;;
629 ymp)
630 basic_machine=ymp-cray
631 os=unicos
632 ;;
633 *)
634 basic_machine=$1
635 os=
636 ;;
637 esac
153638 ;;
154639 esac
155640
156 ### Let's recognize common machines as not being operating systems so
157 ### that things like config.sub decstation-3100 work. We also
158 ### recognize some manufacturers as not being operating systems, so we
159 ### can provide default operating systems below.
160 case $os in
161 -sun*os*)
162 # Prevent following clause from handling this invalid input.
163 ;;
164 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
165 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
166 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
167 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
168 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
169 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
170 -apple | -axis | -knuth | -cray | -microblaze*)
171 os=
172 basic_machine=$1
173 ;;
174 -bluegene*)
175 os=-cnk
176 ;;
177 -sim | -cisco | -oki | -wec | -winbond)
178 os=
179 basic_machine=$1
180 ;;
181 -scout)
182 ;;
183 -wrs)
184 os=-vxworks
185 basic_machine=$1
186 ;;
187 -chorusos*)
188 os=-chorusos
189 basic_machine=$1
190 ;;
191 -chorusrdb)
192 os=-chorusrdb
193 basic_machine=$1
194 ;;
195 -hiux*)
196 os=-hiuxwe2
197 ;;
198 -sco6)
199 os=-sco5v6
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco5)
203 os=-sco3.2v5
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -sco4)
207 os=-sco3.2v4
208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -sco3.2.[4-9]*)
211 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
212 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -sco3.2v[4-9]*)
215 # Don't forget version if it is 3.2v4 or newer.
216 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
217 ;;
218 -sco5v6*)
219 # Don't forget version if it is 3.2v4 or newer.
220 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
221 ;;
222 -sco*)
223 os=-sco3.2v2
224 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
225 ;;
226 -udk*)
227 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
228 ;;
229 -isc)
230 os=-isc2.2
231 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
232 ;;
233 -clix*)
234 basic_machine=clipper-intergraph
235 ;;
236 -isc*)
237 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
238 ;;
239 -lynx*178)
240 os=-lynxos178
241 ;;
242 -lynx*5)
243 os=-lynxos5
244 ;;
245 -lynx*)
246 os=-lynxos
247 ;;
248 -ptx*)
249 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
250 ;;
251 -psos*)
252 os=-psos
253 ;;
254 -mint | -mint[0-9]*)
255 basic_machine=m68k-atari
256 os=-mint
257 ;;
258 esac
259
260 # Decode aliases for certain CPU-COMPANY combinations.
641 # Decode 1-component or ad-hoc basic machines
261642 case $basic_machine in
262 # Recognize the basic CPU types without company name.
263 # Some are omitted here because they have special meanings below.
264 1750a | 580 \
265 | a29k \
266 | aarch64 | aarch64_be \
267 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
268 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
269 | am33_2.0 \
270 | arc | arceb \
271 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
272 | avr | avr32 \
273 | ba \
274 | be32 | be64 \
275 | bfin \
276 | c4x | c8051 | clipper | csky \
277 | d10v | d30v | dlx | dsp16xx \
278 | e2k | epiphany \
279 | fido | fr30 | frv | ft32 \
280 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
281 | hexagon \
282 | i370 | i860 | i960 | ia16 | ia64 \
283 | ip2k | iq2000 \
284 | k1om \
285 | le32 | le64 \
286 | lm32 \
287 | m32c | m32r | m32rle | m68000 | m68k | m88k \
288 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
289 | mips | mipsbe | mipseb | mipsel | mipsle \
290 | mips16 \
291 | mips64 | mips64el \
292 | mips64octeon | mips64octeonel \
293 | mips64orion | mips64orionel \
294 | mips64r5900 | mips64r5900el \
295 | mips64vr | mips64vrel \
296 | mips64vr4100 | mips64vr4100el \
297 | mips64vr4300 | mips64vr4300el \
298 | mips64vr5000 | mips64vr5000el \
299 | mips64vr5900 | mips64vr5900el \
300 | mipsisa32 | mipsisa32el \
301 | mipsisa32r2 | mipsisa32r2el \
302 | mipsisa32r6 | mipsisa32r6el \
303 | mipsisa64 | mipsisa64el \
304 | mipsisa64r2 | mipsisa64r2el \
305 | mipsisa64r6 | mipsisa64r6el \
306 | mipsisa64sb1 | mipsisa64sb1el \
307 | mipsisa64sr71k | mipsisa64sr71kel \
308 | mipsr5900 | mipsr5900el \
309 | mipstx39 | mipstx39el \
310 | mn10200 | mn10300 \
311 | moxie \
312 | mt \
313 | msp430 \
314 | nds32 | nds32le | nds32be \
315 | nfp \
316 | nios | nios2 | nios2eb | nios2el \
317 | ns16k | ns32k \
318 | open8 | or1k | or1knd | or32 \
319 | pdp10 | pj | pjl \
320 | powerpc | powerpc64 | powerpc64le | powerpcle \
321 | pru \
322 | pyramid \
323 | riscv32 | riscv64 \
324 | rl78 | rx \
325 | score \
326 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
327 | sh64 | sh64le \
328 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
329 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
330 | spu \
331 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
332 | ubicom32 \
333 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
334 | visium \
335 | wasm32 \
336 | x86 | xc16x | xstormy16 | xtensa \
337 | z8k | z80)
338 basic_machine=$basic_machine-unknown
339 ;;
340 c54x)
341 basic_machine=tic54x-unknown
342 ;;
343 c55x)
344 basic_machine=tic55x-unknown
345 ;;
346 c6x)
347 basic_machine=tic6x-unknown
643 # Here we handle the default manufacturer of certain CPU types. It is in
644 # some cases the only manufacturer, in others, it is the most popular.
645 w89k)
646 cpu=hppa1.1
647 vendor=winbond
648 ;;
649 op50n)
650 cpu=hppa1.1
651 vendor=oki
652 ;;
653 op60c)
654 cpu=hppa1.1
655 vendor=oki
656 ;;
657 ibm*)
658 cpu=i370
659 vendor=ibm
660 ;;
661 orion105)
662 cpu=clipper
663 vendor=highlevel
664 ;;
665 mac | mpw | mac-mpw)
666 cpu=m68k
667 vendor=apple
668 ;;
669 pmac | pmac-mpw)
670 cpu=powerpc
671 vendor=apple
672 ;;
673
674 # Recognize the various machine names and aliases which stand
675 # for a CPU type and a company and sometimes even an OS.
676 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
677 cpu=m68000
678 vendor=att
679 ;;
680 3b*)
681 cpu=we32k
682 vendor=att
683 ;;
684 bluegene*)
685 cpu=powerpc
686 vendor=ibm
687 os=cnk
688 ;;
689 decsystem10* | dec10*)
690 cpu=pdp10
691 vendor=dec
692 os=tops10
693 ;;
694 decsystem20* | dec20*)
695 cpu=pdp10
696 vendor=dec
697 os=tops20
698 ;;
699 delta | 3300 | motorola-3300 | motorola-delta \
700 | 3300-motorola | delta-motorola)
701 cpu=m68k
702 vendor=motorola
703 ;;
704 dpx2*)
705 cpu=m68k
706 vendor=bull
707 os=sysv3
708 ;;
709 encore | umax | mmax)
710 cpu=ns32k
711 vendor=encore
712 ;;
713 elxsi)
714 cpu=elxsi
715 vendor=elxsi
716 os=${os:-bsd}
717 ;;
718 fx2800)
719 cpu=i860
720 vendor=alliant
721 ;;
722 genix)
723 cpu=ns32k
724 vendor=ns
725 ;;
726 h3050r* | hiux*)
727 cpu=hppa1.1
728 vendor=hitachi
729 os=hiuxwe2
730 ;;
731 hp3k9[0-9][0-9] | hp9[0-9][0-9])
732 cpu=hppa1.0
733 vendor=hp
734 ;;
735 hp9k2[0-9][0-9] | hp9k31[0-9])
736 cpu=m68000
737 vendor=hp
738 ;;
739 hp9k3[2-9][0-9])
740 cpu=m68k
741 vendor=hp
742 ;;
743 hp9k6[0-9][0-9] | hp6[0-9][0-9])
744 cpu=hppa1.0
745 vendor=hp
746 ;;
747 hp9k7[0-79][0-9] | hp7[0-79][0-9])
748 cpu=hppa1.1
749 vendor=hp
750 ;;
751 hp9k78[0-9] | hp78[0-9])
752 # FIXME: really hppa2.0-hp
753 cpu=hppa1.1
754 vendor=hp
755 ;;
756 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
757 # FIXME: really hppa2.0-hp
758 cpu=hppa1.1
759 vendor=hp
760 ;;
761 hp9k8[0-9][13679] | hp8[0-9][13679])
762 cpu=hppa1.1
763 vendor=hp
764 ;;
765 hp9k8[0-9][0-9] | hp8[0-9][0-9])
766 cpu=hppa1.0
767 vendor=hp
768 ;;
769 i*86v32)
770 cpu=`echo "$1" | sed -e 's/86.*/86/'`
771 vendor=pc
772 os=sysv32
773 ;;
774 i*86v4*)
775 cpu=`echo "$1" | sed -e 's/86.*/86/'`
776 vendor=pc
777 os=sysv4
778 ;;
779 i*86v)
780 cpu=`echo "$1" | sed -e 's/86.*/86/'`
781 vendor=pc
782 os=sysv
783 ;;
784 i*86sol2)
785 cpu=`echo "$1" | sed -e 's/86.*/86/'`
786 vendor=pc
787 os=solaris2
788 ;;
789 j90 | j90-cray)
790 cpu=j90
791 vendor=cray
792 os=${os:-unicos}
793 ;;
794 iris | iris4d)
795 cpu=mips
796 vendor=sgi
797 case $os in
798 irix*)
799 ;;
800 *)
801 os=irix4
802 ;;
803 esac
804 ;;
805 miniframe)
806 cpu=m68000
807 vendor=convergent
808 ;;
809 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
810 cpu=m68k
811 vendor=atari
812 os=mint
813 ;;
814 news-3600 | risc-news)
815 cpu=mips
816 vendor=sony
817 os=newsos
818 ;;
819 next | m*-next)
820 cpu=m68k
821 vendor=next
822 case $os in
823 nextstep* )
824 ;;
825 ns2*)
826 os=nextstep2
827 ;;
828 *)
829 os=nextstep3
830 ;;
831 esac
832 ;;
833 np1)
834 cpu=np1
835 vendor=gould
836 ;;
837 op50n-* | op60c-*)
838 cpu=hppa1.1
839 vendor=oki
840 os=proelf
841 ;;
842 pa-hitachi)
843 cpu=hppa1.1
844 vendor=hitachi
845 os=hiuxwe2
846 ;;
847 pbd)
848 cpu=sparc
849 vendor=tti
850 ;;
851 pbb)
852 cpu=m68k
853 vendor=tti
854 ;;
855 pc532)
856 cpu=ns32k
857 vendor=pc532
858 ;;
859 pn)
860 cpu=pn
861 vendor=gould
862 ;;
863 power)
864 cpu=power
865 vendor=ibm
866 ;;
867 ps2)
868 cpu=i386
869 vendor=ibm
870 ;;
871 rm[46]00)
872 cpu=mips
873 vendor=siemens
874 ;;
875 rtpc | rtpc-*)
876 cpu=romp
877 vendor=ibm
878 ;;
879 sde)
880 cpu=mipsisa32
881 vendor=sde
882 os=${os:-elf}
883 ;;
884 simso-wrs)
885 cpu=sparclite
886 vendor=wrs
887 os=vxworks
888 ;;
889 tower | tower-32)
890 cpu=m68k
891 vendor=ncr
892 ;;
893 vpp*|vx|vx-*)
894 cpu=f301
895 vendor=fujitsu
896 ;;
897 w65)
898 cpu=w65
899 vendor=wdc
900 ;;
901 w89k-*)
902 cpu=hppa1.1
903 vendor=winbond
904 os=proelf
905 ;;
906 none)
907 cpu=none
908 vendor=none
348909 ;;
349910 leon|leon[3-9])
350 basic_machine=sparc-$basic_machine
351 ;;
352 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
353 basic_machine=$basic_machine-unknown
354 os=-none
355 ;;
356 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
357 ;;
358 m9s12z | m68hcs12z | hcs12z | s12z)
359 basic_machine=s12z-unknown
360 os=-none
361 ;;
362 ms1)
363 basic_machine=mt-unknown
364 ;;
365
366 strongarm | thumb | xscale)
367 basic_machine=arm-unknown
368 ;;
369 xgate)
370 basic_machine=$basic_machine-unknown
371 os=-none
372 ;;
373 xscaleeb)
374 basic_machine=armeb-unknown
375 ;;
376
377 xscaleel)
378 basic_machine=armel-unknown
379 ;;
380
911 cpu=sparc
912 vendor=$basic_machine
913 ;;
914 leon-*|leon[3-9]-*)
915 cpu=sparc
916 vendor=`echo "$basic_machine" | sed 's/-.*//'`
917 ;;
918
919 *-*)
920 IFS="-" read -r cpu vendor <<EOF
921 $basic_machine
922 EOF
923 ;;
381924 # We use `pc' rather than `unknown'
382925 # because (1) that's what they normally are, and
383926 # (2) the word "unknown" tends to confuse beginning users.
384927 i*86 | x86_64)
385 basic_machine=$basic_machine-pc
386 ;;
387 # Object if more than one company name word.
388 *-*-*)
389 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
390 exit 1
391 ;;
392 # Recognize the basic CPU types with company name.
393 580-* \
394 | a29k-* \
395 | aarch64-* | aarch64_be-* \
396 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
397 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
398 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
399 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
400 | avr-* | avr32-* \
401 | ba-* \
402 | be32-* | be64-* \
403 | bfin-* | bs2000-* \
404 | c[123]* | c30-* | [cjt]90-* | c4x-* \
405 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
406 | d10v-* | d30v-* | dlx-* \
407 | e2k-* | elxsi-* \
408 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
409 | h8300-* | h8500-* \
410 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
411 | hexagon-* \
412 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
413 | ip2k-* | iq2000-* \
414 | k1om-* \
415 | le32-* | le64-* \
416 | lm32-* \
417 | m32c-* | m32r-* | m32rle-* \
418 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
419 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
420 | microblaze-* | microblazeel-* \
421 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
422 | mips16-* \
423 | mips64-* | mips64el-* \
424 | mips64octeon-* | mips64octeonel-* \
425 | mips64orion-* | mips64orionel-* \
426 | mips64r5900-* | mips64r5900el-* \
427 | mips64vr-* | mips64vrel-* \
428 | mips64vr4100-* | mips64vr4100el-* \
429 | mips64vr4300-* | mips64vr4300el-* \
430 | mips64vr5000-* | mips64vr5000el-* \
431 | mips64vr5900-* | mips64vr5900el-* \
432 | mipsisa32-* | mipsisa32el-* \
433 | mipsisa32r2-* | mipsisa32r2el-* \
434 | mipsisa32r6-* | mipsisa32r6el-* \
435 | mipsisa64-* | mipsisa64el-* \
436 | mipsisa64r2-* | mipsisa64r2el-* \
437 | mipsisa64r6-* | mipsisa64r6el-* \
438 | mipsisa64sb1-* | mipsisa64sb1el-* \
439 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
440 | mipsr5900-* | mipsr5900el-* \
441 | mipstx39-* | mipstx39el-* \
442 | mmix-* \
443 | mt-* \
444 | msp430-* \
445 | nds32-* | nds32le-* | nds32be-* \
446 | nfp-* \
447 | nios-* | nios2-* | nios2eb-* | nios2el-* \
448 | none-* | np1-* | ns16k-* | ns32k-* \
449 | open8-* \
450 | or1k*-* \
451 | orion-* \
452 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
453 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
454 | pru-* \
455 | pyramid-* \
456 | riscv32-* | riscv64-* \
457 | rl78-* | romp-* | rs6000-* | rx-* \
458 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
459 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
460 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
461 | sparclite-* \
462 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
463 | tahoe-* \
464 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
465 | tile*-* \
466 | tron-* \
467 | ubicom32-* \
468 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
469 | vax-* \
470 | visium-* \
471 | wasm32-* \
472 | we32k-* \
473 | x86-* | x86_64-* | xc16x-* | xps100-* \
474 | xstormy16-* | xtensa*-* \
475 | ymp-* \
476 | z8k-* | z80-*)
477 ;;
478 # Recognize the basic CPU types without company name, with glob match.
479 xtensa*)
480 basic_machine=$basic_machine-unknown
481 ;;
482 # Recognize the various machine names and aliases which stand
483 # for a CPU type and a company and sometimes even an OS.
484 386bsd)
485 basic_machine=i386-pc
486 os=-bsd
487 ;;
488 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
489 basic_machine=m68000-att
490 ;;
491 3b*)
492 basic_machine=we32k-att
493 ;;
494 a29khif)
495 basic_machine=a29k-amd
496 os=-udi
497 ;;
498 abacus)
499 basic_machine=abacus-unknown
500 ;;
501 adobe68k)
502 basic_machine=m68010-adobe
503 os=-scout
504 ;;
505 alliant | fx80)
506 basic_machine=fx80-alliant
507 ;;
508 altos | altos3068)
509 basic_machine=m68k-altos
510 ;;
511 am29k)
512 basic_machine=a29k-none
513 os=-bsd
514 ;;
515 amd64)
516 basic_machine=x86_64-pc
517 ;;
928 cpu=$basic_machine
929 vendor=pc
930 ;;
931 # These rules are duplicated from below for sake of the special case above;
932 # i.e. things that normalized to x86 arches should also default to "pc"
933 pc98)
934 cpu=i386
935 vendor=pc
936 ;;
937 x64 | amd64)
938 cpu=x86_64
939 vendor=pc
940 ;;
941 # Recognize the basic CPU types without company name.
942 *)
943 cpu=$basic_machine
944 vendor=unknown
945 ;;
946 esac
947
948 unset -v basic_machine
949
950 # Decode basic machines in the full and proper CPU-Company form.
951 case $cpu-$vendor in
952 # Here we handle the default manufacturer of certain CPU types in cannonical form. It is in
953 # some cases the only manufacturer, in others, it is the most popular.
954 craynv-unknown)
955 vendor=cray
956 os=${os:-unicosmp}
957 ;;
958 c90-unknown | c90-cray)
959 vendor=cray
960 os=${os:-unicos}
961 ;;
962 fx80-unknown)
963 vendor=alliant
964 ;;
965 romp-unknown)
966 vendor=ibm
967 ;;
968 mmix-unknown)
969 vendor=knuth
970 ;;
971 microblaze-unknown | microblazeel-unknown)
972 vendor=xilinx
973 ;;
974 rs6000-unknown)
975 vendor=ibm
976 ;;
977 vax-unknown)
978 vendor=dec
979 ;;
980 pdp11-unknown)
981 vendor=dec
982 ;;
983 we32k-unknown)
984 vendor=att
985 ;;
986 cydra-unknown)
987 vendor=cydrome
988 ;;
989 i370-ibm*)
990 vendor=ibm
991 ;;
992 orion-unknown)
993 vendor=highlevel
994 ;;
995 xps-unknown | xps100-unknown)
996 cpu=xps100
997 vendor=honeywell
998 ;;
999
1000 # Here we normalize CPU types with a missing or matching vendor
1001 dpx20-unknown | dpx20-bull)
1002 cpu=rs6000
1003 vendor=bull
1004 os=${os:-bosx}
1005 ;;
1006
1007 # Here we normalize CPU types irrespective of the vendor
5181008 amd64-*)
519 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
520 ;;
521 amdahl)
522 basic_machine=580-amdahl
523 os=-sysv
524 ;;
525 amiga | amiga-*)
526 basic_machine=m68k-unknown
527 ;;
528 amigaos | amigados)
529 basic_machine=m68k-unknown
530 os=-amigaos
531 ;;
532 amigaunix | amix)
533 basic_machine=m68k-unknown
534 os=-sysv4
535 ;;
536 apollo68)
537 basic_machine=m68k-apollo
538 os=-sysv
539 ;;
540 apollo68bsd)
541 basic_machine=m68k-apollo
542 os=-bsd
543 ;;
544 aros)
545 basic_machine=i386-pc
546 os=-aros
547 ;;
548 asmjs)
549 basic_machine=asmjs-unknown
550 ;;
551 aux)
552 basic_machine=m68k-apple
553 os=-aux
554 ;;
555 balance)
556 basic_machine=ns32k-sequent
557 os=-dynix
558 ;;
559 blackfin)
560 basic_machine=bfin-unknown
561 os=-linux
1009 cpu=x86_64
5621010 ;;
5631011 blackfin-*)
564 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
565 os=-linux
566 ;;
567 bluegene*)
568 basic_machine=powerpc-ibm
569 os=-cnk
1012 cpu=bfin
1013 os=linux
5701014 ;;
5711015 c54x-*)
572 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1016 cpu=tic54x
5731017 ;;
5741018 c55x-*)
575 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1019 cpu=tic55x
5761020 ;;
5771021 c6x-*)
578 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
579 ;;
580 c90)
581 basic_machine=c90-cray
582 os=-unicos
583 ;;
584 cegcc)
585 basic_machine=arm-unknown
586 os=-cegcc
587 ;;
588 convex-c1)
589 basic_machine=c1-convex
590 os=-bsd
591 ;;
592 convex-c2)
593 basic_machine=c2-convex
594 os=-bsd
595 ;;
596 convex-c32)
597 basic_machine=c32-convex
598 os=-bsd
599 ;;
600 convex-c34)
601 basic_machine=c34-convex
602 os=-bsd
603 ;;
604 convex-c38)
605 basic_machine=c38-convex
606 os=-bsd
607 ;;
608 cray | j90)
609 basic_machine=j90-cray
610 os=-unicos
611 ;;
612 craynv)
613 basic_machine=craynv-cray
614 os=-unicosmp
615 ;;
616 cr16 | cr16-*)
617 basic_machine=cr16-unknown
618 os=-elf
619 ;;
620 crds | unos)
621 basic_machine=m68k-crds
622 ;;
623 crisv32 | crisv32-* | etraxfs*)
624 basic_machine=crisv32-axis
625 ;;
626 cris | cris-* | etrax*)
627 basic_machine=cris-axis
628 ;;
629 crx)
630 basic_machine=crx-unknown
631 os=-elf
632 ;;
633 da30 | da30-*)
634 basic_machine=m68k-da30
635 ;;
636 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
637 basic_machine=mips-dec
638 ;;
639 decsystem10* | dec10*)
640 basic_machine=pdp10-dec
641 os=-tops10
642 ;;
643 decsystem20* | dec20*)
644 basic_machine=pdp10-dec
645 os=-tops20
646 ;;
647 delta | 3300 | motorola-3300 | motorola-delta \
648 | 3300-motorola | delta-motorola)
649 basic_machine=m68k-motorola
650 ;;
651 delta88)
652 basic_machine=m88k-motorola
653 os=-sysv3
654 ;;
655 dicos)
656 basic_machine=i686-pc
657 os=-dicos
658 ;;
659 djgpp)
660 basic_machine=i586-pc
661 os=-msdosdjgpp
662 ;;
663 dpx20 | dpx20-*)
664 basic_machine=rs6000-bull
665 os=-bosx
666 ;;
667 dpx2*)
668 basic_machine=m68k-bull
669 os=-sysv3
670 ;;
671 e500v[12])
672 basic_machine=powerpc-unknown
1022 cpu=tic6x
1023 ;;
1024 e500v[12]-*)
1025 cpu=powerpc
6731026 os=$os"spe"
6741027 ;;
675 e500v[12]-*)
676 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
677 os=$os"spe"
678 ;;
679 ebmon29k)
680 basic_machine=a29k-amd
681 os=-ebmon
682 ;;
683 elxsi)
684 basic_machine=elxsi-elxsi
685 os=-bsd
686 ;;
687 encore | umax | mmax)
688 basic_machine=ns32k-encore
689 ;;
690 es1800 | OSE68k | ose68k | ose | OSE)
691 basic_machine=m68k-ericsson
692 os=-ose
693 ;;
694 fx2800)
695 basic_machine=i860-alliant
696 ;;
697 genix)
698 basic_machine=ns32k-ns
699 ;;
700 gmicro)
701 basic_machine=tron-gmicro
702 os=-sysv
703 ;;
704 go32)
705 basic_machine=i386-pc
706 os=-go32
707 ;;
708 h3050r* | hiux*)
709 basic_machine=hppa1.1-hitachi
710 os=-hiuxwe2
711 ;;
712 h8300hms)
713 basic_machine=h8300-hitachi
714 os=-hms
715 ;;
716 h8300xray)
717 basic_machine=h8300-hitachi
718 os=-xray
719 ;;
720 h8500hms)
721 basic_machine=h8500-hitachi
722 os=-hms
723 ;;
724 harris)
725 basic_machine=m88k-harris
726 os=-sysv3
727 ;;
728 hp300-*)
729 basic_machine=m68k-hp
730 ;;
731 hp300bsd)
732 basic_machine=m68k-hp
733 os=-bsd
734 ;;
735 hp300hpux)
736 basic_machine=m68k-hp
737 os=-hpux
738 ;;
739 hp3k9[0-9][0-9] | hp9[0-9][0-9])
740 basic_machine=hppa1.0-hp
741 ;;
742 hp9k2[0-9][0-9] | hp9k31[0-9])
743 basic_machine=m68000-hp
744 ;;
745 hp9k3[2-9][0-9])
746 basic_machine=m68k-hp
747 ;;
748 hp9k6[0-9][0-9] | hp6[0-9][0-9])
749 basic_machine=hppa1.0-hp
750 ;;
751 hp9k7[0-79][0-9] | hp7[0-79][0-9])
752 basic_machine=hppa1.1-hp
753 ;;
754 hp9k78[0-9] | hp78[0-9])
755 # FIXME: really hppa2.0-hp
756 basic_machine=hppa1.1-hp
757 ;;
758 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
759 # FIXME: really hppa2.0-hp
760 basic_machine=hppa1.1-hp
761 ;;
762 hp9k8[0-9][13679] | hp8[0-9][13679])
763 basic_machine=hppa1.1-hp
764 ;;
765 hp9k8[0-9][0-9] | hp8[0-9][0-9])
766 basic_machine=hppa1.0-hp
767 ;;
768 hppaosf)
769 basic_machine=hppa1.1-hp
770 os=-osf
771 ;;
772 hppro)
773 basic_machine=hppa1.1-hp
774 os=-proelf
775 ;;
776 i370-ibm* | ibm*)
777 basic_machine=i370-ibm
778 ;;
779 i*86v32)
780 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
781 os=-sysv32
782 ;;
783 i*86v4*)
784 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
785 os=-sysv4
786 ;;
787 i*86v)
788 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
789 os=-sysv
790 ;;
791 i*86sol2)
792 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
793 os=-solaris2
794 ;;
795 i386mach)
796 basic_machine=i386-mach
797 os=-mach
798 ;;
799 vsta)
800 basic_machine=i386-unknown
801 os=-vsta
802 ;;
803 iris | iris4d)
804 basic_machine=mips-sgi
805 case $os in
806 -irix*)
807 ;;
808 *)
809 os=-irix4
810 ;;
1028 mips3*-*)
1029 cpu=mips64
1030 ;;
1031 ms1-*)
1032 cpu=mt
1033 ;;
1034 m68knommu-*)
1035 cpu=m68k
1036 os=linux
1037 ;;
1038 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1039 cpu=s12z
1040 ;;
1041 openrisc-*)
1042 cpu=or32
1043 ;;
1044 parisc-*)
1045 cpu=hppa
1046 os=linux
1047 ;;
1048 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1049 cpu=i586
1050 ;;
1051 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1052 cpu=i686
1053 ;;
1054 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1055 cpu=i686
1056 ;;
1057 pentium4-*)
1058 cpu=i786
1059 ;;
1060 pc98-*)
1061 cpu=i386
1062 ;;
1063 ppc-* | ppcbe-*)
1064 cpu=powerpc
1065 ;;
1066 ppcle-* | powerpclittle-*)
1067 cpu=powerpcle
1068 ;;
1069 ppc64-*)
1070 cpu=powerpc64
1071 ;;
1072 ppc64le-* | powerpc64little-*)
1073 cpu=powerpc64le
1074 ;;
1075 sb1-*)
1076 cpu=mipsisa64sb1
1077 ;;
1078 sb1el-*)
1079 cpu=mipsisa64sb1el
1080 ;;
1081 sh5e[lb]-*)
1082 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1083 ;;
1084 spur-*)
1085 cpu=spur
1086 ;;
1087 strongarm-* | thumb-*)
1088 cpu=arm
1089 ;;
1090 tx39-*)
1091 cpu=mipstx39
1092 ;;
1093 tx39el-*)
1094 cpu=mipstx39el
1095 ;;
1096 x64-*)
1097 cpu=x86_64
1098 ;;
1099 xscale-* | xscalee[bl]-*)
1100 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1101 ;;
1102
1103 # Recognize the cannonical CPU Types that limit and/or modify the
1104 # company names they are paired with.
1105 cr16-*)
1106 os=${os:-elf}
1107 ;;
1108 crisv32-* | etraxfs*-*)
1109 cpu=crisv32
1110 vendor=axis
1111 ;;
1112 cris-* | etrax*-*)
1113 cpu=cris
1114 vendor=axis
1115 ;;
1116 crx-*)
1117 os=${os:-elf}
1118 ;;
1119 neo-tandem)
1120 cpu=neo
1121 vendor=tandem
1122 ;;
1123 nse-tandem)
1124 cpu=nse
1125 vendor=tandem
1126 ;;
1127 nsr-tandem)
1128 cpu=nsr
1129 vendor=tandem
1130 ;;
1131 nsv-tandem)
1132 cpu=nsv
1133 vendor=tandem
1134 ;;
1135 nsx-tandem)
1136 cpu=nsx
1137 vendor=tandem
1138 ;;
1139 s390-*)
1140 cpu=s390
1141 vendor=ibm
1142 ;;
1143 s390x-*)
1144 cpu=s390x
1145 vendor=ibm
1146 ;;
1147 tile*-*)
1148 os=${os:-linux-gnu}
1149 ;;
1150
1151 *)
1152 # Recognize the cannonical CPU types that are allowed with any
1153 # company name.
1154 case $cpu in
1155 1750a | 580 \
1156 | a29k \
1157 | aarch64 | aarch64_be \
1158 | abacus \
1159 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1160 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1161 | alphapca5[67] | alpha64pca5[67] \
1162 | am33_2.0 \
1163 | arc | arceb \
1164 | arm | arm[lb]e | arme[lb] | armv* \
1165 | avr | avr32 \
1166 | asmjs \
1167 | ba \
1168 | be32 | be64 \
1169 | bfin | bs2000 \
1170 | c[123]* | c30 | [cjt]90 | c4x \
1171 | c8051 | clipper | craynv | csky | cydra \
1172 | d10v | d30v | dlx | dsp16xx \
1173 | e2k | elxsi | epiphany \
1174 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1175 | h8300 | h8500 \
1176 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1177 | hexagon \
1178 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1179 | ip2k | iq2000 \
1180 | k1om \
1181 | le32 | le64 \
1182 | lm32 \
1183 | m32c | m32r | m32rle \
1184 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
1185 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
1186 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1187 | microblaze | microblazeel \
1188 | mips | mipsbe | mipseb | mipsel | mipsle \
1189 | mips16 \
1190 | mips64 | mips64el \
1191 | mips64octeon | mips64octeonel \
1192 | mips64orion | mips64orionel \
1193 | mips64r5900 | mips64r5900el \
1194 | mips64vr | mips64vrel \
1195 | mips64vr4100 | mips64vr4100el \
1196 | mips64vr4300 | mips64vr4300el \
1197 | mips64vr5000 | mips64vr5000el \
1198 | mips64vr5900 | mips64vr5900el \
1199 | mipsisa32 | mipsisa32el \
1200 | mipsisa32r2 | mipsisa32r2el \
1201 | mipsisa32r6 | mipsisa32r6el \
1202 | mipsisa64 | mipsisa64el \
1203 | mipsisa64r2 | mipsisa64r2el \
1204 | mipsisa64r6 | mipsisa64r6el \
1205 | mipsisa64sb1 | mipsisa64sb1el \
1206 | mipsisa64sr71k | mipsisa64sr71kel \
1207 | mipsr5900 | mipsr5900el \
1208 | mipstx39 | mipstx39el \
1209 | mmix \
1210 | mn10200 | mn10300 \
1211 | moxie \
1212 | mt \
1213 | msp430 \
1214 | nds32 | nds32le | nds32be \
1215 | nfp \
1216 | nios | nios2 | nios2eb | nios2el \
1217 | none | np1 | ns16k | ns32k \
1218 | open8 \
1219 | or1k* \
1220 | or32 \
1221 | orion \
1222 | pdp10 | pdp11 | pj | pjl | pn | power \
1223 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1224 | pru \
1225 | pyramid \
1226 | riscv | riscv32 | riscv64 \
1227 | rl78 | romp | rs6000 | rx \
1228 | score \
1229 | sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1230 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1231 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1232 | sparclite \
1233 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1234 | spu \
1235 | tahoe \
1236 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1237 | tron \
1238 | ubicom32 \
1239 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1240 | vax \
1241 | visium \
1242 | wasm32 \
1243 | we32k \
1244 | x86 | x86_64 | xc16x | xgate | xps100 \
1245 | xstormy16 | xtensa* \
1246 | ymp \
1247 | z8k | z80)
1248 ;;
1249
1250 *)
1251 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1252 exit 1
1253 ;;
8111254 esac
8121255 ;;
813 isi68 | isi)
814 basic_machine=m68k-isi
815 os=-sysv
816 ;;
817 leon-*|leon[3-9]-*)
818 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
819 ;;
820 m68knommu)
821 basic_machine=m68k-unknown
822 os=-linux
823 ;;
824 m68knommu-*)
825 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
826 os=-linux
827 ;;
828 magnum | m3230)
829 basic_machine=mips-mips
830 os=-sysv
831 ;;
832 merlin)
833 basic_machine=ns32k-utek
834 os=-sysv
835 ;;
836 microblaze*)
837 basic_machine=microblaze-xilinx
838 ;;
839 mingw64)
840 basic_machine=x86_64-pc
841 os=-mingw64
842 ;;
843 mingw32)
844 basic_machine=i686-pc
845 os=-mingw32
846 ;;
847 mingw32ce)
848 basic_machine=arm-unknown
849 os=-mingw32ce
850 ;;
851 miniframe)
852 basic_machine=m68000-convergent
853 ;;
854 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
855 basic_machine=m68k-atari
856 os=-mint
857 ;;
858 mips3*-*)
859 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
860 ;;
861 mips3*)
862 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
863 ;;
864 monitor)
865 basic_machine=m68k-rom68k
866 os=-coff
867 ;;
868 morphos)
869 basic_machine=powerpc-unknown
870 os=-morphos
871 ;;
872 moxiebox)
873 basic_machine=moxie-unknown
874 os=-moxiebox
875 ;;
876 msdos)
877 basic_machine=i386-pc
878 os=-msdos
879 ;;
880 ms1-*)
881 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
882 ;;
883 msys)
884 basic_machine=i686-pc
885 os=-msys
886 ;;
887 mvs)
888 basic_machine=i370-ibm
889 os=-mvs
890 ;;
891 nacl)
892 basic_machine=le32-unknown
893 os=-nacl
894 ;;
895 ncr3000)
896 basic_machine=i486-ncr
897 os=-sysv4
898 ;;
899 netbsd386)
900 basic_machine=i386-unknown
901 os=-netbsd
902 ;;
903 netwinder)
904 basic_machine=armv4l-rebel
905 os=-linux
906 ;;
907 news | news700 | news800 | news900)
908 basic_machine=m68k-sony
909 os=-newsos
910 ;;
911 news1000)
912 basic_machine=m68030-sony
913 os=-newsos
914 ;;
915 news-3600 | risc-news)
916 basic_machine=mips-sony
917 os=-newsos
918 ;;
919 necv70)
920 basic_machine=v70-nec
921 os=-sysv
922 ;;
923 next | m*-next)
924 basic_machine=m68k-next
925 case $os in
926 -nextstep* )
927 ;;
928 -ns2*)
929 os=-nextstep2
930 ;;
931 *)
932 os=-nextstep3
933 ;;
934 esac
935 ;;
936 nh3000)
937 basic_machine=m68k-harris
938 os=-cxux
939 ;;
940 nh[45]000)
941 basic_machine=m88k-harris
942 os=-cxux
943 ;;
944 nindy960)
945 basic_machine=i960-intel
946 os=-nindy
947 ;;
948 mon960)
949 basic_machine=i960-intel
950 os=-mon960
951 ;;
952 nonstopux)
953 basic_machine=mips-compaq
954 os=-nonstopux
955 ;;
956 np1)
957 basic_machine=np1-gould
958 ;;
959 neo-tandem)
960 basic_machine=neo-tandem
961 ;;
962 nse-tandem)
963 basic_machine=nse-tandem
964 ;;
965 nsr-tandem)
966 basic_machine=nsr-tandem
967 ;;
968 nsv-tandem)
969 basic_machine=nsv-tandem
970 ;;
971 nsx-tandem)
972 basic_machine=nsx-tandem
973 ;;
974 op50n-* | op60c-*)
975 basic_machine=hppa1.1-oki
976 os=-proelf
977 ;;
978 openrisc | openrisc-*)
979 basic_machine=or32-unknown
980 ;;
981 os400)
982 basic_machine=powerpc-ibm
983 os=-os400
984 ;;
985 OSE68000 | ose68000)
986 basic_machine=m68000-ericsson
987 os=-ose
988 ;;
989 os68k)
990 basic_machine=m68k-none
991 os=-os68k
992 ;;
993 pa-hitachi)
994 basic_machine=hppa1.1-hitachi
995 os=-hiuxwe2
996 ;;
997 paragon)
998 basic_machine=i860-intel
999 os=-osf
1000 ;;
1001 parisc)
1002 basic_machine=hppa-unknown
1003 os=-linux
1004 ;;
1005 parisc-*)
1006 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1007 os=-linux
1008 ;;
1009 pbd)
1010 basic_machine=sparc-tti
1011 ;;
1012 pbb)
1013 basic_machine=m68k-tti
1014 ;;
1015 pc532 | pc532-*)
1016 basic_machine=ns32k-pc532
1017 ;;
1018 pc98)
1019 basic_machine=i386-pc
1020 ;;
1021 pc98-*)
1022 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1023 ;;
1024 pentium | p5 | k5 | k6 | nexgen | viac3)
1025 basic_machine=i586-pc
1026 ;;
1027 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1028 basic_machine=i686-pc
1029 ;;
1030 pentiumii | pentium2 | pentiumiii | pentium3)
1031 basic_machine=i686-pc
1032 ;;
1033 pentium4)
1034 basic_machine=i786-pc
1035 ;;
1036 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1037 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1038 ;;
1039 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1040 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1043 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1044 ;;
1045 pentium4-*)
1046 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1047 ;;
1048 pn)
1049 basic_machine=pn-gould
1050 ;;
1051 power) basic_machine=power-ibm
1052 ;;
1053 ppc | ppcbe) basic_machine=powerpc-unknown
1054 ;;
1055 ppc-* | ppcbe-*)
1056 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1057 ;;
1058 ppcle | powerpclittle)
1059 basic_machine=powerpcle-unknown
1060 ;;
1061 ppcle-* | powerpclittle-*)
1062 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1063 ;;
1064 ppc64) basic_machine=powerpc64-unknown
1065 ;;
1066 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1067 ;;
1068 ppc64le | powerpc64little)
1069 basic_machine=powerpc64le-unknown
1070 ;;
1071 ppc64le-* | powerpc64little-*)
1072 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1073 ;;
1074 ps2)
1075 basic_machine=i386-ibm
1076 ;;
1077 pw32)
1078 basic_machine=i586-unknown
1079 os=-pw32
1080 ;;
1081 rdos | rdos64)
1082 basic_machine=x86_64-pc
1083 os=-rdos
1084 ;;
1085 rdos32)
1086 basic_machine=i386-pc
1087 os=-rdos
1088 ;;
1089 rom68k)
1090 basic_machine=m68k-rom68k
1091 os=-coff
1092 ;;
1093 rm[46]00)
1094 basic_machine=mips-siemens
1095 ;;
1096 rtpc | rtpc-*)
1097 basic_machine=romp-ibm
1098 ;;
1099 s390 | s390-*)
1100 basic_machine=s390-ibm
1101 ;;
1102 s390x | s390x-*)
1103 basic_machine=s390x-ibm
1104 ;;
1105 sa29200)
1106 basic_machine=a29k-amd
1107 os=-udi
1108 ;;
1109 sb1)
1110 basic_machine=mipsisa64sb1-unknown
1111 ;;
1112 sb1el)
1113 basic_machine=mipsisa64sb1el-unknown
1114 ;;
1115 sde)
1116 basic_machine=mipsisa32-sde
1117 os=-elf
1118 ;;
1119 sei)
1120 basic_machine=mips-sei
1121 os=-seiux
1122 ;;
1123 sequent)
1124 basic_machine=i386-sequent
1125 ;;
1126 sh5el)
1127 basic_machine=sh5le-unknown
1128 ;;
1129 simso-wrs)
1130 basic_machine=sparclite-wrs
1131 os=-vxworks
1132 ;;
1133 sps7)
1134 basic_machine=m68k-bull
1135 os=-sysv2
1136 ;;
1137 spur)
1138 basic_machine=spur-unknown
1139 ;;
1140 st2000)
1141 basic_machine=m68k-tandem
1142 ;;
1143 stratus)
1144 basic_machine=i860-stratus
1145 os=-sysv4
1146 ;;
1147 strongarm-* | thumb-*)
1148 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1149 ;;
1150 sun2)
1151 basic_machine=m68000-sun
1152 ;;
1153 sun2os3)
1154 basic_machine=m68000-sun
1155 os=-sunos3
1156 ;;
1157 sun2os4)
1158 basic_machine=m68000-sun
1159 os=-sunos4
1160 ;;
1161 sun3os3)
1162 basic_machine=m68k-sun
1163 os=-sunos3
1164 ;;
1165 sun3os4)
1166 basic_machine=m68k-sun
1167 os=-sunos4
1168 ;;
1169 sun4os3)
1170 basic_machine=sparc-sun
1171 os=-sunos3
1172 ;;
1173 sun4os4)
1174 basic_machine=sparc-sun
1175 os=-sunos4
1176 ;;
1177 sun4sol2)
1178 basic_machine=sparc-sun
1179 os=-solaris2
1180 ;;
1181 sun3 | sun3-*)
1182 basic_machine=m68k-sun
1183 ;;
1184 sun4)
1185 basic_machine=sparc-sun
1186 ;;
1187 sun386 | sun386i | roadrunner)
1188 basic_machine=i386-sun
1189 ;;
1190 sv1)
1191 basic_machine=sv1-cray
1192 os=-unicos
1193 ;;
1194 symmetry)
1195 basic_machine=i386-sequent
1196 os=-dynix
1197 ;;
1198 t3e)
1199 basic_machine=alphaev5-cray
1200 os=-unicos
1201 ;;
1202 t90)
1203 basic_machine=t90-cray
1204 os=-unicos
1205 ;;
1206 tile*)
1207 basic_machine=$basic_machine-unknown
1208 os=-linux-gnu
1209 ;;
1210 tx39)
1211 basic_machine=mipstx39-unknown
1212 ;;
1213 tx39el)
1214 basic_machine=mipstx39el-unknown
1215 ;;
1216 toad1)
1217 basic_machine=pdp10-xkl
1218 os=-tops20
1219 ;;
1220 tower | tower-32)
1221 basic_machine=m68k-ncr
1222 ;;
1223 tpf)
1224 basic_machine=s390x-ibm
1225 os=-tpf
1226 ;;
1227 udi29k)
1228 basic_machine=a29k-amd
1229 os=-udi
1230 ;;
1231 ultra3)
1232 basic_machine=a29k-nyu
1233 os=-sym1
1234 ;;
1235 v810 | necv810)
1236 basic_machine=v810-nec
1237 os=-none
1238 ;;
1239 vaxv)
1240 basic_machine=vax-dec
1241 os=-sysv
1242 ;;
1243 vms)
1244 basic_machine=vax-dec
1245 os=-vms
1246 ;;
1247 vpp*|vx|vx-*)
1248 basic_machine=f301-fujitsu
1249 ;;
1250 vxworks960)
1251 basic_machine=i960-wrs
1252 os=-vxworks
1253 ;;
1254 vxworks68)
1255 basic_machine=m68k-wrs
1256 os=-vxworks
1257 ;;
1258 vxworks29k)
1259 basic_machine=a29k-wrs
1260 os=-vxworks
1261 ;;
1262 w65*)
1263 basic_machine=w65-wdc
1264 os=-none
1265 ;;
1266 w89k-*)
1267 basic_machine=hppa1.1-winbond
1268 os=-proelf
1269 ;;
1270 x64)
1271 basic_machine=x86_64-pc
1272 ;;
1273 xbox)
1274 basic_machine=i686-pc
1275 os=-mingw32
1276 ;;
1277 xps | xps100)
1278 basic_machine=xps100-honeywell
1279 ;;
1280 xscale-* | xscalee[bl]-*)
1281 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1282 ;;
1283 ymp)
1284 basic_machine=ymp-cray
1285 os=-unicos
1286 ;;
1287 none)
1288 basic_machine=none-none
1289 os=-none
1290 ;;
1291
1292 # Here we handle the default manufacturer of certain CPU types. It is in
1293 # some cases the only manufacturer, in others, it is the most popular.
1294 w89k)
1295 basic_machine=hppa1.1-winbond
1296 ;;
1297 op50n)
1298 basic_machine=hppa1.1-oki
1299 ;;
1300 op60c)
1301 basic_machine=hppa1.1-oki
1302 ;;
1303 romp)
1304 basic_machine=romp-ibm
1305 ;;
1306 mmix)
1307 basic_machine=mmix-knuth
1308 ;;
1309 rs6000)
1310 basic_machine=rs6000-ibm
1311 ;;
1312 vax)
1313 basic_machine=vax-dec
1314 ;;
1315 pdp11)
1316 basic_machine=pdp11-dec
1317 ;;
1318 we32k)
1319 basic_machine=we32k-att
1320 ;;
1321 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1322 basic_machine=sh-unknown
1323 ;;
1324 cydra)
1325 basic_machine=cydra-cydrome
1326 ;;
1327 orion)
1328 basic_machine=orion-highlevel
1329 ;;
1330 orion105)
1331 basic_machine=clipper-highlevel
1332 ;;
1333 mac | mpw | mac-mpw)
1334 basic_machine=m68k-apple
1335 ;;
1336 pmac | pmac-mpw)
1337 basic_machine=powerpc-apple
1338 ;;
1339 *-unknown)
1340 # Make sure to match an already-canonicalized machine name.
1341 ;;
1342 *)
1343 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1344 exit 1
1345 ;;
13461256 esac
13471257
13481258 # Here we canonicalize certain aliases for manufacturers.
1349 case $basic_machine in
1350 *-digital*)
1351 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1352 ;;
1353 *-commodore*)
1354 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1259 case $vendor in
1260 digital*)
1261 vendor=dec
1262 ;;
1263 commodore*)
1264 vendor=cbm
13551265 ;;
13561266 *)
13571267 ;;
13641274 case $os in
13651275 # First match some system type aliases that might get confused
13661276 # with valid system types.
1367 # -solaris* is a basic system type, with this one exception.
1368 -auroraux)
1369 os=-auroraux
1370 ;;
1371 -solaris1 | -solaris1.*)
1277 # solaris* is a basic system type, with this one exception.
1278 auroraux)
1279 os=auroraux
1280 ;;
1281 bluegene*)
1282 os=cnk
1283 ;;
1284 solaris1 | solaris1.*)
13721285 os=`echo $os | sed -e 's|solaris1|sunos4|'`
13731286 ;;
1374 -solaris)
1375 os=-solaris2
1376 ;;
1377 -unixware*)
1378 os=-sysv4.2uw
1379 ;;
1380 -gnu/linux*)
1287 solaris)
1288 os=solaris2
1289 ;;
1290 unixware*)
1291 os=sysv4.2uw
1292 ;;
1293 gnu/linux*)
13811294 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
13821295 ;;
13831296 # es1800 is here to avoid being matched by es* (a different OS)
1384 -es1800*)
1385 os=-ose
1297 es1800*)
1298 os=ose
1299 ;;
1300 # Some version numbers need modification
1301 chorusos*)
1302 os=chorusos
1303 ;;
1304 isc)
1305 os=isc2.2
1306 ;;
1307 sco6)
1308 os=sco5v6
1309 ;;
1310 sco5)
1311 os=sco3.2v5
1312 ;;
1313 sco4)
1314 os=sco3.2v4
1315 ;;
1316 sco3.2.[4-9]*)
1317 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1318 ;;
1319 sco3.2v[4-9]* | sco5v6*)
1320 # Don't forget version if it is 3.2v4 or newer.
1321 ;;
1322 scout)
1323 # Don't match below
1324 ;;
1325 sco*)
1326 os=sco3.2v2
1327 ;;
1328 psos*)
1329 os=psos
13861330 ;;
13871331 # Now accept the basic system types.
13881332 # The portable systems comes first.
13891333 # Each alternative MUST end in a * to match a version number.
1390 # -sysv* is not here because it comes later, after sysvr4.
1391 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1392 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1393 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1394 | -sym* | -kopensolaris* | -plan9* \
1395 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1396 | -aos* | -aros* | -cloudabi* | -sortix* \
1397 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1398 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1399 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1400 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1401 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1402 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1403 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1404 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
1405 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1406 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1407 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1408 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1409 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1410 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1411 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1412 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1413 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1414 | -morphos* | -superux* | -rtmk* | -windiss* \
1415 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1416 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1417 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1418 | -midnightbsd*)
1334 # sysv* is not here because it comes later, after sysvr4.
1335 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1336 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
1337 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1338 | sym* | kopensolaris* | plan9* \
1339 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1340 | aos* | aros* | cloudabi* | sortix* \
1341 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1342 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1343 | knetbsd* | mirbsd* | netbsd* \
1344 | bitrig* | openbsd* | solidbsd* | libertybsd* \
1345 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
1346 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1347 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1348 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
1349 | chorusrdb* | cegcc* | glidix* \
1350 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1351 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1352 | linux-newlib* | linux-musl* | linux-uclibc* \
1353 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1354 | interix* | uwin* | mks* | rhapsody* | darwin* \
1355 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1356 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1357 | os2* | vos* | palmos* | uclinux* | nucleus* \
1358 | morphos* | superux* | rtmk* | windiss* \
1359 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1360 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1361 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1362 | midnightbsd*)
14191363 # Remember, each alternative MUST END IN *, to match a version number.
14201364 ;;
1421 -qnx*)
1422 case $basic_machine in
1423 x86-* | i*86-*)
1365 qnx*)
1366 case $cpu in
1367 x86 | i*86)
14241368 ;;
14251369 *)
1426 os=-nto$os
1370 os=nto-$os
14271371 ;;
14281372 esac
14291373 ;;
1430 -nto-qnx*)
1431 ;;
1432 -nto*)
1374 hiux*)
1375 os=hiuxwe2
1376 ;;
1377 nto-qnx*)
1378 ;;
1379 nto*)
14331380 os=`echo $os | sed -e 's|nto|nto-qnx|'`
14341381 ;;
1435 -sim | -xray | -os68k* | -v88r* \
1436 | -windows* | -osx | -abug | -netware* | -os9* \
1437 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1438 ;;
1439 -mac*)
1382 sim | xray | os68k* | v88r* \
1383 | windows* | osx | abug | netware* | os9* \
1384 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
1385 ;;
1386 linux-dietlibc)
1387 os=linux-dietlibc
1388 ;;
1389 linux*)
1390 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1391 ;;
1392 lynx*178)
1393 os=lynxos178
1394 ;;
1395 lynx*5)
1396 os=lynxos5
1397 ;;
1398 lynx*)
1399 os=lynxos
1400 ;;
1401 mac*)
14401402 os=`echo "$os" | sed -e 's|mac|macos|'`
14411403 ;;
1442 -linux-dietlibc)
1443 os=-linux-dietlibc
1444 ;;
1445 -linux*)
1446 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1447 ;;
1448 -sunos5*)
1404 opened*)
1405 os=openedition
1406 ;;
1407 os400*)
1408 os=os400
1409 ;;
1410 sunos5*)
14491411 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14501412 ;;
1451 -sunos6*)
1413 sunos6*)
14521414 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14531415 ;;
1454 -opened*)
1455 os=-openedition
1456 ;;
1457 -os400*)
1458 os=-os400
1459 ;;
1460 -wince*)
1461 os=-wince
1462 ;;
1463 -utek*)
1464 os=-bsd
1465 ;;
1466 -dynix*)
1467 os=-bsd
1468 ;;
1469 -acis*)
1470 os=-aos
1471 ;;
1472 -atheos*)
1473 os=-atheos
1474 ;;
1475 -syllable*)
1476 os=-syllable
1477 ;;
1478 -386bsd)
1479 os=-bsd
1480 ;;
1481 -ctix* | -uts*)
1482 os=-sysv
1483 ;;
1484 -nova*)
1485 os=-rtmk-nova
1486 ;;
1487 -ns2)
1488 os=-nextstep2
1489 ;;
1490 -nsk*)
1491 os=-nsk
1416 wince*)
1417 os=wince
1418 ;;
1419 utek*)
1420 os=bsd
1421 ;;
1422 dynix*)
1423 os=bsd
1424 ;;
1425 acis*)
1426 os=aos
1427 ;;
1428 atheos*)
1429 os=atheos
1430 ;;
1431 syllable*)
1432 os=syllable
1433 ;;
1434 386bsd)
1435 os=bsd
1436 ;;
1437 ctix* | uts*)
1438 os=sysv
1439 ;;
1440 nova*)
1441 os=rtmk-nova
1442 ;;
1443 ns2)
1444 os=nextstep2
1445 ;;
1446 nsk*)
1447 os=nsk
14921448 ;;
14931449 # Preserve the version number of sinix5.
1494 -sinix5.*)
1450 sinix5.*)
14951451 os=`echo $os | sed -e 's|sinix|sysv|'`
14961452 ;;
1497 -sinix*)
1498 os=-sysv4
1499 ;;
1500 -tpf*)
1501 os=-tpf
1502 ;;
1503 -triton*)
1504 os=-sysv3
1505 ;;
1506 -oss*)
1507 os=-sysv3
1508 ;;
1509 -svr4*)
1510 os=-sysv4
1511 ;;
1512 -svr3)
1513 os=-sysv3
1514 ;;
1515 -sysvr4)
1516 os=-sysv4
1517 ;;
1518 # This must come after -sysvr4.
1519 -sysv*)
1520 ;;
1521 -ose*)
1522 os=-ose
1523 ;;
1524 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1525 os=-mint
1526 ;;
1527 -zvmoe)
1528 os=-zvmoe
1529 ;;
1530 -dicos*)
1531 os=-dicos
1532 ;;
1533 -pikeos*)
1453 sinix*)
1454 os=sysv4
1455 ;;
1456 tpf*)
1457 os=tpf
1458 ;;
1459 triton*)
1460 os=sysv3
1461 ;;
1462 oss*)
1463 os=sysv3
1464 ;;
1465 svr4*)
1466 os=sysv4
1467 ;;
1468 svr3)
1469 os=sysv3
1470 ;;
1471 sysvr4)
1472 os=sysv4
1473 ;;
1474 # This must come after sysvr4.
1475 sysv*)
1476 ;;
1477 ose*)
1478 os=ose
1479 ;;
1480 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1481 os=mint
1482 ;;
1483 zvmoe)
1484 os=zvmoe
1485 ;;
1486 dicos*)
1487 os=dicos
1488 ;;
1489 pikeos*)
15341490 # Until real need of OS specific support for
15351491 # particular features comes up, bare metal
15361492 # configurations are quite functional.
1537 case $basic_machine in
1493 case $cpu in
15381494 arm*)
1539 os=-eabi
1495 os=eabi
15401496 ;;
15411497 *)
1542 os=-elf
1498 os=elf
15431499 ;;
15441500 esac
15451501 ;;
1546 -nacl*)
1547 ;;
1548 -ios)
1549 ;;
1550 -none)
1551 ;;
1552 -*-eabi)
1553 case $basic_machine in
1554 arm*)
1555 ;;
1556 esac
1502 nacl*)
1503 ;;
1504 ios)
1505 ;;
1506 none)
1507 ;;
1508 *-eabi)
15571509 ;;
15581510 *)
1559 # Get rid of the `-' at the beginning of $os.
1560 os=`echo $os | sed 's/[^-]*-//'`
15611511 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15621512 exit 1
15631513 ;;
15741524 # will signal an error saying that MANUFACTURER isn't an operating
15751525 # system, and we'll never get to this point.
15761526
1577 case $basic_machine in
1527 case $cpu-$vendor in
15781528 score-*)
1579 os=-elf
1529 os=elf
15801530 ;;
15811531 spu-*)
1582 os=-elf
1532 os=elf
15831533 ;;
15841534 *-acorn)
1585 os=-riscix1.2
1535 os=riscix1.2
15861536 ;;
15871537 arm*-rebel)
1588 os=-linux
1538 os=linux
15891539 ;;
15901540 arm*-semi)
1591 os=-aout
1541 os=aout
15921542 ;;
15931543 c4x-* | tic4x-*)
1594 os=-coff
1544 os=coff
15951545 ;;
15961546 c8051-*)
1597 os=-elf
1547 os=elf
1548 ;;
1549 clipper-intergraph)
1550 os=clix
15981551 ;;
15991552 hexagon-*)
1600 os=-elf
1553 os=elf
16011554 ;;
16021555 tic54x-*)
1603 os=-coff
1556 os=coff
16041557 ;;
16051558 tic55x-*)
1606 os=-coff
1559 os=coff
16071560 ;;
16081561 tic6x-*)
1609 os=-coff
1562 os=coff
16101563 ;;
16111564 # This must come before the *-dec entry.
16121565 pdp10-*)
1613 os=-tops20
1566 os=tops20
16141567 ;;
16151568 pdp11-*)
1616 os=-none
1569 os=none
16171570 ;;
16181571 *-dec | vax-*)
1619 os=-ultrix4.2
1572 os=ultrix4.2
16201573 ;;
16211574 m68*-apollo)
1622 os=-domain
1575 os=domain
16231576 ;;
16241577 i386-sun)
1625 os=-sunos4.0.2
1578 os=sunos4.0.2
16261579 ;;
16271580 m68000-sun)
1628 os=-sunos3
1581 os=sunos3
16291582 ;;
16301583 m68*-cisco)
1631 os=-aout
1584 os=aout
16321585 ;;
16331586 mep-*)
1634 os=-elf
1587 os=elf
16351588 ;;
16361589 mips*-cisco)
1637 os=-elf
1590 os=elf
16381591 ;;
16391592 mips*-*)
1640 os=-elf
1593 os=elf
16411594 ;;
16421595 or32-*)
1643 os=-coff
1596 os=coff
16441597 ;;
16451598 *-tti) # must be before sparc entry or we get the wrong os.
1646 os=-sysv3
1599 os=sysv3
16471600 ;;
16481601 sparc-* | *-sun)
1649 os=-sunos4.1.1
1602 os=sunos4.1.1
16501603 ;;
16511604 pru-*)
1652 os=-elf
1605 os=elf
16531606 ;;
16541607 *-be)
1655 os=-beos
1608 os=beos
16561609 ;;
16571610 *-ibm)
1658 os=-aix
1611 os=aix
16591612 ;;
16601613 *-knuth)
1661 os=-mmixware
1614 os=mmixware
16621615 ;;
16631616 *-wec)
1664 os=-proelf
1617 os=proelf
16651618 ;;
16661619 *-winbond)
1667 os=-proelf
1620 os=proelf
16681621 ;;
16691622 *-oki)
1670 os=-proelf
1623 os=proelf
16711624 ;;
16721625 *-hp)
1673 os=-hpux
1626 os=hpux
16741627 ;;
16751628 *-hitachi)
1676 os=-hiux
1629 os=hiux
16771630 ;;
16781631 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1679 os=-sysv
1632 os=sysv
16801633 ;;
16811634 *-cbm)
1682 os=-amigaos
1635 os=amigaos
16831636 ;;
16841637 *-dg)
1685 os=-dgux
1638 os=dgux
16861639 ;;
16871640 *-dolphin)
1688 os=-sysv3
1641 os=sysv3
16891642 ;;
16901643 m68k-ccur)
1691 os=-rtu
1644 os=rtu
16921645 ;;
16931646 m88k-omron*)
1694 os=-luna
1647 os=luna
16951648 ;;
16961649 *-next)
1697 os=-nextstep
1650 os=nextstep
16981651 ;;
16991652 *-sequent)
1700 os=-ptx
1653 os=ptx
17011654 ;;
17021655 *-crds)
1703 os=-unos
1656 os=unos
17041657 ;;
17051658 *-ns)
1706 os=-genix
1659 os=genix
17071660 ;;
17081661 i370-*)
1709 os=-mvs
1662 os=mvs
17101663 ;;
17111664 *-gould)
1712 os=-sysv
1665 os=sysv
17131666 ;;
17141667 *-highlevel)
1715 os=-bsd
1668 os=bsd
17161669 ;;
17171670 *-encore)
1718 os=-bsd
1671 os=bsd
17191672 ;;
17201673 *-sgi)
1721 os=-irix
1674 os=irix
17221675 ;;
17231676 *-siemens)
1724 os=-sysv4
1677 os=sysv4
17251678 ;;
17261679 *-masscomp)
1727 os=-rtu
1680 os=rtu
17281681 ;;
17291682 f30[01]-fujitsu | f700-fujitsu)
1730 os=-uxpv
1683 os=uxpv
17311684 ;;
17321685 *-rom68k)
1733 os=-coff
1686 os=coff
17341687 ;;
17351688 *-*bug)
1736 os=-coff
1689 os=coff
17371690 ;;
17381691 *-apple)
1739 os=-macos
1692 os=macos
17401693 ;;
17411694 *-atari*)
1742 os=-mint
1695 os=mint
1696 ;;
1697 *-wrs)
1698 os=vxworks
17431699 ;;
17441700 *)
1745 os=-none
1701 os=none
17461702 ;;
17471703 esac
17481704 fi
17491705
17501706 # Here we handle the case where we know the os, and the CPU type, but not the
17511707 # manufacturer. We pick the logical manufacturer.
1752 vendor=unknown
1753 case $basic_machine in
1754 *-unknown)
1708 case $vendor in
1709 unknown)
17551710 case $os in
1756 -riscix*)
1711 riscix*)
17571712 vendor=acorn
17581713 ;;
1759 -sunos*)
1714 sunos*)
17601715 vendor=sun
17611716 ;;
1762 -cnk*|-aix*)
1717 cnk*|-aix*)
17631718 vendor=ibm
17641719 ;;
1765 -beos*)
1720 beos*)
17661721 vendor=be
17671722 ;;
1768 -hpux*)
1723 hpux*)
17691724 vendor=hp
17701725 ;;
1771 -mpeix*)
1726 mpeix*)
17721727 vendor=hp
17731728 ;;
1774 -hiux*)
1729 hiux*)
17751730 vendor=hitachi
17761731 ;;
1777 -unos*)
1732 unos*)
17781733 vendor=crds
17791734 ;;
1780 -dgux*)
1735 dgux*)
17811736 vendor=dg
17821737 ;;
1783 -luna*)
1738 luna*)
17841739 vendor=omron
17851740 ;;
1786 -genix*)
1741 genix*)
17871742 vendor=ns
17881743 ;;
1789 -mvs* | -opened*)
1744 clix*)
1745 vendor=intergraph
1746 ;;
1747 mvs* | opened*)
17901748 vendor=ibm
17911749 ;;
1792 -os400*)
1750 os400*)
17931751 vendor=ibm
17941752 ;;
1795 -ptx*)
1753 ptx*)
17961754 vendor=sequent
17971755 ;;
1798 -tpf*)
1756 tpf*)
17991757 vendor=ibm
18001758 ;;
1801 -vxsim* | -vxworks* | -windiss*)
1759 vxsim* | vxworks* | windiss*)
18021760 vendor=wrs
18031761 ;;
1804 -aux*)
1762 aux*)
18051763 vendor=apple
18061764 ;;
1807 -hms*)
1765 hms*)
18081766 vendor=hitachi
18091767 ;;
1810 -mpw* | -macos*)
1768 mpw* | macos*)
18111769 vendor=apple
18121770 ;;
1813 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1771 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
18141772 vendor=atari
18151773 ;;
1816 -vos*)
1774 vos*)
18171775 vendor=stratus
18181776 ;;
18191777 esac
1820 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
18211778 ;;
18221779 esac
18231780
1824 echo "$basic_machine$os"
1781 echo "$cpu-$vendor-$os"
18251782 exit
18261783
18271784 # Local variables:
0 # ESO_CHECK_CPL
1 #---------------
2 # Checks for the CPL libraries and header files. Intended for use by pipelines
3 # Sets:
4 # CPL_INCLUDES
5 # CPL_LDFLAGS
6 # LIBCPLCORE
7 # LIBCPLDRS
8 # LIBCPLUI
9 # LIBCPLDFS
10 # LIBCEXT
11 AC_DEFUN([ESO_CHECK_CPL],
12 [
13
14 AC_MSG_CHECKING([for CPL])
15
16 # assumes if one is there all are there as there is no way to do a partial
17 # install with cpl
18 cpl_check_cpl_lib="-lcplcore"
19
20 cpl_includes=""
21 cpl_ldflags=""
22
23 AC_ARG_WITH(cpl,
24 AS_HELP_STRING([--with-cpl],
25 [location where CPL is installed]),
26 [
27 cpl_with_cpl_includes=$withval/include
28 # opensuse defaults also non systems installations to lib64 ...
29 cpl_with_cpl_libs="-L$withval/lib -L$withval/lib64 -L$withval/lib32"
30 ])
31
32 AC_ARG_WITH(cpl-includes,
33 AS_HELP_STRING([--with-cpl-includes],
34 [location of the CPL header files]),
35 cpl_with_cpl_includes=$withval)
36
37 AC_ARG_WITH(cpl-libs,
38 AS_HELP_STRING([--with-cpl-libs],
39 [location of the CPL library]),
40 cpl_with_cpl_libs=-L$withval)
41
42 AC_ARG_ENABLE(cpl-test,
43 AS_HELP_STRING([--disable-cpl-test],
44 [disables checks for the CPL library and headers]),
45 cpl_enable_cpl_test=$enableval,
46 cpl_enable_cpl_test=yes)
47
48
49 if test "x$cpl_enable_cpl_test" = xyes; then
50
51 AC_MSG_CHECKING(checking for cpl)
52 save_LDFLAGS="$LDFLAGS"
53 save_LIBS="$LIBS"
54 save_CFLAGS="$CFLAGS"
55 if test -n "$cpl_with_cpl_libs"; then
56 LDFLAGS="$cpl_with_cpl_libs"
57 elif test -n "$CPLDIR"; then
58 LDFLAGS="-L$CPLDIR/lib -L$CPLDIR/lib64 -L$CPLDIR/lib32"
59 else
60 LDFLAGS=""
61 fi
62 if test -n "$cpl_with_cpl_includes"; then
63 CFLAGS="-I$cpl_with_cpl_includes"
64 elif test -n "$CPLDIR"; then
65 CFLAGS="-I$CPLDIR/include"
66 else
67 CFLAGS=""
68 fi
69 LIBS=$cpl_check_cpl_lib
70
71 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <cpl.h>]], [[cpl_init(0);]])],[
72 AC_MSG_RESULT(yes)
73 cpl_includes=$CFLAGS
74 cpl_ldflags=$LDFLAGS
75 ],[
76 AC_MSG_ERROR([CPL not found])
77 ])
78
79 # Set up the symbols
80
81 CPL_INCLUDES="$cpl_includes"
82 CPL_LDFLAGS="$cpl_ldflags"
83 LDFLAGS="$save_LDFLAGS"
84 LIBS="$save_LIBS"
85 CFLAGS="$save_CFLAGS"
86
87 LIBCPLCORE='-lcplcore'
88 LIBCPLDRS='-lcpldrs'
89 LIBCPLUI='-lcplui'
90 LIBCPLDFS='-lcpldfs'
91 LIBCEXT='-lcext'
92 else
93 AC_MSG_RESULT([disabled])
94 AC_MSG_WARN([CPL checks have been disabled! This package may not build!])
95 CPL_INCLUDES=""
96 CPL_LDFLAGS=""
97 LIBCPLCORE=""
98 LIBCPLDRS=""
99 LIBCPLUI=""
100 LIBCPLDFS=""
101 LIBCEXT=""
102 fi
103
104 AC_SUBST(CPL_INCLUDES)
105 AC_SUBST(CPL_LDFLAGS)
106 AC_SUBST(LIBCPLCORE)
107 AC_SUBST(LIBCPLDRS)
108 AC_SUBST(LIBCPLUI)
109 AC_SUBST(LIBCPLDFS)
110 AC_SUBST(LIBCEXT)
111 ])
00 # CPL_CHECK_CFITSIO(version)
11 #---------------------------
2 # Checks for the cfitsio library and header files.
2 # Checks for the cfitsio library and header files. If version is given the
3 # the given string is compared to the preprocessor symbols CFITSIO_MAJOR
4 # and CFITSIO_MINOR to verify that at least the given version is available.
35 AC_DEFUN([CPL_CHECK_CFITSIO],
46 [
57 cpl_cfitsio_check_version="$1"
3840 AC_ARG_VAR([CFITSIODIR], [Location where cfitsio is installed])
3941
4042
41 if test "x$cpl_enable_cfitsio_test" = xyes; then
43 if test x"$cpl_enable_cfitsio_test" = xyes; then
4244
4345 AC_MSG_CHECKING([for cfitsio])
4446
8082 # Check whether the header files and the library are present and
8183 # whether they can be used.
8284
83 cpl_have_cfitsio_libraries="no"
84 cpl_have_cfitsio_headers="no"
85 cpl_have_cfitsio_libraries="unknown"
86 cpl_have_cfitsio_headers="unknown"
8587
8688 AC_LANG_PUSH(C)
8789
106108 [
107109 cpl_have_cfitsio_headers="no"
108110 ])
109
110 AC_LINK_IFELSE([AC_LANG_PROGRAM(
111 [[
112 ]],
113 [
114 float v;
115 ffvers(&v);
116 ])],
117 [
118 cpl_have_cfitsio_libraries="yes"
119 ],
120 [
121 cpl_have_cfitsio_libraries="no"
122 ])
123
111
112 if test x"$cpl_have_cfitsio_headers" = xyes; then
113
114 AC_LINK_IFELSE([AC_LANG_PROGRAM(
115 [[
116 #include <$cpl_cfitsio_check_header>
117 ]],
118 [
119 float v;
120 ffvers(&v);
121 ])],
122 [
123 cpl_have_cfitsio_libraries="yes"
124 ],
125 [
126 cpl_have_cfitsio_libraries="no"
127 ])
128
129 fi
130
124131 AC_LANG_POP(C)
125132
126133 CFLAGS="$cpl_cfitsio_cflags_save"
161168
162169 AC_MSG_CHECKING([for a cfitsio version >= $cpl_cfitsio_check_version])
163170
164 AC_LANG_PUSH(C)
165
166171 cpl_cfitsio_cflags_save="$CFLAGS"
167172 cpl_cfitsio_ldflags_save="$LDFLAGS"
168173 cpl_cfitsio_libs_save="$LIBS"
169174
170 CFLAGS="$CFITSIO_CFLAGS"
175 # AC_COMPUTE_INT internally runs a test program and thus depents on the
176 # current runtime environment configuration! Since the following test for
177 # checking the version number only needs the CFITSIO headers and not the
178 # library make sure that the generated test does not depend on it. Leaving
179 # the library dependency in place here can actually make the test fail
180 # if the library is not found in the library search path!
181
182 CFLAGS="$CFITSIO_INCLUDES"
171183 LDFLAGS="$CFITSIO_LDFLAGS"
172 LIBS="$LIBCFITSIO"
173
174 AC_RUN_IFELSE([AC_LANG_PROGRAM(
175 [[
176 #include <stdio.h>
177 #include <fitsio.h>
178 ]],
179 [
180 int vlib = 0;
181 int vmin = (int)(1000. * $cpl_cfitsio_check_version + 0.5);
182
183 float v = CFITSIO_VERSION;
184
185 vlib = (int)(v * 1000 + 0.5);
186
187 FILE* f = fopen("conftest.out", "w");
188 fprintf(f, "%5.3f\n", v);
189 fclose(f);
190
191 if (vlib < vmin) {
192 return 1;
193 }
194
195 return 0;
196 ])],
197 [
198 cpl_cfitsio_version="`cat conftest.out`";
199 rm -f conftest.out
200 ],
201 [
202 cpl_cfitsio_version="no";
203 cpl_cfitsio_version_found="unknown";
204 test -r conftest.out && cpl_cfitsio_version_found="`cat conftest.out`";
205 rm -f conftest.out
206 ])
207
208 AC_MSG_RESULT([$cpl_cfitsio_version])
209
210 AC_LANG_POP(C)
211
184 LIBS=""
185
186 cpl_cfitsio_version=""
187 AC_COMPUTE_INT([cpl_cfitsio_major], [CFITSIO_MAJOR],
188 [#include <fitsio.h>], [cpl_cfitsio_version="no"])
189 AC_COMPUTE_INT([cpl_cfitsio_minor], [CFITSIO_MINOR],
190 [#include <fitsio.h>], [cpl_cfitsio_version="no"])
191 AS_IF([test x"$cpl_cfitsio_version" = xno],
192 [cpl_cfitsio_version_found="unknown"],
193 [cpl_cfitsio_version_found="$cpl_cfitsio_major.$cpl_cfitsio_minor"])
194
212195 CFLAGS="$cpl_cfitsio_cflags_save"
213196 LDFLAGS="$cpl_cfitsio_ldflags_save"
214197 LIBS="$cpl_cfitsio_libs_save"
215
216
198
217199 if test x"$cpl_cfitsio_version" = xno; then
218
219 AC_MSG_ERROR([Installed cfitsio ($cpl_cfitsio_version_found) is too old])
220200
221201 CFITSIO_INCLUDES=""
222202 CFITSIO_CFLAGS=""
223203 CFITSIO_LDFLAGS=""
224204 LIBCFITSIO=""
225205
206 AC_MSG_ERROR([cannot determine cfitsio version!])
207
208 else
209 AS_VERSION_COMPARE([$cpl_cfitsio_check_version],
210 [$cpl_cfitsio_version_found],
211 [],
212 [],
213 [cpl_cfitsio_version="no"])
214
215 if test x"$cpl_cfitsio_version" = xno; then
216 AC_MSG_ERROR([installed cfitsio ($cpl_cfitsio_version_found) is too old])
217 else
218 AC_DEFINE_UNQUOTED([CPL_CFITSIO_VERSION],
219 [$cpl_cfitsio_version_found],
220 [used version of CFITSIO])
221 AC_MSG_RESULT([$cpl_cfitsio_version_found])
222
223 fi
226224 fi
227225
228226 fi
400398 cpl_enable_cext_test=yes)
401399
402400
403 if test "x$cpl_enable_cext_test" = xyes; then
401 if test x"$cpl_enable_cext_test" = xyes; then
404402
405403 AC_MSG_CHECKING([for libcext])
406404
457455 # Check whether the header files and the library are present and
458456 # whether they can be used.
459457
460 cpl_have_cext_libraries="no"
461 cpl_have_cext_headers="no"
458 cpl_have_cext_libraries="unknown"
459 cpl_have_cext_headers="unknown"
462460
463461 AC_LANG_PUSH(C)
464462
483481 [
484482 cpl_have_cext_headers="no"
485483 ])
486
487 AC_LINK_IFELSE([AC_LANG_PROGRAM(
488 [[
489 ]],
490 [
491 cx_program_set_name("MyProgram");
492 ])],
493 [
494 cpl_have_cext_libraries="yes"
495 ],
496 [
497 cpl_have_cext_libraries="no"
498 ])
484
485 if test x"$cpl_have_cext_headers" = xyes; then
486
487 AC_LINK_IFELSE([AC_LANG_PROGRAM(
488 [[
489 #include <cxutils.h>
490 ]],
491 [
492 cx_program_set_name("MyProgram");
493 ])],
494 [
495 cpl_have_cext_libraries="yes"
496 ],
497 [
498 cpl_have_cext_libraries="no"
499 ])
500
501 fi
499502
500503 AC_LANG_POP(C)
501504
639642 # Check whether the header files and the library are present and
640643 # whether they can be used.
641644
642 cpl_have_wcs_libraries="no"
643 cpl_have_wcs_headers="no"
645 cpl_have_wcs_libraries="unknown"
646 cpl_have_wcs_headers="unknown"
644647
645648 AC_LANG_PUSH(C)
646649
654657
655658 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
656659 [[
660 #include <stdio.h>
657661 #include <$cpl_wcs_check_header>
658662 ]],
659663 [
665669 [
666670 cpl_have_wcs_headers="no"
667671 ])
668
669 AC_LINK_IFELSE([AC_LANG_PROGRAM(
670 [[
671 ]],
672 [
673 wcsini(0, 1, (void *)0);
674 ])],
675 [
676 cpl_have_wcs_libraries="yes"
677 ],
678 [
679 cpl_have_wcs_libraries="no"
680 ])
681
672
673 if test x"$cpl_have_wcs_headers" = xyes; then
674
675 AC_LINK_IFELSE([AC_LANG_PROGRAM(
676 [[
677 #include <stdio.h>
678 #include <$cpl_wcs_check_header>
679 ]],
680 [
681 wcsini(0, 1, (void *)0);
682 ])],
683 [
684 cpl_have_wcs_libraries="yes"
685 ],
686 [
687 cpl_have_wcs_libraries="no"
688 ])
689
690 fi
691
682692 AC_LANG_POP(C)
683693
684694 CFLAGS="$cpl_wcs_cflags_save"
725735 cpl_wcs_ldflags_save="$LDFLAGS"
726736 cpl_wcs_libs_save="$LIBS"
727737
738 # Do not add the library as a dependency here!
728739 CFLAGS="$WCS_CFLAGS"
729740 LDFLAGS="$WCS_LDFLAGS"
730 LIBS="$LIBWCS"
741 LIBS=""
731742
732743 AC_RUN_IFELSE([AC_LANG_PROGRAM(
733744 [[
925936 # Check whether the header files and the library are present and
926937 # whether they can be used.
927938
928 cpl_have_fftw_libraries="no"
929 cpl_have_fftw_headers="no"
939 cpl_have_fftw_libraries="unknown"
940 cpl_have_fftw_headers="unknown"
930941
931942 AC_LANG_PUSH(C)
932943
952963 cpl_have_fftw_headers="no"
953964 ])
954965
955 AC_LINK_IFELSE([AC_LANG_PROGRAM(
956 [[
957 ]],
958 [
959 fftw_plan_dft_1d(0, (void *)0, (void *)0, 0, 0);
960 ])],
961 [
962 cpl_have_fftw_libraries="yes"
963 ],
964 [
965 cpl_have_fftw_libraries="no"
966 ])
966 if test x"$cpl_have_fftw_headers" = xyes; then
967
968 AC_LINK_IFELSE([AC_LANG_PROGRAM(
969 [[
970 #include <$cpl_fftw_check_header>
971 ]],
972 [
973 fftw_plan_dft_1d(0, (void *)0, (void *)0, 0, 0);
974 ])],
975 [
976 cpl_have_fftw_libraries="yes"
977 ],
978 [
979 cpl_have_fftw_libraries="no"
980 ])
981
982 fi
967983
968984 AC_LANG_POP(C)
969985
11591175 # Check whether the header files and the library are present and
11601176 # whether they can be used.
11611177
1162 cpl_have_fftw_libraries="no"
1163 cpl_have_fftw_headers="no"
1178 cpl_have_fftw_libraries="unknown"
1179 cpl_have_fftw_headers="unknown"
11641180
11651181 AC_LANG_PUSH(C)
11661182
11861202 cpl_have_fftw_headers="no"
11871203 ])
11881204
1189 AC_LINK_IFELSE([AC_LANG_PROGRAM(
1190 [[
1191 ]],
1192 [
1193 fftwf_plan_dft_1d(0, (void *)0, (void *)0, 0, 0);
1194 ])],
1195 [
1196 cpl_have_fftw_libraries="yes"
1197 ],
1198 [
1199 cpl_have_fftw_libraries="no"
1200 ])
1201
1205 if test x"$cpl_have_fftw_headers" = xyes; then
1206
1207 AC_LINK_IFELSE([AC_LANG_PROGRAM(
1208 [[
1209 #include <$cpl_fftw_check_header>
1210 ]],
1211 [
1212 fftwf_plan_dft_1d(0, (void *)0, (void *)0, 0, 0);
1213 ])],
1214 [
1215 cpl_have_fftw_libraries="yes"
1216 ],
1217 [
1218 cpl_have_fftw_libraries="no"
1219 ])
1220
1221 fi
1222
12021223 AC_LANG_POP(C)
12031224
12041225 CFLAGS="$cpl_fftw_cflags_save"
14221443 AC_ARG_WITH(cpl,
14231444 AS_HELP_STRING([--with-cpl],
14241445 [location where CPL is installed]),
1425 [
1426 cpl_with_cpl=$withval
1427 ])
1446 [cpl_with_cpl=$withval],
1447 [cpl_with_cpl=""])
14281448
14291449 AC_ARG_WITH(cpl-includes,
14301450 AS_HELP_STRING([--with-cpl-includes],
14311451 [location of the CPL header files]),
1432 cpl_with_cpl_includes=$withval)
1452 [cpl_with_cpl_includes=$withval],
1453 [cpl_with_cpl_includes=""]
1454 )
14331455
14341456 AC_ARG_WITH(cpl-libs,
14351457 AS_HELP_STRING([--with-cpl-libs],
14361458 [location of the CPL library]),
1437 cpl_with_cpl_libs=$withval)
1459 [cpl_with_cpl_libs=$withval],
1460 [cpl_with_cpl_libs=""])
14381461
14391462 AC_ARG_ENABLE(cpl-test,
14401463 AS_HELP_STRING([--disable-cpl-test],
14451468
14461469 AC_MSG_CHECKING([for CPL])
14471470
1448 if test "x$cpl_enable_cpl_test" = xyes; then
1471 if test x"$cpl_enable_cpl_test" = xyes; then
14491472
14501473 # Initially assume a standard system installation of the
14511474 # package. This may then be updated by the following checks.
14901513 # Check whether the header files and the library are present and
14911514 # whether they can be used.
14921515
1493 cpl_have_libraries="no"
1494 cpl_have_headers="no"
1516 cpl_have_libraries="unknown"
1517 cpl_have_headers="unknown"
14951518
14961519 AC_LANG_PUSH(C)
14971520
15161539 [
15171540 cpl_have_headers="no"
15181541 ])
1519
1520 AC_LINK_IFELSE([AC_LANG_PROGRAM(
1521 [[
1522 ]],
1523 [
1524 cpl_init(0);
1525 ])],
1526 [
1527 cpl_have_libraries="yes"
1528 ],
1529 [
1530 cpl_have_libraries="no"
1531 ])
1532
1542
1543 if test x"$cpl_have_headers" = xyes; then
1544
1545 AC_LINK_IFELSE([AC_LANG_PROGRAM(
1546 [[
1547 #include <$cpl_check_header>
1548 ]],
1549 [
1550 cpl_init(0);
1551 ])],
1552 [
1553 cpl_have_libraries="yes"
1554 ],
1555 [
1556 cpl_have_libraries="no"
1557 ])
1558
1559 fi
1560
15331561 AC_LANG_POP(C)
15341562
15351563 CFLAGS="$cpl_cflags_save"
15731601 cpl_ldflags_save="$LDFLAGS"
15741602 cpl_libs_save="$LIBS"
15751603
1604 # Do not add the library as a dependency here!
15761605 CFLAGS="$CPL_CFLAGS"
15771606 LDFLAGS="$CPL_LDFLAGS"
1578 LIBS="$LIBCPLCORE"
1607 LIBS=""
15791608
15801609 AC_RUN_IFELSE([AC_LANG_PROGRAM(
15811610 [[
9191 target_triplet = @target@
9292 subdir = recipes
9393 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
94 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl.m4 \
95 $(top_srcdir)/m4macros/eso.m4 $(top_srcdir)/m4macros/gsl.m4 \
96 $(top_srcdir)/m4macros/hdrl.m4 \
94 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl-pipeline.m4 \
95 $(top_srcdir)/m4macros/cpl.m4 $(top_srcdir)/m4macros/eso.m4 \
96 $(top_srcdir)/m4macros/gsl.m4 $(top_srcdir)/m4macros/hdrl.m4 \
9797 $(top_srcdir)/m4macros/libtool.m4 \
9898 $(top_srcdir)/m4macros/ltoptions.m4 \
9999 $(top_srcdir)/m4macros/ltsugar.m4 \
360360 LD = @LD@
361361 LDFLAGS = @LDFLAGS@
362362 LIBAMBER = @LIBAMBER@
363 LIBCEXT = @LIBCEXT@
363364 LIBCFITSIO = @LIBCFITSIO@
364365 LIBCPLCORE = @LIBCPLCORE@
365366 LIBCPLDFS = @LIBCPLDFS@
8989 target_triplet = @target@
9090 subdir = regtests
9191 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl.m4 \
93 $(top_srcdir)/m4macros/eso.m4 $(top_srcdir)/m4macros/gsl.m4 \
94 $(top_srcdir)/m4macros/hdrl.m4 \
92 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl-pipeline.m4 \
93 $(top_srcdir)/m4macros/cpl.m4 $(top_srcdir)/m4macros/eso.m4 \
94 $(top_srcdir)/m4macros/gsl.m4 $(top_srcdir)/m4macros/hdrl.m4 \
9595 $(top_srcdir)/m4macros/libtool.m4 \
9696 $(top_srcdir)/m4macros/ltoptions.m4 \
9797 $(top_srcdir)/m4macros/ltsugar.m4 \
254254 LD = @LD@
255255 LDFLAGS = @LDFLAGS@
256256 LIBAMBER = @LIBAMBER@
257 LIBCEXT = @LIBCEXT@
257258 LIBCFITSIO = @LIBCFITSIO@
258259 LIBCPLCORE = @LIBCPLCORE@
259260 LIBCPLDFS = @LIBCPLDFS@
6262 fi ; \
6363 fi
6464
65 rec_all:
66 cd ../../${PACKAGE}_reg; make all; cd -
67
68 rec_validate:
69 cd ../../${PACKAGE}_reg; make validate; cd -
70
71 rec_nri:
72 cd ../../${PACKAGE}_reg; make nri; cd -
73
74 rec_check:
75 cd ../../${PACKAGE}_reg; make check; cd -
76
77 rec_valgrind:
78 cd ../../${PACKAGE}_reg; make valgrind; cd -
79
80 rec_compare:
81 cd ../../${PACKAGE}_reg; make compare; cd -
82
83 rec_nose:
84 cd ../../${PACKAGE}_reg; make nose; cd -
85
86 rec_clean:
87 cd ../../${PACKAGE}_reg; make clean; cd -
88
89
90
91 .PHONY: reg0 reg1 valgrind regcheck check rec_all rec_validate rec_nri rec_check rec_valgrind rec_compare rec_nose rec_clean
92 .NOTPARALLEL:
8989 target_triplet = @target@
9090 subdir = regtests/tests
9191 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl.m4 \
93 $(top_srcdir)/m4macros/eso.m4 $(top_srcdir)/m4macros/gsl.m4 \
94 $(top_srcdir)/m4macros/hdrl.m4 \
92 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl-pipeline.m4 \
93 $(top_srcdir)/m4macros/cpl.m4 $(top_srcdir)/m4macros/eso.m4 \
94 $(top_srcdir)/m4macros/gsl.m4 $(top_srcdir)/m4macros/hdrl.m4 \
9595 $(top_srcdir)/m4macros/libtool.m4 \
9696 $(top_srcdir)/m4macros/ltoptions.m4 \
9797 $(top_srcdir)/m4macros/ltsugar.m4 \
194194 LD = @LD@
195195 LDFLAGS = @LDFLAGS@
196196 LIBAMBER = @LIBAMBER@
197 LIBCEXT = @LIBCEXT@
197198 LIBCFITSIO = @LIBCFITSIO@
198199 LIBCPLCORE = @LIBCPLCORE@
199200 LIBCPLDFS = @LIBCPLDFS@
540541 fi ; \
541542 fi
542543
544 rec_all:
545 cd ../../${PACKAGE}_reg; make all; cd -
546
547 rec_validate:
548 cd ../../${PACKAGE}_reg; make validate; cd -
549
550 rec_nri:
551 cd ../../${PACKAGE}_reg; make nri; cd -
552
553 rec_check:
554 cd ../../${PACKAGE}_reg; make check; cd -
555
556 rec_valgrind:
557 cd ../../${PACKAGE}_reg; make valgrind; cd -
558
559 rec_compare:
560 cd ../../${PACKAGE}_reg; make compare; cd -
561
562 rec_nose:
563 cd ../../${PACKAGE}_reg; make nose; cd -
564
565 rec_clean:
566 cd ../../${PACKAGE}_reg; make clean; cd -
567
568 .PHONY: reg0 reg1 valgrind regcheck check rec_all rec_validate rec_nri rec_check rec_valgrind rec_compare rec_nose rec_clean
569 .NOTPARALLEL:
570
543571 # Tell versions [3.59,3.63) of GNU make to not export all variables.
544572 # Otherwise a system limit (for SysV at least) may be exceeded.
545573 .NOEXPORT:
9090 target_triplet = @target@
9191 subdir = scripts
9292 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl.m4 \
94 $(top_srcdir)/m4macros/eso.m4 $(top_srcdir)/m4macros/gsl.m4 \
95 $(top_srcdir)/m4macros/hdrl.m4 \
93 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl-pipeline.m4 \
94 $(top_srcdir)/m4macros/cpl.m4 $(top_srcdir)/m4macros/eso.m4 \
95 $(top_srcdir)/m4macros/gsl.m4 $(top_srcdir)/m4macros/hdrl.m4 \
9696 $(top_srcdir)/m4macros/libtool.m4 \
9797 $(top_srcdir)/m4macros/ltoptions.m4 \
9898 $(top_srcdir)/m4macros/ltsugar.m4 \
225225 LD = @LD@
226226 LDFLAGS = @LDFLAGS@
227227 LIBAMBER = @LIBAMBER@
228 LIBCEXT = @LIBCEXT@
228229 LIBCFITSIO = @LIBCFITSIO@
229230 LIBCPLCORE = @LIBCPLCORE@
230231 LIBCPLDFS = @LIBCPLDFS@
9191 TESTS =
9292 subdir = tests
9393 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
94 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl.m4 \
95 $(top_srcdir)/m4macros/eso.m4 $(top_srcdir)/m4macros/gsl.m4 \
96 $(top_srcdir)/m4macros/hdrl.m4 \
94 am__aclocal_m4_deps = $(top_srcdir)/m4macros/cpl-pipeline.m4 \
95 $(top_srcdir)/m4macros/cpl.m4 $(top_srcdir)/m4macros/eso.m4 \
96 $(top_srcdir)/m4macros/gsl.m4 $(top_srcdir)/m4macros/hdrl.m4 \
9797 $(top_srcdir)/m4macros/libtool.m4 \
9898 $(top_srcdir)/m4macros/ltoptions.m4 \
9999 $(top_srcdir)/m4macros/ltsugar.m4 \
399399 LD = @LD@
400400 LDFLAGS = @LDFLAGS@
401401 LIBAMBER = $(top_builddir)/amber/libamber.la
402 LIBCEXT = @LIBCEXT@
402403 LIBCFITSIO = @LIBCFITSIO@
403404 LIBCPLCORE = @LIBCPLCORE@
404405 LIBCPLDFS = @LIBCPLDFS@