~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

Added code to automatically build a new list of POTFILES.in, then updated the translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1406
1406
  fi
1407
1407
done
1408
1408
 
1409
 
AC_CONFIG_COMMANDS([default], , test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h)
 
1409
AC_CONFIG_COMMANDS([timestamp-h], , test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h)
 
1410
 
 
1411
AC_CONFIG_COMMANDS([po/POTFILES.in],[
 
1412
if test "x$EGREP" != "x"
 
1413
then
 
1414
  echo "# This file is auto-generated from configure. Do not edit directly" > po/POTFILES.in.in
 
1415
  for f in `find . | ${EGREP} '\.(cc|c|h|yy)$' | cut -c3- | sort`
 
1416
  do
 
1417
    if grep gettext.h "$f" | grep include >/dev/null 2>&1
 
1418
    then
 
1419
      echo "$f" >> po/POTFILES.in.in
 
1420
    fi
 
1421
  done
 
1422
  if ! diff po/POTFILES.in.in po/POTFILES.in >/dev/null 2>&1
 
1423
  then
 
1424
    mv po/POTFILES.in.in po/POTFILES.in
 
1425
  else
 
1426
    rm po/POTFILES.in.in
 
1427
  fi
 
1428
fi
 
1429
])
1410
1430
 
1411
1431
# Ensure that table handlers gets all modifications to CFLAGS/CXXFLAGS
1412
1432
AC_CONFIG_COMMANDS_POST(ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS' AM_CFLAGS='$AM_CFLAGS' AM_CXXFLAGS='$AM_CXXFLAGS'")