Rats!  I keep forgetting about the bootstrap.  I added an HP-UX block and
adjusted the logic to be a bit more consistent with the other "determine
system" blocks by moving the parisc determination out on it's own.  How's
this?

# Determine whether this is HP-UX
if echo "${cmake_system}" | grep HP-UX >/dev/null 2>&1; then
  cmake_system_hpux=true
else
  cmake_system_hpux=false
fi

# Determine whether this is Linux
if echo "${cmake_system}" | grep Linux >/dev/null 2>&1; then
  cmake_system_linux=true
else
  cmake_system_linux=false
fi

# Determine whether this is a PA-RISC machine
if ${cmake_system_linux}; then
  if uname -m | grep parisc >/dev/null 2>&1; then
    cmake_machine_parisc=true
  else
    cmake_machine_parisc=false
  fi
elif ${cmake_system_hpux}; then
  if uname -m | grep ia64 >/dev/null 2>&1; then
    cmake_machine_parisc=false
  else
    cmake_machine_parisc=true
  fi
fi





- Chuck

On Thu, Nov 6, 2014 at 11:27 AM, Brad King <brad.k...@kitware.com> wrote:

> On 11/06/2014 11:22 AM, Chuck Atkins wrote:
> > The branch has been updated, merged, squashed, and remerged to next
>
> Thanks.  This hunk:
>
> > # Determine whether this is Linux
> > if echo "${cmake_system}" | grep Linux >/dev/null 2>&1; then
> >   cmake_system_linux=true
> >   # find out if it is a HP PA-RISC machine
> >   if uname -m | grep parisc >/dev/null 2>&1; then
> >     cmake_machine_parisc=true
> >   else
> >     cmake_machine_parisc=false
> >   fi
> > else
> >   cmake_system_linux=false
> >   cmake_machine_parisc=false
> > fi
>
> Now sets an unused 'cmake_system_linux' variable and will never
> set 'cmake_machine_parisc' on non-Linux systems.  Isn't the goal
> for this to work on HP-UX too?
>
> -Brad
>
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to