Blame bootstrap.sh

Packit Service 3c90ac
#! /bin/sh
Packit Service 3c90ac
#
Packit Service 3c90ac
# iperf, Copyright (c) 2014, The Regents of the University of
Packit Service 3c90ac
# California, through Lawrence Berkeley National Laboratory (subject
Packit Service 3c90ac
# to receipt of any required approvals from the U.S. Dept. of
Packit Service 3c90ac
# Energy).  All rights reserved.
Packit Service 3c90ac
#
Packit Service 3c90ac
# If you have questions about your rights to use or distribute this
Packit Service 3c90ac
# software, please contact Berkeley Lab's Technology Transfer
Packit Service 3c90ac
# Department at TTD@lbl.gov.
Packit Service 3c90ac
#
Packit Service 3c90ac
# NOTICE.  This software is owned by the U.S. Department of Energy.
Packit Service 3c90ac
# As such, the U.S. Government has been granted for itself and others
Packit Service 3c90ac
# acting on its behalf a paid-up, nonexclusive, irrevocable,
Packit Service 3c90ac
# worldwide license in the Software to reproduce, prepare derivative
Packit Service 3c90ac
# works, and perform publicly and display publicly.  Beginning five
Packit Service 3c90ac
# (5) years after the date permission to assert copyright is obtained
Packit Service 3c90ac
# from the U.S. Department of Energy, and subject to any subsequent
Packit Service 3c90ac
# five (5) year renewals, the U.S. Government is granted for itself
Packit Service 3c90ac
# and others acting on its behalf a paid-up, nonexclusive,
Packit Service 3c90ac
# irrevocable, worldwide license in the Software to reproduce,
Packit Service 3c90ac
# prepare derivative works, distribute copies to the public, perform
Packit Service 3c90ac
# publicly and display publicly, and to permit others to do so.
Packit Service 3c90ac
#
Packit Service 3c90ac
# This code is distributed under a BSD style license, see the LICENSE
Packit Service 3c90ac
# file for complete information.
Packit Service 3c90ac
#
Packit Service 3c90ac
Packit Service 3c90ac
# When changes are made to the build infrastructure, invoke this
Packit Service 3c90ac
# script to regenerate all of the autotools-built files.
Packit Service 3c90ac
# Normally, this is only of use to developers.
Packit Service 3c90ac
Packit Service 3c90ac
# Figure out how to invoke libtoolize.  On MacOS (with MacPorts)
Packit Service 3c90ac
# it's invoked as glibtoolize.
Packit Service 3c90ac
if libtoolize --version >/dev/null 2>&1; then
Packit Service 3c90ac
  libtoolize=libtoolize
Packit Service 3c90ac
elif glibtoolize --version >/dev/null 2>&1; then
Packit Service 3c90ac
  libtoolize=glibtoolize
Packit Service 3c90ac
else
Packit Service 3c90ac
  libtoolize=""
Packit Service 3c90ac
fi
Packit Service 3c90ac
if [ "x$libtoolize" = "x" ]; then
Packit Service 3c90ac
  echo "Can't find libtoolize, exiting."
Packit Service 3c90ac
  exit 1
Packit Service 3c90ac
fi
Packit Service 3c90ac
Packit Service 3c90ac
# Execute the various autotools commands in the correct order.
Packit Service 3c90ac
set -x
Packit Service 3c90ac
$libtoolize --copy --force --automake
Packit Service 3c90ac
aclocal -I config
Packit Service 3c90ac
autoheader
Packit Service 3c90ac
automake --foreign --add-missing --copy
Packit Service 3c90ac
autoconf
Packit Service 3c90ac
rm -rf config.cache