54a4a4
# Qt initialization script (csh)
54a4a4
54a4a4
# In multilib environments there is a preferred architecture, 64 bit over 32 bit in x86_64,
54a4a4
# 32 bit over 64 bit in ppc64. When a conflict is found between two packages corresponding
54a4a4
# with different arches, the installed file is the one from the preferred arch. This is
54a4a4
# very common for executables in /usr/bin, for example. If the file /usr/bin/foo is found
54a4a4
# in an x86_64 package and in an i386 package, the executable from x86_64 will be installe
54a4a4
54a4a4
if ( $?QTDIR ) then
54a4a4
   exit
54a4a4
endif
54a4a4
54a4a4
switch (`uname -m`)
54a4a4
   case x86_64:
54a4a4
   case ia64:
54a4a4
   case s390x:
54a4a4
      set QTPREFIXES = "/usr/lib64/qt-3.3 /usr/lib/qt-3.3"
54a4a4
      breaksw
54a4a4
   case *:
54a4a4
      set QTPREFIXES = "/usr/lib/qt-3.3 /usr/lib64/qt-3.3"
54a4a4
endsw
54a4a4
54a4a4
foreach QTPREFIX ( $QTPREFIXES )
54a4a4
  test -d "$QTPREFIX" && setenv QTDIR $QTPREFIX && break
54a4a4
end
54a4a4
unset QTPREFIX QTPREFIXES
54a4a4
54a4a4
if ( "${path}" !~ *$QTDIR/bin* ) then
54a4a4
   set path = ( $QTDIR/bin $path )
54a4a4
endif
54a4a4
54a4a4
setenv QTINC $QTDIR/include
54a4a4
setenv QTLIB $QTDIR/lib