Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | uclibc has langinfo.h but it does not define _NL_TIME_FIRST_WEEKDAY |
| 2 | therefore we introduce a check in configure for the this define |
| 3 | and then we make sure that we use it when it really exists |
| 4 | |
| 5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 6 | |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Index: git/configure.ac |
| 10 | =================================================================== |
| 11 | --- git.orig/configure.ac 2011-07-18 10:34:15.000000000 -0700 |
| 12 | +++ git/configure.ac 2011-07-18 10:54:26.403798188 -0700 |
| 13 | @@ -98,6 +98,8 @@ |
| 14 | src/libgtkdatesview.pc |
| 15 | ]) |
| 16 | |
| 17 | +AC_CHECK_DECLS([_NL_TIME_FIRST_WEEKDAY],[],[],[[#include <langinfo.h>]]) |
| 18 | + |
| 19 | AC_OUTPUT |
| 20 | |
| 21 | echo " " |
| 22 | Index: git/src/dates_view.c |
| 23 | =================================================================== |
| 24 | --- git.orig/src/dates_view.c 2011-07-18 10:34:15.000000000 -0700 |
| 25 | +++ git/src/dates_view.c 2011-07-18 10:58:46.093798136 -0700 |
| 26 | @@ -1505,7 +1505,11 @@ |
| 27 | priv->days = 1; |
| 28 | priv->months = 0; |
| 29 | priv->months_in_row = 4; |
| 30 | +#if HAVE_DECL__NL_TIME_FIRST_WEEKDAY |
| 31 | priv->week_start = *nl_langinfo (_NL_TIME_FIRST_WEEKDAY) - 1; |
| 32 | +#else |
| 33 | + priv->week_start = 0; |
| 34 | +#endif |
| 35 | priv->dragbox = TRUE; |
| 36 | priv->single_click = TRUE; |
| 37 | priv->double_click = FALSE; |