view libinterp/config-features.sh @ 20557:818122703f1e

Use CXXFLAGS to build *.df files (fix regression by 0ce7d8303152) * libinterp/module.mk, libinterp/corefcn/module.mk, libinterp/octave-value/module.mk: add CXXFLAGS since mumble_CXXFLAGS only includes AM_CXXFLAGS and WARN_CXXFLAGS, and automake does not add it automatically for this custome rules.
author Carnë Draug <carandraug@octave.org>
date Sat, 26 Sep 2015 16:32:28 +0100
parents 2a4f83826024
children
line wrap: on
line source

#! /bin/sh

set -e
AWK=${AWK:-awk}

conffile=$1

cat << EOF
// DO NOT EDIT!  Generated automatically from $conffile by Make."

#include "oct-map.h"
#include "ov.h"

octave_scalar_map
octave_config_features (void)
{
  octave_scalar_map m;

EOF

$AWK \
  '/#define HAVE_/ {
     sub (/HAVE_/, "", $2);
     printf ("  m.assign (\"%s\", octave_value (true));\n", $2);
   }
   /\/\* #undef HAVE_/ {
     sub (/HAVE_/, "", $3);
     printf ("  m.assign (\"%s\", octave_value (false));\n", $3);
   } {
   }' $conffile

cat << EOF

  return m;
}
EOF