libusb 0.3.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Gemfile +1 -0
  5. data/History.md +10 -0
  6. data/README.md +19 -6
  7. data/Rakefile +1 -1
  8. data/ext/extconf.rb +17 -1
  9. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/AUTHORS +18 -6
  10. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/COPYING +0 -0
  11. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ChangeLog +58 -1
  12. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/INSTALL +0 -0
  13. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.am +6 -1
  14. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.in +248 -174
  15. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/NEWS +2 -2
  16. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/PORTING +0 -0
  17. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/README +2 -1
  18. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/TODO +0 -0
  19. data/ext/libusbx-1.0.17/Xcode/common.xcconfig +40 -0
  20. data/ext/libusbx-1.0.17/Xcode/config.h +28 -0
  21. data/ext/libusbx-1.0.17/Xcode/debug.xcconfig +29 -0
  22. data/ext/libusbx-1.0.17/Xcode/libusbx.xcconfig +21 -0
  23. data/ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj +864 -0
  24. data/ext/libusbx-1.0.17/Xcode/libusbx_debug.xcconfig +21 -0
  25. data/ext/libusbx-1.0.17/Xcode/libusbx_release.xcconfig +21 -0
  26. data/ext/libusbx-1.0.17/Xcode/release.xcconfig +29 -0
  27. data/ext/libusbx-1.0.17/aclocal.m4 +1112 -0
  28. data/ext/libusbx-1.0.17/android/README +114 -0
  29. data/ext/libusbx-1.0.17/android/config.h +90 -0
  30. data/ext/libusbx-1.0.17/android/jni/Android.mk +23 -0
  31. data/ext/libusbx-1.0.17/android/jni/Application.mk +19 -0
  32. data/ext/libusbx-1.0.17/android/jni/examples.mk +134 -0
  33. data/ext/libusbx-1.0.17/android/jni/libusb.mk +54 -0
  34. data/ext/libusbx-1.0.17/android/jni/tests.mk +56 -0
  35. data/ext/libusbx-1.0.17/compile +347 -0
  36. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.guess +164 -130
  37. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.h.in +37 -1
  38. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.sub +174 -89
  39. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure +723 -302
  40. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure.ac +71 -20
  41. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/depcomp +345 -185
  42. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.am +0 -0
  43. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.in +95 -32
  44. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/doxygen.cfg.in +1 -1
  45. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.am +5 -4
  46. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.in +208 -104
  47. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp.c +1 -1
  48. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp_threaded.c +1 -1
  49. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.c +188 -8
  50. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.h +18 -5
  51. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/fxload.c +90 -64
  52. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.c +0 -0
  53. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.h +0 -0
  54. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt1.c +0 -0
  55. data/ext/libusbx-1.0.17/examples/hotplugtest.c +97 -0
  56. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/listdevs.c +12 -4
  57. data/ext/libusbx-1.0.17/examples/sam3u_benchmark.c +193 -0
  58. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/xusb.c +106 -49
  59. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/install-sh +21 -14
  60. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb-1.0.pc.in +1 -1
  61. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/Makefile.am +29 -10
  62. data/ext/libusbx-1.0.17/libusb/Makefile.in +914 -0
  63. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/core.c +378 -87
  64. data/ext/libusbx-1.0.17/libusb/descriptor.c +1199 -0
  65. data/ext/libusbx-1.0.17/libusb/hotplug.c +322 -0
  66. data/ext/libusbx-1.0.17/libusb/hotplug.h +82 -0
  67. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/io.c +182 -62
  68. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.def +32 -0
  69. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.rc +2 -0
  70. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb.h +481 -32
  71. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusbi.h +135 -38
  72. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.c +591 -496
  73. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.h +39 -46
  74. data/ext/libusbx-1.0.17/libusb/os/linux_netlink.c +345 -0
  75. data/ext/libusbx-1.0.17/libusb/os/linux_udev.c +306 -0
  76. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.c +653 -617
  77. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.h +32 -0
  78. data/ext/{libusbx-1.0.14/libusb/os/openbsd_usb.c → libusbx-1.0.17/libusb/os/netbsd_usb.c} +70 -63
  79. data/ext/libusbx-1.0.17/libusb/os/openbsd_usb.c +823 -0
  80. data/ext/libusbx-1.0.17/libusb/os/poll_posix.c +51 -0
  81. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_posix.h +2 -1
  82. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.c +85 -106
  83. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.h +14 -3
  84. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.c +3 -1
  85. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.h +0 -0
  86. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.c +6 -5
  87. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.h +0 -0
  88. data/ext/libusbx-1.0.17/libusb/os/wince_usb.c +1026 -0
  89. data/ext/libusbx-1.0.17/libusb/os/wince_usb.h +131 -0
  90. data/ext/libusbx-1.0.17/libusb/os/windows_common.h +108 -0
  91. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.c +92 -57
  92. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.h +2 -63
  93. data/ext/libusbx-1.0.17/libusb/strerror.c +184 -0
  94. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/sync.c +24 -38
  95. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/version.h +1 -1
  96. data/ext/libusbx-1.0.17/libusb/version_nano.h +1 -0
  97. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ltmain.sh +60 -41
  98. data/ext/{libusbx-1.0.14/aclocal.m4 → libusbx-1.0.17/m4/libtool.m4} +229 -1723
  99. data/ext/libusbx-1.0.17/m4/ltoptions.m4 +384 -0
  100. data/ext/libusbx-1.0.17/m4/ltsugar.m4 +123 -0
  101. data/ext/libusbx-1.0.17/m4/ltversion.m4 +23 -0
  102. data/ext/libusbx-1.0.17/m4/lt~obsolete.m4 +98 -0
  103. data/ext/libusbx-1.0.17/missing +215 -0
  104. data/ext/libusbx-1.0.17/tests/Makefile.am +6 -0
  105. data/ext/libusbx-1.0.17/tests/Makefile.in +583 -0
  106. data/ext/libusbx-1.0.17/tests/libusbx_testlib.h +107 -0
  107. data/ext/libusbx-1.0.17/tests/stress.c +160 -0
  108. data/ext/libusbx-1.0.17/tests/testlib.c +276 -0
  109. data/lib/libusb.rb +4 -0
  110. data/lib/libusb/call.rb +43 -1
  111. data/lib/libusb/constants.rb +5 -0
  112. data/lib/libusb/context.rb +100 -0
  113. data/lib/libusb/dev_handle.rb +27 -0
  114. data/lib/libusb/device.rb +10 -4
  115. data/lib/libusb/version_gem.rb +1 -1
  116. data/test/test_libusb_capability.rb +2 -2
  117. data/test/test_libusb_compat.rb +2 -2
  118. data/test/test_libusb_compat_mass_storage.rb +2 -2
  119. data/test/test_libusb_descriptors.rb +4 -2
  120. data/test/test_libusb_event_machine.rb +2 -2
  121. data/test/test_libusb_gc.rb +2 -2
  122. data/test/test_libusb_hotplug.rb +115 -0
  123. data/test/test_libusb_iso_transfer.rb +3 -3
  124. data/test/test_libusb_mass_storage.rb +6 -16
  125. data/test/test_libusb_mass_storage2.rb +26 -3
  126. data/test/test_libusb_structs.rb +2 -2
  127. data/test/test_libusb_threads.rb +2 -2
  128. data/test/test_libusb_version.rb +2 -2
  129. metadata +127 -68
  130. metadata.gz.sig +0 -0
  131. data/ext/libusbx-1.0.14/THANKS +0 -7
  132. data/ext/libusbx-1.0.14/compile +0 -143
  133. data/ext/libusbx-1.0.14/libusb/Makefile.in +0 -721
  134. data/ext/libusbx-1.0.14/libusb/descriptor.c +0 -731
  135. data/ext/libusbx-1.0.14/libusb/version_nano.h +0 -1
  136. data/ext/libusbx-1.0.14/missing +0 -376
@@ -1,13 +1,11 @@
1
1
  #! /bin/sh
2
2
  # Guess values for system-dependent variables and create Makefiles.
3
- # Generated by GNU Autoconf 2.68 for libusbx 1.0.14.
3
+ # Generated by GNU Autoconf 2.69 for libusbx 1.0.17.
4
4
  #
5
5
  # Report bugs to <libusbx-devel@lists.sourceforge.net>.
6
6
  #
7
7
  #
8
- # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
- # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10
- # Foundation, Inc.
8
+ # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
9
  #
12
10
  #
13
11
  # This configure script is free software; the Free Software Foundation
@@ -136,6 +134,31 @@ export LANGUAGE
136
134
  # CDPATH.
137
135
  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
136
 
137
+ # Use a proper internal environment variable to ensure we don't fall
138
+ # into an infinite loop, continuously re-executing ourselves.
139
+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
+ _as_can_reexec=no; export _as_can_reexec;
141
+ # We cannot yet assume a decent shell, so we have to provide a
142
+ # neutralization value for shells without unset; and this also
143
+ # works around shells that cannot unset nonexistent variables.
144
+ # Preserve -v and -x to the replacement shell.
145
+ BASH_ENV=/dev/null
146
+ ENV=/dev/null
147
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
+ case $- in # ((((
149
+ *v*x* | *x*v* ) as_opts=-vx ;;
150
+ *v* ) as_opts=-v ;;
151
+ *x* ) as_opts=-x ;;
152
+ * ) as_opts= ;;
153
+ esac
154
+ exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
+ # Admittedly, this is quite paranoid, since all the known shells bail
156
+ # out after a failed `exec'.
157
+ $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
+ as_fn_exit 255
159
+ fi
160
+ # We don't want this to propagate to other subprocesses.
161
+ { _as_can_reexec=; unset _as_can_reexec;}
139
162
  if test "x$CONFIG_SHELL" = x; then
140
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
164
  emulate sh
@@ -169,7 +192,8 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
192
  else
170
193
  exitcode=1; echo positional parameters were not saved.
171
194
  fi
172
- test x\$exitcode = x0 || exit 1"
195
+ test x\$exitcode = x0 || exit 1
196
+ test -x / || exit 1"
173
197
  as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
@@ -222,21 +246,25 @@ IFS=$as_save_IFS
222
246
 
223
247
 
224
248
  if test "x$CONFIG_SHELL" != x; then :
225
- # We cannot yet assume a decent shell, so we have to provide a
226
- # neutralization value for shells without unset; and this also
227
- # works around shells that cannot unset nonexistent variables.
228
- # Preserve -v and -x to the replacement shell.
229
- BASH_ENV=/dev/null
230
- ENV=/dev/null
231
- (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
- export CONFIG_SHELL
233
- case $- in # ((((
234
- *v*x* | *x*v* ) as_opts=-vx ;;
235
- *v* ) as_opts=-v ;;
236
- *x* ) as_opts=-x ;;
237
- * ) as_opts= ;;
238
- esac
239
- exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
249
+ export CONFIG_SHELL
250
+ # We cannot yet assume a decent shell, so we have to provide a
251
+ # neutralization value for shells without unset; and this also
252
+ # works around shells that cannot unset nonexistent variables.
253
+ # Preserve -v and -x to the replacement shell.
254
+ BASH_ENV=/dev/null
255
+ ENV=/dev/null
256
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257
+ case $- in # ((((
258
+ *v*x* | *x*v* ) as_opts=-vx ;;
259
+ *v* ) as_opts=-v ;;
260
+ *x* ) as_opts=-x ;;
261
+ * ) as_opts= ;;
262
+ esac
263
+ exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
+ # Admittedly, this is quite paranoid, since all the known shells bail
265
+ # out after a failed `exec'.
266
+ $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267
+ exit 255
240
268
  fi
241
269
 
242
270
  if test x$as_have_required = xno; then :
@@ -339,6 +367,14 @@ $as_echo X"$as_dir" |
339
367
 
340
368
 
341
369
  } # as_fn_mkdir_p
370
+
371
+ # as_fn_executable_p FILE
372
+ # -----------------------
373
+ # Test if FILE is an executable regular file.
374
+ as_fn_executable_p ()
375
+ {
376
+ test -f "$1" && test -x "$1"
377
+ } # as_fn_executable_p
342
378
  # as_fn_append VAR VALUE
343
379
  # ----------------------
344
380
  # Append the text in VALUE to the end of the definition contained in VAR. Take
@@ -460,6 +496,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
460
496
  chmod +x "$as_me.lineno" ||
461
497
  { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
498
 
499
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500
+ # already done that, so ensure we don't try to do so again and fall
501
+ # in an infinite loop. This has already happened in practice.
502
+ _as_can_reexec=no; export _as_can_reexec
463
503
  # Don't try to exec as it changes $[0], causing all sort of problems
464
504
  # (the dirname of $[0] is not the place where we might find the
465
505
  # original and so on. Autoconf is especially sensitive to this).
@@ -494,16 +534,16 @@ if (echo >conf$$.file) 2>/dev/null; then
494
534
  # ... but there are two gotchas:
495
535
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
536
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
- # In both cases, we have to default to `cp -p'.
537
+ # In both cases, we have to default to `cp -pR'.
498
538
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499
- as_ln_s='cp -p'
539
+ as_ln_s='cp -pR'
500
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
501
541
  as_ln_s=ln
502
542
  else
503
- as_ln_s='cp -p'
543
+ as_ln_s='cp -pR'
504
544
  fi
505
545
  else
506
- as_ln_s='cp -p'
546
+ as_ln_s='cp -pR'
507
547
  fi
508
548
  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
549
  rmdir conf$$.dir 2>/dev/null
@@ -515,28 +555,8 @@ else
515
555
  as_mkdir_p=false
516
556
  fi
517
557
 
518
- if test -x / >/dev/null 2>&1; then
519
- as_test_x='test -x'
520
- else
521
- if ls -dL / >/dev/null 2>&1; then
522
- as_ls_L_option=L
523
- else
524
- as_ls_L_option=
525
- fi
526
- as_test_x='
527
- eval sh -c '\''
528
- if test -d "$1"; then
529
- test -d "$1/.";
530
- else
531
- case $1 in #(
532
- -*)set "./$1";;
533
- esac;
534
- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
- ???[sx]*):;;*)false;;esac;fi
536
- '\'' sh
537
- '
538
- fi
539
- as_executable_p=$as_test_x
558
+ as_test_x='test -x'
559
+ as_executable_p=as_fn_executable_p
540
560
 
541
561
  # Sed expression to map a string onto a valid CPP name.
542
562
  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -570,8 +590,8 @@ MAKEFLAGS=
570
590
  # Identity of this package.
571
591
  PACKAGE_NAME='libusbx'
572
592
  PACKAGE_TARNAME='libusbx'
573
- PACKAGE_VERSION='1.0.14'
574
- PACKAGE_STRING='libusbx 1.0.14'
593
+ PACKAGE_VERSION='1.0.17'
594
+ PACKAGE_STRING='libusbx 1.0.17'
575
595
  PACKAGE_BUGREPORT='libusbx-devel@lists.sourceforge.net'
576
596
  PACKAGE_URL='http://libusbx.org'
577
597
 
@@ -618,28 +638,33 @@ LTLIBOBJS
618
638
  LIBOBJS
619
639
  LTLDFLAGS
620
640
  AM_CFLAGS
621
- VISIBILITY_CFLAGS
622
641
  HAVE_SIGACTION_FALSE
623
642
  HAVE_SIGACTION_TRUE
643
+ BUILD_TESTS_FALSE
644
+ BUILD_TESTS_TRUE
624
645
  BUILD_EXAMPLES_FALSE
625
646
  BUILD_EXAMPLES_TRUE
647
+ USE_UDEV_FALSE
648
+ USE_UDEV_TRUE
626
649
  CREATE_IMPORT_LIB_FALSE
627
650
  CREATE_IMPORT_LIB_TRUE
628
651
  THREADS_POSIX_FALSE
629
652
  THREADS_POSIX_TRUE
630
653
  OS_WINDOWS_FALSE
631
654
  OS_WINDOWS_TRUE
655
+ OS_NETBSD_FALSE
656
+ OS_NETBSD_TRUE
632
657
  OS_OPENBSD_FALSE
633
658
  OS_OPENBSD_TRUE
634
659
  OS_DARWIN_FALSE
635
660
  OS_DARWIN_TRUE
636
661
  OS_LINUX_FALSE
637
662
  OS_LINUX_TRUE
638
- PC_LIBS_PRIVATE
639
- THREAD_CFLAGS
640
663
  OS_WINDOWS
664
+ OS_NETBSD
641
665
  OS_OPENBSD
642
666
  OS_DARWIN
667
+ USE_UDEV
643
668
  OS_LINUX
644
669
  RC
645
670
  CPP
@@ -675,6 +700,7 @@ LIBTOOL
675
700
  am__fastdepCC_FALSE
676
701
  am__fastdepCC_TRUE
677
702
  CCDEPMODE
703
+ am__nodep
678
704
  AMDEPBACKSLASH
679
705
  AMDEP_FALSE
680
706
  AMDEP_TRUE
@@ -688,11 +714,13 @@ CPPFLAGS
688
714
  LDFLAGS
689
715
  CFLAGS
690
716
  CC
691
- AM_BACKSLASH
692
- AM_DEFAULT_VERBOSITY
693
717
  MAINT
694
718
  MAINTAINER_MODE_FALSE
695
719
  MAINTAINER_MODE_TRUE
720
+ AM_BACKSLASH
721
+ AM_DEFAULT_VERBOSITY
722
+ AM_DEFAULT_V
723
+ AM_V
696
724
  am__untar
697
725
  am__tar
698
726
  AMTAR
@@ -757,8 +785,8 @@ SHELL'
757
785
  ac_subst_files=''
758
786
  ac_user_opts='
759
787
  enable_option_checking
760
- enable_maintainer_mode
761
788
  enable_silent_rules
789
+ enable_maintainer_mode
762
790
  enable_dependency_tracking
763
791
  enable_shared
764
792
  enable_static
@@ -767,10 +795,13 @@ enable_fast_install
767
795
  with_gnu_ld
768
796
  with_sysroot
769
797
  enable_libtool_lock
798
+ enable_udev
770
799
  enable_timerfd
771
800
  enable_log
772
801
  enable_debug_log
802
+ enable_system_log
773
803
  enable_examples_build
804
+ enable_tests_build
774
805
  '
775
806
  ac_precious_vars='build_alias
776
807
  host_alias
@@ -1236,8 +1267,6 @@ target=$target_alias
1236
1267
  if test "x$host_alias" != x; then
1237
1268
  if test "x$build_alias" = x; then
1238
1269
  cross_compiling=maybe
1239
- $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1240
- If a cross compiler is detected then cross compile mode will be used" >&2
1241
1270
  elif test "x$build_alias" != "x$host_alias"; then
1242
1271
  cross_compiling=yes
1243
1272
  fi
@@ -1323,7 +1352,7 @@ if test "$ac_init_help" = "long"; then
1323
1352
  # Omit some internal or obsolete options to make the list less imposing.
1324
1353
  # This message is too long to be a string in the A/UX 3.1 sh.
1325
1354
  cat <<_ACEOF
1326
- \`configure' configures libusbx 1.0.14 to adapt to many kinds of systems.
1355
+ \`configure' configures libusbx 1.0.17 to adapt to many kinds of systems.
1327
1356
 
1328
1357
  Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1358
 
@@ -1393,7 +1422,7 @@ fi
1393
1422
 
1394
1423
  if test -n "$ac_init_help"; then
1395
1424
  case $ac_init_help in
1396
- short | recursive ) echo "Configuration of libusbx 1.0.14:";;
1425
+ short | recursive ) echo "Configuration of libusbx 1.0.17:";;
1397
1426
  esac
1398
1427
  cat <<\_ACEOF
1399
1428
 
@@ -1401,26 +1430,35 @@ Optional Features:
1401
1430
  --disable-option-checking ignore unrecognized --enable/--with options
1402
1431
  --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403
1432
  --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404
- --enable-maintainer-mode enable make rules and dependencies not useful
1405
- (and sometimes confusing) to the casual installer
1406
- --enable-silent-rules less verbose build output (undo: `make V=1')
1407
- --disable-silent-rules verbose build output (undo: `make V=0')
1408
- --disable-dependency-tracking speeds up one-time build
1409
- --enable-dependency-tracking do not reject slow dependency extractors
1433
+ --enable-silent-rules less verbose build output (undo: "make V=1")
1434
+ --disable-silent-rules verbose build output (undo: "make V=0")
1435
+ --enable-maintainer-mode
1436
+ enable make rules and dependencies not useful (and
1437
+ sometimes confusing) to the casual installer
1438
+ --enable-dependency-tracking
1439
+ do not reject slow dependency extractors
1440
+ --disable-dependency-tracking
1441
+ speeds up one-time build
1410
1442
  --enable-shared[=PKGS] build shared libraries [default=yes]
1411
1443
  --enable-static[=PKGS] build static libraries [default=yes]
1412
1444
  --enable-fast-install[=PKGS]
1413
1445
  optimize for fast installation [default=yes]
1414
1446
  --disable-libtool-lock avoid locking (might break parallel builds)
1415
- --enable-timerfd use timerfd for timing (default auto)
1447
+ --enable-udev use udev for device enumeration and hotplug support
1448
+ (recommended) [default=yes]
1449
+ --enable-timerfd use timerfd for timing [default=auto]
1416
1450
  --disable-log disable all logging
1417
- --enable-debug-log start with debug message logging enabled (default n)
1418
- --enable-examples-build build example applications (default n)
1451
+ --enable-debug-log start with debug message logging enabled
1452
+ [default=no]
1453
+ --enable-system-log output logging messages to system wide log, if
1454
+ supported by the OS [default=no]
1455
+ --enable-examples-build build example applications [default=no]
1456
+ --enable-tests-build build test applications [default=no]
1419
1457
 
1420
1458
  Optional Packages:
1421
1459
  --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422
1460
  --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423
- --with-pic try to use only PIC/non-PIC objects [default=use
1461
+ --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424
1462
  both]
1425
1463
  --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426
1464
  --with-sysroot=DIR Search for dependent libraries within DIR
@@ -1503,10 +1541,10 @@ fi
1503
1541
  test -n "$ac_init_help" && exit $ac_status
1504
1542
  if $ac_init_version; then
1505
1543
  cat <<\_ACEOF
1506
- libusbx configure 1.0.14
1507
- generated by GNU Autoconf 2.68
1544
+ libusbx configure 1.0.17
1545
+ generated by GNU Autoconf 2.69
1508
1546
 
1509
- Copyright (C) 2010 Free Software Foundation, Inc.
1547
+ Copyright (C) 2012 Free Software Foundation, Inc.
1510
1548
  This configure script is free software; the Free Software Foundation
1511
1549
  gives unlimited permission to copy, distribute and modify it.
1512
1550
  _ACEOF
@@ -1582,7 +1620,7 @@ $as_echo "$ac_try_echo"; } >&5
1582
1620
  test ! -s conftest.err
1583
1621
  } && test -s conftest$ac_exeext && {
1584
1622
  test "$cross_compiling" = yes ||
1585
- $as_test_x conftest$ac_exeext
1623
+ test -x conftest$ac_exeext
1586
1624
  }; then :
1587
1625
  ac_retval=0
1588
1626
  else
@@ -1972,8 +2010,8 @@ cat >config.log <<_ACEOF
1972
2010
  This file contains any messages produced by compilers while
1973
2011
  running configure, to aid debugging if configure makes a mistake.
1974
2012
 
1975
- It was created by libusbx $as_me 1.0.14, which was
1976
- generated by GNU Autoconf 2.68. Invocation command line was
2013
+ It was created by libusbx $as_me 1.0.17, which was
2014
+ generated by GNU Autoconf 2.69. Invocation command line was
1977
2015
 
1978
2016
  $ $0 $@
1979
2017
 
@@ -2330,7 +2368,7 @@ lt_revision="0"
2330
2368
  lt_age="1"
2331
2369
  LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
2332
2370
 
2333
- am__api_version='1.11'
2371
+ am__api_version='1.13'
2334
2372
 
2335
2373
  ac_aux_dir=
2336
2374
  for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
@@ -2398,7 +2436,7 @@ case $as_dir/ in #((
2398
2436
  # by default.
2399
2437
  for ac_prog in ginstall scoinst install; do
2400
2438
  for ac_exec_ext in '' $ac_executable_extensions; do
2401
- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2439
+ if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2402
2440
  if test $ac_prog = install &&
2403
2441
  grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404
2442
  # AIX install. It has an incompatible calling convention.
@@ -2456,9 +2494,6 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2494
 
2457
2495
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458
2496
  $as_echo_n "checking whether build environment is sane... " >&6; }
2459
- # Just in case
2460
- sleep 1
2461
- echo timestamp > conftest.file
2462
2497
  # Reject unsafe characters in $srcdir or the absolute working directory
2463
2498
  # name. Accept space and tab only in the latter.
2464
2499
  am_lf='
@@ -2469,32 +2504,40 @@ case `pwd` in
2469
2504
  esac
2470
2505
  case $srcdir in
2471
2506
  *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2472
- as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2507
+ as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2473
2508
  esac
2474
2509
 
2475
- # Do `set' in a subshell so we don't clobber the current shell's
2510
+ # Do 'set' in a subshell so we don't clobber the current shell's
2476
2511
  # arguments. Must try -L first in case configure is actually a
2477
2512
  # symlink; some systems play weird games with the mod time of symlinks
2478
2513
  # (eg FreeBSD returns the mod time of the symlink's containing
2479
2514
  # directory).
2480
2515
  if (
2481
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482
- if test "$*" = "X"; then
2483
- # -L didn't work.
2484
- set X `ls -t "$srcdir/configure" conftest.file`
2485
- fi
2486
- rm -f conftest.file
2487
- if test "$*" != "X $srcdir/configure conftest.file" \
2488
- && test "$*" != "X conftest.file $srcdir/configure"; then
2489
-
2490
- # If neither matched, then we have a broken ls. This can happen
2491
- # if, for instance, CONFIG_SHELL is bash and it inherits a
2492
- # broken ls alias from the environment. This has actually
2493
- # happened. Such a system could not be considered "sane".
2494
- as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2495
- alias in your environment" "$LINENO" 5
2496
- fi
2497
-
2516
+ am_has_slept=no
2517
+ for am_try in 1 2; do
2518
+ echo "timestamp, slept: $am_has_slept" > conftest.file
2519
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2520
+ if test "$*" = "X"; then
2521
+ # -L didn't work.
2522
+ set X `ls -t "$srcdir/configure" conftest.file`
2523
+ fi
2524
+ if test "$*" != "X $srcdir/configure conftest.file" \
2525
+ && test "$*" != "X conftest.file $srcdir/configure"; then
2526
+
2527
+ # If neither matched, then we have a broken ls. This can happen
2528
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
2529
+ # broken ls alias from the environment. This has actually
2530
+ # happened. Such a system could not be considered "sane".
2531
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2532
+ alias in your environment" "$LINENO" 5
2533
+ fi
2534
+ if test "$2" = conftest.file || test $am_try -eq 2; then
2535
+ break
2536
+ fi
2537
+ # Just in case.
2538
+ sleep 1
2539
+ am_has_slept=yes
2540
+ done
2498
2541
  test "$2" = conftest.file
2499
2542
  )
2500
2543
  then
@@ -2506,6 +2549,16 @@ Check your system clock" "$LINENO" 5
2506
2549
  fi
2507
2550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508
2551
  $as_echo "yes" >&6; }
2552
+ # If we didn't sleep, we still need to ensure time stamps of config.status and
2553
+ # generated files are strictly newer.
2554
+ am_sleep_pid=
2555
+ if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2556
+ ( sleep 1 ) &
2557
+ am_sleep_pid=$!
2558
+ fi
2559
+
2560
+ rm -f conftest.file
2561
+
2509
2562
  test "$program_prefix" != NONE &&
2510
2563
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511
2564
  # Use a double $ so make ignores it.
@@ -2528,12 +2581,12 @@ if test x"${MISSING+set}" != xset; then
2528
2581
  esac
2529
2582
  fi
2530
2583
  # Use eval to expand $SHELL
2531
- if eval "$MISSING --run true"; then
2532
- am_missing_run="$MISSING --run "
2584
+ if eval "$MISSING --is-lightweight"; then
2585
+ am_missing_run="$MISSING "
2533
2586
  else
2534
2587
  am_missing_run=
2535
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2536
- $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2588
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2589
+ $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2537
2590
  fi
2538
2591
 
2539
2592
  if test x"${install_sh}" != xset; then
@@ -2545,10 +2598,10 @@ if test x"${install_sh}" != xset; then
2545
2598
  esac
2546
2599
  fi
2547
2600
 
2548
- # Installed binaries are usually stripped using `strip' when the user
2549
- # run `make install-strip'. However `strip' might not be the right
2601
+ # Installed binaries are usually stripped using 'strip' when the user
2602
+ # run "make install-strip". However 'strip' might not be the right
2550
2603
  # tool to use in cross-compilation environments, therefore Automake
2551
- # will honor the `STRIP' environment variable to overrule this program.
2604
+ # will honor the 'STRIP' environment variable to overrule this program.
2552
2605
  if test "$cross_compiling" != no; then
2553
2606
  if test -n "$ac_tool_prefix"; then
2554
2607
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
@@ -2567,7 +2620,7 @@ do
2567
2620
  IFS=$as_save_IFS
2568
2621
  test -z "$as_dir" && as_dir=.
2569
2622
  for ac_exec_ext in '' $ac_executable_extensions; do
2570
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571
2624
  ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572
2625
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573
2626
  break 2
@@ -2607,7 +2660,7 @@ do
2607
2660
  IFS=$as_save_IFS
2608
2661
  test -z "$as_dir" && as_dir=.
2609
2662
  for ac_exec_ext in '' $ac_executable_extensions; do
2610
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611
2664
  ac_cv_prog_ac_ct_STRIP="strip"
2612
2665
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613
2666
  break 2
@@ -2658,7 +2711,7 @@ do
2658
2711
  test -z "$as_dir" && as_dir=.
2659
2712
  for ac_prog in mkdir gmkdir; do
2660
2713
  for ac_exec_ext in '' $ac_executable_extensions; do
2661
- { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2714
+ as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2662
2715
  case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663
2716
  'mkdir (GNU coreutils) '* | \
2664
2717
  'mkdir (coreutils) '* | \
@@ -2687,12 +2740,6 @@ fi
2687
2740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688
2741
  $as_echo "$MKDIR_P" >&6; }
2689
2742
 
2690
- mkdir_p="$MKDIR_P"
2691
- case $mkdir_p in
2692
- [\\/$]* | ?:[\\/]*) ;;
2693
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2694
- esac
2695
-
2696
2743
  for ac_prog in gawk mawk nawk awk
2697
2744
  do
2698
2745
  # Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -2711,7 +2758,7 @@ do
2711
2758
  IFS=$as_save_IFS
2712
2759
  test -z "$as_dir" && as_dir=.
2713
2760
  for ac_exec_ext in '' $ac_executable_extensions; do
2714
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715
2762
  ac_cv_prog_AWK="$ac_prog"
2716
2763
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717
2764
  break 2
@@ -2775,6 +2822,45 @@ else
2775
2822
  fi
2776
2823
  rmdir .tst 2>/dev/null
2777
2824
 
2825
+ # Check whether --enable-silent-rules was given.
2826
+ if test "${enable_silent_rules+set}" = set; then :
2827
+ enableval=$enable_silent_rules;
2828
+ fi
2829
+
2830
+ case $enable_silent_rules in # (((
2831
+ yes) AM_DEFAULT_VERBOSITY=0;;
2832
+ no) AM_DEFAULT_VERBOSITY=1;;
2833
+ *) AM_DEFAULT_VERBOSITY=1;;
2834
+ esac
2835
+ am_make=${MAKE-make}
2836
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2837
+ $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2838
+ if ${am_cv_make_support_nested_variables+:} false; then :
2839
+ $as_echo_n "(cached) " >&6
2840
+ else
2841
+ if $as_echo 'TRUE=$(BAR$(V))
2842
+ BAR0=false
2843
+ BAR1=true
2844
+ V=1
2845
+ am__doit:
2846
+ @$(TRUE)
2847
+ .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2848
+ am_cv_make_support_nested_variables=yes
2849
+ else
2850
+ am_cv_make_support_nested_variables=no
2851
+ fi
2852
+ fi
2853
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2854
+ $as_echo "$am_cv_make_support_nested_variables" >&6; }
2855
+ if test $am_cv_make_support_nested_variables = yes; then
2856
+ AM_V='$(V)'
2857
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2858
+ else
2859
+ AM_V=$AM_DEFAULT_VERBOSITY
2860
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2861
+ fi
2862
+ AM_BACKSLASH='\'
2863
+
2778
2864
  if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779
2865
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780
2866
  # is not polluted with repeated "-I."
@@ -2797,7 +2883,7 @@ fi
2797
2883
 
2798
2884
  # Define the identity of the package.
2799
2885
  PACKAGE='libusbx'
2800
- VERSION='1.0.14'
2886
+ VERSION='1.0.17'
2801
2887
 
2802
2888
 
2803
2889
  cat >>confdefs.h <<_ACEOF
@@ -2825,13 +2911,24 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2825
2911
 
2826
2912
  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827
2913
 
2914
+ # For better backward compatibility. To be removed once Automake 1.9.x
2915
+ # dies out for good. For more background, see:
2916
+ # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2917
+ # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2918
+ mkdir_p='$(MKDIR_P)'
2919
+
2828
2920
  # We need awk for the "check" target. The system "awk" is bad on
2829
2921
  # some platforms.
2830
- # Always define AMTAR for backward compatibility.
2922
+ # Always define AMTAR for backward compatibility. Yes, it's still used
2923
+ # in the wild :-( We should find a proper way to deprecate it ...
2924
+ AMTAR='$${TAR-tar}'
2831
2925
 
2832
- AMTAR=${AMTAR-"${am_missing_run}tar"}
2833
2926
 
2834
- am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2927
+ # We'll loop over all known methods to create a tar archive until one works.
2928
+ _am_tools='gnutar pax cpio none'
2929
+
2930
+ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2931
+
2835
2932
 
2836
2933
 
2837
2934
 
@@ -2870,11 +2967,38 @@ if test "${enable_silent_rules+set}" = set; then :
2870
2967
  enableval=$enable_silent_rules;
2871
2968
  fi
2872
2969
 
2873
- case $enable_silent_rules in
2874
- yes) AM_DEFAULT_VERBOSITY=0;;
2875
- no) AM_DEFAULT_VERBOSITY=1;;
2876
- *) AM_DEFAULT_VERBOSITY=0;;
2970
+ case $enable_silent_rules in # (((
2971
+ yes) AM_DEFAULT_VERBOSITY=0;;
2972
+ no) AM_DEFAULT_VERBOSITY=1;;
2973
+ *) AM_DEFAULT_VERBOSITY=0;;
2877
2974
  esac
2975
+ am_make=${MAKE-make}
2976
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2977
+ $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2978
+ if ${am_cv_make_support_nested_variables+:} false; then :
2979
+ $as_echo_n "(cached) " >&6
2980
+ else
2981
+ if $as_echo 'TRUE=$(BAR$(V))
2982
+ BAR0=false
2983
+ BAR1=true
2984
+ V=1
2985
+ am__doit:
2986
+ @$(TRUE)
2987
+ .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2988
+ am_cv_make_support_nested_variables=yes
2989
+ else
2990
+ am_cv_make_support_nested_variables=no
2991
+ fi
2992
+ fi
2993
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2994
+ $as_echo "$am_cv_make_support_nested_variables" >&6; }
2995
+ if test $am_cv_make_support_nested_variables = yes; then
2996
+ AM_V='$(V)'
2997
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2998
+ else
2999
+ AM_V=$AM_DEFAULT_VERBOSITY
3000
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3001
+ fi
2878
3002
  AM_BACKSLASH='\'
2879
3003
 
2880
3004
 
@@ -2901,7 +3025,7 @@ do
2901
3025
  IFS=$as_save_IFS
2902
3026
  test -z "$as_dir" && as_dir=.
2903
3027
  for ac_exec_ext in '' $ac_executable_extensions; do
2904
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905
3029
  ac_cv_prog_CC="${ac_tool_prefix}gcc"
2906
3030
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907
3031
  break 2
@@ -2941,7 +3065,7 @@ do
2941
3065
  IFS=$as_save_IFS
2942
3066
  test -z "$as_dir" && as_dir=.
2943
3067
  for ac_exec_ext in '' $ac_executable_extensions; do
2944
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945
3069
  ac_cv_prog_ac_ct_CC="gcc"
2946
3070
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947
3071
  break 2
@@ -2994,7 +3118,7 @@ do
2994
3118
  IFS=$as_save_IFS
2995
3119
  test -z "$as_dir" && as_dir=.
2996
3120
  for ac_exec_ext in '' $ac_executable_extensions; do
2997
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998
3122
  ac_cv_prog_CC="${ac_tool_prefix}cc"
2999
3123
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000
3124
  break 2
@@ -3035,7 +3159,7 @@ do
3035
3159
  IFS=$as_save_IFS
3036
3160
  test -z "$as_dir" && as_dir=.
3037
3161
  for ac_exec_ext in '' $ac_executable_extensions; do
3038
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039
3163
  if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3040
3164
  ac_prog_rejected=yes
3041
3165
  continue
@@ -3093,7 +3217,7 @@ do
3093
3217
  IFS=$as_save_IFS
3094
3218
  test -z "$as_dir" && as_dir=.
3095
3219
  for ac_exec_ext in '' $ac_executable_extensions; do
3096
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097
3221
  ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3098
3222
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099
3223
  break 2
@@ -3137,7 +3261,7 @@ do
3137
3261
  IFS=$as_save_IFS
3138
3262
  test -z "$as_dir" && as_dir=.
3139
3263
  for ac_exec_ext in '' $ac_executable_extensions; do
3140
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141
3265
  ac_cv_prog_ac_ct_CC="$ac_prog"
3142
3266
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143
3267
  break 2
@@ -3583,8 +3707,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583
3707
  /* end confdefs.h. */
3584
3708
  #include <stdarg.h>
3585
3709
  #include <stdio.h>
3586
- #include <sys/types.h>
3587
- #include <sys/stat.h>
3710
+ struct stat;
3588
3711
  /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3589
3712
  struct buf { int x; };
3590
3713
  FILE * (*rcsopen) (struct buf *, struct stat *, int);
@@ -3687,7 +3810,7 @@ am__quote=
3687
3810
  _am_result=none
3688
3811
  # First try GNU make style include.
3689
3812
  echo "include confinc" > confmf
3690
- # Ignore all kinds of additional output from `make'.
3813
+ # Ignore all kinds of additional output from 'make'.
3691
3814
  case `$am_make -s -f confmf 2> /dev/null` in #(
3692
3815
  *the\ am__doit\ target*)
3693
3816
  am__include=include
@@ -3720,6 +3843,7 @@ fi
3720
3843
  if test "x$enable_dependency_tracking" != xno; then
3721
3844
  am_depcomp="$ac_aux_dir/depcomp"
3722
3845
  AMDEPBACKSLASH='\'
3846
+ am__nodep='_no'
3723
3847
  fi
3724
3848
  if test "x$enable_dependency_tracking" != xno; then
3725
3849
  AMDEP_TRUE=
@@ -3742,8 +3866,9 @@ else
3742
3866
  # We make a subdir and do the tests there. Otherwise we can end up
3743
3867
  # making bogus files that we don't know about and never remove. For
3744
3868
  # instance it was reported that on HP-UX the gcc test will end up
3745
- # making a dummy file named `D' -- because `-MD' means `put the output
3746
- # in D'.
3869
+ # making a dummy file named 'D' -- because '-MD' means "put the output
3870
+ # in D".
3871
+ rm -rf conftest.dir
3747
3872
  mkdir conftest.dir
3748
3873
  # Copy depcomp to subdir because otherwise we won't find it if we're
3749
3874
  # using a relative directory.
@@ -3777,16 +3902,16 @@ else
3777
3902
  : > sub/conftest.c
3778
3903
  for i in 1 2 3 4 5 6; do
3779
3904
  echo '#include "conftst'$i'.h"' >> sub/conftest.c
3780
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3781
- # Solaris 8's {/usr,}/bin/sh.
3782
- touch sub/conftst$i.h
3905
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3906
+ # Solaris 10 /bin/sh.
3907
+ echo '/* dummy */' > sub/conftst$i.h
3783
3908
  done
3784
3909
  echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3785
3910
 
3786
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
3911
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
3787
3912
  # mode. It turns out that the SunPro C++ compiler does not properly
3788
- # handle `-M -o', and we need to detect this. Also, some Intel
3789
- # versions had trouble with output in subdirs
3913
+ # handle '-M -o', and we need to detect this. Also, some Intel
3914
+ # versions had trouble with output in subdirs.
3790
3915
  am__obj=sub/conftest.${OBJEXT-o}
3791
3916
  am__minus_obj="-o $am__obj"
3792
3917
  case $depmode in
@@ -3795,16 +3920,16 @@ else
3795
3920
  test "$am__universal" = false || continue
3796
3921
  ;;
3797
3922
  nosideeffect)
3798
- # after this tag, mechanisms are not by side-effect, so they'll
3799
- # only be used when explicitly requested
3923
+ # After this tag, mechanisms are not by side-effect, so they'll
3924
+ # only be used when explicitly requested.
3800
3925
  if test "x$enable_dependency_tracking" = xyes; then
3801
3926
  continue
3802
3927
  else
3803
3928
  break
3804
3929
  fi
3805
3930
  ;;
3806
- msvisualcpp | msvcmsys)
3807
- # This compiler won't grok `-c -o', but also, the minuso test has
3931
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3932
+ # This compiler won't grok '-c -o', but also, the minuso test has
3808
3933
  # not run yet. These depmodes are late enough in the game, and
3809
3934
  # so weak that their functioning should not be impacted.
3810
3935
  am__obj=conftest.${OBJEXT-o}
@@ -3866,8 +3991,8 @@ esac
3866
3991
 
3867
3992
 
3868
3993
 
3869
- macro_version='2.4'
3870
- macro_revision='1.3293'
3994
+ macro_version='2.4.2'
3995
+ macro_revision='1.3337'
3871
3996
 
3872
3997
 
3873
3998
 
@@ -4045,7 +4170,7 @@ do
4045
4170
  for ac_prog in sed gsed; do
4046
4171
  for ac_exec_ext in '' $ac_executable_extensions; do
4047
4172
  ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4048
- { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4173
+ as_fn_executable_p "$ac_path_SED" || continue
4049
4174
  # Check for GNU ac_path_SED and select it if it is found.
4050
4175
  # Check for GNU $ac_path_SED
4051
4176
  case `"$ac_path_SED" --version 2>&1` in
@@ -4121,7 +4246,7 @@ do
4121
4246
  for ac_prog in grep ggrep; do
4122
4247
  for ac_exec_ext in '' $ac_executable_extensions; do
4123
4248
  ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4124
- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4249
+ as_fn_executable_p "$ac_path_GREP" || continue
4125
4250
  # Check for GNU ac_path_GREP and select it if it is found.
4126
4251
  # Check for GNU $ac_path_GREP
4127
4252
  case `"$ac_path_GREP" --version 2>&1` in
@@ -4187,7 +4312,7 @@ do
4187
4312
  for ac_prog in egrep; do
4188
4313
  for ac_exec_ext in '' $ac_executable_extensions; do
4189
4314
  ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4190
- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4315
+ as_fn_executable_p "$ac_path_EGREP" || continue
4191
4316
  # Check for GNU ac_path_EGREP and select it if it is found.
4192
4317
  # Check for GNU $ac_path_EGREP
4193
4318
  case `"$ac_path_EGREP" --version 2>&1` in
@@ -4254,7 +4379,7 @@ do
4254
4379
  for ac_prog in fgrep; do
4255
4380
  for ac_exec_ext in '' $ac_executable_extensions; do
4256
4381
  ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4257
- { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4382
+ as_fn_executable_p "$ac_path_FGREP" || continue
4258
4383
  # Check for GNU ac_path_FGREP and select it if it is found.
4259
4384
  # Check for GNU $ac_path_FGREP
4260
4385
  case `"$ac_path_FGREP" --version 2>&1` in
@@ -4510,7 +4635,7 @@ do
4510
4635
  IFS=$as_save_IFS
4511
4636
  test -z "$as_dir" && as_dir=.
4512
4637
  for ac_exec_ext in '' $ac_executable_extensions; do
4513
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514
4639
  ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4515
4640
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516
4641
  break 2
@@ -4554,7 +4679,7 @@ do
4554
4679
  IFS=$as_save_IFS
4555
4680
  test -z "$as_dir" && as_dir=.
4556
4681
  for ac_exec_ext in '' $ac_executable_extensions; do
4557
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558
4683
  ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4559
4684
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560
4685
  break 2
@@ -4712,6 +4837,11 @@ else
4712
4837
  lt_cv_sys_max_cmd_len=196608
4713
4838
  ;;
4714
4839
 
4840
+ os2*)
4841
+ # The test takes a long time on OS/2.
4842
+ lt_cv_sys_max_cmd_len=8192
4843
+ ;;
4844
+
4715
4845
  osf*)
4716
4846
  # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4717
4847
  # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
@@ -4751,7 +4881,7 @@ else
4751
4881
  # If test is not a shell built-in, we'll probably end up computing a
4752
4882
  # maximum length that is only half of the actual maximum length, but
4753
4883
  # we can't tell.
4754
- while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4884
+ while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4755
4885
  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4756
4886
  test $i != 17 # 1/2 MB should be enough
4757
4887
  do
@@ -4973,7 +5103,7 @@ do
4973
5103
  IFS=$as_save_IFS
4974
5104
  test -z "$as_dir" && as_dir=.
4975
5105
  for ac_exec_ext in '' $ac_executable_extensions; do
4976
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977
5107
  ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4978
5108
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979
5109
  break 2
@@ -5013,7 +5143,7 @@ do
5013
5143
  IFS=$as_save_IFS
5014
5144
  test -z "$as_dir" && as_dir=.
5015
5145
  for ac_exec_ext in '' $ac_executable_extensions; do
5016
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017
5147
  ac_cv_prog_ac_ct_OBJDUMP="objdump"
5018
5148
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019
5149
  break 2
@@ -5180,7 +5310,7 @@ irix5* | irix6* | nonstopux*)
5180
5310
  lt_cv_deplibs_check_method=pass_all
5181
5311
  ;;
5182
5312
 
5183
- # This must be Linux ELF.
5313
+ # This must be glibc/ELF.
5184
5314
  linux* | k*bsd*-gnu | kopensolaris*-gnu)
5185
5315
  lt_cv_deplibs_check_method=pass_all
5186
5316
  ;;
@@ -5319,7 +5449,7 @@ do
5319
5449
  IFS=$as_save_IFS
5320
5450
  test -z "$as_dir" && as_dir=.
5321
5451
  for ac_exec_ext in '' $ac_executable_extensions; do
5322
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323
5453
  ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5324
5454
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325
5455
  break 2
@@ -5359,7 +5489,7 @@ do
5359
5489
  IFS=$as_save_IFS
5360
5490
  test -z "$as_dir" && as_dir=.
5361
5491
  for ac_exec_ext in '' $ac_executable_extensions; do
5362
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363
5493
  ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5364
5494
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365
5495
  break 2
@@ -5463,7 +5593,7 @@ do
5463
5593
  IFS=$as_save_IFS
5464
5594
  test -z "$as_dir" && as_dir=.
5465
5595
  for ac_exec_ext in '' $ac_executable_extensions; do
5466
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467
5597
  ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5468
5598
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469
5599
  break 2
@@ -5507,7 +5637,7 @@ do
5507
5637
  IFS=$as_save_IFS
5508
5638
  test -z "$as_dir" && as_dir=.
5509
5639
  for ac_exec_ext in '' $ac_executable_extensions; do
5510
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511
5641
  ac_cv_prog_ac_ct_AR="$ac_prog"
5512
5642
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513
5643
  break 2
@@ -5632,7 +5762,7 @@ do
5632
5762
  IFS=$as_save_IFS
5633
5763
  test -z "$as_dir" && as_dir=.
5634
5764
  for ac_exec_ext in '' $ac_executable_extensions; do
5635
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636
5766
  ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5637
5767
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638
5768
  break 2
@@ -5672,7 +5802,7 @@ do
5672
5802
  IFS=$as_save_IFS
5673
5803
  test -z "$as_dir" && as_dir=.
5674
5804
  for ac_exec_ext in '' $ac_executable_extensions; do
5675
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5805
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676
5806
  ac_cv_prog_ac_ct_STRIP="strip"
5677
5807
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678
5808
  break 2
@@ -5731,7 +5861,7 @@ do
5731
5861
  IFS=$as_save_IFS
5732
5862
  test -z "$as_dir" && as_dir=.
5733
5863
  for ac_exec_ext in '' $ac_executable_extensions; do
5734
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735
5865
  ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5736
5866
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737
5867
  break 2
@@ -5771,7 +5901,7 @@ do
5771
5901
  IFS=$as_save_IFS
5772
5902
  test -z "$as_dir" && as_dir=.
5773
5903
  for ac_exec_ext in '' $ac_executable_extensions; do
5774
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775
5905
  ac_cv_prog_ac_ct_RANLIB="ranlib"
5776
5906
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777
5907
  break 2
@@ -5821,13 +5951,13 @@ old_postuninstall_cmds=
5821
5951
  if test -n "$RANLIB"; then
5822
5952
  case $host_os in
5823
5953
  openbsd*)
5824
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5954
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5825
5955
  ;;
5826
5956
  *)
5827
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5957
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5828
5958
  ;;
5829
5959
  esac
5830
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5960
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5831
5961
  fi
5832
5962
 
5833
5963
  case $host_os in
@@ -5974,6 +6104,7 @@ for ac_symprfx in "" "_"; do
5974
6104
  # which start with @ or ?.
5975
6105
  lt_cv_sys_global_symbol_pipe="$AWK '"\
5976
6106
  " {last_section=section; section=\$ 3};"\
6107
+ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5977
6108
  " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5978
6109
  " \$ 0!~/External *\|/{next};"\
5979
6110
  " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
@@ -6362,7 +6493,7 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; }
6362
6493
  CFLAGS="$SAVE_CFLAGS"
6363
6494
  fi
6364
6495
  ;;
6365
- sparc*-*solaris*)
6496
+ *-*solaris*)
6366
6497
  # Find out which ABI we are using.
6367
6498
  echo 'int i;' > conftest.$ac_ext
6368
6499
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
@@ -6373,7 +6504,20 @@ sparc*-*solaris*)
6373
6504
  case `/usr/bin/file conftest.o` in
6374
6505
  *64-bit*)
6375
6506
  case $lt_cv_prog_gnu_ld in
6376
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
6507
+ yes*)
6508
+ case $host in
6509
+ i?86-*-solaris*)
6510
+ LD="${LD-ld} -m elf_x86_64"
6511
+ ;;
6512
+ sparc*-*-solaris*)
6513
+ LD="${LD-ld} -m elf64_sparc"
6514
+ ;;
6515
+ esac
6516
+ # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6517
+ if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6518
+ LD="${LD-ld}_sol2"
6519
+ fi
6520
+ ;;
6377
6521
  *)
6378
6522
  if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6379
6523
  LD="${LD-ld} -64"
@@ -6406,7 +6550,7 @@ do
6406
6550
  IFS=$as_save_IFS
6407
6551
  test -z "$as_dir" && as_dir=.
6408
6552
  for ac_exec_ext in '' $ac_executable_extensions; do
6409
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410
6554
  ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6411
6555
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412
6556
  break 2
@@ -6446,7 +6590,7 @@ do
6446
6590
  IFS=$as_save_IFS
6447
6591
  test -z "$as_dir" && as_dir=.
6448
6592
  for ac_exec_ext in '' $ac_executable_extensions; do
6449
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450
6594
  ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6451
6595
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452
6596
  break 2
@@ -6526,7 +6670,7 @@ do
6526
6670
  IFS=$as_save_IFS
6527
6671
  test -z "$as_dir" && as_dir=.
6528
6672
  for ac_exec_ext in '' $ac_executable_extensions; do
6529
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530
6674
  ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6531
6675
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532
6676
  break 2
@@ -6566,7 +6710,7 @@ do
6566
6710
  IFS=$as_save_IFS
6567
6711
  test -z "$as_dir" && as_dir=.
6568
6712
  for ac_exec_ext in '' $ac_executable_extensions; do
6569
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570
6714
  ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6571
6715
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572
6716
  break 2
@@ -6618,7 +6762,7 @@ do
6618
6762
  IFS=$as_save_IFS
6619
6763
  test -z "$as_dir" && as_dir=.
6620
6764
  for ac_exec_ext in '' $ac_executable_extensions; do
6621
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622
6766
  ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6623
6767
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624
6768
  break 2
@@ -6658,7 +6802,7 @@ do
6658
6802
  IFS=$as_save_IFS
6659
6803
  test -z "$as_dir" && as_dir=.
6660
6804
  for ac_exec_ext in '' $ac_executable_extensions; do
6661
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662
6806
  ac_cv_prog_ac_ct_NMEDIT="nmedit"
6663
6807
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664
6808
  break 2
@@ -6710,7 +6854,7 @@ do
6710
6854
  IFS=$as_save_IFS
6711
6855
  test -z "$as_dir" && as_dir=.
6712
6856
  for ac_exec_ext in '' $ac_executable_extensions; do
6713
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714
6858
  ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6715
6859
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716
6860
  break 2
@@ -6750,7 +6894,7 @@ do
6750
6894
  IFS=$as_save_IFS
6751
6895
  test -z "$as_dir" && as_dir=.
6752
6896
  for ac_exec_ext in '' $ac_executable_extensions; do
6753
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754
6898
  ac_cv_prog_ac_ct_LIPO="lipo"
6755
6899
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756
6900
  break 2
@@ -6802,7 +6946,7 @@ do
6802
6946
  IFS=$as_save_IFS
6803
6947
  test -z "$as_dir" && as_dir=.
6804
6948
  for ac_exec_ext in '' $ac_executable_extensions; do
6805
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806
6950
  ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6807
6951
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808
6952
  break 2
@@ -6842,7 +6986,7 @@ do
6842
6986
  IFS=$as_save_IFS
6843
6987
  test -z "$as_dir" && as_dir=.
6844
6988
  for ac_exec_ext in '' $ac_executable_extensions; do
6845
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846
6990
  ac_cv_prog_ac_ct_OTOOL="otool"
6847
6991
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848
6992
  break 2
@@ -6894,7 +7038,7 @@ do
6894
7038
  IFS=$as_save_IFS
6895
7039
  test -z "$as_dir" && as_dir=.
6896
7040
  for ac_exec_ext in '' $ac_executable_extensions; do
6897
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898
7042
  ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6899
7043
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900
7044
  break 2
@@ -6934,7 +7078,7 @@ do
6934
7078
  IFS=$as_save_IFS
6935
7079
  test -z "$as_dir" && as_dir=.
6936
7080
  for ac_exec_ext in '' $ac_executable_extensions; do
6937
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938
7082
  ac_cv_prog_ac_ct_OTOOL64="otool64"
6939
7083
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940
7084
  break 2
@@ -7013,7 +7157,13 @@ else
7013
7157
  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7014
7158
  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7015
7159
  _lt_result=$?
7016
- if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7160
+ # If there is a non-empty error log, and "single_module"
7161
+ # appears in it, assume the flag caused a linker warning
7162
+ if test -s conftest.err && $GREP single_module conftest.err; then
7163
+ cat conftest.err >&5
7164
+ # Otherwise, if the output was created with a 0 exit code from
7165
+ # the compiler, it worked.
7166
+ elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7017
7167
  lt_cv_apple_cc_single_mod=yes
7018
7168
  else
7019
7169
  cat conftest.err >&5
@@ -7024,6 +7174,7 @@ else
7024
7174
  fi
7025
7175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7026
7176
  $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7177
+
7027
7178
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7028
7179
  $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7029
7180
  if ${lt_cv_ld_exported_symbols_list+:} false; then :
@@ -7056,6 +7207,7 @@ rm -f core conftest.err conftest.$ac_objext \
7056
7207
  fi
7057
7208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7058
7209
  $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7210
+
7059
7211
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7060
7212
  $as_echo_n "checking for -force_load linker flag... " >&6; }
7061
7213
  if ${lt_cv_ld_force_load+:} false; then :
@@ -7077,7 +7229,9 @@ _LT_EOF
7077
7229
  echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7078
7230
  $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7079
7231
  _lt_result=$?
7080
- if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7232
+ if test -s conftest.err && $GREP force_load conftest.err; then
7233
+ cat conftest.err >&5
7234
+ elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7081
7235
  lt_cv_ld_force_load=yes
7082
7236
  else
7083
7237
  cat conftest.err >&5
@@ -7482,7 +7636,22 @@ fi
7482
7636
 
7483
7637
  # Check whether --with-pic was given.
7484
7638
  if test "${with_pic+set}" = set; then :
7485
- withval=$with_pic; pic_mode="$withval"
7639
+ withval=$with_pic; lt_p=${PACKAGE-default}
7640
+ case $withval in
7641
+ yes|no) pic_mode=$withval ;;
7642
+ *)
7643
+ pic_mode=default
7644
+ # Look at the argument we got. We use all the common list separators.
7645
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7646
+ for lt_pkg in $withval; do
7647
+ IFS="$lt_save_ifs"
7648
+ if test "X$lt_pkg" = "X$lt_p"; then
7649
+ pic_mode=yes
7650
+ fi
7651
+ done
7652
+ IFS="$lt_save_ifs"
7653
+ ;;
7654
+ esac
7486
7655
  else
7487
7656
  pic_mode=default
7488
7657
  fi
@@ -7555,6 +7724,10 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7555
7724
 
7556
7725
 
7557
7726
 
7727
+
7728
+
7729
+
7730
+
7558
7731
 
7559
7732
 
7560
7733
 
@@ -7849,6 +8022,10 @@ _lt_linker_boilerplate=`cat conftest.err`
7849
8022
  $RM -r conftest*
7850
8023
 
7851
8024
 
8025
+ ## CAVEAT EMPTOR:
8026
+ ## There is no encapsulation within the following macros, do not change
8027
+ ## the running order or otherwise move them around unless you know exactly
8028
+ ## what you are doing...
7852
8029
  if test -n "$compiler"; then
7853
8030
 
7854
8031
  lt_prog_compiler_no_builtin_flag=
@@ -8015,7 +8192,9 @@ lt_prog_compiler_static=
8015
8192
  case $cc_basename in
8016
8193
  nvcc*) # Cuda Compiler Driver 2.2
8017
8194
  lt_prog_compiler_wl='-Xlinker '
8018
- lt_prog_compiler_pic='-Xcompiler -fPIC'
8195
+ if test -n "$lt_prog_compiler_pic"; then
8196
+ lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8197
+ fi
8019
8198
  ;;
8020
8199
  esac
8021
8200
  else
@@ -8106,18 +8285,33 @@ lt_prog_compiler_static=
8106
8285
  ;;
8107
8286
  *)
8108
8287
  case `$CC -V 2>&1 | sed 5q` in
8109
- *Sun\ F* | *Sun*Fortran*)
8288
+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8110
8289
  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8111
8290
  lt_prog_compiler_pic='-KPIC'
8112
8291
  lt_prog_compiler_static='-Bstatic'
8113
8292
  lt_prog_compiler_wl=''
8114
8293
  ;;
8294
+ *Sun\ F* | *Sun*Fortran*)
8295
+ lt_prog_compiler_pic='-KPIC'
8296
+ lt_prog_compiler_static='-Bstatic'
8297
+ lt_prog_compiler_wl='-Qoption ld '
8298
+ ;;
8115
8299
  *Sun\ C*)
8116
8300
  # Sun C 5.9
8117
8301
  lt_prog_compiler_pic='-KPIC'
8118
8302
  lt_prog_compiler_static='-Bstatic'
8119
8303
  lt_prog_compiler_wl='-Wl,'
8120
8304
  ;;
8305
+ *Intel*\ [CF]*Compiler*)
8306
+ lt_prog_compiler_wl='-Wl,'
8307
+ lt_prog_compiler_pic='-fPIC'
8308
+ lt_prog_compiler_static='-static'
8309
+ ;;
8310
+ *Portland\ Group*)
8311
+ lt_prog_compiler_wl='-Wl,'
8312
+ lt_prog_compiler_pic='-fpic'
8313
+ lt_prog_compiler_static='-Bstatic'
8314
+ ;;
8121
8315
  esac
8122
8316
  ;;
8123
8317
  esac
@@ -8479,7 +8673,6 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
8479
8673
  hardcode_direct=no
8480
8674
  hardcode_direct_absolute=no
8481
8675
  hardcode_libdir_flag_spec=
8482
- hardcode_libdir_flag_spec_ld=
8483
8676
  hardcode_libdir_separator=
8484
8677
  hardcode_minus_L=no
8485
8678
  hardcode_shlibpath_var=unsupported
@@ -8729,8 +8922,7 @@ _LT_EOF
8729
8922
  xlf* | bgf* | bgxlf* | mpixlf*)
8730
8923
  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8731
8924
  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8732
- hardcode_libdir_flag_spec=
8733
- hardcode_libdir_flag_spec_ld='-rpath $libdir'
8925
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8734
8926
  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8735
8927
  if test "x$supports_anon_versioning" = xyes; then
8736
8928
  archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
@@ -9109,6 +9301,7 @@ fi
9109
9301
  # The linker will not automatically build a static lib if we build a DLL.
9110
9302
  # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9111
9303
  enable_shared_with_static_runtimes=yes
9304
+ exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9112
9305
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9113
9306
  # Don't use ranlib
9114
9307
  old_postinstall_cmds='chmod 644 $oldlib'
@@ -9154,6 +9347,7 @@ fi
9154
9347
  hardcode_shlibpath_var=unsupported
9155
9348
  if test "$lt_cv_ld_force_load" = "yes"; then
9156
9349
  whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9350
+
9157
9351
  else
9158
9352
  whole_archive_flag_spec=''
9159
9353
  fi
@@ -9182,10 +9376,6 @@ fi
9182
9376
  hardcode_shlibpath_var=no
9183
9377
  ;;
9184
9378
 
9185
- freebsd1*)
9186
- ld_shlibs=no
9187
- ;;
9188
-
9189
9379
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9190
9380
  # support. Future versions do this automatically, but an explicit c++rt0.o
9191
9381
  # does not break anything, and helps significantly (at the cost of a little
@@ -9198,7 +9388,7 @@ fi
9198
9388
  ;;
9199
9389
 
9200
9390
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9201
- freebsd2*)
9391
+ freebsd2.*)
9202
9392
  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9203
9393
  hardcode_direct=yes
9204
9394
  hardcode_minus_L=yes
@@ -9237,7 +9427,6 @@ fi
9237
9427
  fi
9238
9428
  if test "$with_gnu_ld" = no; then
9239
9429
  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9240
- hardcode_libdir_flag_spec_ld='+b $libdir'
9241
9430
  hardcode_libdir_separator=:
9242
9431
  hardcode_direct=yes
9243
9432
  hardcode_direct_absolute=yes
@@ -9855,11 +10044,6 @@ esac
9855
10044
 
9856
10045
 
9857
10046
 
9858
-
9859
-
9860
-
9861
-
9862
-
9863
10047
 
9864
10048
 
9865
10049
 
@@ -9955,7 +10139,7 @@ need_version=unknown
9955
10139
 
9956
10140
  case $host_os in
9957
10141
  aix3*)
9958
- version_type=linux
10142
+ version_type=linux # correct to gnu/linux during the next big refactor
9959
10143
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9960
10144
  shlibpath_var=LIBPATH
9961
10145
 
@@ -9964,7 +10148,7 @@ aix3*)
9964
10148
  ;;
9965
10149
 
9966
10150
  aix[4-9]*)
9967
- version_type=linux
10151
+ version_type=linux # correct to gnu/linux during the next big refactor
9968
10152
  need_lib_prefix=no
9969
10153
  need_version=no
9970
10154
  hardcode_into_libs=yes
@@ -10029,7 +10213,7 @@ beos*)
10029
10213
  ;;
10030
10214
 
10031
10215
  bsdi[45]*)
10032
- version_type=linux
10216
+ version_type=linux # correct to gnu/linux during the next big refactor
10033
10217
  need_version=no
10034
10218
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10035
10219
  soname_spec='${libname}${release}${shared_ext}$major'
@@ -10168,7 +10352,7 @@ darwin* | rhapsody*)
10168
10352
  ;;
10169
10353
 
10170
10354
  dgux*)
10171
- version_type=linux
10355
+ version_type=linux # correct to gnu/linux during the next big refactor
10172
10356
  need_lib_prefix=no
10173
10357
  need_version=no
10174
10358
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
@@ -10176,10 +10360,6 @@ dgux*)
10176
10360
  shlibpath_var=LD_LIBRARY_PATH
10177
10361
  ;;
10178
10362
 
10179
- freebsd1*)
10180
- dynamic_linker=no
10181
- ;;
10182
-
10183
10363
  freebsd* | dragonfly*)
10184
10364
  # DragonFly does not have aout. When/if they implement a new
10185
10365
  # versioning mechanism, adjust this.
@@ -10187,7 +10367,7 @@ freebsd* | dragonfly*)
10187
10367
  objformat=`/usr/bin/objformat`
10188
10368
  else
10189
10369
  case $host_os in
10190
- freebsd[123]*) objformat=aout ;;
10370
+ freebsd[23].*) objformat=aout ;;
10191
10371
  *) objformat=elf ;;
10192
10372
  esac
10193
10373
  fi
@@ -10205,7 +10385,7 @@ freebsd* | dragonfly*)
10205
10385
  esac
10206
10386
  shlibpath_var=LD_LIBRARY_PATH
10207
10387
  case $host_os in
10208
- freebsd2*)
10388
+ freebsd2.*)
10209
10389
  shlibpath_overrides_runpath=yes
10210
10390
  ;;
10211
10391
  freebsd3.[01]* | freebsdelf3.[01]*)
@@ -10225,17 +10405,18 @@ freebsd* | dragonfly*)
10225
10405
  ;;
10226
10406
 
10227
10407
  gnu*)
10228
- version_type=linux
10408
+ version_type=linux # correct to gnu/linux during the next big refactor
10229
10409
  need_lib_prefix=no
10230
10410
  need_version=no
10231
10411
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10232
10412
  soname_spec='${libname}${release}${shared_ext}$major'
10233
10413
  shlibpath_var=LD_LIBRARY_PATH
10414
+ shlibpath_overrides_runpath=no
10234
10415
  hardcode_into_libs=yes
10235
10416
  ;;
10236
10417
 
10237
10418
  haiku*)
10238
- version_type=linux
10419
+ version_type=linux # correct to gnu/linux during the next big refactor
10239
10420
  need_lib_prefix=no
10240
10421
  need_version=no
10241
10422
  dynamic_linker="$host_os runtime_loader"
@@ -10296,7 +10477,7 @@ hpux9* | hpux10* | hpux11*)
10296
10477
  ;;
10297
10478
 
10298
10479
  interix[3-9]*)
10299
- version_type=linux
10480
+ version_type=linux # correct to gnu/linux during the next big refactor
10300
10481
  need_lib_prefix=no
10301
10482
  need_version=no
10302
10483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
@@ -10312,7 +10493,7 @@ irix5* | irix6* | nonstopux*)
10312
10493
  nonstopux*) version_type=nonstopux ;;
10313
10494
  *)
10314
10495
  if test "$lt_cv_prog_gnu_ld" = yes; then
10315
- version_type=linux
10496
+ version_type=linux # correct to gnu/linux during the next big refactor
10316
10497
  else
10317
10498
  version_type=irix
10318
10499
  fi ;;
@@ -10349,9 +10530,9 @@ linux*oldld* | linux*aout* | linux*coff*)
10349
10530
  dynamic_linker=no
10350
10531
  ;;
10351
10532
 
10352
- # This must be Linux ELF.
10533
+ # This must be glibc/ELF.
10353
10534
  linux* | k*bsd*-gnu | kopensolaris*-gnu)
10354
- version_type=linux
10535
+ version_type=linux # correct to gnu/linux during the next big refactor
10355
10536
  need_lib_prefix=no
10356
10537
  need_version=no
10357
10538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -10399,10 +10580,14 @@ fi
10399
10580
  # before this can be enabled.
10400
10581
  hardcode_into_libs=yes
10401
10582
 
10583
+ # Add ABI-specific directories to the system library path.
10584
+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10585
+
10402
10586
  # Append ld.so.conf contents to the search path
10403
10587
  if test -f /etc/ld.so.conf; then
10404
10588
  lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10405
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10589
+ sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10590
+
10406
10591
  fi
10407
10592
 
10408
10593
  # We used to test for /lib/ld.so.1 and disable shared libraries on
@@ -10433,7 +10618,7 @@ netbsd*)
10433
10618
  ;;
10434
10619
 
10435
10620
  newsos6)
10436
- version_type=linux
10621
+ version_type=linux # correct to gnu/linux during the next big refactor
10437
10622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438
10623
  shlibpath_var=LD_LIBRARY_PATH
10439
10624
  shlibpath_overrides_runpath=yes
@@ -10502,7 +10687,7 @@ rdos*)
10502
10687
  ;;
10503
10688
 
10504
10689
  solaris*)
10505
- version_type=linux
10690
+ version_type=linux # correct to gnu/linux during the next big refactor
10506
10691
  need_lib_prefix=no
10507
10692
  need_version=no
10508
10693
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -10527,7 +10712,7 @@ sunos4*)
10527
10712
  ;;
10528
10713
 
10529
10714
  sysv4 | sysv4.3*)
10530
- version_type=linux
10715
+ version_type=linux # correct to gnu/linux during the next big refactor
10531
10716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532
10717
  soname_spec='${libname}${release}${shared_ext}$major'
10533
10718
  shlibpath_var=LD_LIBRARY_PATH
@@ -10551,7 +10736,7 @@ sysv4 | sysv4.3*)
10551
10736
 
10552
10737
  sysv4*MP*)
10553
10738
  if test -d /usr/nec ;then
10554
- version_type=linux
10739
+ version_type=linux # correct to gnu/linux during the next big refactor
10555
10740
  library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10556
10741
  soname_spec='$libname${shared_ext}.$major'
10557
10742
  shlibpath_var=LD_LIBRARY_PATH
@@ -10582,7 +10767,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10582
10767
 
10583
10768
  tpf*)
10584
10769
  # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10585
- version_type=linux
10770
+ version_type=linux # correct to gnu/linux during the next big refactor
10586
10771
  need_lib_prefix=no
10587
10772
  need_version=no
10588
10773
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -10592,7 +10777,7 @@ tpf*)
10592
10777
  ;;
10593
10778
 
10594
10779
  uts4*)
10595
- version_type=linux
10780
+ version_type=linux # correct to gnu/linux during the next big refactor
10596
10781
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597
10782
  soname_spec='${libname}${release}${shared_ext}$major'
10598
10783
  shlibpath_var=LD_LIBRARY_PATH
@@ -11374,6 +11559,8 @@ CC="$lt_save_CC"
11374
11559
 
11375
11560
 
11376
11561
 
11562
+
11563
+
11377
11564
  ac_config_commands="$ac_config_commands libtool"
11378
11565
 
11379
11566
 
@@ -11399,7 +11586,7 @@ do
11399
11586
  IFS=$as_save_IFS
11400
11587
  test -z "$as_dir" && as_dir=.
11401
11588
  for ac_exec_ext in '' $ac_executable_extensions; do
11402
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403
11590
  ac_cv_prog_RC="${ac_tool_prefix}windres"
11404
11591
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11405
11592
  break 2
@@ -11439,7 +11626,7 @@ do
11439
11626
  IFS=$as_save_IFS
11440
11627
  test -z "$as_dir" && as_dir=.
11441
11628
  for ac_exec_ext in '' $ac_executable_extensions; do
11442
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11629
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443
11630
  ac_cv_prog_ac_ct_RC="windres"
11444
11631
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445
11632
  break 2
@@ -11752,13 +11939,13 @@ $as_echo "Darwin/Mac OS X" >&6; }
11752
11939
  *-openbsd*)
11753
11940
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
11754
11941
  $as_echo "OpenBSD" >&6; }
11755
- backend="bsd"
11942
+ backend="openbsd"
11756
11943
  threads="posix"
11757
11944
  ;;
11758
11945
  *-netbsd*)
11759
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD (using OpenBSD backend)" >&5
11760
- $as_echo "NetBSD (using OpenBSD backend)" >&6; }
11761
- backend="bsd"
11946
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5
11947
+ $as_echo "NetBSD" >&6; }
11948
+ backend="netbsd"
11762
11949
  threads="posix"
11763
11950
  ;;
11764
11951
  *-mingw*)
@@ -11785,13 +11972,12 @@ linux)
11785
11972
  $as_echo "#define OS_LINUX 1" >>confdefs.h
11786
11973
 
11787
11974
 
11788
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11789
- $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11790
- if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11975
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11976
+ $as_echo_n "checking for library containing clock_gettime... " >&6; }
11977
+ if ${ac_cv_search_clock_gettime+:} false; then :
11791
11978
  $as_echo_n "(cached) " >&6
11792
11979
  else
11793
- ac_check_lib_save_LIBS=$LIBS
11794
- LIBS="-lrt $LIBS"
11980
+ ac_func_search_save_LIBS=$LIBS
11795
11981
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796
11982
  /* end confdefs.h. */
11797
11983
 
@@ -11810,23 +11996,152 @@ return clock_gettime ();
11810
11996
  return 0;
11811
11997
  }
11812
11998
  _ACEOF
11999
+ for ac_lib in '' rt; do
12000
+ if test -z "$ac_lib"; then
12001
+ ac_res="none required"
12002
+ else
12003
+ ac_res=-l$ac_lib
12004
+ LIBS="-l$ac_lib -pthread $ac_func_search_save_LIBS"
12005
+ fi
12006
+ if ac_fn_c_try_link "$LINENO"; then :
12007
+ ac_cv_search_clock_gettime=$ac_res
12008
+ fi
12009
+ rm -f core conftest.err conftest.$ac_objext \
12010
+ conftest$ac_exeext
12011
+ if ${ac_cv_search_clock_gettime+:} false; then :
12012
+ break
12013
+ fi
12014
+ done
12015
+ if ${ac_cv_search_clock_gettime+:} false; then :
12016
+
12017
+ else
12018
+ ac_cv_search_clock_gettime=no
12019
+ fi
12020
+ rm conftest.$ac_ext
12021
+ LIBS=$ac_func_search_save_LIBS
12022
+ fi
12023
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12024
+ $as_echo "$ac_cv_search_clock_gettime" >&6; }
12025
+ ac_res=$ac_cv_search_clock_gettime
12026
+ if test "$ac_res" != no; then :
12027
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12028
+
12029
+ fi
12030
+
12031
+ # Check whether --enable-udev was given.
12032
+ if test "${enable_udev+set}" = set; then :
12033
+ enableval=$enable_udev;
12034
+ else
12035
+ enable_udev="yes"
12036
+ fi
12037
+
12038
+ if test "x$enable_udev" = "xyes" ; then
12039
+ # system has udev. use it or fail!
12040
+ for ac_header in libudev.h
12041
+ do :
12042
+ ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
12043
+ if test "x$ac_cv_header_libudev_h" = xyes; then :
12044
+ cat >>confdefs.h <<_ACEOF
12045
+ #define HAVE_LIBUDEV_H 1
12046
+ _ACEOF
12047
+
12048
+ else
12049
+ as_fn_error $? "\"udev support requested but libudev not installed\"" "$LINENO" 5
12050
+ fi
12051
+
12052
+ done
12053
+
12054
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5
12055
+ $as_echo_n "checking for udev_new in -ludev... " >&6; }
12056
+ if ${ac_cv_lib_udev_udev_new+:} false; then :
12057
+ $as_echo_n "(cached) " >&6
12058
+ else
12059
+ ac_check_lib_save_LIBS=$LIBS
12060
+ LIBS="-ludev $LIBS"
12061
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062
+ /* end confdefs.h. */
12063
+
12064
+ /* Override any GCC internal prototype to avoid an error.
12065
+ Use char because int might match the return type of a GCC
12066
+ builtin and then its argument prototype would still apply. */
12067
+ #ifdef __cplusplus
12068
+ extern "C"
12069
+ #endif
12070
+ char udev_new ();
12071
+ int
12072
+ main ()
12073
+ {
12074
+ return udev_new ();
12075
+ ;
12076
+ return 0;
12077
+ }
12078
+ _ACEOF
11813
12079
  if ac_fn_c_try_link "$LINENO"; then :
11814
- ac_cv_lib_rt_clock_gettime=yes
12080
+ ac_cv_lib_udev_udev_new=yes
11815
12081
  else
11816
- ac_cv_lib_rt_clock_gettime=no
12082
+ ac_cv_lib_udev_udev_new=no
11817
12083
  fi
11818
12084
  rm -f core conftest.err conftest.$ac_objext \
11819
12085
  conftest$ac_exeext conftest.$ac_ext
11820
12086
  LIBS=$ac_check_lib_save_LIBS
11821
12087
  fi
11822
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11823
- $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11824
- if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11825
- PC_LIBS_PRIVATE="-lrt"
12088
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5
12089
+ $as_echo "$ac_cv_lib_udev_udev_new" >&6; }
12090
+ if test "x$ac_cv_lib_udev_udev_new" = xyes; then :
12091
+ cat >>confdefs.h <<_ACEOF
12092
+ #define HAVE_LIBUDEV 1
12093
+ _ACEOF
12094
+
12095
+ LIBS="-ludev $LIBS"
12096
+
12097
+ else
12098
+ as_fn_error $? "\"udev support requested but libudev not installed\"" "$LINENO" 5
12099
+ fi
12100
+
12101
+
12102
+ $as_echo "#define USE_UDEV 1" >>confdefs.h
12103
+
12104
+ else
12105
+ for ac_header in asm/types.h sys/socket.h
12106
+ do :
12107
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12108
+ ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12109
+ if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12110
+ cat >>confdefs.h <<_ACEOF
12111
+ #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12112
+ _ACEOF
12113
+
12114
+ fi
12115
+
12116
+ done
12117
+
12118
+ for ac_header in linux/netlink.h linux/filter.h
12119
+ do :
12120
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12121
+ ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
12122
+ #ifdef HAVE_ASM_TYPES_H
12123
+ #include <asm/types.h>
12124
+ #endif
12125
+ #ifdef HAVE_SYS_SOCKET_H
12126
+ #include <sys/socket.h>
12127
+ #endif
12128
+
12129
+ "
12130
+ if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12131
+ cat >>confdefs.h <<_ACEOF
12132
+ #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12133
+ _ACEOF
12134
+
12135
+ else
12136
+ as_fn_error $? "\"Linux netlink headers not found\"" "$LINENO" 5
11826
12137
  fi
11827
12138
 
12139
+ done
12140
+
12141
+ fi
12142
+
11828
12143
  THREAD_CFLAGS="-pthread"
11829
- PC_LIBS_PRIVATE="${PC_LIBS_PRIVATE} -pthread"
12144
+ LIBS="${LIBS} -pthread"
11830
12145
  for ac_header in poll.h
11831
12146
  do :
11832
12147
  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
@@ -11848,7 +12163,7 @@ darwin)
11848
12163
  $as_echo "#define OS_DARWIN 1" >>confdefs.h
11849
12164
 
11850
12165
 
11851
- PC_LIBS_PRIVATE="-lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation"
12166
+ LIBS="-lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation"
11852
12167
  LTLDFLAGS="${LTLDFLAGS} -Wl,-prebind"
11853
12168
  for ac_header in poll.h
11854
12169
  do :
@@ -11875,13 +12190,36 @@ $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
11875
12190
  fi
11876
12191
 
11877
12192
  ;;
11878
- bsd)
12193
+ openbsd)
11879
12194
 
11880
12195
  $as_echo "#define OS_OPENBSD 1" >>confdefs.h
11881
12196
 
11882
12197
 
11883
12198
  THREAD_CFLAGS="-pthread"
11884
- PC_LIBS_PRIVATE="-pthread"
12199
+ LIBS="-pthread"
12200
+ for ac_header in poll.h
12201
+ do :
12202
+ ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12203
+ if test "x$ac_cv_header_poll_h" = xyes; then :
12204
+ cat >>confdefs.h <<_ACEOF
12205
+ #define HAVE_POLL_H 1
12206
+ _ACEOF
12207
+
12208
+ fi
12209
+
12210
+ done
12211
+
12212
+
12213
+ $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
12214
+
12215
+ ;;
12216
+ netbsd)
12217
+
12218
+ $as_echo "#define OS_NETBSD 1" >>confdefs.h
12219
+
12220
+
12221
+ THREAD_CFLAGS="-pthread"
12222
+ LIBS="-pthread"
11885
12223
  for ac_header in poll.h
11886
12224
  do :
11887
12225
  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
@@ -11903,7 +12241,7 @@ windows)
11903
12241
  $as_echo "#define OS_WINDOWS 1" >>confdefs.h
11904
12242
 
11905
12243
 
11906
- PC_LIBS_PRIVATE=""
12244
+ LIBS=""
11907
12245
  LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias"
11908
12246
 
11909
12247
  $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
@@ -11913,8 +12251,6 @@ esac
11913
12251
 
11914
12252
 
11915
12253
 
11916
- LIBS="${LIBS} ${PC_LIBS_PRIVATE}"
11917
-
11918
12254
  if test "x$backend" = xlinux; then
11919
12255
  OS_LINUX_TRUE=
11920
12256
  OS_LINUX_FALSE='#'
@@ -11931,7 +12267,7 @@ else
11931
12267
  OS_DARWIN_FALSE=
11932
12268
  fi
11933
12269
 
11934
- if test "x$backend" = xbsd; then
12270
+ if test "x$backend" = xopenbsd; then
11935
12271
  OS_OPENBSD_TRUE=
11936
12272
  OS_OPENBSD_FALSE='#'
11937
12273
  else
@@ -11939,6 +12275,14 @@ else
11939
12275
  OS_OPENBSD_FALSE=
11940
12276
  fi
11941
12277
 
12278
+ if test "x$backend" = xnetbsd; then
12279
+ OS_NETBSD_TRUE=
12280
+ OS_NETBSD_FALSE='#'
12281
+ else
12282
+ OS_NETBSD_TRUE='#'
12283
+ OS_NETBSD_FALSE=
12284
+ fi
12285
+
11942
12286
  if test "x$backend" = xwindows; then
11943
12287
  OS_WINDOWS_TRUE=
11944
12288
  OS_WINDOWS_FALSE='#'
@@ -11963,6 +12307,14 @@ else
11963
12307
  CREATE_IMPORT_LIB_FALSE=
11964
12308
  fi
11965
12309
 
12310
+ if test "x$enable_udev" = xyes; then
12311
+ USE_UDEV_TRUE=
12312
+ USE_UDEV_FALSE='#'
12313
+ else
12314
+ USE_UDEV_TRUE='#'
12315
+ USE_UDEV_FALSE=
12316
+ fi
12317
+
11966
12318
  if test "$threads" = posix; then
11967
12319
 
11968
12320
  $as_echo "#define THREADS_POSIX 1" >>confdefs.h
@@ -12058,6 +12410,45 @@ $as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
12058
12410
 
12059
12411
  fi
12060
12412
 
12413
+ # Check whether --enable-system-log was given.
12414
+ if test "${enable_system_log+set}" = set; then :
12415
+ enableval=$enable_system_log; system_log_enabled=$enableval
12416
+ else
12417
+ system_log_enabled='no'
12418
+ fi
12419
+
12420
+ if test "x$system_log_enabled" != "xno"; then
12421
+
12422
+ $as_echo "#define USE_SYSTEM_LOGGING_FACILITY 1" >>confdefs.h
12423
+
12424
+ fi
12425
+
12426
+ # Check if syslog is available in standard C library
12427
+ for ac_header in syslog.h
12428
+ do :
12429
+ ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
12430
+ if test "x$ac_cv_header_syslog_h" = xyes; then :
12431
+ cat >>confdefs.h <<_ACEOF
12432
+ #define HAVE_SYSLOG_H 1
12433
+ _ACEOF
12434
+
12435
+ fi
12436
+
12437
+ done
12438
+
12439
+ ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12440
+ if test "x$ac_cv_func_syslog" = xyes; then :
12441
+ have_syslog=yes
12442
+ else
12443
+ have_syslog=no
12444
+ fi
12445
+
12446
+ if test "x$have_syslog" != "xno"; then
12447
+
12448
+ $as_echo "#define HAVE_SYSLOG_FUNC 1" >>confdefs.h
12449
+
12450
+ fi
12451
+
12061
12452
  # Examples build
12062
12453
  # Check whether --enable-examples-build was given.
12063
12454
  if test "${enable_examples_build+set}" = set; then :
@@ -12075,6 +12466,23 @@ else
12075
12466
  fi
12076
12467
 
12077
12468
 
12469
+ # Tests build
12470
+ # Check whether --enable-tests-build was given.
12471
+ if test "${enable_tests_build+set}" = set; then :
12472
+ enableval=$enable_tests_build; build_tests=$enableval
12473
+ else
12474
+ build_tests='no'
12475
+ fi
12476
+
12477
+ if test "x$build_tests" != "xno"; then
12478
+ BUILD_TESTS_TRUE=
12479
+ BUILD_TESTS_FALSE='#'
12480
+ else
12481
+ BUILD_TESTS_TRUE='#'
12482
+ BUILD_TESTS_FALSE=
12483
+ fi
12484
+
12485
+
12078
12486
  # check for -fvisibility=hidden compiler support (GCC >= 3.4)
12079
12487
  saved_cflags="$CFLAGS"
12080
12488
  # -Werror required for cygwin
@@ -12167,9 +12575,20 @@ _ACEOF
12167
12575
  fi
12168
12576
  done
12169
12577
 
12578
+ for ac_header in signal.h
12579
+ do :
12580
+ ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
12581
+ if test "x$ac_cv_header_signal_h" = xyes; then :
12582
+ cat >>confdefs.h <<_ACEOF
12583
+ #define HAVE_SIGNAL_H 1
12584
+ _ACEOF
12585
+
12586
+ fi
12587
+
12588
+ done
12170
12589
 
12171
- AM_CFLAGS="${AM_CFLAGS} -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow"
12172
12590
 
12591
+ AM_CFLAGS="${AM_CFLAGS} -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow ${THREAD_CFLAGS} ${VISIBILITY_CFLAGS}"
12173
12592
 
12174
12593
 
12175
12594
 
@@ -12182,6 +12601,8 @@ ac_config_files="$ac_config_files libusb/Makefile"
12182
12601
 
12183
12602
  ac_config_files="$ac_config_files examples/Makefile"
12184
12603
 
12604
+ ac_config_files="$ac_config_files tests/Makefile"
12605
+
12185
12606
  ac_config_files="$ac_config_files doc/Makefile"
12186
12607
 
12187
12608
  ac_config_files="$ac_config_files doc/doxygen.cfg"
@@ -12295,6 +12716,14 @@ LIBOBJS=$ac_libobjs
12295
12716
  LTLIBOBJS=$ac_ltlibobjs
12296
12717
 
12297
12718
 
12719
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12720
+ $as_echo_n "checking that generated files are newer than configure... " >&6; }
12721
+ if test -n "$am_sleep_pid"; then
12722
+ # Hide warnings about reused PIDs.
12723
+ wait $am_sleep_pid 2>/dev/null
12724
+ fi
12725
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12726
+ $as_echo "done" >&6; }
12298
12727
  if test -n "$EXEEXT"; then
12299
12728
  am__EXEEXT_TRUE=
12300
12729
  am__EXEEXT_FALSE='#'
@@ -12327,6 +12756,10 @@ if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
12327
12756
  as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
12328
12757
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
12329
12758
  fi
12759
+ if test -z "${OS_NETBSD_TRUE}" && test -z "${OS_NETBSD_FALSE}"; then
12760
+ as_fn_error $? "conditional \"OS_NETBSD\" was never defined.
12761
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
12762
+ fi
12330
12763
  if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
12331
12764
  as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
12332
12765
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -12339,10 +12772,18 @@ if test -z "${CREATE_IMPORT_LIB_TRUE}" && test -z "${CREATE_IMPORT_LIB_FALSE}";
12339
12772
  as_fn_error $? "conditional \"CREATE_IMPORT_LIB\" was never defined.
12340
12773
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
12341
12774
  fi
12775
+ if test -z "${USE_UDEV_TRUE}" && test -z "${USE_UDEV_FALSE}"; then
12776
+ as_fn_error $? "conditional \"USE_UDEV\" was never defined.
12777
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
12778
+ fi
12342
12779
  if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
12343
12780
  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
12344
12781
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
12345
12782
  fi
12783
+ if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
12784
+ as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
12785
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
12786
+ fi
12346
12787
  if test -z "${HAVE_SIGACTION_TRUE}" && test -z "${HAVE_SIGACTION_FALSE}"; then
12347
12788
  as_fn_error $? "conditional \"HAVE_SIGACTION\" was never defined.
12348
12789
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -12645,16 +13086,16 @@ if (echo >conf$$.file) 2>/dev/null; then
12645
13086
  # ... but there are two gotchas:
12646
13087
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12647
13088
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12648
- # In both cases, we have to default to `cp -p'.
13089
+ # In both cases, we have to default to `cp -pR'.
12649
13090
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12650
- as_ln_s='cp -p'
13091
+ as_ln_s='cp -pR'
12651
13092
  elif ln conf$$.file conf$$ 2>/dev/null; then
12652
13093
  as_ln_s=ln
12653
13094
  else
12654
- as_ln_s='cp -p'
13095
+ as_ln_s='cp -pR'
12655
13096
  fi
12656
13097
  else
12657
- as_ln_s='cp -p'
13098
+ as_ln_s='cp -pR'
12658
13099
  fi
12659
13100
  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12660
13101
  rmdir conf$$.dir 2>/dev/null
@@ -12714,28 +13155,16 @@ else
12714
13155
  as_mkdir_p=false
12715
13156
  fi
12716
13157
 
12717
- if test -x / >/dev/null 2>&1; then
12718
- as_test_x='test -x'
12719
- else
12720
- if ls -dL / >/dev/null 2>&1; then
12721
- as_ls_L_option=L
12722
- else
12723
- as_ls_L_option=
12724
- fi
12725
- as_test_x='
12726
- eval sh -c '\''
12727
- if test -d "$1"; then
12728
- test -d "$1/.";
12729
- else
12730
- case $1 in #(
12731
- -*)set "./$1";;
12732
- esac;
12733
- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12734
- ???[sx]*):;;*)false;;esac;fi
12735
- '\'' sh
12736
- '
12737
- fi
12738
- as_executable_p=$as_test_x
13158
+
13159
+ # as_fn_executable_p FILE
13160
+ # -----------------------
13161
+ # Test if FILE is an executable regular file.
13162
+ as_fn_executable_p ()
13163
+ {
13164
+ test -f "$1" && test -x "$1"
13165
+ } # as_fn_executable_p
13166
+ as_test_x='test -x'
13167
+ as_executable_p=as_fn_executable_p
12739
13168
 
12740
13169
  # Sed expression to map a string onto a valid CPP name.
12741
13170
  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -12756,8 +13185,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12756
13185
  # report actual input values of CONFIG_FILES etc. instead of their
12757
13186
  # values after options handling.
12758
13187
  ac_log="
12759
- This file was extended by libusbx $as_me 1.0.14, which was
12760
- generated by GNU Autoconf 2.68. Invocation command line was
13188
+ This file was extended by libusbx $as_me 1.0.17, which was
13189
+ generated by GNU Autoconf 2.69. Invocation command line was
12761
13190
 
12762
13191
  CONFIG_FILES = $CONFIG_FILES
12763
13192
  CONFIG_HEADERS = $CONFIG_HEADERS
@@ -12823,11 +13252,11 @@ _ACEOF
12823
13252
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12824
13253
  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12825
13254
  ac_cs_version="\\
12826
- libusbx config.status 1.0.14
12827
- configured by $0, generated by GNU Autoconf 2.68,
13255
+ libusbx config.status 1.0.17
13256
+ configured by $0, generated by GNU Autoconf 2.69,
12828
13257
  with options \\"\$ac_cs_config\\"
12829
13258
 
12830
- Copyright (C) 2010 Free Software Foundation, Inc.
13259
+ Copyright (C) 2012 Free Software Foundation, Inc.
12831
13260
  This config.status script is free software; the Free Software Foundation
12832
13261
  gives unlimited permission to copy, distribute and modify it."
12833
13262
 
@@ -12918,7 +13347,7 @@ fi
12918
13347
  _ACEOF
12919
13348
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12920
13349
  if \$ac_cs_recheck; then
12921
- set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13350
+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12922
13351
  shift
12923
13352
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12924
13353
  CONFIG_SHELL='$SHELL'
@@ -12960,6 +13389,7 @@ pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12960
13389
  enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12961
13390
  SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12962
13391
  ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13392
+ PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12963
13393
  host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12964
13394
  host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12965
13395
  host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
@@ -13042,7 +13472,6 @@ with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13042
13472
  allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13043
13473
  no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13044
13474
  hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13045
- hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13046
13475
  hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13047
13476
  hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13048
13477
  hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
@@ -13108,7 +13537,6 @@ with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
13108
13537
  allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
13109
13538
  no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
13110
13539
  hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
13111
- hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
13112
13540
  hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
13113
13541
  hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
13114
13542
  hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
@@ -13141,6 +13569,7 @@ _LTECHO_EOF'
13141
13569
  # Quote evaled strings.
13142
13570
  for var in SHELL \
13143
13571
  ECHO \
13572
+ PATH_SEPARATOR \
13144
13573
  SED \
13145
13574
  GREP \
13146
13575
  EGREP \
@@ -13191,7 +13620,6 @@ with_gnu_ld \
13191
13620
  allow_undefined_flag \
13192
13621
  no_undefined_flag \
13193
13622
  hardcode_libdir_flag_spec \
13194
- hardcode_libdir_flag_spec_ld \
13195
13623
  hardcode_libdir_separator \
13196
13624
  exclude_expsyms \
13197
13625
  include_expsyms \
@@ -13219,7 +13647,6 @@ with_gnu_ld_RC \
13219
13647
  allow_undefined_flag_RC \
13220
13648
  no_undefined_flag_RC \
13221
13649
  hardcode_libdir_flag_spec_RC \
13222
- hardcode_libdir_flag_spec_ld_RC \
13223
13650
  hardcode_libdir_separator_RC \
13224
13651
  exclude_expsyms_RC \
13225
13652
  include_expsyms_RC \
@@ -13312,6 +13739,7 @@ do
13312
13739
  "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13313
13740
  "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
13314
13741
  "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13742
+ "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13315
13743
  "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13316
13744
  "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
13317
13745
 
@@ -13910,7 +14338,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
13910
14338
 
13911
14339
  case $ac_file$ac_mode in
13912
14340
  "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13913
- # Autoconf 2.62 quotes --file arguments for eval, but not when files
14341
+ # Older Autoconf quotes --file arguments for eval, but not when files
13914
14342
  # are listed without --file. Let's play safe and only enable the eval
13915
14343
  # if we detect the quoting.
13916
14344
  case $CONFIG_FILES in
@@ -13923,7 +14351,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
13923
14351
  # Strip MF so we end up with the name of the file.
13924
14352
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13925
14353
  # Check whether this is an Automake generated Makefile or not.
13926
- # We used to match only the files named `Makefile.in', but
14354
+ # We used to match only the files named 'Makefile.in', but
13927
14355
  # some people rename them; so instead we look at the file content.
13928
14356
  # Grep'ing the first line is not enough: some people post-process
13929
14357
  # each Makefile.in and add a new line on top of each file to say so.
@@ -13957,21 +14385,19 @@ $as_echo X"$mf" |
13957
14385
  continue
13958
14386
  fi
13959
14387
  # Extract the definition of DEPDIR, am__include, and am__quote
13960
- # from the Makefile without running `make'.
14388
+ # from the Makefile without running 'make'.
13961
14389
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13962
14390
  test -z "$DEPDIR" && continue
13963
14391
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13964
- test -z "am__include" && continue
14392
+ test -z "$am__include" && continue
13965
14393
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13966
- # When using ansi2knr, U may be empty or an underscore; expand it
13967
- U=`sed -n 's/^U = //p' < "$mf"`
13968
14394
  # Find all dependency output files, they are included files with
13969
14395
  # $(DEPDIR) in their names. We invoke sed twice because it is the
13970
14396
  # simplest approach to changing $(DEPDIR) to its actual value in the
13971
14397
  # expansion.
13972
14398
  for file in `sed -n "
13973
14399
  s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13974
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14400
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13975
14401
  # Make sure the directory exists.
13976
14402
  test -f "$dirpart/$file" && continue
13977
14403
  fdir=`$as_dirname -- "$file" ||
@@ -14025,8 +14451,8 @@ $as_echo X"$file" |
14025
14451
  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14026
14452
  #
14027
14453
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14028
- # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14029
- # Inc.
14454
+ # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14455
+ # Foundation, Inc.
14030
14456
  # Written by Gordon Matzigkeit, 1996
14031
14457
  #
14032
14458
  # This file is part of GNU Libtool.
@@ -14080,6 +14506,9 @@ SHELL=$lt_SHELL
14080
14506
  # An echo program that protects backslashes.
14081
14507
  ECHO=$lt_ECHO
14082
14508
 
14509
+ # The PATH separator for the build system.
14510
+ PATH_SEPARATOR=$lt_PATH_SEPARATOR
14511
+
14083
14512
  # The host system.
14084
14513
  host_alias=$host_alias
14085
14514
  host=$host
@@ -14381,10 +14810,6 @@ no_undefined_flag=$lt_no_undefined_flag
14381
14810
  # This must work even if \$libdir does not exist
14382
14811
  hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14383
14812
 
14384
- # If ld is used when linking, flag to hardcode \$libdir into a binary
14385
- # during linking. This must work even if \$libdir does not exist.
14386
- hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14387
-
14388
14813
  # Whether we need a single "-rpath" flag with a separated argument.
14389
14814
  hardcode_libdir_separator=$lt_hardcode_libdir_separator
14390
14815
 
@@ -14713,10 +15138,6 @@ no_undefined_flag=$lt_no_undefined_flag_RC
14713
15138
  # This must work even if \$libdir does not exist
14714
15139
  hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14715
15140
 
14716
- # If ld is used when linking, flag to hardcode \$libdir into a binary
14717
- # during linking. This must work even if \$libdir does not exist.
14718
- hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
14719
-
14720
15141
  # Whether we need a single "-rpath" flag with a separated argument.
14721
15142
  hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14722
15143