diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/wvdial/wvstreams/argp.patch')
| -rw-r--r-- | meta-oe/recipes-connectivity/wvdial/wvstreams/argp.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/wvdial/wvstreams/argp.patch b/meta-oe/recipes-connectivity/wvdial/wvstreams/argp.patch new file mode 100644 index 0000000000..e857213637 --- /dev/null +++ b/meta-oe/recipes-connectivity/wvdial/wvstreams/argp.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | Check for argp_parse in libargp and then in libc before using internal version | ||
| 2 | |||
| 3 | Index: wvstreams-4.6.1/configure.ac | ||
| 4 | =================================================================== | ||
| 5 | --- wvstreams-4.6.1.orig/configure.ac | ||
| 6 | +++ wvstreams-4.6.1/configure.ac | ||
| 7 | @@ -142,20 +142,21 @@ CPPFLAGS="$CPPFLAGS_save" | ||
| 8 | # argp | ||
| 9 | USE_WVSTREAMS_ARGP=0 | ||
| 10 | AC_CHECK_HEADERS(argp.h) | ||
| 11 | -AC_CHECK_FUNC(argp_parse) | ||
| 12 | -if test "$ac_cv_func_argp_parse" != yes \ | ||
| 13 | - -o "$ac_cv_header_argp_h" != yes ; then | ||
| 14 | - ( | ||
| 15 | - echo | ||
| 16 | +AC_SEARCH_LIBS([argp_parse], [argp c], [], [ | ||
| 17 | + | ||
| 18 | + if test "$ac_cv_func_argp_parse" != yes \ | ||
| 19 | + -o "$ac_cv_header_argp_h" != yes ; then | ||
| 20 | + ( | ||
| 21 | + echo | ||
| 22 | echo 'configuring argp...' | ||
| 23 | cd argp | ||
| 24 | ./configure --host=$host_cpu-$host_os || exit $? | ||
| 25 | echo 'argp configured.' | ||
| 26 | echo | ||
| 27 | - ) || exit $? | ||
| 28 | - USE_WVSTREAMS_ARGP=1 | ||
| 29 | -fi | ||
| 30 | - | ||
| 31 | + ) || exit $? | ||
| 32 | + USE_WVSTREAMS_ARGP=1 | ||
| 33 | + fi | ||
| 34 | +]) | ||
| 35 | # Function checks | ||
| 36 | AC_HEADER_DIRENT | ||
| 37 | |||
