gamin-0.1.9-configure.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --- a/configure 2007-07-27 10:27:34.000000000 -0400
  2. +++ b/configure 2008-02-13 15:00:27.000000000 -0500
  3. @@ -23161,89 +23161,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS con
  4. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6. -if test "$cross_compiling" = yes; then
  7. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8. -See \`config.log' for more details." >&5
  9. -echo "$as_me: error: cannot run test program while cross compiling
  10. -See \`config.log' for more details." >&2;}
  11. - { (exit 1); exit 1; }; }
  12. -else
  13. - cat >conftest.$ac_ext <<_ACEOF
  14. -/* confdefs.h. */
  15. -_ACEOF
  16. -cat confdefs.h >>conftest.$ac_ext
  17. -cat >>conftest.$ac_ext <<_ACEOF
  18. -/* end confdefs.h. */
  19. -
  20. -#include <sys/types.h>
  21. -#include <stdlib.h>
  22. -#include <string.h>
  23. -#include <stdio.h>
  24. -#include <sys/socket.h>
  25. -#include <sys/un.h>
  26. -#include <errno.h>
  27. -
  28. -int
  29. -main ()
  30. -{
  31. -
  32. - int listen_fd;
  33. - struct sockaddr_un addr;
  34. -
  35. - listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
  36. -
  37. - if (listen_fd < 0)
  38. - {
  39. - fprintf (stderr, "socket() failed: %s\n", strerror (errno));
  40. - exit (1);
  41. - }
  42. -
  43. - memset (&addr, '\0', sizeof (addr));
  44. - addr.sun_family = AF_UNIX;
  45. - strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
  46. - addr.sun_path[0] = '\0'; /* this is what makes it abstract */
  47. -
  48. - if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
  49. - {
  50. - fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
  51. - strerror (errno));
  52. - exit (1);
  53. - }
  54. - else
  55. - exit (0);
  56. -
  57. - ;
  58. - return 0;
  59. -}
  60. -_ACEOF
  61. -rm -f conftest$ac_exeext
  62. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  63. - (eval $ac_link) 2>&5
  64. - ac_status=$?
  65. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  67. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  68. - (eval $ac_try) 2>&5
  69. - ac_status=$?
  70. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  71. - (exit $ac_status); }; }; then
  72. - have_abstract_sockets=yes
  73. -else
  74. - echo "$as_me: program exited with status $ac_status" >&5
  75. -echo "$as_me: failed program was:" >&5
  76. -sed 's/^/| /' conftest.$ac_ext >&5
  77. -
  78. -( exit $ac_status )
  79. -have_abstract_sockets=no
  80. -fi
  81. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  82. -fi
  83. -ac_ext=c
  84. -ac_cpp='$CPP $CPPFLAGS'
  85. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  86. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  87. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  88. -
  89. echo "$as_me:$LINENO: result: $have_abstract_sockets" >&5
  90. echo "${ECHO_T}$have_abstract_sockets" >&6