Trim redundant import
[ghc-hetmet.git] / libffi / libffi-autotools-update.patch
1 --- libffi-3.0.6/configure      2008-07-17 15:07:39.000000000 +0200
2 +++ build/configure     2008-10-14 09:55:37.000000000 +0200
3 @@ -860,6 +860,8 @@
4  CCASDEPMODE
5  am__fastdepCCAS_TRUE
6  am__fastdepCCAS_FALSE
7 +LIBFFI_DLL
8 +LIBFFI_LDFLAGS
9  SED
10  GREP
11  EGREP
12 @@ -867,6 +869,11 @@
13  ECHO
14  AR
15  RANLIB
16 +DSYMUTIL
17 +NMEDIT
18 +DLLTOOL
19 +AS
20 +OBJDUMP
21  CPP
22  CXX
23  CXXFLAGS
24 @@ -3965,6 +3972,22 @@
25  fi
26  
27  
28 +
29 +
30 +
31 +LIBFFI_DLL=0
32 +
33 +
34 +case $host in
35 +  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
36 +    if test "$enable_shared" = yes; then
37 +      LIBFFI_LDFLAGS="-no-undefined -Wl,--export-all-symbols"
38 +      LIBFFI_DLL=1
39 +    fi
40 +    ;;
41 +esac
42 +
43 +
44  # Check whether --enable-shared was given.
45  if test "${enable_shared+set}" = set; then
46    enableval=$enable_shared; p=${PACKAGE-default}
47 @@ -4474,7 +4497,7 @@
48  # whether `pass_all' will *always* work, you probably want this one.
49  
50  case $host_os in
51 -aix4* | aix5*)
52 +aix[4-9]*)
53    lt_cv_deplibs_check_method=pass_all
54    ;;
55  
56 @@ -4690,7 +4713,7 @@
57    ;;
58  *-*-irix6*)
59    # Find out which ABI we are using.
60 -  echo '#line 4693 "configure"' > conftest.$ac_ext
61 +  echo '#line 4716 "configure"' > conftest.$ac_ext
62    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63    (eval $ac_compile) 2>&5
64    ac_status=$?
65 @@ -4755,7 +4778,6 @@
66        esac
67        ;;
68      *64-bit*)
69 -      libsuff=64
70        case $host in
71          x86_64-*kfreebsd*-gnu)
72            LD="${LD-ld} -m elf_x86_64_fbsd"
73 @@ -4863,7 +4885,11 @@
74      *64-bit*)
75        case $lt_cv_prog_gnu_ld in
76        yes*) LD="${LD-ld} -m elf64_sparc" ;;
77 -      *)    LD="${LD-ld} -64" ;;
78 +      *)
79 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
80 +         LD="${LD-ld} -64"
81 +       fi
82 +       ;;
83        esac
84        ;;
85      esac
86 @@ -4871,6 +4897,296 @@
87    rm -rf conftest*
88    ;;
89  
90 +*-*-cygwin* | *-*-mingw* | *-*-pw32*)
91 +  if test -n "$ac_tool_prefix"; then
92 +  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
93 +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
94 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
95 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
96 +if test "${ac_cv_prog_DLLTOOL+set}" = set; then
97 +  echo $ECHO_N "(cached) $ECHO_C" >&6
98 +else
99 +  if test -n "$DLLTOOL"; then
100 +  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
101 +else
102 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 +for as_dir in $PATH
104 +do
105 +  IFS=$as_save_IFS
106 +  test -z "$as_dir" && as_dir=.
107 +  for ac_exec_ext in '' $ac_executable_extensions; do
108 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
109 +    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
110 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
111 +    break 2
112 +  fi
113 +done
114 +done
115 +IFS=$as_save_IFS
116 +
117 +fi
118 +fi
119 +DLLTOOL=$ac_cv_prog_DLLTOOL
120 +if test -n "$DLLTOOL"; then
121 +  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
122 +echo "${ECHO_T}$DLLTOOL" >&6; }
123 +else
124 +  { echo "$as_me:$LINENO: result: no" >&5
125 +echo "${ECHO_T}no" >&6; }
126 +fi
127 +
128 +
129 +fi
130 +if test -z "$ac_cv_prog_DLLTOOL"; then
131 +  ac_ct_DLLTOOL=$DLLTOOL
132 +  # Extract the first word of "dlltool", so it can be a program name with args.
133 +set dummy dlltool; ac_word=$2
134 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
135 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
136 +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
137 +  echo $ECHO_N "(cached) $ECHO_C" >&6
138 +else
139 +  if test -n "$ac_ct_DLLTOOL"; then
140 +  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
141 +else
142 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
143 +for as_dir in $PATH
144 +do
145 +  IFS=$as_save_IFS
146 +  test -z "$as_dir" && as_dir=.
147 +  for ac_exec_ext in '' $ac_executable_extensions; do
148 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
149 +    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
150 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
151 +    break 2
152 +  fi
153 +done
154 +done
155 +IFS=$as_save_IFS
156 +
157 +fi
158 +fi
159 +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
160 +if test -n "$ac_ct_DLLTOOL"; then
161 +  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
162 +echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
163 +else
164 +  { echo "$as_me:$LINENO: result: no" >&5
165 +echo "${ECHO_T}no" >&6; }
166 +fi
167 +
168 +  if test "x$ac_ct_DLLTOOL" = x; then
169 +    DLLTOOL="false"
170 +  else
171 +    case $cross_compiling:$ac_tool_warned in
172 +yes:)
173 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
174 +whose name does not start with the host triplet.  If you think this
175 +configuration is useful to you, please write to autoconf@gnu.org." >&5
176 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
177 +whose name does not start with the host triplet.  If you think this
178 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
179 +ac_tool_warned=yes ;;
180 +esac
181 +    DLLTOOL=$ac_ct_DLLTOOL
182 +  fi
183 +else
184 +  DLLTOOL="$ac_cv_prog_DLLTOOL"
185 +fi
186 +
187 +  if test -n "$ac_tool_prefix"; then
188 +  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
189 +set dummy ${ac_tool_prefix}as; ac_word=$2
190 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
191 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
192 +if test "${ac_cv_prog_AS+set}" = set; then
193 +  echo $ECHO_N "(cached) $ECHO_C" >&6
194 +else
195 +  if test -n "$AS"; then
196 +  ac_cv_prog_AS="$AS" # Let the user override the test.
197 +else
198 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 +for as_dir in $PATH
200 +do
201 +  IFS=$as_save_IFS
202 +  test -z "$as_dir" && as_dir=.
203 +  for ac_exec_ext in '' $ac_executable_extensions; do
204 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
205 +    ac_cv_prog_AS="${ac_tool_prefix}as"
206 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
207 +    break 2
208 +  fi
209 +done
210 +done
211 +IFS=$as_save_IFS
212 +
213 +fi
214 +fi
215 +AS=$ac_cv_prog_AS
216 +if test -n "$AS"; then
217 +  { echo "$as_me:$LINENO: result: $AS" >&5
218 +echo "${ECHO_T}$AS" >&6; }
219 +else
220 +  { echo "$as_me:$LINENO: result: no" >&5
221 +echo "${ECHO_T}no" >&6; }
222 +fi
223 +
224 +
225 +fi
226 +if test -z "$ac_cv_prog_AS"; then
227 +  ac_ct_AS=$AS
228 +  # Extract the first word of "as", so it can be a program name with args.
229 +set dummy as; ac_word=$2
230 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
231 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
232 +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
233 +  echo $ECHO_N "(cached) $ECHO_C" >&6
234 +else
235 +  if test -n "$ac_ct_AS"; then
236 +  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
237 +else
238 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
239 +for as_dir in $PATH
240 +do
241 +  IFS=$as_save_IFS
242 +  test -z "$as_dir" && as_dir=.
243 +  for ac_exec_ext in '' $ac_executable_extensions; do
244 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
245 +    ac_cv_prog_ac_ct_AS="as"
246 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
247 +    break 2
248 +  fi
249 +done
250 +done
251 +IFS=$as_save_IFS
252 +
253 +fi
254 +fi
255 +ac_ct_AS=$ac_cv_prog_ac_ct_AS
256 +if test -n "$ac_ct_AS"; then
257 +  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
258 +echo "${ECHO_T}$ac_ct_AS" >&6; }
259 +else
260 +  { echo "$as_me:$LINENO: result: no" >&5
261 +echo "${ECHO_T}no" >&6; }
262 +fi
263 +
264 +  if test "x$ac_ct_AS" = x; then
265 +    AS="false"
266 +  else
267 +    case $cross_compiling:$ac_tool_warned in
268 +yes:)
269 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
270 +whose name does not start with the host triplet.  If you think this
271 +configuration is useful to you, please write to autoconf@gnu.org." >&5
272 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
273 +whose name does not start with the host triplet.  If you think this
274 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
275 +ac_tool_warned=yes ;;
276 +esac
277 +    AS=$ac_ct_AS
278 +  fi
279 +else
280 +  AS="$ac_cv_prog_AS"
281 +fi
282 +
283 +  if test -n "$ac_tool_prefix"; then
284 +  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
285 +set dummy ${ac_tool_prefix}objdump; ac_word=$2
286 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
287 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
288 +if test "${ac_cv_prog_OBJDUMP+set}" = set; then
289 +  echo $ECHO_N "(cached) $ECHO_C" >&6
290 +else
291 +  if test -n "$OBJDUMP"; then
292 +  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
293 +else
294 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
295 +for as_dir in $PATH
296 +do
297 +  IFS=$as_save_IFS
298 +  test -z "$as_dir" && as_dir=.
299 +  for ac_exec_ext in '' $ac_executable_extensions; do
300 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
301 +    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
302 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
303 +    break 2
304 +  fi
305 +done
306 +done
307 +IFS=$as_save_IFS
308 +
309 +fi
310 +fi
311 +OBJDUMP=$ac_cv_prog_OBJDUMP
312 +if test -n "$OBJDUMP"; then
313 +  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
314 +echo "${ECHO_T}$OBJDUMP" >&6; }
315 +else
316 +  { echo "$as_me:$LINENO: result: no" >&5
317 +echo "${ECHO_T}no" >&6; }
318 +fi
319 +
320 +
321 +fi
322 +if test -z "$ac_cv_prog_OBJDUMP"; then
323 +  ac_ct_OBJDUMP=$OBJDUMP
324 +  # Extract the first word of "objdump", so it can be a program name with args.
325 +set dummy objdump; ac_word=$2
326 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
327 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
328 +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
329 +  echo $ECHO_N "(cached) $ECHO_C" >&6
330 +else
331 +  if test -n "$ac_ct_OBJDUMP"; then
332 +  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
333 +else
334 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335 +for as_dir in $PATH
336 +do
337 +  IFS=$as_save_IFS
338 +  test -z "$as_dir" && as_dir=.
339 +  for ac_exec_ext in '' $ac_executable_extensions; do
340 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
341 +    ac_cv_prog_ac_ct_OBJDUMP="objdump"
342 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
343 +    break 2
344 +  fi
345 +done
346 +done
347 +IFS=$as_save_IFS
348 +
349 +fi
350 +fi
351 +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
352 +if test -n "$ac_ct_OBJDUMP"; then
353 +  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
354 +echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
355 +else
356 +  { echo "$as_me:$LINENO: result: no" >&5
357 +echo "${ECHO_T}no" >&6; }
358 +fi
359 +
360 +  if test "x$ac_ct_OBJDUMP" = x; then
361 +    OBJDUMP="false"
362 +  else
363 +    case $cross_compiling:$ac_tool_warned in
364 +yes:)
365 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
366 +whose name does not start with the host triplet.  If you think this
367 +configuration is useful to you, please write to autoconf@gnu.org." >&5
368 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
369 +whose name does not start with the host triplet.  If you think this
370 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
371 +ac_tool_warned=yes ;;
372 +esac
373 +    OBJDUMP=$ac_ct_OBJDUMP
374 +  fi
375 +else
376 +  OBJDUMP="$ac_cv_prog_OBJDUMP"
377 +fi
378 +
379 +  ;;
380  
381  esac
382  
383 @@ -6465,7 +6781,6 @@
384  
385  
386  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
387 -
388  # find the maximum length of command line arguments
389  { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
390  echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
391 @@ -6780,7 +7095,7 @@
392      echo "$progname: failed program was:" >&5
393      cat conftest.$ac_ext >&5
394    fi
395 -  rm -f conftest* conftst*
396 +  rm -rf conftest* conftst*
397  
398    # Do not use the global_symbol_pipe unless it works.
399    if test "$pipe_works" = yes; then
400 @@ -7309,39 +7624,351 @@
401  *** may want to report the problem to your system manager and/or to
402  *** bug-libtool@gnu.org
403  
404 -EOF
405 -         fi ;;
406 -       esac
407 -      fi
408 -      break
409 -    fi
410 -  done
411 -  IFS="$lt_save_ifs"
412 -  MAGIC_CMD="$lt_save_MAGIC_CMD"
413 -  ;;
414 -esac
415 +EOF
416 +         fi ;;
417 +       esac
418 +      fi
419 +      break
420 +    fi
421 +  done
422 +  IFS="$lt_save_ifs"
423 +  MAGIC_CMD="$lt_save_MAGIC_CMD"
424 +  ;;
425 +esac
426 +fi
427 +
428 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
429 +if test -n "$MAGIC_CMD"; then
430 +  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
431 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
432 +else
433 +  { echo "$as_me:$LINENO: result: no" >&5
434 +echo "${ECHO_T}no" >&6; }
435 +fi
436 +
437 +  else
438 +    MAGIC_CMD=:
439 +  fi
440 +fi
441 +
442 +  fi
443 +  ;;
444 +esac
445 +
446 +
447 +  case $host_os in
448 +    rhapsody* | darwin*)
449 +    if test -n "$ac_tool_prefix"; then
450 +  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
451 +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
452 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
453 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
454 +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
455 +  echo $ECHO_N "(cached) $ECHO_C" >&6
456 +else
457 +  if test -n "$DSYMUTIL"; then
458 +  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
459 +else
460 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
461 +for as_dir in $PATH
462 +do
463 +  IFS=$as_save_IFS
464 +  test -z "$as_dir" && as_dir=.
465 +  for ac_exec_ext in '' $ac_executable_extensions; do
466 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
467 +    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
468 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
469 +    break 2
470 +  fi
471 +done
472 +done
473 +IFS=$as_save_IFS
474 +
475 +fi
476 +fi
477 +DSYMUTIL=$ac_cv_prog_DSYMUTIL
478 +if test -n "$DSYMUTIL"; then
479 +  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
480 +echo "${ECHO_T}$DSYMUTIL" >&6; }
481 +else
482 +  { echo "$as_me:$LINENO: result: no" >&5
483 +echo "${ECHO_T}no" >&6; }
484 +fi
485 +
486 +
487 +fi
488 +if test -z "$ac_cv_prog_DSYMUTIL"; then
489 +  ac_ct_DSYMUTIL=$DSYMUTIL
490 +  # Extract the first word of "dsymutil", so it can be a program name with args.
491 +set dummy dsymutil; ac_word=$2
492 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
493 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
494 +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
495 +  echo $ECHO_N "(cached) $ECHO_C" >&6
496 +else
497 +  if test -n "$ac_ct_DSYMUTIL"; then
498 +  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
499 +else
500 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
501 +for as_dir in $PATH
502 +do
503 +  IFS=$as_save_IFS
504 +  test -z "$as_dir" && as_dir=.
505 +  for ac_exec_ext in '' $ac_executable_extensions; do
506 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
507 +    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
508 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
509 +    break 2
510 +  fi
511 +done
512 +done
513 +IFS=$as_save_IFS
514 +
515 +fi
516 +fi
517 +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
518 +if test -n "$ac_ct_DSYMUTIL"; then
519 +  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
520 +echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
521 +else
522 +  { echo "$as_me:$LINENO: result: no" >&5
523 +echo "${ECHO_T}no" >&6; }
524 +fi
525 +
526 +  if test "x$ac_ct_DSYMUTIL" = x; then
527 +    DSYMUTIL=":"
528 +  else
529 +    case $cross_compiling:$ac_tool_warned in
530 +yes:)
531 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
532 +whose name does not start with the host triplet.  If you think this
533 +configuration is useful to you, please write to autoconf@gnu.org." >&5
534 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
535 +whose name does not start with the host triplet.  If you think this
536 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
537 +ac_tool_warned=yes ;;
538 +esac
539 +    DSYMUTIL=$ac_ct_DSYMUTIL
540 +  fi
541 +else
542 +  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
543 +fi
544 +
545 +    if test -n "$ac_tool_prefix"; then
546 +  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
547 +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
548 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
549 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
550 +if test "${ac_cv_prog_NMEDIT+set}" = set; then
551 +  echo $ECHO_N "(cached) $ECHO_C" >&6
552 +else
553 +  if test -n "$NMEDIT"; then
554 +  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
555 +else
556 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
557 +for as_dir in $PATH
558 +do
559 +  IFS=$as_save_IFS
560 +  test -z "$as_dir" && as_dir=.
561 +  for ac_exec_ext in '' $ac_executable_extensions; do
562 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
563 +    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
564 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
565 +    break 2
566 +  fi
567 +done
568 +done
569 +IFS=$as_save_IFS
570 +
571 +fi
572 +fi
573 +NMEDIT=$ac_cv_prog_NMEDIT
574 +if test -n "$NMEDIT"; then
575 +  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
576 +echo "${ECHO_T}$NMEDIT" >&6; }
577 +else
578 +  { echo "$as_me:$LINENO: result: no" >&5
579 +echo "${ECHO_T}no" >&6; }
580 +fi
581 +
582 +
583  fi
584 +if test -z "$ac_cv_prog_NMEDIT"; then
585 +  ac_ct_NMEDIT=$NMEDIT
586 +  # Extract the first word of "nmedit", so it can be a program name with args.
587 +set dummy nmedit; ac_word=$2
588 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
589 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
590 +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
591 +  echo $ECHO_N "(cached) $ECHO_C" >&6
592 +else
593 +  if test -n "$ac_ct_NMEDIT"; then
594 +  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
595 +else
596 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
597 +for as_dir in $PATH
598 +do
599 +  IFS=$as_save_IFS
600 +  test -z "$as_dir" && as_dir=.
601 +  for ac_exec_ext in '' $ac_executable_extensions; do
602 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
603 +    ac_cv_prog_ac_ct_NMEDIT="nmedit"
604 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
605 +    break 2
606 +  fi
607 +done
608 +done
609 +IFS=$as_save_IFS
610  
611 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
612 -if test -n "$MAGIC_CMD"; then
613 -  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
614 -echo "${ECHO_T}$MAGIC_CMD" >&6; }
615 +fi
616 +fi
617 +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
618 +if test -n "$ac_ct_NMEDIT"; then
619 +  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
620 +echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
621  else
622    { echo "$as_me:$LINENO: result: no" >&5
623  echo "${ECHO_T}no" >&6; }
624  fi
625  
626 +  if test "x$ac_ct_NMEDIT" = x; then
627 +    NMEDIT=":"
628    else
629 -    MAGIC_CMD=:
630 +    case $cross_compiling:$ac_tool_warned in
631 +yes:)
632 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
633 +whose name does not start with the host triplet.  If you think this
634 +configuration is useful to you, please write to autoconf@gnu.org." >&5
635 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
636 +whose name does not start with the host triplet.  If you think this
637 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
638 +ac_tool_warned=yes ;;
639 +esac
640 +    NMEDIT=$ac_ct_NMEDIT
641    fi
642 +else
643 +  NMEDIT="$ac_cv_prog_NMEDIT"
644  fi
645  
646 -  fi
647 -  ;;
648 +
649 +    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
650 +echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
651 +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
652 +  echo $ECHO_N "(cached) $ECHO_C" >&6
653 +else
654 +  lt_cv_apple_cc_single_mod=no
655 +      if test -z "${LT_MULTI_MODULE}"; then
656 +   # By default we will add the -single_module flag. You can override
657 +   # by either setting the environment variable LT_MULTI_MODULE
658 +   # non-empty at configure time, or by adding -multi_module to the
659 +   # link flags.
660 +   echo "int foo(void){return 1;}" > conftest.c
661 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
662 +     -dynamiclib ${wl}-single_module conftest.c
663 +   if test -f libconftest.dylib; then
664 +     lt_cv_apple_cc_single_mod=yes
665 +     rm -rf libconftest.dylib*
666 +   fi
667 +   rm conftest.c
668 +      fi
669 +fi
670 +{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
671 +echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
672 +    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
673 +echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
674 +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
675 +  echo $ECHO_N "(cached) $ECHO_C" >&6
676 +else
677 +  lt_cv_ld_exported_symbols_list=no
678 +      save_LDFLAGS=$LDFLAGS
679 +      echo "_main" > conftest.sym
680 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
681 +      cat >conftest.$ac_ext <<_ACEOF
682 +/* confdefs.h.  */
683 +_ACEOF
684 +cat confdefs.h >>conftest.$ac_ext
685 +cat >>conftest.$ac_ext <<_ACEOF
686 +/* end confdefs.h.  */
687 +
688 +int
689 +main ()
690 +{
691 +
692 +  ;
693 +  return 0;
694 +}
695 +_ACEOF
696 +rm -f conftest.$ac_objext conftest$ac_exeext
697 +if { (ac_try="$ac_link"
698 +case "(($ac_try" in
699 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
700 +  *) ac_try_echo=$ac_try;;
701  esac
702 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
703 +  (eval "$ac_link") 2>conftest.er1
704 +  ac_status=$?
705 +  grep -v '^ *+' conftest.er1 >conftest.err
706 +  rm -f conftest.er1
707 +  cat conftest.err >&5
708 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
709 +  (exit $ac_status); } && {
710 +        test -z "$ac_c_werror_flag" ||
711 +        test ! -s conftest.err
712 +       } && test -s conftest$ac_exeext &&
713 +       $as_test_x conftest$ac_exeext; then
714 +  lt_cv_ld_exported_symbols_list=yes
715 +else
716 +  echo "$as_me: failed program was:" >&5
717 +sed 's/^/| /' conftest.$ac_ext >&5
718 +
719 +       lt_cv_ld_exported_symbols_list=no
720 +fi
721 +
722 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
723 +      conftest$ac_exeext conftest.$ac_ext
724 +   LDFLAGS="$save_LDFLAGS"
725 +
726 +fi
727 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
728 +echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
729 +    case $host_os in
730 +    rhapsody* | darwin1.[0123])
731 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
732 +    darwin1.*)
733 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
734 +    darwin*)
735 +      # if running on 10.5 or later, the deployment target defaults
736 +      # to the OS version, if on x86, and 10.4, the deployment
737 +      # target defaults to 10.4. Don't you love it?
738 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
739 +   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
740 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
741 +   10.[012]*)
742 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
743 +   10.*)
744 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
745 +      esac
746 +    ;;
747 +  esac
748 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
749 +      _lt_dar_single_mod='$single_module'
750 +    fi
751 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
752 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
753 +    else
754 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
755 +    fi
756 +    if test "$DSYMUTIL" != ":"; then
757 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
758 +    else
759 +      _lt_dsymutil=
760 +    fi
761 +    ;;
762 +  esac
763 +
764  
765  enable_dlopen=no
766 -enable_win32_dll=no
767 +enable_win32_dll=yes
768  
769  # Check whether --enable-libtool-lock was given.
770  if test "${enable_libtool_lock+set}" = set; then
771 @@ -7360,6 +7987,67 @@
772  
773  test -z "$pic_mode" && pic_mode=default
774  
775 +# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
776 +#
777 +# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
778 +#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
779 +#        calls AC_LIBTOOL_CONFIG and creates libtool.
780 +#
781 +{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
782 +echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
783 +if test "x$ltmain" = "x" ; then
784 +  { echo "$as_me:$LINENO: result: no" >&5
785 +echo "${ECHO_T}no" >&6; }
786 +  { { echo "$as_me:$LINENO: error:
787 +
788 +*** [Gentoo] sanity check failed! ***
789 +*** \$ltmain is not defined, please check the patch for consistency! ***
790 +" >&5
791 +echo "$as_me: error:
792 +
793 +*** [Gentoo] sanity check failed! ***
794 +*** \$ltmain is not defined, please check the patch for consistency! ***
795 +" >&2;}
796 +   { (exit 1); exit 1; }; }
797 +fi
798 +gentoo_lt_version="1.5.26"
799 +gentoo_ltmain_version=`sed -n '/^[     ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
800 +if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
801 +  { echo "$as_me:$LINENO: result: no" >&5
802 +echo "${ECHO_T}no" >&6; }
803 +  { { echo "$as_me:$LINENO: error:
804 +
805 +*** [Gentoo] sanity check failed! ***
806 +*** libtool.m4 and ltmain.sh have a version mismatch! ***
807 +*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
808 +
809 +Please run:
810 +
811 +  libtoolize --copy --force
812 +
813 +if appropriate, please contact the maintainer of this
814 +package (or your distribution) for help.
815 +" >&5
816 +echo "$as_me: error:
817 +
818 +*** [Gentoo] sanity check failed! ***
819 +*** libtool.m4 and ltmain.sh have a version mismatch! ***
820 +*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
821 +
822 +Please run:
823 +
824 +  libtoolize --copy --force
825 +
826 +if appropriate, please contact the maintainer of this
827 +package (or your distribution) for help.
828 +" >&2;}
829 +   { (exit 1); exit 1; }; }
830 +else
831 +  { echo "$as_me:$LINENO: result: yes" >&5
832 +echo "${ECHO_T}yes" >&6; }
833 +fi
834 +
835 +
836  # Use C for the default configuration in the libtool script
837  tagname=
838  lt_save_CC="$CC"
839 @@ -7405,7 +8093,7 @@
840  echo "$lt_simple_link_test_code" >conftest.$ac_ext
841  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
842  _lt_linker_boilerplate=`cat conftest.err`
843 -$rm conftest*
844 +$rm -r conftest*
845  
846  
847  
848 @@ -7433,11 +8121,11 @@
849     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
850     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
851     -e 's:$: $lt_compiler_flag:'`
852 -   (eval echo "\"\$as_me:7436: $lt_compile\"" >&5)
853 +   (eval echo "\"\$as_me:8124: $lt_compile\"" >&5)
854     (eval "$lt_compile" 2>conftest.err)
855     ac_status=$?
856     cat conftest.err >&5
857 -   echo "$as_me:7440: \$? = $ac_status" >&5
858 +   echo "$as_me:8128: \$? = $ac_status" >&5
859     if (exit $ac_status) && test -s "$ac_outfile"; then
860       # The compiler can only warn and ignore the option if not recognized
861       # So say no if there are warnings other than the usual output.
862 @@ -7707,10 +8395,10 @@
863  
864  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
865  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
866 -if test "${lt_prog_compiler_pic_works+set}" = set; then
867 +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
868    echo $ECHO_N "(cached) $ECHO_C" >&6
869  else
870 -  lt_prog_compiler_pic_works=no
871 +  lt_cv_prog_compiler_pic_works=no
872    ac_outfile=conftest.$ac_objext
873     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
874     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
875 @@ -7723,27 +8411,27 @@
876     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
877     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
878     -e 's:$: $lt_compiler_flag:'`
879 -   (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
880 +   (eval echo "\"\$as_me:8414: $lt_compile\"" >&5)
881     (eval "$lt_compile" 2>conftest.err)
882     ac_status=$?
883     cat conftest.err >&5
884 -   echo "$as_me:7730: \$? = $ac_status" >&5
885 +   echo "$as_me:8418: \$? = $ac_status" >&5
886     if (exit $ac_status) && test -s "$ac_outfile"; then
887       # The compiler can only warn and ignore the option if not recognized
888       # So say no if there are warnings other than the usual output.
889       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
890       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
891       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
892 -       lt_prog_compiler_pic_works=yes
893 +       lt_cv_prog_compiler_pic_works=yes
894       fi
895     fi
896     $rm conftest*
897  
898  fi
899 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
900 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
901 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
902 +echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
903  
904 -if test x"$lt_prog_compiler_pic_works" = xyes; then
905 +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
906      case $lt_prog_compiler_pic in
907       "" | " "*) ;;
908       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
909 @@ -7770,10 +8458,10 @@
910  wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
911  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
912  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
913 -if test "${lt_prog_compiler_static_works+set}" = set; then
914 +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
915    echo $ECHO_N "(cached) $ECHO_C" >&6
916  else
917 -  lt_prog_compiler_static_works=no
918 +  lt_cv_prog_compiler_static_works=no
919     save_LDFLAGS="$LDFLAGS"
920     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
921     echo "$lt_simple_link_test_code" > conftest.$ac_ext
922 @@ -7786,20 +8474,20 @@
923         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
924         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
925         if diff conftest.exp conftest.er2 >/dev/null; then
926 -         lt_prog_compiler_static_works=yes
927 +         lt_cv_prog_compiler_static_works=yes
928         fi
929       else
930 -       lt_prog_compiler_static_works=yes
931 +       lt_cv_prog_compiler_static_works=yes
932       fi
933     fi
934 -   $rm conftest*
935 +   $rm -r conftest*
936     LDFLAGS="$save_LDFLAGS"
937  
938  fi
939 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
940 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
941 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
942 +echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
943  
944 -if test x"$lt_prog_compiler_static_works" = xyes; then
945 +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
946      :
947  else
948      lt_prog_compiler_static=
949 @@ -7827,11 +8515,11 @@
950     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
951     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
952     -e 's:$: $lt_compiler_flag:'`
953 -   (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
954 +   (eval echo "\"\$as_me:8518: $lt_compile\"" >&5)
955     (eval "$lt_compile" 2>out/conftest.err)
956     ac_status=$?
957     cat out/conftest.err >&5
958 -   echo "$as_me:7834: \$? = $ac_status" >&5
959 +   echo "$as_me:8522: \$? = $ac_status" >&5
960     if (exit $ac_status) && test -s out/conftest2.$ac_objext
961     then
962       # The compiler can only warn and ignore the option if not recognized
963 @@ -7911,12 +8599,13 @@
964    # it will be wrapped by ` (' and `)$', so one must not match beginning or
965    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
966    # as well as any symbol that contains `d'.
967 -  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
968 +  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
969    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
970    # platforms (ab)use it in PIC code, but their linkers get confused if
971    # the symbol is explicitly referenced.  Since portable code cannot
972    # rely on this symbol name, it's probably fine to never include it in
973    # preloaded symbol tables.
974 +  # Exclude shared library initialization/finalization symbols.
975    extract_expsyms_cmds=
976    # Just being paranoid about ensuring that cc_basename is set.
977    for cc_temp in $compiler""; do
978 @@ -7975,7 +8664,7 @@
979  
980      # See if GNU ld supports shared libraries.
981      case $host_os in
982 -    aix3* | aix4* | aix5*)
983 +    aix[3-9]*)
984        # On AIX/PPC, the GNU linker is very broken
985        if test "$host_cpu" != ia64; then
986         ld_shlibs=no
987 @@ -8194,7 +8883,7 @@
988        fi
989        ;;
990  
991 -    aix4* | aix5*)
992 +    aix[4-9]*)
993        if test "$host_cpu" = ia64; then
994         # On IA64, the linker does run time linking by default, so we don't
995         # have to do anything special.
996 @@ -8214,7 +8903,7 @@
997         # Test if we are trying to use run time linking or normal
998         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
999         # need to do runtime linking.
1000 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
1001 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1002           for ld_flag in $LDFLAGS; do
1003           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1004             aix_use_runtimelinking=yes
1005 @@ -8486,11 +9175,10 @@
1006        link_all_deplibs=yes
1007      if test "$GCC" = yes ; then
1008         output_verbose_link_cmd='echo'
1009 -        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1010 -      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1011 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1012 -      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1013 -      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1014 +        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1015 +        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1016 +        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1017 +        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1018      else
1019        case $cc_basename in
1020          xlc*)
1021 @@ -9010,7 +9698,7 @@
1022    soname_spec='${libname}${release}${shared_ext}$major'
1023    ;;
1024  
1025 -aix4* | aix5*)
1026 +aix[4-9]*)
1027    version_type=linux
1028    need_lib_prefix=no
1029    need_version=no
1030 @@ -9178,7 +9866,14 @@
1031      *) objformat=elf ;;
1032      esac
1033    fi
1034 -  version_type=freebsd-$objformat
1035 +  # Handle Gentoo/FreeBSD as it was Linux
1036 +  case $host_vendor in
1037 +    gentoo)
1038 +      version_type=linux ;;
1039 +    *)
1040 +      version_type=freebsd-$objformat ;;
1041 +  esac
1042 +
1043    case $version_type in
1044      freebsd-elf*)
1045        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1046 @@ -9189,6 +9884,12 @@
1047        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1048        need_version=yes
1049        ;;
1050 +    linux)
1051 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1052 +      soname_spec='${libname}${release}${shared_ext}$major'
1053 +      need_lib_prefix=no
1054 +      need_version=no
1055 +      ;;
1056    esac
1057    shlibpath_var=LD_LIBRARY_PATH
1058    case $host_os in
1059 @@ -9335,13 +10036,11 @@
1060    # Some rework will be needed to allow for fast_install
1061    # before this can be enabled.
1062    hardcode_into_libs=yes
1063 -  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1064 -  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1065  
1066    # Append ld.so.conf contents to the search path
1067    if test -f /etc/ld.so.conf; then
1068      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;/^$/d' | tr '\n' ' '`
1069 -    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1070 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1071    fi
1072  
1073    # We used to test for /lib/ld.so.1 and disable shared libraries on
1074 @@ -9534,6 +10233,21 @@
1075  echo "${ECHO_T}$dynamic_linker" >&6; }
1076  test "$dynamic_linker" = no && can_build_shared=no
1077  
1078 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
1079 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1080 +else
1081 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
1082 +fi
1083 +
1084 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1085 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1086 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1087 +else
1088 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
1089 +fi
1090 +
1091 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1092 +
1093  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1094  if test "$GCC" = yes; then
1095    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1096 @@ -9853,7 +10567,7 @@
1097  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
1098  echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
1099  if test $ac_cv_lib_dld_shl_load = yes; then
1100 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
1101 +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1102  else
1103    { echo "$as_me:$LINENO: checking for dlopen" >&5
1104  echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
1105 @@ -10129,7 +10843,7 @@
1106  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
1107  echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
1108  if test $ac_cv_lib_dld_dld_link = yes; then
1109 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
1110 +  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1111  fi
1112  
1113  
1114 @@ -10178,7 +10892,7 @@
1115    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1116    lt_status=$lt_dlunknown
1117    cat > conftest.$ac_ext <<EOF
1118 -#line 10181 "configure"
1119 +#line 10895 "configure"
1120  #include "confdefs.h"
1121  
1122  #if HAVE_DLFCN_H
1123 @@ -10278,7 +10992,7 @@
1124    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1125    lt_status=$lt_dlunknown
1126    cat > conftest.$ac_ext <<EOF
1127 -#line 10281 "configure"
1128 +#line 10995 "configure"
1129  #include "confdefs.h"
1130  
1131  #if HAVE_DLFCN_H
1132 @@ -10405,7 +11119,7 @@
1133    fi
1134    ;;
1135  
1136 -aix4* | aix5*)
1137 +aix[4-9]*)
1138    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1139      test "$enable_shared" = yes && enable_static=no
1140    fi
1141 @@ -10461,6 +11175,7 @@
1142      predeps \
1143      postdeps \
1144      compiler_lib_search_path \
1145 +    compiler_lib_search_dirs \
1146      archive_cmds \
1147      archive_expsym_cmds \
1148      postinstall_cmds \
1149 @@ -10521,7 +11236,7 @@
1150  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
1151  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1152  #
1153 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
1154 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1155  # Free Software Foundation, Inc.
1156  #
1157  # This file is part of GNU Libtool:
1158 @@ -10757,6 +11472,10 @@
1159  # shared library.
1160  postdeps=$lt_postdeps
1161  
1162 +# The directories searched by this compiler when creating a shared
1163 +# library
1164 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
1165 +
1166  # The library search path used internally by the compiler when linking
1167  # a shared library.
1168  compiler_lib_search_path=$lt_compiler_lib_search_path
1169 @@ -11005,6 +11724,7 @@
1170  predeps_CXX=
1171  postdeps_CXX=
1172  compiler_lib_search_path_CXX=
1173 +compiler_lib_search_dirs_CXX=
1174  
1175  # Source file extension for C++ test sources.
1176  ac_ext=cpp
1177 @@ -11042,7 +11762,7 @@
1178  echo "$lt_simple_link_test_code" >conftest.$ac_ext
1179  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1180  _lt_linker_boilerplate=`cat conftest.err`
1181 -$rm conftest*
1182 +$rm -r conftest*
1183  
1184  
1185  # Allow CC to be a program name with arguments.
1186 @@ -11249,7 +11969,7 @@
1187      # FIXME: insert proper C++ library support
1188      ld_shlibs_CXX=no
1189      ;;
1190 -  aix4* | aix5*)
1191 +  aix[4-9]*)
1192      if test "$host_cpu" = ia64; then
1193        # On IA64, the linker does run time linking by default, so we don't
1194        # have to do anything special.
1195 @@ -11262,7 +11982,7 @@
1196        # Test if we are trying to use run time linking or normal
1197        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1198        # need to do runtime linking.
1199 -      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
1200 +      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1201         for ld_flag in $LDFLAGS; do
1202           case $ld_flag in
1203           *-brtl*)
1204 @@ -11520,51 +12240,23 @@
1205      fi
1206    ;;
1207        darwin* | rhapsody*)
1208 -        case $host_os in
1209 -        rhapsody* | darwin1.[012])
1210 -         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
1211 -         ;;
1212 -       *) # Darwin 1.3 on
1213 -         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1214 -           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1215 -         else
1216 -           case ${MACOSX_DEPLOYMENT_TARGET} in
1217 -             10.[012])
1218 -               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1219 -               ;;
1220 -             10.*)
1221 -               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
1222 -               ;;
1223 -           esac
1224 -         fi
1225 -         ;;
1226 -        esac
1227        archive_cmds_need_lc_CXX=no
1228        hardcode_direct_CXX=no
1229        hardcode_automatic_CXX=yes
1230        hardcode_shlibpath_var_CXX=unsupported
1231        whole_archive_flag_spec_CXX=''
1232        link_all_deplibs_CXX=yes
1233 -
1234 -    if test "$GXX" = yes ; then
1235 -      lt_int_apple_cc_single_mod=no
1236 +      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
1237 +      if test "$GXX" = yes ; then
1238        output_verbose_link_cmd='echo'
1239 -      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
1240 -       lt_int_apple_cc_single_mod=yes
1241 +      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1242 +      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1243 +      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1244 +      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1245 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1246 +        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1247 +        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1248        fi
1249 -      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1250 -       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1251 -      else
1252 -          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1253 -        fi
1254 -        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1255 -        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1256 -          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1257 -            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1258 -          else
1259 -            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1260 -          fi
1261 -            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1262        else
1263        case $cc_basename in
1264          xlc*)
1265 @@ -11815,7 +12507,7 @@
1266         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1267         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
1268         ;;
1269 -      pgCC*)
1270 +      pgCC* | pgcpp*)
1271          # Portland Group C++ compiler
1272         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1273         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1274 @@ -12222,7 +12914,6 @@
1275  GCC_CXX="$GXX"
1276  LD_CXX="$LD"
1277  
1278 -
1279  cat > conftest.$ac_ext <<EOF
1280  class Foo
1281  {
1282 @@ -12324,6 +13015,11 @@
1283  
1284  $rm -f confest.$objext
1285  
1286 +compiler_lib_search_dirs_CXX=
1287 +if test -n "$compiler_lib_search_path_CXX"; then
1288 +  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
1289 +fi
1290 +
1291  # PORTME: override above test on systems where it is broken
1292  case $host_os in
1293  interix[3-9]*)
1294 @@ -12379,7 +13075,6 @@
1295    ;;
1296  esac
1297  
1298 -
1299  case " $postdeps_CXX " in
1300  *" -lc "*) archive_cmds_need_lc_CXX=no ;;
1301  esac
1302 @@ -12455,7 +13150,7 @@
1303      esac
1304    else
1305      case $host_os in
1306 -      aix4* | aix5*)
1307 +      aix[4-9]*)
1308         # All AIX code is PIC.
1309         if test "$host_cpu" = ia64; then
1310           # AIX 5 now supports IA64 processor
1311 @@ -12551,7 +13246,7 @@
1312             lt_prog_compiler_pic_CXX='-KPIC'
1313             lt_prog_compiler_static_CXX='-static'
1314             ;;
1315 -         pgCC*)
1316 +         pgCC* | pgcpp*)
1317             # Portland Group C++ compiler.
1318             lt_prog_compiler_wl_CXX='-Wl,'
1319             lt_prog_compiler_pic_CXX='-fpic'
1320 @@ -12682,10 +13377,10 @@
1321  
1322  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
1323  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
1324 -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
1325 +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
1326    echo $ECHO_N "(cached) $ECHO_C" >&6
1327  else
1328 -  lt_prog_compiler_pic_works_CXX=no
1329 +  lt_cv_prog_compiler_pic_works_CXX=no
1330    ac_outfile=conftest.$ac_objext
1331     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1332     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
1333 @@ -12698,27 +13393,27 @@
1334     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1335     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1336     -e 's:$: $lt_compiler_flag:'`
1337 -   (eval echo "\"\$as_me:12701: $lt_compile\"" >&5)
1338 +   (eval echo "\"\$as_me:13396: $lt_compile\"" >&5)
1339     (eval "$lt_compile" 2>conftest.err)
1340     ac_status=$?
1341     cat conftest.err >&5
1342 -   echo "$as_me:12705: \$? = $ac_status" >&5
1343 +   echo "$as_me:13400: \$? = $ac_status" >&5
1344     if (exit $ac_status) && test -s "$ac_outfile"; then
1345       # The compiler can only warn and ignore the option if not recognized
1346       # So say no if there are warnings other than the usual output.
1347       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1348       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1349       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1350 -       lt_prog_compiler_pic_works_CXX=yes
1351 +       lt_cv_prog_compiler_pic_works_CXX=yes
1352       fi
1353     fi
1354     $rm conftest*
1355  
1356  fi
1357 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
1358 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
1359 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
1360 +echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1361  
1362 -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
1363 +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1364      case $lt_prog_compiler_pic_CXX in
1365       "" | " "*) ;;
1366       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
1367 @@ -12745,10 +13440,10 @@
1368  wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1369  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1370  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
1371 -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
1372 +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
1373    echo $ECHO_N "(cached) $ECHO_C" >&6
1374  else
1375 -  lt_prog_compiler_static_works_CXX=no
1376 +  lt_cv_prog_compiler_static_works_CXX=no
1377     save_LDFLAGS="$LDFLAGS"
1378     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1379     echo "$lt_simple_link_test_code" > conftest.$ac_ext
1380 @@ -12761,20 +13456,20 @@
1381         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1382         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1383         if diff conftest.exp conftest.er2 >/dev/null; then
1384 -         lt_prog_compiler_static_works_CXX=yes
1385 +         lt_cv_prog_compiler_static_works_CXX=yes
1386         fi
1387       else
1388 -       lt_prog_compiler_static_works_CXX=yes
1389 +       lt_cv_prog_compiler_static_works_CXX=yes
1390       fi
1391     fi
1392 -   $rm conftest*
1393 +   $rm -r conftest*
1394     LDFLAGS="$save_LDFLAGS"
1395  
1396  fi
1397 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
1398 -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
1399 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
1400 +echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
1401  
1402 -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
1403 +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1404      :
1405  else
1406      lt_prog_compiler_static_CXX=
1407 @@ -12802,11 +13497,11 @@
1408     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1409     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1410     -e 's:$: $lt_compiler_flag:'`
1411 -   (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
1412 +   (eval echo "\"\$as_me:13500: $lt_compile\"" >&5)
1413     (eval "$lt_compile" 2>out/conftest.err)
1414     ac_status=$?
1415     cat out/conftest.err >&5
1416 -   echo "$as_me:12809: \$? = $ac_status" >&5
1417 +   echo "$as_me:13504: \$? = $ac_status" >&5
1418     if (exit $ac_status) && test -s out/conftest2.$ac_objext
1419     then
1420       # The compiler can only warn and ignore the option if not recognized
1421 @@ -12859,7 +13554,7 @@
1422  
1423    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1424    case $host_os in
1425 -  aix4* | aix5*)
1426 +  aix[4-9]*)
1427      # If we're using GNU nm, then we don't want the "-C" option.
1428      # -C means demangle to AIX nm, but means don't demangle with GNU nm
1429      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1430 @@ -12878,6 +13573,7 @@
1431      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1432    ;;
1433    esac
1434 +  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1435  
1436  { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
1437  echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
1438 @@ -12979,7 +13675,7 @@
1439    soname_spec='${libname}${release}${shared_ext}$major'
1440    ;;
1441  
1442 -aix4* | aix5*)
1443 +aix[4-9]*)
1444    version_type=linux
1445    need_lib_prefix=no
1446    need_version=no
1447 @@ -13146,7 +13842,14 @@
1448      *) objformat=elf ;;
1449      esac
1450    fi
1451 -  version_type=freebsd-$objformat
1452 +  # Handle Gentoo/FreeBSD as it was Linux
1453 +  case $host_vendor in
1454 +    gentoo)
1455 +      version_type=linux ;;
1456 +    *)
1457 +      version_type=freebsd-$objformat ;;
1458 +  esac
1459 +
1460    case $version_type in
1461      freebsd-elf*)
1462        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1463 @@ -13157,6 +13860,12 @@
1464        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1465        need_version=yes
1466        ;;
1467 +    linux)
1468 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1469 +      soname_spec='${libname}${release}${shared_ext}$major'
1470 +      need_lib_prefix=no
1471 +      need_version=no
1472 +      ;;
1473    esac
1474    shlibpath_var=LD_LIBRARY_PATH
1475    case $host_os in
1476 @@ -13303,13 +14012,11 @@
1477    # Some rework will be needed to allow for fast_install
1478    # before this can be enabled.
1479    hardcode_into_libs=yes
1480 -  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1481 -  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1482  
1483    # Append ld.so.conf contents to the search path
1484    if test -f /etc/ld.so.conf; then
1485      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;/^$/d' | tr '\n' ' '`
1486 -    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1487 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1488    fi
1489  
1490    # We used to test for /lib/ld.so.1 and disable shared libraries on
1491 @@ -13502,6 +14209,21 @@
1492  echo "${ECHO_T}$dynamic_linker" >&6; }
1493  test "$dynamic_linker" = no && can_build_shared=no
1494  
1495 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
1496 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1497 +else
1498 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
1499 +fi
1500 +
1501 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1502 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1503 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1504 +else
1505 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
1506 +fi
1507 +
1508 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1509 +
1510  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1511  if test "$GCC" = yes; then
1512    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1513 @@ -13585,6 +14307,7 @@
1514      predeps_CXX \
1515      postdeps_CXX \
1516      compiler_lib_search_path_CXX \
1517 +    compiler_lib_search_dirs_CXX \
1518      archive_cmds_CXX \
1519      archive_expsym_cmds_CXX \
1520      postinstall_cmds_CXX \
1521 @@ -13833,6 +14556,10 @@
1522  # shared library.
1523  postdeps=$lt_postdeps_CXX
1524  
1525 +# The directories searched by this compiler when creating a shared
1526 +# library
1527 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1528 +
1529  # The library search path used internally by the compiler when linking
1530  # a shared library.
1531  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1532 @@ -14047,7 +14774,7 @@
1533  echo "$lt_simple_link_test_code" >conftest.$ac_ext
1534  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1535  _lt_linker_boilerplate=`cat conftest.err`
1536 -$rm conftest*
1537 +$rm -r conftest*
1538  
1539  
1540  # Allow CC to be a program name with arguments.
1541 @@ -14085,7 +14812,7 @@
1542      postinstall_cmds='$RANLIB $lib'
1543    fi
1544    ;;
1545 -aix4* | aix5*)
1546 +aix[4-9]*)
1547    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1548      test "$enable_shared" = yes && enable_static=no
1549    fi
1550 @@ -14350,10 +15077,10 @@
1551  
1552  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
1553  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
1554 -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
1555 +if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
1556    echo $ECHO_N "(cached) $ECHO_C" >&6
1557  else
1558 -  lt_prog_compiler_pic_works_F77=no
1559 +  lt_cv_prog_compiler_pic_works_F77=no
1560    ac_outfile=conftest.$ac_objext
1561     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1562     lt_compiler_flag="$lt_prog_compiler_pic_F77"
1563 @@ -14366,27 +15093,27 @@
1564     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1565     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1566     -e 's:$: $lt_compiler_flag:'`
1567 -   (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
1568 +   (eval echo "\"\$as_me:15096: $lt_compile\"" >&5)
1569     (eval "$lt_compile" 2>conftest.err)
1570     ac_status=$?
1571     cat conftest.err >&5
1572 -   echo "$as_me:14373: \$? = $ac_status" >&5
1573 +   echo "$as_me:15100: \$? = $ac_status" >&5
1574     if (exit $ac_status) && test -s "$ac_outfile"; then
1575       # The compiler can only warn and ignore the option if not recognized
1576       # So say no if there are warnings other than the usual output.
1577       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1578       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1579       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1580 -       lt_prog_compiler_pic_works_F77=yes
1581 +       lt_cv_prog_compiler_pic_works_F77=yes
1582       fi
1583     fi
1584     $rm conftest*
1585  
1586  fi
1587 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
1588 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
1589 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
1590 +echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
1591  
1592 -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
1593 +if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
1594      case $lt_prog_compiler_pic_F77 in
1595       "" | " "*) ;;
1596       *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
1597 @@ -14413,10 +15140,10 @@
1598  wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
1599  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1600  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
1601 -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
1602 +if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
1603    echo $ECHO_N "(cached) $ECHO_C" >&6
1604  else
1605 -  lt_prog_compiler_static_works_F77=no
1606 +  lt_cv_prog_compiler_static_works_F77=no
1607     save_LDFLAGS="$LDFLAGS"
1608     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1609     echo "$lt_simple_link_test_code" > conftest.$ac_ext
1610 @@ -14429,20 +15156,20 @@
1611         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1612         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1613         if diff conftest.exp conftest.er2 >/dev/null; then
1614 -         lt_prog_compiler_static_works_F77=yes
1615 +         lt_cv_prog_compiler_static_works_F77=yes
1616         fi
1617       else
1618 -       lt_prog_compiler_static_works_F77=yes
1619 +       lt_cv_prog_compiler_static_works_F77=yes
1620       fi
1621     fi
1622 -   $rm conftest*
1623 +   $rm -r conftest*
1624     LDFLAGS="$save_LDFLAGS"
1625  
1626  fi
1627 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
1628 -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
1629 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
1630 +echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
1631  
1632 -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
1633 +if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
1634      :
1635  else
1636      lt_prog_compiler_static_F77=
1637 @@ -14470,11 +15197,11 @@
1638     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1639     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1640     -e 's:$: $lt_compiler_flag:'`
1641 -   (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
1642 +   (eval echo "\"\$as_me:15200: $lt_compile\"" >&5)
1643     (eval "$lt_compile" 2>out/conftest.err)
1644     ac_status=$?
1645     cat out/conftest.err >&5
1646 -   echo "$as_me:14477: \$? = $ac_status" >&5
1647 +   echo "$as_me:15204: \$? = $ac_status" >&5
1648     if (exit $ac_status) && test -s out/conftest2.$ac_objext
1649     then
1650       # The compiler can only warn and ignore the option if not recognized
1651 @@ -14554,12 +15281,13 @@
1652    # it will be wrapped by ` (' and `)$', so one must not match beginning or
1653    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1654    # as well as any symbol that contains `d'.
1655 -  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
1656 +  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1657    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1658    # platforms (ab)use it in PIC code, but their linkers get confused if
1659    # the symbol is explicitly referenced.  Since portable code cannot
1660    # rely on this symbol name, it's probably fine to never include it in
1661    # preloaded symbol tables.
1662 +  # Exclude shared library initialization/finalization symbols.
1663    extract_expsyms_cmds=
1664    # Just being paranoid about ensuring that cc_basename is set.
1665    for cc_temp in $compiler""; do
1666 @@ -14618,7 +15346,7 @@
1667  
1668      # See if GNU ld supports shared libraries.
1669      case $host_os in
1670 -    aix3* | aix4* | aix5*)
1671 +    aix[3-9]*)
1672        # On AIX/PPC, the GNU linker is very broken
1673        if test "$host_cpu" != ia64; then
1674         ld_shlibs_F77=no
1675 @@ -14837,7 +15565,7 @@
1676        fi
1677        ;;
1678  
1679 -    aix4* | aix5*)
1680 +    aix[4-9]*)
1681        if test "$host_cpu" = ia64; then
1682         # On IA64, the linker does run time linking by default, so we don't
1683         # have to do anything special.
1684 @@ -14857,7 +15585,7 @@
1685         # Test if we are trying to use run time linking or normal
1686         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1687         # need to do runtime linking.
1688 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
1689 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1690           for ld_flag in $LDFLAGS; do
1691           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1692             aix_use_runtimelinking=yes
1693 @@ -15109,11 +15837,10 @@
1694        link_all_deplibs_F77=yes
1695      if test "$GCC" = yes ; then
1696         output_verbose_link_cmd='echo'
1697 -        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1698 -      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1699 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1700 -      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1701 -      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1702 +        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1703 +        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1704 +        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1705 +        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1706      else
1707        case $cc_basename in
1708          xlc*)
1709 @@ -15582,7 +16309,7 @@
1710    soname_spec='${libname}${release}${shared_ext}$major'
1711    ;;
1712  
1713 -aix4* | aix5*)
1714 +aix[4-9]*)
1715    version_type=linux
1716    need_lib_prefix=no
1717    need_version=no
1718 @@ -15749,7 +16476,14 @@
1719      *) objformat=elf ;;
1720      esac
1721    fi
1722 -  version_type=freebsd-$objformat
1723 +  # Handle Gentoo/FreeBSD as it was Linux
1724 +  case $host_vendor in
1725 +    gentoo)
1726 +      version_type=linux ;;
1727 +    *)
1728 +      version_type=freebsd-$objformat ;;
1729 +  esac
1730 +
1731    case $version_type in
1732      freebsd-elf*)
1733        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1734 @@ -15760,6 +16494,12 @@
1735        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1736        need_version=yes
1737        ;;
1738 +    linux)
1739 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1740 +      soname_spec='${libname}${release}${shared_ext}$major'
1741 +      need_lib_prefix=no
1742 +      need_version=no
1743 +      ;;
1744    esac
1745    shlibpath_var=LD_LIBRARY_PATH
1746    case $host_os in
1747 @@ -15906,13 +16646,11 @@
1748    # Some rework will be needed to allow for fast_install
1749    # before this can be enabled.
1750    hardcode_into_libs=yes
1751 -  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1752 -  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1753  
1754    # Append ld.so.conf contents to the search path
1755    if test -f /etc/ld.so.conf; then
1756      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;/^$/d' | tr '\n' ' '`
1757 -    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1758 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1759    fi
1760  
1761    # We used to test for /lib/ld.so.1 and disable shared libraries on
1762 @@ -16105,6 +16843,21 @@
1763  echo "${ECHO_T}$dynamic_linker" >&6; }
1764  test "$dynamic_linker" = no && can_build_shared=no
1765  
1766 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
1767 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1768 +else
1769 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
1770 +fi
1771 +
1772 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1773 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1774 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1775 +else
1776 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
1777 +fi
1778 +
1779 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1780 +
1781  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1782  if test "$GCC" = yes; then
1783    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1784 @@ -16188,6 +16941,7 @@
1785      predeps_F77 \
1786      postdeps_F77 \
1787      compiler_lib_search_path_F77 \
1788 +    compiler_lib_search_dirs_F77 \
1789      archive_cmds_F77 \
1790      archive_expsym_cmds_F77 \
1791      postinstall_cmds_F77 \
1792 @@ -16436,6 +17190,10 @@
1793  # shared library.
1794  postdeps=$lt_postdeps_F77
1795  
1796 +# The directories searched by this compiler when creating a shared
1797 +# library
1798 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
1799 +
1800  # The library search path used internally by the compiler when linking
1801  # a shared library.
1802  compiler_lib_search_path=$lt_compiler_lib_search_path_F77
1803 @@ -16610,7 +17368,7 @@
1804  echo "$lt_simple_link_test_code" >conftest.$ac_ext
1805  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1806  _lt_linker_boilerplate=`cat conftest.err`
1807 -$rm conftest*
1808 +$rm -r conftest*
1809  
1810  
1811  # Allow CC to be a program name with arguments.
1812 @@ -16659,11 +17417,11 @@
1813     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1814     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1815     -e 's:$: $lt_compiler_flag:'`
1816 -   (eval echo "\"\$as_me:16662: $lt_compile\"" >&5)
1817 +   (eval echo "\"\$as_me:17420: $lt_compile\"" >&5)
1818     (eval "$lt_compile" 2>conftest.err)
1819     ac_status=$?
1820     cat conftest.err >&5
1821 -   echo "$as_me:16666: \$? = $ac_status" >&5
1822 +   echo "$as_me:17424: \$? = $ac_status" >&5
1823     if (exit $ac_status) && test -s "$ac_outfile"; then
1824       # The compiler can only warn and ignore the option if not recognized
1825       # So say no if there are warnings other than the usual output.
1826 @@ -16723,7 +17481,7 @@
1827        # built for inclusion in a dll (and should export symbols for example).
1828        # Although the cygwin gcc ignores -fPIC, still need this for old-style
1829        # (--disable-auto-import) libraries
1830 -      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
1831 +
1832        ;;
1833  
1834      darwin* | rhapsody*)
1835 @@ -16793,7 +17551,7 @@
1836      mingw* | cygwin* | pw32* | os2*)
1837        # This hack is so that the source file can tell whether it is being
1838        # built for inclusion in a dll (and should export symbols for example).
1839 -      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
1840 +
1841        ;;
1842  
1843      hpux9* | hpux10* | hpux11*)
1844 @@ -16933,10 +17691,10 @@
1845  
1846  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
1847  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
1848 -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
1849 +if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
1850    echo $ECHO_N "(cached) $ECHO_C" >&6
1851  else
1852 -  lt_prog_compiler_pic_works_GCJ=no
1853 +  lt_cv_prog_compiler_pic_works_GCJ=no
1854    ac_outfile=conftest.$ac_objext
1855     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1856     lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
1857 @@ -16949,27 +17707,27 @@
1858     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1859     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1860     -e 's:$: $lt_compiler_flag:'`
1861 -   (eval echo "\"\$as_me:16952: $lt_compile\"" >&5)
1862 +   (eval echo "\"\$as_me:17710: $lt_compile\"" >&5)
1863     (eval "$lt_compile" 2>conftest.err)
1864     ac_status=$?
1865     cat conftest.err >&5
1866 -   echo "$as_me:16956: \$? = $ac_status" >&5
1867 +   echo "$as_me:17714: \$? = $ac_status" >&5
1868     if (exit $ac_status) && test -s "$ac_outfile"; then
1869       # The compiler can only warn and ignore the option if not recognized
1870       # So say no if there are warnings other than the usual output.
1871       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1872       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1873       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1874 -       lt_prog_compiler_pic_works_GCJ=yes
1875 +       lt_cv_prog_compiler_pic_works_GCJ=yes
1876       fi
1877     fi
1878     $rm conftest*
1879  
1880  fi
1881 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
1882 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
1883 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
1884 +echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
1885  
1886 -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
1887 +if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
1888      case $lt_prog_compiler_pic_GCJ in
1889       "" | " "*) ;;
1890       *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
1891 @@ -16996,10 +17754,10 @@
1892  wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
1893  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1894  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
1895 -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
1896 +if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
1897    echo $ECHO_N "(cached) $ECHO_C" >&6
1898  else
1899 -  lt_prog_compiler_static_works_GCJ=no
1900 +  lt_cv_prog_compiler_static_works_GCJ=no
1901     save_LDFLAGS="$LDFLAGS"
1902     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1903     echo "$lt_simple_link_test_code" > conftest.$ac_ext
1904 @@ -17012,20 +17770,20 @@
1905         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1906         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1907         if diff conftest.exp conftest.er2 >/dev/null; then
1908 -         lt_prog_compiler_static_works_GCJ=yes
1909 +         lt_cv_prog_compiler_static_works_GCJ=yes
1910         fi
1911       else
1912 -       lt_prog_compiler_static_works_GCJ=yes
1913 +       lt_cv_prog_compiler_static_works_GCJ=yes
1914       fi
1915     fi
1916 -   $rm conftest*
1917 +   $rm -r conftest*
1918     LDFLAGS="$save_LDFLAGS"
1919  
1920  fi
1921 -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
1922 -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
1923 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
1924 +echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
1925  
1926 -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
1927 +if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
1928      :
1929  else
1930      lt_prog_compiler_static_GCJ=
1931 @@ -17053,11 +17811,11 @@
1932     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1933     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1934     -e 's:$: $lt_compiler_flag:'`
1935 -   (eval echo "\"\$as_me:17056: $lt_compile\"" >&5)
1936 +   (eval echo "\"\$as_me:17814: $lt_compile\"" >&5)
1937     (eval "$lt_compile" 2>out/conftest.err)
1938     ac_status=$?
1939     cat out/conftest.err >&5
1940 -   echo "$as_me:17060: \$? = $ac_status" >&5
1941 +   echo "$as_me:17818: \$? = $ac_status" >&5
1942     if (exit $ac_status) && test -s out/conftest2.$ac_objext
1943     then
1944       # The compiler can only warn and ignore the option if not recognized
1945 @@ -17137,12 +17895,13 @@
1946    # it will be wrapped by ` (' and `)$', so one must not match beginning or
1947    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1948    # as well as any symbol that contains `d'.
1949 -  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
1950 +  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1951    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1952    # platforms (ab)use it in PIC code, but their linkers get confused if
1953    # the symbol is explicitly referenced.  Since portable code cannot
1954    # rely on this symbol name, it's probably fine to never include it in
1955    # preloaded symbol tables.
1956 +  # Exclude shared library initialization/finalization symbols.
1957    extract_expsyms_cmds=
1958    # Just being paranoid about ensuring that cc_basename is set.
1959    for cc_temp in $compiler""; do
1960 @@ -17201,7 +17960,7 @@
1961  
1962      # See if GNU ld supports shared libraries.
1963      case $host_os in
1964 -    aix3* | aix4* | aix5*)
1965 +    aix[3-9]*)
1966        # On AIX/PPC, the GNU linker is very broken
1967        if test "$host_cpu" != ia64; then
1968         ld_shlibs_GCJ=no
1969 @@ -17420,7 +18179,7 @@
1970        fi
1971        ;;
1972  
1973 -    aix4* | aix5*)
1974 +    aix[4-9]*)
1975        if test "$host_cpu" = ia64; then
1976         # On IA64, the linker does run time linking by default, so we don't
1977         # have to do anything special.
1978 @@ -17440,7 +18199,7 @@
1979         # Test if we are trying to use run time linking or normal
1980         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1981         # need to do runtime linking.
1982 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
1983 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1984           for ld_flag in $LDFLAGS; do
1985           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1986             aix_use_runtimelinking=yes
1987 @@ -17712,11 +18471,10 @@
1988        link_all_deplibs_GCJ=yes
1989      if test "$GCC" = yes ; then
1990         output_verbose_link_cmd='echo'
1991 -        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1992 -      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1993 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1994 -      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1995 -      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1996 +        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1997 +        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1998 +        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1999 +        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
2000      else
2001        case $cc_basename in
2002          xlc*)
2003 @@ -18185,7 +18943,7 @@
2004    soname_spec='${libname}${release}${shared_ext}$major'
2005    ;;
2006  
2007 -aix4* | aix5*)
2008 +aix[4-9]*)
2009    version_type=linux
2010    need_lib_prefix=no
2011    need_version=no
2012 @@ -18352,7 +19110,14 @@
2013      *) objformat=elf ;;
2014      esac
2015    fi
2016 -  version_type=freebsd-$objformat
2017 +  # Handle Gentoo/FreeBSD as it was Linux
2018 +  case $host_vendor in
2019 +    gentoo)
2020 +      version_type=linux ;;
2021 +    *)
2022 +      version_type=freebsd-$objformat ;;
2023 +  esac
2024 +
2025    case $version_type in
2026      freebsd-elf*)
2027        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2028 @@ -18363,6 +19128,12 @@
2029        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2030        need_version=yes
2031        ;;
2032 +    linux)
2033 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2034 +      soname_spec='${libname}${release}${shared_ext}$major'
2035 +      need_lib_prefix=no
2036 +      need_version=no
2037 +      ;;
2038    esac
2039    shlibpath_var=LD_LIBRARY_PATH
2040    case $host_os in
2041 @@ -18509,13 +19280,11 @@
2042    # Some rework will be needed to allow for fast_install
2043    # before this can be enabled.
2044    hardcode_into_libs=yes
2045 -  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2046 -  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2047  
2048    # Append ld.so.conf contents to the search path
2049    if test -f /etc/ld.so.conf; then
2050      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;/^$/d' | tr '\n' ' '`
2051 -    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2052 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2053    fi
2054  
2055    # We used to test for /lib/ld.so.1 and disable shared libraries on
2056 @@ -18708,6 +19477,21 @@
2057  echo "${ECHO_T}$dynamic_linker" >&6; }
2058  test "$dynamic_linker" = no && can_build_shared=no
2059  
2060 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2061 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2062 +else
2063 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
2064 +fi
2065 +
2066 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2067 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2068 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2069 +else
2070 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
2071 +fi
2072 +
2073 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2074 +
2075  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2076  if test "$GCC" = yes; then
2077    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2078 @@ -18791,6 +19575,7 @@
2079      predeps_GCJ \
2080      postdeps_GCJ \
2081      compiler_lib_search_path_GCJ \
2082 +    compiler_lib_search_dirs_GCJ \
2083      archive_cmds_GCJ \
2084      archive_expsym_cmds_GCJ \
2085      postinstall_cmds_GCJ \
2086 @@ -19039,6 +19824,10 @@
2087  # shared library.
2088  postdeps=$lt_postdeps_GCJ
2089  
2090 +# The directories searched by this compiler when creating a shared
2091 +# library
2092 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
2093 +
2094  # The library search path used internally by the compiler when linking
2095  # a shared library.
2096  compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
2097 @@ -19212,7 +20001,7 @@
2098  echo "$lt_simple_link_test_code" >conftest.$ac_ext
2099  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2100  _lt_linker_boilerplate=`cat conftest.err`
2101 -$rm conftest*
2102 +$rm -r conftest*
2103  
2104  
2105  # Allow CC to be a program name with arguments.
2106 @@ -19272,6 +20061,7 @@
2107      predeps_RC \
2108      postdeps_RC \
2109      compiler_lib_search_path_RC \
2110 +    compiler_lib_search_dirs_RC \
2111      archive_cmds_RC \
2112      archive_expsym_cmds_RC \
2113      postinstall_cmds_RC \
2114 @@ -19520,6 +20310,10 @@
2115  # shared library.
2116  postdeps=$lt_postdeps_RC
2117  
2118 +# The directories searched by this compiler when creating a shared
2119 +# library
2120 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
2121 +
2122  # The library search path used internally by the compiler when linking
2123  # a shared library.
2124  compiler_lib_search_path=$lt_compiler_lib_search_path_RC
2125 @@ -23659,11 +24453,11 @@
2126  CCASDEPMODE!$CCASDEPMODE$ac_delim
2127  am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
2128  am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
2129 +LIBFFI_DLL!$LIBFFI_DLL$ac_delim
2130 +LIBFFI_LDFLAGS!$LIBFFI_LDFLAGS$ac_delim
2131  SED!$SED$ac_delim
2132  GREP!$GREP$ac_delim
2133  EGREP!$EGREP$ac_delim
2134 -LN_S!$LN_S$ac_delim
2135 -ECHO!$ECHO$ac_delim
2136  _ACEOF
2137  
2138    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2139 @@ -23705,8 +24499,15 @@
2140  ac_delim='%!_!# '
2141  for ac_last_try in false false false false false :; do
2142    cat >conf$$subs.sed <<_ACEOF
2143 +LN_S!$LN_S$ac_delim
2144 +ECHO!$ECHO$ac_delim
2145  AR!$AR$ac_delim
2146  RANLIB!$RANLIB$ac_delim
2147 +DSYMUTIL!$DSYMUTIL$ac_delim
2148 +NMEDIT!$NMEDIT$ac_delim
2149 +DLLTOOL!$DLLTOOL$ac_delim
2150 +AS!$AS$ac_delim
2151 +OBJDUMP!$OBJDUMP$ac_delim
2152  CPP!$CPP$ac_delim
2153  CXX!$CXX$ac_delim
2154  CXXFLAGS!$CXXFLAGS$ac_delim
2155 @@ -23783,7 +24584,7 @@
2156  LTLIBOBJS!$LTLIBOBJS$ac_delim
2157  _ACEOF
2158  
2159 -  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
2160 +  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
2161      break
2162    elif $ac_last_try; then
2163      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2164 @@ -24184,21 +24985,22 @@
2165    fi
2166    rm -f "$tmp/out12"
2167  # Compute $ac_file's index in $config_headers.
2168 +_am_arg=$ac_file
2169  _am_stamp_count=1
2170  for _am_header in $config_headers :; do
2171    case $_am_header in
2172 -    $ac_file | $ac_file:* )
2173 +    $_am_arg | $_am_arg:* )
2174        break ;;
2175      * )
2176        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2177    esac
2178  done
2179 -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
2180 -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2181 -        X$ac_file : 'X\(//\)[^/]' \| \
2182 -        X$ac_file : 'X\(//\)$' \| \
2183 -        X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
2184 -echo X$ac_file |
2185 +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
2186 +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2187 +        X"$_am_arg" : 'X\(//\)[^/]' \| \
2188 +        X"$_am_arg" : 'X\(//\)$' \| \
2189 +        X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
2190 +echo X"$_am_arg" |
2191      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2192             s//\1/
2193             q
2194 @@ -24261,7 +25063,7 @@
2195    # each Makefile.in and add a new line on top of each file to say so.
2196    # Grep'ing the whole file is not good either: AIX grep has a line
2197    # limit of 2048, but all sed's we know have understand at least 4000.
2198 -  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
2199 +  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
2200      dirpart=`$as_dirname -- "$mf" ||
2201  $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2202          X"$mf" : 'X\(//\)[^/]' \| \
2203 --- libffi-3.0.6/Makefile.in    2008-02-21 14:36:18.000000000 +0100
2204 +++ build/Makefile.in   2008-10-14 09:55:38.000000000 +0200
2205 @@ -1,8 +1,8 @@
2206 -# Makefile.in generated by automake 1.10 from Makefile.am.
2207 +# Makefile.in generated by automake 1.10.1 from Makefile.am.
2208  # @configure_input@
2209  
2210  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2211 -# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
2212 +# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
2213  # This Makefile.in is free software; the Free Software Foundation
2214  # gives unlimited permission to copy and/or distribute it,
2215  # with or without modifications, as long as this notice is preserved.
2216 @@ -216,6 +216,7 @@
2217  AMTAR = @AMTAR@
2218  AM_RUNTESTFLAGS = @AM_RUNTESTFLAGS@
2219  AR = @AR@
2220 +AS = @AS@
2221  AUTOCONF = @AUTOCONF@
2222  AUTOHEADER = @AUTOHEADER@
2223  AUTOMAKE = @AUTOMAKE@
2224 @@ -235,6 +236,8 @@
2225  CYGPATH_W = @CYGPATH_W@
2226  DEFS = @DEFS@
2227  DEPDIR = @DEPDIR@
2228 +DLLTOOL = @DLLTOOL@
2229 +DSYMUTIL = @DSYMUTIL@
2230  ECHO = @ECHO@
2231  ECHO_C = @ECHO_C@
2232  ECHO_N = @ECHO_N@
2233 @@ -251,6 +254,8 @@
2234  INSTALL_SCRIPT = @INSTALL_SCRIPT@
2235  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
2236  LDFLAGS = @LDFLAGS@
2237 +LIBFFI_DLL = @LIBFFI_DLL@
2238 +LIBFFI_LDFLAGS = @LIBFFI_LDFLAGS@
2239  LIBOBJS = @LIBOBJS@
2240  LIBS = @LIBS@
2241  LIBTOOL = @LIBTOOL@
2242 @@ -259,6 +264,8 @@
2243  MAINT = @MAINT@
2244  MAKEINFO = @MAKEINFO@
2245  MKDIR_P = @MKDIR_P@
2246 +NMEDIT = @NMEDIT@
2247 +OBJDUMP = @OBJDUMP@
2248  OBJEXT = @OBJEXT@
2249  PACKAGE = @PACKAGE@
2250  PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
2251 @@ -420,7 +427,7 @@
2252  libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
2253  nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
2254  AM_CFLAGS = -Wall -g -fexceptions
2255 -libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
2256 +libffi_la_LDFLAGS = $(LIBFFI_LDFLAGS) -version-info `grep -v '^\#' $(srcdir)/libtool-version`
2257  AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
2258  AM_CCASFLAGS = $(AM_CPPFLAGS)
2259  all: fficonfig.h
2260 @@ -486,8 +493,8 @@
2261         @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
2262           if test -f $$p; then \
2263             f=$(am__strip_dir) \
2264 -           echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
2265 -           $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
2266 +           echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
2267 +           $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
2268           else :; fi; \
2269         done
2270  
2271 @@ -495,8 +502,8 @@
2272         @$(NORMAL_UNINSTALL)
2273         @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
2274           p=$(am__strip_dir) \
2275 -         echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
2276 -         $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
2277 +         echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
2278 +         $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
2279         done
2280  
2281  clean-libLTLIBRARIES:
2282 @@ -1203,8 +1210,8 @@
2283         unique=`for i in $$list; do \
2284             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
2285           done | \
2286 -         $(AWK) '    { files[$$0] = 1; } \
2287 -              END { for (i in files) print i; }'`; \
2288 +         $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
2289 +             END { if (nonempty) { for (i in files) print i; }; }'`; \
2290         mkid -fID $$unique
2291  tags: TAGS
2292  
2293 @@ -1229,8 +1236,8 @@
2294         unique=`for i in $$list; do \
2295             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
2296           done | \
2297 -         $(AWK) '    { files[$$0] = 1; } \
2298 -              END { for (i in files) print i; }'`; \
2299 +         $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
2300 +             END { if (nonempty) { for (i in files) print i; }; }'`; \
2301         if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
2302           test -n "$$unique" || unique=$$empty_fix; \
2303           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
2304 @@ -1240,13 +1247,12 @@
2305  CTAGS: ctags-recursive $(HEADERS) $(SOURCES) fficonfig.h.in $(TAGS_DEPENDENCIES) \
2306                 $(TAGS_FILES) $(LISP)
2307         tags=; \
2308 -       here=`pwd`; \
2309         list='$(SOURCES) $(HEADERS) fficonfig.h.in $(LISP) $(TAGS_FILES)'; \
2310         unique=`for i in $$list; do \
2311             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
2312           done | \
2313 -         $(AWK) '    { files[$$0] = 1; } \
2314 -              END { for (i in files) print i; }'`; \
2315 +         $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
2316 +             END { if (nonempty) { for (i in files) print i; }; }'`; \
2317         test -z "$(CTAGS_ARGS)$$tags$$unique" \
2318           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
2319              $$tags $$unique
2320 @@ -1320,6 +1326,10 @@
2321         tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
2322         $(am__remove_distdir)
2323  
2324 +dist-lzma: distdir
2325 +       tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
2326 +       $(am__remove_distdir)
2327 +
2328  dist-tarZ: distdir
2329         tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
2330         $(am__remove_distdir)
2331 @@ -1346,6 +1356,8 @@
2332           GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
2333         *.tar.bz2*) \
2334           bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
2335 +       *.tar.lzma*) \
2336 +         unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
2337         *.tar.Z*) \
2338           uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
2339         *.shar.gz*) \
2340 @@ -1612,8 +1624,8 @@
2341         all all-am am--refresh check check-am clean clean-generic \
2342         clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \
2343         ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
2344 -       dist-info dist-shar dist-tarZ dist-zip distcheck distclean \
2345 -       distclean-compile distclean-generic distclean-hdr \
2346 +       dist-info dist-lzma dist-shar dist-tarZ dist-zip distcheck \
2347 +       distclean distclean-compile distclean-generic distclean-hdr \
2348         distclean-libtool distclean-tags distcleancheck distdir \
2349         distuninstallcheck dvi dvi-am html html-am info info-am \
2350         install install-am install-data install-data-am install-dvi \
2351 --- libffi-3.0.6/ltmain.sh      2008-01-29 13:28:14.000000000 +0100
2352 +++ build/ltmain.sh     2008-02-28 09:33:19.000000000 +0100
2353 @@ -2,7 +2,7 @@
2354  # NOTE: Changing this file will not affect anything until you rerun configure.
2355  #
2356  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
2357 -# 2007  Free Software Foundation, Inc.
2358 +# 2007, 2008  Free Software Foundation, Inc.
2359  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2360  #
2361  # This program is free software; you can redistribute it and/or modify
2362 @@ -43,8 +43,8 @@
2363  
2364  PROGRAM=ltmain.sh
2365  PACKAGE=libtool
2366 -VERSION=1.5.24
2367 -TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
2368 +VERSION=1.5.26
2369 +TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
2370  
2371  # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
2372  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2373 @@ -113,15 +113,21 @@
2374  # These must not be set unconditionally because not all systems understand
2375  # e.g. LANG=C (notably SCO).
2376  # We save the old values to restore during execute mode.
2377 -for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
2378 +lt_env=
2379 +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
2380  do
2381    eval "if test \"\${$lt_var+set}\" = set; then
2382           save_$lt_var=\$$lt_var
2383 +         lt_env=\"$lt_var=\$$lt_var \$lt_env\"
2384           $lt_var=C
2385           export $lt_var
2386         fi"
2387  done
2388  
2389 +if test -n "$lt_env"; then
2390 +  lt_env="env $lt_env"
2391 +fi
2392 +
2393  # Make sure IFS has a sensible default
2394  lt_nl='
2395  '
2396 @@ -275,7 +281,21 @@
2397             esac
2398             CC_quoted="$CC_quoted $arg"
2399           done
2400 +           # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
2401 +           trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
2402 +           # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
2403 +           extendcc=${host}-${CC}
2404 +           # and sometimes libtool has CC=<OLDHOST>-gcc but user has CC=<NEWHOST>-gcc  
2405 +           # (Gentoo-specific hack because we always export $CHOST)
2406 +           mungedcc=${CHOST-${host}}-${trimedcc}
2407             case "$@ " in
2408 +             "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
2409 +             "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
2410 +             tagname=CC
2411 +             break ;;
2412 +             "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
2413 +             "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
2414 +             "$mungedcc "* | " $mungedcc "* | "`$echo $mungedcc` "* | " `$echo $mungedcc` "*|\
2415               " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
2416               # The compiler in the base compile command matches
2417               # the one in the tagged configuration.
2418 @@ -485,7 +505,7 @@
2419      echo "\
2420  $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
2421  
2422 -Copyright (C) 2007  Free Software Foundation, Inc.
2423 +Copyright (C) 2008  Free Software Foundation, Inc.
2424  This is free software; see the source for copying conditions.  There is NO
2425  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2426      exit $?
2427 @@ -788,6 +808,7 @@
2428      *.for) xform=for ;;
2429      *.java) xform=java ;;
2430      *.obj) xform=obj ;;
2431 +    *.sx) xform=sx ;;
2432      esac
2433  
2434      libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
2435 @@ -881,7 +902,7 @@
2436      # Lock this critical section if it is needed
2437      # We use this script file to make the link, it avoids creating a new file
2438      if test "$need_locks" = yes; then
2439 -      until $run ln "$progpath" "$lockfile" 2>/dev/null; do
2440 +      until $run ln "$srcfile" "$lockfile" 2>/dev/null; do
2441         $show "Waiting for $lockfile to be removed"
2442         sleep 2
2443        done
2444 @@ -956,7 +977,7 @@
2445        $run $rm "$lobj" "$output_obj"
2446  
2447        $show "$command"
2448 -      if $run eval "$command"; then :
2449 +      if $run eval $lt_env "$command"; then :
2450        else
2451         test -n "$output_obj" && $run $rm $removelist
2452         exit $EXIT_FAILURE
2453 @@ -1028,7 +1049,7 @@
2454        command="$command$suppress_output"
2455        $run $rm "$obj" "$output_obj"
2456        $show "$command"
2457 -      if $run eval "$command"; then :
2458 +      if $run eval $lt_env "$command"; then :
2459        else
2460         $run $rm $removelist
2461         exit $EXIT_FAILURE
2462 @@ -1161,6 +1182,7 @@
2463      thread_safe=no
2464      vinfo=
2465      vinfo_number=no
2466 +    single_module="${wl}-single_module"
2467  
2468      func_infer_tag $base_compile
2469  
2470 @@ -1646,6 +1668,11 @@
2471         continue
2472         ;;
2473  
2474 +      -multi_module)
2475 +       single_module="${wl}-multi_module"
2476 +       continue
2477 +       ;;
2478 +
2479        -module)
2480         module=yes
2481         continue
2482 @@ -2149,7 +2176,12 @@
2483             continue
2484           fi
2485           name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2486 -         for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
2487 +         if test "$linkmode" = lib; then
2488 +           searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
2489 +         else
2490 +           searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
2491 +         fi
2492 +         for searchdir in $searchdirs; do
2493             for search_ext in .la $std_shrext .so .a; do
2494               # Search the libtool library
2495               lib="$searchdir/lib${name}${search_ext}"
2496 @@ -2945,12 +2977,18 @@
2497                   # we do not want to link against static libs,
2498                   # but need to link against shared
2499                   eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2500 +                 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2501                   if test -n "$deplibrary_names" ; then
2502                     for tmp in $deplibrary_names ; do
2503                       depdepl=$tmp
2504                     done
2505 -                   if test -f "$path/$depdepl" ; then
2506 +                   if test -f "$deplibdir/$depdepl" ; then
2507 +                     depdepl="$deplibdir/$depdepl"
2508 +                   elif test -f "$path/$depdepl" ; then
2509                       depdepl="$path/$depdepl"
2510 +                   else
2511 +                     # Can't find it, oh well...
2512 +                     depdepl=
2513                     fi
2514                     # do not add paths which are already there
2515                     case " $newlib_search_path " in
2516 @@ -3098,9 +3136,10 @@
2517  
2518      case $linkmode in
2519      oldlib)
2520 -      if test -n "$deplibs"; then
2521 -       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
2522 -      fi
2523 +      case " $deplibs" in
2524 +      *\ -l* | *\ -L*)
2525 +       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
2526 +      esac
2527  
2528        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2529         $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
2530 @@ -4237,9 +4276,10 @@
2531        ;;
2532  
2533      obj)
2534 -      if test -n "$deplibs"; then
2535 -       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
2536 -      fi
2537 +      case " $deplibs" in
2538 +      *\ -l* | *\ -L*)
2539 +       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
2540 +      esac
2541  
2542        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2543         $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
2544 @@ -5442,6 +5482,11 @@
2545         $echo >> $output "\
2546      if test \"\$libtool_execute_magic\" != \"$magic\"; then
2547        # Run the actual program with our arguments.
2548 +
2549 +      # Make sure env LD_LIBRARY_PATH does not mess us up
2550 +      if test -n \"\${LD_LIBRARY_PATH+set}\"; then
2551 +        export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH
2552 +      fi
2553  "
2554         case $host in
2555         # Backslashes separate directories on plain windows
2556 @@ -6478,7 +6523,7 @@
2557        fi
2558  
2559        # Restore saved environment variables
2560 -      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
2561 +      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
2562        do
2563         eval "if test \"\${save_$lt_var+set}\" = set; then
2564                 $lt_var=\$save_$lt_var; export $lt_var