comparison configure @ 17264:b62c2fdbcde9

AIX PPC port patch by "Derek E. Lewis" < -- dlewis -- @ -- solnetworks -- . -- net -- >
author diego
date Thu, 29 Dec 2005 18:01:22 +0000
parents 44c24de55f9d
children 2ec81c50a763
comparison
equal deleted inserted replaced
17263:3946ba73d26b 17264:b62c2fdbcde9
73 } 73 }
74 linux() { issystem "Linux" ; return "$?" ; } 74 linux() { issystem "Linux" ; return "$?" ; }
75 sunos() { issystem "SunOS" ; return "$?" ; } 75 sunos() { issystem "SunOS" ; return "$?" ; }
76 hpux() { issystem "HP-UX" ; return "$?" ; } 76 hpux() { issystem "HP-UX" ; return "$?" ; }
77 irix() { issystem "IRIX" ; return "$?" ; } 77 irix() { issystem "IRIX" ; return "$?" ; }
78 aix() { issystem "AIX" ; return "$?" ; }
78 cygwin() { issystem "CYGWIN" ; return "$?" ; } 79 cygwin() { issystem "CYGWIN" ; return "$?" ; }
79 freebsd() { issystem "FreeBSD" ; return "$?" ; } 80 freebsd() { issystem "FreeBSD" ; return "$?" ; }
80 netbsd() { issystem "NetBSD" ; return "$?" ; } 81 netbsd() { issystem "NetBSD" ; return "$?" ; }
81 bsdos() { issystem "BSD/OS" ; return "$?" ; } 82 bsdos() { issystem "BSD/OS" ; return "$?" ; }
82 openbsd() { issystem "OpenBSD" ; return "$?" ; } 83 openbsd() { issystem "OpenBSD" ; return "$?" ; }
477 # Determine our OS name and CPU architecture 478 # Determine our OS name and CPU architecture
478 if test -z "$_target" ; then 479 if test -z "$_target" ; then
479 # OS name 480 # OS name
480 system_name=`uname -s 2>&1` 481 system_name=`uname -s 2>&1`
481 case "$system_name" in 482 case "$system_name" in
482 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS) 483 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX)
483 ;; 484 ;;
484 IRIX*) 485 IRIX*)
485 system_name=IRIX 486 system_name=IRIX
486 ;; 487 ;;
487 HP-UX*) 488 HP-UX*)
593 fi 594 fi
594 595
595 _ldd=ldd 596 _ldd=ldd
596 if darwin; then 597 if darwin; then
597 _ldd="otool -L" 598 _ldd="otool -L"
599 fi
600
601 if aix ; then
602 _ld_libC="-lC"
603 else
604 _ld_libC=""
598 fi 605 fi
599 606
600 # Check how to call 'head' and 'tail'. Newer versions spit out warnings 607 # Check how to call 'head' and 'tail'. Newer versions spit out warnings
601 # if used as 'head -1' instead of 'head -n 1', but older versions don't 608 # if used as 'head -1' instead of 'head -n 1', but older versions don't
602 # know about '-n'. 609 # know about '-n'.
758 # extract CPU information from it 765 # extract CPU information from it
759 _cpuinfo="cat /compat/linux/proc/cpuinfo" 766 _cpuinfo="cat /compat/linux/proc/cpuinfo"
760 elif darwin ; then 767 elif darwin ; then
761 # use hostinfo on Darwin 768 # use hostinfo on Darwin
762 _cpuinfo="hostinfo" 769 _cpuinfo="hostinfo"
770 elif aix; then
771 # use 'lsattr' on AIX
772 _cpuinfo="lsattr -E -l proc0"
763 elif x86; then 773 elif x86; then
764 # all other OSes try to extract CPU information from a small helper 774 # all other OSes try to extract CPU information from a small helper
765 # program TOOLS/cpuinfo instead 775 # program TOOLS/cpuinfo instead
766 $_cc -o TOOLS/cpuinfo TOOLS/cpuinfo.c 776 $_cc -o TOOLS/cpuinfo TOOLS/cpuinfo.c
767 _cpuinfo="TOOLS/cpuinfo" 777 _cpuinfo="TOOLS/cpuinfo"
1179 _altivec=yes 1189 _altivec=yes
1180 fi 1190 fi
1181 ;; 1191 ;;
1182 esac 1192 esac
1183 ;; 1193 ;;
1194 AIX)
1195 proc=`$_cpuinfo | grep 'type' | cut -f 7 -d ' ' | sed 's/PowerPC_//'`
1196 ;;
1184 esac 1197 esac
1185 if test "$_altivec" = yes; then 1198 if test "$_altivec" = yes; then
1186 echores "$proc altivec" 1199 echores "$proc altivec"
1187 else 1200 else
1188 echores "$proc" 1201 echores "$proc"
1196 603) _march='-mcpu=603' _mcpu='-mtune=603' ;; 1209 603) _march='-mcpu=603' _mcpu='-mtune=603' ;;
1197 603e|603ev) _march='-mcpu=603e' _mcpu='-mtune=603e' ;; 1210 603e|603ev) _march='-mcpu=603e' _mcpu='-mtune=603e' ;;
1198 604|604e|604r|604ev) _march='-mcpu=604' _mcpu='-mtune=604' ;; 1211 604|604e|604r|604ev) _march='-mcpu=604' _mcpu='-mtune=604' ;;
1199 740|740/750|745/755) _march='-mcpu=740' _mcpu='-mtune=740' ;; 1212 740|740/750|745/755) _march='-mcpu=740' _mcpu='-mtune=740' ;;
1200 750|750CX) _march='-mcpu=750' _mcpu='-mtune=750' ;; 1213 750|750CX) _march='-mcpu=750' _mcpu='-mtune=750' ;;
1214 POWER) _march='-mcpu=power' _mcpu='-mtune=power' ;;
1215 POWER2) _march='-mcpu=power2' _mcpu='-mtune=power2' ;;
1216 POWER3) _march='-mcpu=power3' _mcpu='-mtune=power3' ;;
1201 *) ;; 1217 *) ;;
1202 esac 1218 esac
1203 # gcc 3.1(.1) and up supports 7400 and 7450 1219 # gcc 3.1(.1) and up supports 7400 and 7450
1204 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1" || test "$_cc_major" -ge "4"; then 1220 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1" || test "$_cc_major" -ge "4"; then
1205 case "$proc" in 1221 case "$proc" in
1213 case "$proc" in 1229 case "$proc" in
1214 970*) _march='-mcpu=970' _mcpu='-mtune=970' 1230 970*) _march='-mcpu=970' _mcpu='-mtune=970'
1215 _def_dcbzl='#undef NO_DCBZL' ;; 1231 _def_dcbzl='#undef NO_DCBZL' ;;
1216 *) ;; 1232 *) ;;
1217 esac 1233 esac
1234 fi
1235 # gcc 3.3 and up supports POWER4
1236 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then
1237 case "$proc" in
1238 POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4'
1239 _def_dcbzl='#undef NO_DCBZL' ;;
1240 *) ;;
1241 esac
1218 fi 1242 fi
1219 fi 1243 fi
1220 1244
1221 if test -n "$_mcpu"; then 1245 if test -n "$_mcpu"; then
1222 _optimizing=`echo $_mcpu | cut -c 8-` 1246 _optimizing=`echo $_mcpu | cut -c 8-`
7093 WIN32_LIB = $_ld_win32libs 7117 WIN32_LIB = $_ld_win32libs
7094 STATIC_LIB = $_ld_static 7118 STATIC_LIB = $_ld_static
7095 ENCA_LIB = $_ld_enca 7119 ENCA_LIB = $_ld_enca
7096 HAVE_PTHREADS = $_pthreads 7120 HAVE_PTHREADS = $_pthreads
7097 MATH_LIB = $_ld_lm 7121 MATH_LIB = $_ld_lm
7122 LIBC_LIB = $_ld_libC
7098 7123
7099 X11_INC = $_inc_x11 7124 X11_INC = $_inc_x11
7100 X11DIR = $_ld_x11 7125 X11DIR = $_ld_x11
7101 7126
7102 HAVE_XVMC_ACCEL = $_xvmc 7127 HAVE_XVMC_ACCEL = $_xvmc