Subversion Repositories SmartDukaan

Rev

Rev 30 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 ashish 1
@%:@! /bin/sh
2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.64 for thrift 0.2.0.
4
@%:@ 
5
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
@%:@ Foundation, Inc.
8
@%:@ 
9
@%:@ This configure script is free software; the Free Software Foundation
10
@%:@ gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in @%:@(
26
  *posix*) :
27
    set -o posix ;; @%:@(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in @%:@(
59
      *"$as_nl"*)
60
	expr "X$arg" : "X\\(.*\\)$as_nl";
61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""	$as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in @%:@((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in @%:@(
144
  *posix*) :
145
    set -o posix ;; @%:@(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
  if (eval "$as_required") 2>/dev/null; then :
174
  as_have_required=yes
175
else
176
  as_have_required=no
177
fi
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
 
180
else
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
as_found=false
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184
do
185
  IFS=$as_save_IFS
186
  test -z "$as_dir" && as_dir=.
187
  as_found=:
188
  case $as_dir in @%:@(
189
	 /*)
190
	   for as_base in sh bash ksh sh5; do
191
	     # Try only shells that exist, to save several forks.
192
	     as_shell=$as_dir/$as_base
193
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
  CONFIG_SHELL=$as_shell as_have_required=yes
196
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  break 2
198
fi
199
fi
200
	   done;;
201
       esac
202
  as_found=false
203
done
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$SHELL as_have_required=yes
207
fi; }
208
IFS=$as_save_IFS
209
 
210
 
211
      if test "x$CONFIG_SHELL" != x; then :
212
  # We cannot yet assume a decent shell, so we have to provide a
213
	# neutralization value for shells without unset; and this also
214
	# works around shells that cannot unset nonexistent variables.
215
	BASH_ENV=/dev/null
216
	ENV=/dev/null
217
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
	export CONFIG_SHELL
219
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220
fi
221
 
222
    if test x$as_have_required = xno; then :
223
  $as_echo "$0: This script requires a shell more modern than all"
224
  $as_echo "$0: the shells that I found on your system."
225
  if test x${ZSH_VERSION+set} = xset ; then
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228
  else
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
233
  fi
234
  exit 1
235
fi
236
fi
237
fi
238
SHELL=${CONFIG_SHELL-/bin/sh}
239
export SHELL
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
243
 
244
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
247
@%:@ as_fn_unset VAR
248
@%:@ ---------------
249
@%:@ Portably unset VAR.
250
as_fn_unset ()
251
{
252
  { eval $1=; unset $1;}
253
}
254
as_unset=as_fn_unset
255
 
256
@%:@ as_fn_set_status STATUS
257
@%:@ -----------------------
258
@%:@ Set $? to STATUS, without forking.
259
as_fn_set_status ()
260
{
261
  return $1
262
} @%:@ as_fn_set_status
263
 
264
@%:@ as_fn_exit STATUS
265
@%:@ -----------------
266
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267
as_fn_exit ()
268
{
269
  set +e
270
  as_fn_set_status $1
271
  exit $1
272
} @%:@ as_fn_exit
273
 
274
@%:@ as_fn_mkdir_p
275
@%:@ -------------
276
@%:@ Create "$as_dir" as a directory, including parents if necessary.
277
as_fn_mkdir_p ()
278
{
279
 
280
  case $as_dir in #(
281
  -*) as_dir=./$as_dir;;
282
  esac
283
  test -d "$as_dir" || eval $as_mkdir_p || {
284
    as_dirs=
285
    while :; do
286
      case $as_dir in #(
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288
      *) as_qdir=$as_dir;;
289
      esac
290
      as_dirs="'$as_qdir' $as_dirs"
291
      as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
	 X"$as_dir" : 'X\(//\)[^/]' \| \
294
	 X"$as_dir" : 'X\(//\)$' \| \
295
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298
	    s//\1/
299
	    q
300
	  }
301
	  /^X\(\/\/\)[^/].*/{
302
	    s//\1/
303
	    q
304
	  }
305
	  /^X\(\/\/\)$/{
306
	    s//\1/
307
	    q
308
	  }
309
	  /^X\(\/\).*/{
310
	    s//\1/
311
	    q
312
	  }
313
	  s/.*/./; q'`
314
      test -d "$as_dir" && break
315
    done
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
 
319
 
320
} @%:@ as_fn_mkdir_p
321
@%:@ as_fn_append VAR VALUE
322
@%:@ ----------------------
323
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
324
@%:@ advantage of any shell optimizations that allow amortized linear growth over
325
@%:@ repeated appends, instead of the typical quadratic growth present in naive
326
@%:@ implementations.
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
  eval 'as_fn_append ()
329
  {
330
    eval $1+=\$2
331
  }'
332
else
333
  as_fn_append ()
334
  {
335
    eval $1=\$$1\$2
336
  }
337
fi # as_fn_append
338
 
339
@%:@ as_fn_arith ARG...
340
@%:@ ------------------
341
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
342
@%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
343
@%:@ must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345
  eval 'as_fn_arith ()
346
  {
347
    as_val=$(( $* ))
348
  }'
349
else
350
  as_fn_arith ()
351
  {
352
    as_val=`expr "$@" || test $? -eq 1`
353
  }
354
fi # as_fn_arith
355
 
356
 
357
@%:@ as_fn_error ERROR [LINENO LOG_FD]
358
@%:@ ---------------------------------
359
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
@%:@ script with status $?, using 1 if that was 0.
362
as_fn_error ()
363
{
364
  as_status=$?; test $as_status -eq 0 && as_status=1
365
  if test "$3"; then
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368
  fi
369
  $as_echo "$as_me: error: $1" >&2
370
  as_fn_exit $as_status
371
} @%:@ as_fn_error
372
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375
  as_expr=expr
376
else
377
  as_expr=false
378
fi
379
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381
  as_basename=basename
382
else
383
  as_basename=false
384
fi
385
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387
  as_dirname=dirname
388
else
389
  as_dirname=false
390
fi
391
 
392
as_me=`$as_basename -- "$0" ||
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
	 X"$0" : 'X\(//\)$' \| \
395
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396
$as_echo X/"$0" |
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
398
	    s//\1/
399
	    q
400
	  }
401
	  /^X\/\(\/\/\)$/{
402
	    s//\1/
403
	    q
404
	  }
405
	  /^X\/\(\/\).*/{
406
	    s//\1/
407
	    q
408
	  }
409
	  s/.*/./; q'`
410
 
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
417
 
418
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424
  sed -n '
425
    p
426
    /[$]LINENO/=
427
  ' <$as_myself |
428
    sed '
429
      s/[$]LINENO.*/&-/
430
      t lineno
431
      b
432
      :lineno
433
      N
434
      :loop
435
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436
      t loop
437
      s/-\n.*//
438
    ' >$as_me.lineno &&
439
  chmod +x "$as_me.lineno" ||
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
 
442
  # Don't try to exec as it changes $[0], causing all sort of problems
443
  # (the dirname of $[0] is not the place where we might find the
444
  # original and so on.  Autoconf is especially sensitive to this).
445
  . "./$as_me.lineno"
446
  # Exit status is that of the last command.
447
  exit
448
}
449
 
450
ECHO_C= ECHO_N= ECHO_T=
451
case `echo -n x` in @%:@(((((
452
-n*)
453
  case `echo 'xy\c'` in
454
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455
  xy)  ECHO_C='\c';;
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457
       ECHO_T='	';;
458
  esac;;
459
*)
460
  ECHO_N='-n';;
461
esac
462
 
463
rm -f conf$$ conf$$.exe conf$$.file
464
if test -d conf$$.dir; then
465
  rm -f conf$$.dir/conf$$.file
466
else
467
  rm -f conf$$.dir
468
  mkdir conf$$.dir 2>/dev/null
469
fi
470
if (echo >conf$$.file) 2>/dev/null; then
471
  if ln -s conf$$.file conf$$ 2>/dev/null; then
472
    as_ln_s='ln -s'
473
    # ... but there are two gotchas:
474
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476
    # In both cases, we have to default to `cp -p'.
477
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478
      as_ln_s='cp -p'
479
  elif ln conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s=ln
481
  else
482
    as_ln_s='cp -p'
483
  fi
484
else
485
  as_ln_s='cp -p'
486
fi
487
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488
rmdir conf$$.dir 2>/dev/null
489
 
490
if mkdir -p . 2>/dev/null; then
491
  as_mkdir_p='mkdir -p "$as_dir"'
492
else
493
  test -d ./-p && rmdir ./-p
494
  as_mkdir_p=false
495
fi
496
 
497
if test -x / >/dev/null 2>&1; then
498
  as_test_x='test -x'
499
else
500
  if ls -dL / >/dev/null 2>&1; then
501
    as_ls_L_option=L
502
  else
503
    as_ls_L_option=
504
  fi
505
  as_test_x='
506
    eval sh -c '\''
507
      if test -d "$1"; then
508
	test -d "$1/.";
509
      else
510
	case $1 in @%:@(
511
	-*)set "./$1";;
512
	esac;
513
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
514
	???[sx]*):;;*)false;;esac;fi
515
    '\'' sh
516
  '
517
fi
518
as_executable_p=$as_test_x
519
 
520
# Sed expression to map a string onto a valid CPP name.
521
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
 
523
# Sed expression to map a string onto a valid variable name.
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
 
527
 
528
# Check that we are running under the correct shell.
529
SHELL=${CONFIG_SHELL-/bin/sh}
530
 
531
case X$lt_ECHO in
532
X*--fallback-echo)
533
  # Remove one level of quotation (which was required for Make).
534
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535
  ;;
536
esac
537
 
538
ECHO=${lt_ECHO-echo}
539
if test "X$1" = X--no-reexec; then
540
  # Discard the --no-reexec flag, and continue.
541
  shift
542
elif test "X$1" = X--fallback-echo; then
543
  # Avoid inline document here, it may be left over
544
  :
545
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546
  # Yippee, $ECHO works!
547
  :
548
else
549
  # Restart under the correct shell.
550
  exec $SHELL "$0" --no-reexec ${1+"$@"}
551
fi
552
 
553
if test "X$1" = X--fallback-echo; then
554
  # used as fallback echo
555
  shift
556
  cat <<_LT_EOF
557
$*
558
_LT_EOF
559
  exit 0
560
fi
561
 
562
# The HP-UX ksh and POSIX shell print the target directory to stdout
563
# if CDPATH is set.
564
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
 
566
if test -z "$lt_ECHO"; then
567
  if test "X${echo_test_string+set}" != Xset; then
568
    # find a string as large as possible, as long as the shell can cope with it
569
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573
      then
574
        break
575
      fi
576
    done
577
  fi
578
 
579
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581
     test "X$echo_testing_string" = "X$echo_test_string"; then
582
    :
583
  else
584
    # The Solaris, AIX, and Digital Unix default echo programs unquote
585
    # backslashes.  This makes it impossible to quote backslashes using
586
    #   echo "$something" | sed 's/\\/\\\\/g'
587
    #
588
    # So, first we look for a working echo in the user's PATH.
589
 
590
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591
    for dir in $PATH /usr/ucb; do
592
      IFS="$lt_save_ifs"
593
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596
         test "X$echo_testing_string" = "X$echo_test_string"; then
597
        ECHO="$dir/echo"
598
        break
599
      fi
600
    done
601
    IFS="$lt_save_ifs"
602
 
603
    if test "X$ECHO" = Xecho; then
604
      # We didn't find a better echo, so look for alternatives.
605
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607
         test "X$echo_testing_string" = "X$echo_test_string"; then
608
        # This shell has a builtin print -r that does the trick.
609
        ECHO='print -r'
610
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
612
        # If we have ksh, try running configure again with it.
613
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614
        export ORIGINAL_CONFIG_SHELL
615
        CONFIG_SHELL=/bin/ksh
616
        export CONFIG_SHELL
617
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618
      else
619
        # Try using printf.
620
        ECHO='printf %s\n'
621
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623
	   test "X$echo_testing_string" = "X$echo_test_string"; then
624
	  # Cool, printf works
625
	  :
626
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627
	     test "X$echo_testing_string" = 'X\t' &&
628
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629
	     test "X$echo_testing_string" = "X$echo_test_string"; then
630
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631
	  export CONFIG_SHELL
632
	  SHELL="$CONFIG_SHELL"
633
	  export SHELL
634
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
635
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636
	     test "X$echo_testing_string" = 'X\t' &&
637
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638
	     test "X$echo_testing_string" = "X$echo_test_string"; then
639
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
        else
641
	  # maybe with a smaller string...
642
	  prev=:
643
 
644
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646
	    then
647
	      break
648
	    fi
649
	    prev="$cmd"
650
	  done
651
 
652
	  if test "$prev" != 'sed 50q "$0"'; then
653
	    echo_test_string=`eval $prev`
654
	    export echo_test_string
655
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656
	  else
657
	    # Oops.  We lost completely, so just stick with echo.
658
	    ECHO=echo
659
	  fi
660
        fi
661
      fi
662
    fi
663
  fi
664
fi
665
 
666
# Copy echo and quote the copy suitably for passing to libtool from
667
# the Makefile, instead of quoting the original, which is used later.
668
lt_ECHO=$ECHO
669
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671
fi
672
 
673
 
674
 
675
 
676
exec 7<&0 </dev/null 6>&1
677
 
678
# Name of the host.
679
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680
# so uname gets run too.
681
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
 
683
#
684
# Initializations.
685
#
686
ac_default_prefix=/usr/local
687
ac_clean_files=
688
ac_config_libobj_dir=.
689
LIB@&t@OBJS=
690
cross_compiling=no
691
subdirs=
692
MFLAGS=
693
MAKEFLAGS=
694
 
695
# Identity of this package.
696
PACKAGE_NAME='thrift'
697
PACKAGE_TARNAME='thrift'
698
PACKAGE_VERSION='0.2.0'
699
PACKAGE_STRING='thrift 0.2.0'
700
PACKAGE_BUGREPORT=''
701
PACKAGE_URL=''
702
 
703
# Factoring default headers for most tests.
704
ac_includes_default="\
705
#include <stdio.h>
706
#ifdef HAVE_SYS_TYPES_H
707
# include <sys/types.h>
708
#endif
709
#ifdef HAVE_SYS_STAT_H
710
# include <sys/stat.h>
711
#endif
712
#ifdef STDC_HEADERS
713
# include <stdlib.h>
714
# include <stddef.h>
715
#else
716
# ifdef HAVE_STDLIB_H
717
#  include <stdlib.h>
718
# endif
719
#endif
720
#ifdef HAVE_STRING_H
721
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
722
#  include <memory.h>
723
# endif
724
# include <string.h>
725
#endif
726
#ifdef HAVE_STRINGS_H
727
# include <strings.h>
728
#endif
729
#ifdef HAVE_INTTYPES_H
730
# include <inttypes.h>
731
#endif
732
#ifdef HAVE_STDINT_H
733
# include <stdint.h>
734
#endif
735
#ifdef HAVE_UNISTD_H
736
# include <unistd.h>
737
#endif"
738
 
739
ac_subst_vars='am__EXEEXT_FALSE
740
am__EXEEXT_TRUE
741
LTLIBOBJS
742
THRIFT_GEN_html_FALSE
743
THRIFT_GEN_html_TRUE
744
THRIFT_GEN_xsd_FALSE
745
THRIFT_GEN_xsd_TRUE
746
THRIFT_GEN_hs_FALSE
747
THRIFT_GEN_hs_TRUE
748
THRIFT_GEN_ocaml_FALSE
749
THRIFT_GEN_ocaml_TRUE
750
THRIFT_GEN_st_FALSE
751
THRIFT_GEN_st_TRUE
752
THRIFT_GEN_cocoa_FALSE
753
THRIFT_GEN_cocoa_TRUE
754
THRIFT_GEN_erl_FALSE
755
THRIFT_GEN_erl_TRUE
756
THRIFT_GEN_php_FALSE
757
THRIFT_GEN_php_TRUE
758
THRIFT_GEN_perl_FALSE
759
THRIFT_GEN_perl_TRUE
760
THRIFT_GEN_rb_FALSE
761
THRIFT_GEN_rb_TRUE
762
THRIFT_GEN_py_FALSE
763
THRIFT_GEN_py_TRUE
764
THRIFT_GEN_csharp_FALSE
765
THRIFT_GEN_csharp_TRUE
766
THRIFT_GEN_java_FALSE
767
THRIFT_GEN_java_TRUE
768
THRIFT_GEN_cpp_FALSE
769
THRIFT_GEN_cpp_TRUE
770
LIB@&t@OBJS
771
ALLOCA
772
HAVE_RSPEC_FALSE
773
HAVE_RSPEC_TRUE
774
WITH_RUBY_FALSE
775
WITH_RUBY_TRUE
776
RSPEC
777
RUBY
778
WITH_PERL_FALSE
779
WITH_PERL_TRUE
780
PERL
781
WITH_PYTHON_FALSE
782
WITH_PYTHON_TRUE
783
pkgpyexecdir
784
pyexecdir
785
pkgpythondir
786
pythondir
787
PYTHON_PLATFORM
788
PYTHON_EXEC_PREFIX
789
PYTHON_PREFIX
790
PYTHON_VERSION
791
PYTHON
792
WITH_ERLANG_FALSE
793
WITH_ERLANG_TRUE
794
ERLC
795
WITH_JAVA_FALSE
796
WITH_JAVA_TRUE
797
ANT_FLAGS
798
CLASSPATH
799
ANT
800
NET_2_0_FALSE
801
NET_2_0_TRUE
802
WITH_MONO_FALSE
803
WITH_MONO_TRUE
804
MONO_LIBS
805
MONO_CFLAGS
806
PKG_CONFIG
807
AMX_HAVE_ZLIB_FALSE
808
AMX_HAVE_ZLIB_TRUE
809
ZLIB_LIBS
810
ZLIB_LDFLAGS
811
ZLIB_CPPFLAGS
812
AMX_HAVE_LIBEVENT_FALSE
813
AMX_HAVE_LIBEVENT_TRUE
814
LIBEVENT_LIBS
815
LIBEVENT_LDFLAGS
816
LIBEVENT_CPPFLAGS
817
BOOST_LDFLAGS
818
BOOST_CPPFLAGS
819
LEXLIB
820
LEX_OUTPUT_ROOT
821
LEX
822
YFLAGS
823
YACC
824
CXXCPP
825
OTOOL64
826
OTOOL
827
LIPO
828
NMEDIT
829
DSYMUTIL
830
lt_ECHO
831
RANLIB
832
AR
833
OBJDUMP
834
LN_S
835
NM
836
ac_ct_DUMPBIN
837
DUMPBIN
838
LD
839
FGREP
840
EGREP
841
GREP
842
SED
843
host_os
844
host_vendor
845
host_cpu
846
host
847
build_os
848
build_vendor
849
build_cpu
850
build
851
LIBTOOL
852
am__fastdepCXX_FALSE
853
am__fastdepCXX_TRUE
854
CXXDEPMODE
855
ac_ct_CXX
856
CXXFLAGS
857
CXX
858
CPP
859
am__fastdepCC_FALSE
860
am__fastdepCC_TRUE
861
CCDEPMODE
862
AMDEPBACKSLASH
863
AMDEP_FALSE
864
AMDEP_TRUE
865
am__quote
866
am__include
867
DEPDIR
868
OBJEXT
869
EXEEXT
870
ac_ct_CC
871
CPPFLAGS
872
LDFLAGS
873
CFLAGS
874
CC
875
JAVA_PREFIX
876
PY_PREFIX
877
am__untar
878
am__tar
879
AMTAR
880
am__leading_dot
881
SET_MAKE
882
AWK
883
mkdir_p
884
MKDIR_P
885
INSTALL_STRIP_PROGRAM
886
STRIP
887
install_sh
888
MAKEINFO
889
AUTOHEADER
890
AUTOMAKE
891
AUTOCONF
892
ACLOCAL
893
VERSION
894
PACKAGE
895
CYGPATH_W
896
am__isrc
897
INSTALL_DATA
898
INSTALL_SCRIPT
899
INSTALL_PROGRAM
900
target_alias
901
host_alias
902
build_alias
903
LIBS
904
ECHO_T
905
ECHO_N
906
ECHO_C
907
DEFS
908
mandir
909
localedir
910
libdir
911
psdir
912
pdfdir
913
dvidir
914
htmldir
915
infodir
916
docdir
917
oldincludedir
918
includedir
919
localstatedir
920
sharedstatedir
921
sysconfdir
922
datadir
923
datarootdir
924
libexecdir
925
sbindir
926
bindir
927
program_transform_name
928
prefix
929
exec_prefix
930
PACKAGE_URL
931
PACKAGE_BUGREPORT
932
PACKAGE_STRING
933
PACKAGE_VERSION
934
PACKAGE_TARNAME
935
PACKAGE_NAME
936
PATH_SEPARATOR
937
SHELL'
938
ac_subst_files=''
939
ac_user_opts='
940
enable_option_checking
941
enable_dependency_tracking
942
enable_shared
943
enable_static
944
with_pic
945
enable_fast_install
946
with_gnu_ld
947
enable_libtool_lock
948
with_boost
949
with_libevent
950
with_zlib
951
with_csharp
952
with_java
953
with_erlang
954
with_py
955
with_perl
956
with_ruby
957
enable_gen_cpp
958
enable_gen_java
959
enable_gen_csharp
960
enable_gen_py
961
enable_gen_rb
962
enable_gen_perl
963
enable_gen_php
964
enable_gen_erl
965
enable_gen_cocoa
966
enable_gen_st
967
enable_gen_ocaml
968
enable_gen_hs
969
enable_gen_xsd
970
enable_gen_html
971
'
972
      ac_precious_vars='build_alias
973
host_alias
974
target_alias
975
PY_PREFIX
976
JAVA_PREFIX
977
CC
978
CFLAGS
979
LDFLAGS
980
LIBS
981
CPPFLAGS
982
CPP
983
CXX
984
CXXFLAGS
985
CCC
986
CXXCPP
987
YACC
988
YFLAGS
989
PKG_CONFIG
990
MONO_CFLAGS
991
MONO_LIBS'
992
 
993
 
994
# Initialize some variables set by options.
995
ac_init_help=
996
ac_init_version=false
997
ac_unrecognized_opts=
998
ac_unrecognized_sep=
999
# The variables have the same names as the options, with
1000
# dashes changed to underlines.
1001
cache_file=/dev/null
1002
exec_prefix=NONE
1003
no_create=
1004
no_recursion=
1005
prefix=NONE
1006
program_prefix=NONE
1007
program_suffix=NONE
1008
program_transform_name=s,x,x,
1009
silent=
1010
site=
1011
srcdir=
1012
verbose=
1013
x_includes=NONE
1014
x_libraries=NONE
1015
 
1016
# Installation directory options.
1017
# These are left unexpanded so users can "make install exec_prefix=/foo"
1018
# and all the variables that are supposed to be based on exec_prefix
1019
# by default will actually change.
1020
# Use braces instead of parens because sh, perl, etc. also accept them.
1021
# (The list follows the same order as the GNU Coding Standards.)
1022
bindir='${exec_prefix}/bin'
1023
sbindir='${exec_prefix}/sbin'
1024
libexecdir='${exec_prefix}/libexec'
1025
datarootdir='${prefix}/share'
1026
datadir='${datarootdir}'
1027
sysconfdir='${prefix}/etc'
1028
sharedstatedir='${prefix}/com'
1029
localstatedir='${prefix}/var'
1030
includedir='${prefix}/include'
1031
oldincludedir='/usr/include'
1032
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033
infodir='${datarootdir}/info'
1034
htmldir='${docdir}'
1035
dvidir='${docdir}'
1036
pdfdir='${docdir}'
1037
psdir='${docdir}'
1038
libdir='${exec_prefix}/lib'
1039
localedir='${datarootdir}/locale'
1040
mandir='${datarootdir}/man'
1041
 
1042
ac_prev=
1043
ac_dashdash=
1044
for ac_option
1045
do
1046
  # If the previous option needs an argument, assign it.
1047
  if test -n "$ac_prev"; then
1048
    eval $ac_prev=\$ac_option
1049
    ac_prev=
1050
    continue
1051
  fi
1052
 
1053
  case $ac_option in
1054
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055
  *)	ac_optarg=yes ;;
1056
  esac
1057
 
1058
  # Accept the important Cygnus configure options, so we can diagnose typos.
1059
 
1060
  case $ac_dashdash$ac_option in
1061
  --)
1062
    ac_dashdash=yes ;;
1063
 
1064
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065
    ac_prev=bindir ;;
1066
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067
    bindir=$ac_optarg ;;
1068
 
1069
  -build | --build | --buil | --bui | --bu)
1070
    ac_prev=build_alias ;;
1071
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072
    build_alias=$ac_optarg ;;
1073
 
1074
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1075
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076
    ac_prev=cache_file ;;
1077
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079
    cache_file=$ac_optarg ;;
1080
 
1081
  --config-cache | -C)
1082
    cache_file=config.cache ;;
1083
 
1084
  -datadir | --datadir | --datadi | --datad)
1085
    ac_prev=datadir ;;
1086
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087
    datadir=$ac_optarg ;;
1088
 
1089
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090
  | --dataroo | --dataro | --datar)
1091
    ac_prev=datarootdir ;;
1092
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094
    datarootdir=$ac_optarg ;;
1095
 
1096
  -disable-* | --disable-*)
1097
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098
    # Reject names that are not valid shell variable names.
1099
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100
      as_fn_error "invalid feature name: $ac_useropt"
1101
    ac_useropt_orig=$ac_useropt
1102
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103
    case $ac_user_opts in
1104
      *"
1105
"enable_$ac_useropt"
1106
"*) ;;
1107
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108
	 ac_unrecognized_sep=', ';;
1109
    esac
1110
    eval enable_$ac_useropt=no ;;
1111
 
1112
  -docdir | --docdir | --docdi | --doc | --do)
1113
    ac_prev=docdir ;;
1114
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115
    docdir=$ac_optarg ;;
1116
 
1117
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118
    ac_prev=dvidir ;;
1119
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120
    dvidir=$ac_optarg ;;
1121
 
1122
  -enable-* | --enable-*)
1123
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124
    # Reject names that are not valid shell variable names.
1125
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126
      as_fn_error "invalid feature name: $ac_useropt"
1127
    ac_useropt_orig=$ac_useropt
1128
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129
    case $ac_user_opts in
1130
      *"
1131
"enable_$ac_useropt"
1132
"*) ;;
1133
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134
	 ac_unrecognized_sep=', ';;
1135
    esac
1136
    eval enable_$ac_useropt=\$ac_optarg ;;
1137
 
1138
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140
  | --exec | --exe | --ex)
1141
    ac_prev=exec_prefix ;;
1142
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144
  | --exec=* | --exe=* | --ex=*)
1145
    exec_prefix=$ac_optarg ;;
1146
 
1147
  -gas | --gas | --ga | --g)
1148
    # Obsolete; use --with-gas.
1149
    with_gas=yes ;;
1150
 
1151
  -help | --help | --hel | --he | -h)
1152
    ac_init_help=long ;;
1153
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154
    ac_init_help=recursive ;;
1155
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156
    ac_init_help=short ;;
1157
 
1158
  -host | --host | --hos | --ho)
1159
    ac_prev=host_alias ;;
1160
  -host=* | --host=* | --hos=* | --ho=*)
1161
    host_alias=$ac_optarg ;;
1162
 
1163
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164
    ac_prev=htmldir ;;
1165
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166
  | --ht=*)
1167
    htmldir=$ac_optarg ;;
1168
 
1169
  -includedir | --includedir | --includedi | --included | --include \
1170
  | --includ | --inclu | --incl | --inc)
1171
    ac_prev=includedir ;;
1172
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1174
    includedir=$ac_optarg ;;
1175
 
1176
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1177
    ac_prev=infodir ;;
1178
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179
    infodir=$ac_optarg ;;
1180
 
1181
  -libdir | --libdir | --libdi | --libd)
1182
    ac_prev=libdir ;;
1183
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184
    libdir=$ac_optarg ;;
1185
 
1186
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187
  | --libexe | --libex | --libe)
1188
    ac_prev=libexecdir ;;
1189
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190
  | --libexe=* | --libex=* | --libe=*)
1191
    libexecdir=$ac_optarg ;;
1192
 
1193
  -localedir | --localedir | --localedi | --localed | --locale)
1194
    ac_prev=localedir ;;
1195
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196
    localedir=$ac_optarg ;;
1197
 
1198
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1199
  | --localstate | --localstat | --localsta | --localst | --locals)
1200
    ac_prev=localstatedir ;;
1201
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203
    localstatedir=$ac_optarg ;;
1204
 
1205
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206
    ac_prev=mandir ;;
1207
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208
    mandir=$ac_optarg ;;
1209
 
1210
  -nfp | --nfp | --nf)
1211
    # Obsolete; use --without-fp.
1212
    with_fp=no ;;
1213
 
1214
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215
  | --no-cr | --no-c | -n)
1216
    no_create=yes ;;
1217
 
1218
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220
    no_recursion=yes ;;
1221
 
1222
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224
  | --oldin | --oldi | --old | --ol | --o)
1225
    ac_prev=oldincludedir ;;
1226
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229
    oldincludedir=$ac_optarg ;;
1230
 
1231
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232
    ac_prev=prefix ;;
1233
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234
    prefix=$ac_optarg ;;
1235
 
1236
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237
  | --program-pre | --program-pr | --program-p)
1238
    ac_prev=program_prefix ;;
1239
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241
    program_prefix=$ac_optarg ;;
1242
 
1243
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244
  | --program-suf | --program-su | --program-s)
1245
    ac_prev=program_suffix ;;
1246
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248
    program_suffix=$ac_optarg ;;
1249
 
1250
  -program-transform-name | --program-transform-name \
1251
  | --program-transform-nam | --program-transform-na \
1252
  | --program-transform-n | --program-transform- \
1253
  | --program-transform | --program-transfor \
1254
  | --program-transfo | --program-transf \
1255
  | --program-trans | --program-tran \
1256
  | --progr-tra | --program-tr | --program-t)
1257
    ac_prev=program_transform_name ;;
1258
  -program-transform-name=* | --program-transform-name=* \
1259
  | --program-transform-nam=* | --program-transform-na=* \
1260
  | --program-transform-n=* | --program-transform-=* \
1261
  | --program-transform=* | --program-transfor=* \
1262
  | --program-transfo=* | --program-transf=* \
1263
  | --program-trans=* | --program-tran=* \
1264
  | --progr-tra=* | --program-tr=* | --program-t=*)
1265
    program_transform_name=$ac_optarg ;;
1266
 
1267
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268
    ac_prev=pdfdir ;;
1269
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270
    pdfdir=$ac_optarg ;;
1271
 
1272
  -psdir | --psdir | --psdi | --psd | --ps)
1273
    ac_prev=psdir ;;
1274
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275
    psdir=$ac_optarg ;;
1276
 
1277
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278
  | -silent | --silent | --silen | --sile | --sil)
1279
    silent=yes ;;
1280
 
1281
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282
    ac_prev=sbindir ;;
1283
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284
  | --sbi=* | --sb=*)
1285
    sbindir=$ac_optarg ;;
1286
 
1287
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289
  | --sharedst | --shareds | --shared | --share | --shar \
1290
  | --sha | --sh)
1291
    ac_prev=sharedstatedir ;;
1292
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295
  | --sha=* | --sh=*)
1296
    sharedstatedir=$ac_optarg ;;
1297
 
1298
  -site | --site | --sit)
1299
    ac_prev=site ;;
1300
  -site=* | --site=* | --sit=*)
1301
    site=$ac_optarg ;;
1302
 
1303
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304
    ac_prev=srcdir ;;
1305
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306
    srcdir=$ac_optarg ;;
1307
 
1308
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309
  | --syscon | --sysco | --sysc | --sys | --sy)
1310
    ac_prev=sysconfdir ;;
1311
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313
    sysconfdir=$ac_optarg ;;
1314
 
1315
  -target | --target | --targe | --targ | --tar | --ta | --t)
1316
    ac_prev=target_alias ;;
1317
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318
    target_alias=$ac_optarg ;;
1319
 
1320
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321
    verbose=yes ;;
1322
 
1323
  -version | --version | --versio | --versi | --vers | -V)
1324
    ac_init_version=: ;;
1325
 
1326
  -with-* | --with-*)
1327
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328
    # Reject names that are not valid shell variable names.
1329
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330
      as_fn_error "invalid package name: $ac_useropt"
1331
    ac_useropt_orig=$ac_useropt
1332
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333
    case $ac_user_opts in
1334
      *"
1335
"with_$ac_useropt"
1336
"*) ;;
1337
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338
	 ac_unrecognized_sep=', ';;
1339
    esac
1340
    eval with_$ac_useropt=\$ac_optarg ;;
1341
 
1342
  -without-* | --without-*)
1343
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344
    # Reject names that are not valid shell variable names.
1345
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346
      as_fn_error "invalid package name: $ac_useropt"
1347
    ac_useropt_orig=$ac_useropt
1348
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349
    case $ac_user_opts in
1350
      *"
1351
"with_$ac_useropt"
1352
"*) ;;
1353
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354
	 ac_unrecognized_sep=', ';;
1355
    esac
1356
    eval with_$ac_useropt=no ;;
1357
 
1358
  --x)
1359
    # Obsolete; use --with-x.
1360
    with_x=yes ;;
1361
 
1362
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1363
  | --x-incl | --x-inc | --x-in | --x-i)
1364
    ac_prev=x_includes ;;
1365
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1366
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1367
    x_includes=$ac_optarg ;;
1368
 
1369
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1370
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1371
    ac_prev=x_libraries ;;
1372
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1373
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1374
    x_libraries=$ac_optarg ;;
1375
 
1376
  -*) as_fn_error "unrecognized option: \`$ac_option'
1377
Try \`$0 --help' for more information."
1378
    ;;
1379
 
1380
  *=*)
1381
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1382
    # Reject names that are not valid shell variable names.
1383
    case $ac_envvar in #(
1384
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1385
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1386
    esac
1387
    eval $ac_envvar=\$ac_optarg
1388
    export $ac_envvar ;;
1389
 
1390
  *)
1391
    # FIXME: should be removed in autoconf 3.0.
1392
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1394
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1396
    ;;
1397
 
1398
  esac
1399
done
1400
 
1401
if test -n "$ac_prev"; then
1402
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1403
  as_fn_error "missing argument to $ac_option"
1404
fi
1405
 
1406
if test -n "$ac_unrecognized_opts"; then
1407
  case $enable_option_checking in
1408
    no) ;;
1409
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1410
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411
  esac
1412
fi
1413
 
1414
# Check all directory arguments for consistency.
1415
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416
		datadir sysconfdir sharedstatedir localstatedir includedir \
1417
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418
		libdir localedir mandir
1419
do
1420
  eval ac_val=\$$ac_var
1421
  # Remove trailing slashes.
1422
  case $ac_val in
1423
    */ )
1424
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425
      eval $ac_var=\$ac_val;;
1426
  esac
1427
  # Be sure to have absolute directory names.
1428
  case $ac_val in
1429
    [\\/$]* | ?:[\\/]* )  continue;;
1430
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431
  esac
1432
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1433
done
1434
 
1435
# There might be people who depend on the old broken behavior: `$host'
1436
# used to hold the argument of --host etc.
1437
# FIXME: To remove some day.
1438
build=$build_alias
1439
host=$host_alias
1440
target=$target_alias
1441
 
1442
# FIXME: To remove some day.
1443
if test "x$host_alias" != x; then
1444
  if test "x$build_alias" = x; then
1445
    cross_compiling=maybe
1446
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1447
    If a cross compiler is detected then cross compile mode will be used." >&2
1448
  elif test "x$build_alias" != "x$host_alias"; then
1449
    cross_compiling=yes
1450
  fi
1451
fi
1452
 
1453
ac_tool_prefix=
1454
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455
 
1456
test "$silent" = yes && exec 6>/dev/null
1457
 
1458
 
1459
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1460
ac_ls_di=`ls -di .` &&
1461
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1462
  as_fn_error "working directory cannot be determined"
1463
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1464
  as_fn_error "pwd does not report name of working directory"
1465
 
1466
 
1467
# Find the source files, if location was not specified.
1468
if test -z "$srcdir"; then
1469
  ac_srcdir_defaulted=yes
1470
  # Try the directory containing this script, then the parent directory.
1471
  ac_confdir=`$as_dirname -- "$as_myself" ||
1472
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1473
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1474
	 X"$as_myself" : 'X\(//\)$' \| \
1475
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1476
$as_echo X"$as_myself" |
1477
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1478
	    s//\1/
1479
	    q
1480
	  }
1481
	  /^X\(\/\/\)[^/].*/{
1482
	    s//\1/
1483
	    q
1484
	  }
1485
	  /^X\(\/\/\)$/{
1486
	    s//\1/
1487
	    q
1488
	  }
1489
	  /^X\(\/\).*/{
1490
	    s//\1/
1491
	    q
1492
	  }
1493
	  s/.*/./; q'`
1494
  srcdir=$ac_confdir
1495
  if test ! -r "$srcdir/$ac_unique_file"; then
1496
    srcdir=..
1497
  fi
1498
else
1499
  ac_srcdir_defaulted=no
1500
fi
1501
if test ! -r "$srcdir/$ac_unique_file"; then
1502
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1503
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1504
fi
1505
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506
ac_abs_confdir=`(
1507
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1508
	pwd)`
1509
# When building in place, set srcdir=.
1510
if test "$ac_abs_confdir" = "$ac_pwd"; then
1511
  srcdir=.
1512
fi
1513
# Remove unnecessary trailing slashes from srcdir.
1514
# Double slashes in file names in object file debugging info
1515
# mess up M-x gdb in Emacs.
1516
case $srcdir in
1517
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518
esac
1519
for ac_var in $ac_precious_vars; do
1520
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1521
  eval ac_env_${ac_var}_value=\$${ac_var}
1522
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1523
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524
done
1525
 
1526
#
1527
# Report the --help message.
1528
#
1529
if test "$ac_init_help" = "long"; then
1530
  # Omit some internal or obsolete options to make the list less imposing.
1531
  # This message is too long to be a string in the A/UX 3.1 sh.
1532
  cat <<_ACEOF
1533
\`configure' configures thrift 0.2.0 to adapt to many kinds of systems.
1534
 
1535
Usage: $0 [OPTION]... [VAR=VALUE]...
1536
 
1537
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1538
VAR=VALUE.  See below for descriptions of some of the useful variables.
1539
 
1540
Defaults for the options are specified in brackets.
1541
 
1542
Configuration:
1543
  -h, --help              display this help and exit
1544
      --help=short        display options specific to this package
1545
      --help=recursive    display the short help of all the included packages
1546
  -V, --version           display version information and exit
1547
  -q, --quiet, --silent   do not print \`checking...' messages
1548
      --cache-file=FILE   cache test results in FILE [disabled]
1549
  -C, --config-cache      alias for \`--cache-file=config.cache'
1550
  -n, --no-create         do not create output files
1551
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1552
 
1553
Installation directories:
1554
  --prefix=PREFIX         install architecture-independent files in PREFIX
1555
                          [$ac_default_prefix]
1556
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1557
                          [PREFIX]
1558
 
1559
By default, \`make install' will install all the files in
1560
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1561
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1562
for instance \`--prefix=\$HOME'.
1563
 
1564
For better control, use the options below.
1565
 
1566
Fine tuning of the installation directories:
1567
  --bindir=DIR            user executables [EPREFIX/bin]
1568
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1569
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1570
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1571
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1572
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1573
  --libdir=DIR            object code libraries [EPREFIX/lib]
1574
  --includedir=DIR        C header files [PREFIX/include]
1575
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1576
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1577
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1578
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1579
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1580
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1581
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/thrift@:>@
1582
  --htmldir=DIR           html documentation [DOCDIR]
1583
  --dvidir=DIR            dvi documentation [DOCDIR]
1584
  --pdfdir=DIR            pdf documentation [DOCDIR]
1585
  --psdir=DIR             ps documentation [DOCDIR]
1586
_ACEOF
1587
 
1588
  cat <<\_ACEOF
1589
 
1590
Program names:
1591
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1592
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1593
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1594
 
1595
System types:
1596
  --build=BUILD     configure for building on BUILD [guessed]
1597
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1598
_ACEOF
1599
fi
1600
 
1601
if test -n "$ac_init_help"; then
1602
  case $ac_init_help in
1603
     short | recursive ) echo "Configuration of thrift 0.2.0:";;
1604
   esac
1605
  cat <<\_ACEOF
1606
 
1607
Optional Features:
1608
  --disable-option-checking  ignore unrecognized --enable/--with options
1609
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1610
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1611
  --disable-dependency-tracking  speeds up one-time build
1612
  --enable-dependency-tracking   do not reject slow dependency extractors
1613
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1614
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1615
  --enable-fast-install@<:@=PKGS@:>@ 
1616
                          optimize for fast installation @<:@default=yes@:>@
1617
  --disable-libtool-lock  avoid locking (might break parallel builds)
1618
  --enable-gen-cpp        enable the C++ compiler @<:@default=yes@:>@
1619
  --enable-gen-java       enable the Java compiler @<:@default=yes@:>@
1620
  --enable-gen-csharp     enable the C# compiler @<:@default=yes@:>@
1621
  --enable-gen-py         enable the Python compiler @<:@default=yes@:>@
1622
  --enable-gen-rb         enable the Ruby compiler @<:@default=yes@:>@
1623
  --enable-gen-perl       enable the Perl compiler @<:@default=yes@:>@
1624
  --enable-gen-php        enable the PHP compiler @<:@default=yes@:>@
1625
  --enable-gen-erl        enable the Erlang compiler @<:@default=yes@:>@
1626
  --enable-gen-cocoa      enable the Cocoa compiler @<:@default=yes@:>@
1627
  --enable-gen-st         enable the Smalltalk compiler @<:@default=yes@:>@
1628
  --enable-gen-ocaml      enable the OCaml compiler @<:@default=yes@:>@
1629
  --enable-gen-hs         enable the Haskell compiler @<:@default=yes@:>@
1630
  --enable-gen-xsd        enable the XSD compiler @<:@default=yes@:>@
1631
  --enable-gen-html       enable the HTML compiler @<:@default=yes@:>@
1632
 
1633
Optional Packages:
1634
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1637
                          both@:>@
1638
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1639
  --with-boost@<:@=DIR@:>@      use boost (default is yes) - it is possible to
1640
                          specify the root directory for boost (optional)
1641
  --with-libevent@<:@=DIR@:>@   use libevent (default is yes) - it is possible to
1642
                          specify an alternate root directory for libevent
1643
  --with-zlib@<:@=DIR@:>@       use zlib (default is yes) - it is possible to
1644
                          specify an alternate root directory for zlib
1645
  --with-csharp           build the C# library @<:@default=yes@:>@
1646
  --with-java             build the Java library @<:@default=yes@:>@
1647
  --with-erlang           build the Erlang library @<:@default=yes@:>@
1648
  --with-py               build the Python library @<:@default=yes@:>@
1649
  --with-perl             build the Perl library @<:@default=yes@:>@
1650
  --with-ruby             build the Ruby library @<:@default=yes@:>@
1651
 
1652
Some influential environment variables:
1653
  PY_PREFIX   Prefix for installing Python modules. (Normal --prefix is
1654
              ignored for Python because Python has different conventions.)
1655
              Default = "/usr"
1656
  JAVA_PREFIX Prefix for installing the Java lib jar. (Normal --prefix is
1657
              ignored for Java because Java has different conevntions.)
1658
              Default = "/usr/local/lib"
1659
  CC          C compiler command
1660
  CFLAGS      C compiler flags
1661
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1662
              nonstandard directory <lib dir>
1663
  LIBS        libraries to pass to the linker, e.g. -l<library>
1664
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1665
              you have headers in a nonstandard directory <include dir>
1666
  CPP         C preprocessor
1667
  CXX         C++ compiler command
1668
  CXXFLAGS    C++ compiler flags
1669
  CXXCPP      C++ preprocessor
1670
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1671
              the first program found out of: `bison -y', `byacc', `yacc'.
1672
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1673
              This script will default YFLAGS to the empty string to avoid a
1674
              default value of `-d' given by some make applications.
1675
  PKG_CONFIG  path to pkg-config utility
1676
  MONO_CFLAGS C compiler flags for MONO, overriding pkg-config
1677
  MONO_LIBS   linker flags for MONO, overriding pkg-config
1678
 
1679
Use these variables to override the choices made by `configure' or to help
1680
it to find libraries and programs with nonstandard names/locations.
1681
 
1682
Report bugs to the package provider.
1683
_ACEOF
1684
ac_status=$?
1685
fi
1686
 
1687
if test "$ac_init_help" = "recursive"; then
1688
  # If there are subdirs, report their specific --help.
1689
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690
    test -d "$ac_dir" ||
1691
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692
      continue
1693
    ac_builddir=.
1694
 
1695
case "$ac_dir" in
1696
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697
*)
1698
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699
  # A ".." for each directory in $ac_dir_suffix.
1700
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701
  case $ac_top_builddir_sub in
1702
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704
  esac ;;
1705
esac
1706
ac_abs_top_builddir=$ac_pwd
1707
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708
# for backward compatibility:
1709
ac_top_builddir=$ac_top_build_prefix
1710
 
1711
case $srcdir in
1712
  .)  # We are building in place.
1713
    ac_srcdir=.
1714
    ac_top_srcdir=$ac_top_builddir_sub
1715
    ac_abs_top_srcdir=$ac_pwd ;;
1716
  [\\/]* | ?:[\\/]* )  # Absolute name.
1717
    ac_srcdir=$srcdir$ac_dir_suffix;
1718
    ac_top_srcdir=$srcdir
1719
    ac_abs_top_srcdir=$srcdir ;;
1720
  *) # Relative name.
1721
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1723
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724
esac
1725
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726
 
1727
    cd "$ac_dir" || { ac_status=$?; continue; }
1728
    # Check for guested configure.
1729
    if test -f "$ac_srcdir/configure.gnu"; then
1730
      echo &&
1731
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732
    elif test -f "$ac_srcdir/configure"; then
1733
      echo &&
1734
      $SHELL "$ac_srcdir/configure" --help=recursive
1735
    else
1736
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737
    fi || ac_status=$?
1738
    cd "$ac_pwd" || { ac_status=$?; break; }
1739
  done
1740
fi
1741
 
1742
test -n "$ac_init_help" && exit $ac_status
1743
if $ac_init_version; then
1744
  cat <<\_ACEOF
1745
thrift configure 0.2.0
1746
generated by GNU Autoconf 2.64
1747
 
1748
Copyright (C) 2009 Free Software Foundation, Inc.
1749
This configure script is free software; the Free Software Foundation
1750
gives unlimited permission to copy, distribute and modify it.
1751
_ACEOF
1752
  exit
1753
fi
1754
 
1755
## ------------------------ ##
1756
## Autoconf initialization. ##
1757
## ------------------------ ##
1758
 
1759
@%:@ ac_fn_c_try_compile LINENO
1760
@%:@ --------------------------
1761
@%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1762
ac_fn_c_try_compile ()
1763
{
1764
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765
  rm -f conftest.$ac_objext
1766
  if { { ac_try="$ac_compile"
1767
case "(($ac_try" in
1768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769
  *) ac_try_echo=$ac_try;;
1770
esac
1771
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772
$as_echo "$ac_try_echo"; } >&5
1773
  (eval "$ac_compile") 2>conftest.err
1774
  ac_status=$?
1775
  if test -s conftest.err; then
1776
    grep -v '^ *+' conftest.err >conftest.er1
1777
    cat conftest.er1 >&5
1778
    mv -f conftest.er1 conftest.err
1779
  fi
1780
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781
  test $ac_status = 0; } && {
1782
	 test -z "$ac_c_werror_flag" ||
1783
	 test ! -s conftest.err
1784
       } && test -s conftest.$ac_objext; then :
1785
  ac_retval=0
1786
else
1787
  $as_echo "$as_me: failed program was:" >&5
1788
sed 's/^/| /' conftest.$ac_ext >&5
1789
 
1790
	ac_retval=1
1791
fi
1792
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793
  return $ac_retval
1794
 
1795
} @%:@ ac_fn_c_try_compile
1796
 
1797
@%:@ ac_fn_c_try_cpp LINENO
1798
@%:@ ----------------------
1799
@%:@ Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800
ac_fn_c_try_cpp ()
1801
{
1802
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1804
case "(($ac_try" in
1805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806
  *) ac_try_echo=$ac_try;;
1807
esac
1808
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809
$as_echo "$ac_try_echo"; } >&5
1810
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811
  ac_status=$?
1812
  if test -s conftest.err; then
1813
    grep -v '^ *+' conftest.err >conftest.er1
1814
    cat conftest.er1 >&5
1815
    mv -f conftest.er1 conftest.err
1816
  fi
1817
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818
  test $ac_status = 0; } >/dev/null && {
1819
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820
	 test ! -s conftest.err
1821
       }; then :
1822
  ac_retval=0
1823
else
1824
  $as_echo "$as_me: failed program was:" >&5
1825
sed 's/^/| /' conftest.$ac_ext >&5
1826
 
1827
    ac_retval=1
1828
fi
1829
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830
  return $ac_retval
1831
 
1832
} @%:@ ac_fn_c_try_cpp
1833
 
1834
@%:@ ac_fn_cxx_try_compile LINENO
1835
@%:@ ----------------------------
1836
@%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1837
ac_fn_cxx_try_compile ()
1838
{
1839
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840
  rm -f conftest.$ac_objext
1841
  if { { ac_try="$ac_compile"
1842
case "(($ac_try" in
1843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844
  *) ac_try_echo=$ac_try;;
1845
esac
1846
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847
$as_echo "$ac_try_echo"; } >&5
1848
  (eval "$ac_compile") 2>conftest.err
1849
  ac_status=$?
1850
  if test -s conftest.err; then
1851
    grep -v '^ *+' conftest.err >conftest.er1
1852
    cat conftest.er1 >&5
1853
    mv -f conftest.er1 conftest.err
1854
  fi
1855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856
  test $ac_status = 0; } && {
1857
	 test -z "$ac_cxx_werror_flag" ||
1858
	 test ! -s conftest.err
1859
       } && test -s conftest.$ac_objext; then :
1860
  ac_retval=0
1861
else
1862
  $as_echo "$as_me: failed program was:" >&5
1863
sed 's/^/| /' conftest.$ac_ext >&5
1864
 
1865
	ac_retval=1
1866
fi
1867
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
  return $ac_retval
1869
 
1870
} @%:@ ac_fn_cxx_try_compile
1871
 
1872
@%:@ ac_fn_c_try_link LINENO
1873
@%:@ -----------------------
1874
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded.
1875
ac_fn_c_try_link ()
1876
{
1877
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878
  rm -f conftest.$ac_objext conftest$ac_exeext
1879
  if { { ac_try="$ac_link"
1880
case "(($ac_try" in
1881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882
  *) ac_try_echo=$ac_try;;
1883
esac
1884
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885
$as_echo "$ac_try_echo"; } >&5
1886
  (eval "$ac_link") 2>conftest.err
1887
  ac_status=$?
1888
  if test -s conftest.err; then
1889
    grep -v '^ *+' conftest.err >conftest.er1
1890
    cat conftest.er1 >&5
1891
    mv -f conftest.er1 conftest.err
1892
  fi
1893
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894
  test $ac_status = 0; } && {
1895
	 test -z "$ac_c_werror_flag" ||
1896
	 test ! -s conftest.err
1897
       } && test -s conftest$ac_exeext && {
1898
	 test "$cross_compiling" = yes ||
1899
	 $as_test_x conftest$ac_exeext
1900
       }; then :
1901
  ac_retval=0
1902
else
1903
  $as_echo "$as_me: failed program was:" >&5
1904
sed 's/^/| /' conftest.$ac_ext >&5
1905
 
1906
	ac_retval=1
1907
fi
1908
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910
  # interfere with the next link command; also delete a directory that is
1911
  # left behind by Apple's compiler.  We do this before executing the actions.
1912
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914
  return $ac_retval
1915
 
1916
} @%:@ ac_fn_c_try_link
1917
 
1918
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1919
@%:@ -------------------------------------------------------
1920
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1921
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1922
ac_fn_c_check_header_compile ()
1923
{
1924
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926
$as_echo_n "checking for $2... " >&6; }
1927
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928
  $as_echo_n "(cached) " >&6
1929
else
1930
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931
/* end confdefs.h.  */
1932
$4
1933
@%:@include <$2>
1934
_ACEOF
1935
if ac_fn_c_try_compile "$LINENO"; then :
1936
  eval "$3=yes"
1937
else
1938
  eval "$3=no"
1939
fi
1940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941
fi
1942
eval ac_res=\$$3
1943
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944
$as_echo "$ac_res" >&6; }
1945
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
 
1947
} @%:@ ac_fn_c_check_header_compile
1948
 
1949
@%:@ ac_fn_c_try_run LINENO
1950
@%:@ ----------------------
1951
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1952
@%:@ that executables *can* be run.
1953
ac_fn_c_try_run ()
1954
{
1955
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956
  if { { ac_try="$ac_link"
1957
case "(($ac_try" in
1958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959
  *) ac_try_echo=$ac_try;;
1960
esac
1961
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962
$as_echo "$ac_try_echo"; } >&5
1963
  (eval "$ac_link") 2>&5
1964
  ac_status=$?
1965
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1967
  { { case "(($ac_try" in
1968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969
  *) ac_try_echo=$ac_try;;
1970
esac
1971
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972
$as_echo "$ac_try_echo"; } >&5
1973
  (eval "$ac_try") 2>&5
1974
  ac_status=$?
1975
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976
  test $ac_status = 0; }; }; then :
1977
  ac_retval=0
1978
else
1979
  $as_echo "$as_me: program exited with status $ac_status" >&5
1980
       $as_echo "$as_me: failed program was:" >&5
1981
sed 's/^/| /' conftest.$ac_ext >&5
1982
 
1983
       ac_retval=$ac_status
1984
fi
1985
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987
  return $ac_retval
1988
 
1989
} @%:@ ac_fn_c_try_run
1990
 
1991
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1992
@%:@ ----------------------------------
1993
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1994
ac_fn_c_check_func ()
1995
{
1996
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998
$as_echo_n "checking for $2... " >&6; }
1999
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000
  $as_echo_n "(cached) " >&6
2001
else
2002
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003
/* end confdefs.h.  */
2004
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2006
#define $2 innocuous_$2
2007
 
2008
/* System header to define __stub macros and hopefully few prototypes,
2009
    which can conflict with char $2 (); below.
2010
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011
    <limits.h> exists even on freestanding compilers.  */
2012
 
2013
#ifdef __STDC__
2014
# include <limits.h>
2015
#else
2016
# include <assert.h>
2017
#endif
2018
 
2019
#undef $2
2020
 
2021
/* Override any GCC internal prototype to avoid an error.
2022
   Use char because int might match the return type of a GCC
2023
   builtin and then its argument prototype would still apply.  */
2024
#ifdef __cplusplus
2025
extern "C"
2026
#endif
2027
char $2 ();
2028
/* The GNU C library defines this for functions which it implements
2029
    to always fail with ENOSYS.  Some functions are actually named
2030
    something starting with __ and the normal name is an alias.  */
2031
#if defined __stub_$2 || defined __stub___$2
2032
choke me
2033
#endif
2034
 
2035
int
2036
main ()
2037
{
2038
return $2 ();
2039
  ;
2040
  return 0;
2041
}
2042
_ACEOF
2043
if ac_fn_c_try_link "$LINENO"; then :
2044
  eval "$3=yes"
2045
else
2046
  eval "$3=no"
2047
fi
2048
rm -f core conftest.err conftest.$ac_objext \
2049
    conftest$ac_exeext conftest.$ac_ext
2050
fi
2051
eval ac_res=\$$3
2052
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053
$as_echo "$ac_res" >&6; }
2054
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055
 
2056
} @%:@ ac_fn_c_check_func
2057
 
2058
@%:@ ac_fn_cxx_try_cpp LINENO
2059
@%:@ ------------------------
2060
@%:@ Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2061
ac_fn_cxx_try_cpp ()
2062
{
2063
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2065
case "(($ac_try" in
2066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067
  *) ac_try_echo=$ac_try;;
2068
esac
2069
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070
$as_echo "$ac_try_echo"; } >&5
2071
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2072
  ac_status=$?
2073
  if test -s conftest.err; then
2074
    grep -v '^ *+' conftest.err >conftest.er1
2075
    cat conftest.er1 >&5
2076
    mv -f conftest.er1 conftest.err
2077
  fi
2078
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079
  test $ac_status = 0; } >/dev/null && {
2080
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2081
	 test ! -s conftest.err
2082
       }; then :
2083
  ac_retval=0
2084
else
2085
  $as_echo "$as_me: failed program was:" >&5
2086
sed 's/^/| /' conftest.$ac_ext >&5
2087
 
2088
    ac_retval=1
2089
fi
2090
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091
  return $ac_retval
2092
 
2093
} @%:@ ac_fn_cxx_try_cpp
2094
 
2095
@%:@ ac_fn_cxx_try_link LINENO
2096
@%:@ -------------------------
2097
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded.
2098
ac_fn_cxx_try_link ()
2099
{
2100
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101
  rm -f conftest.$ac_objext conftest$ac_exeext
2102
  if { { ac_try="$ac_link"
2103
case "(($ac_try" in
2104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105
  *) ac_try_echo=$ac_try;;
2106
esac
2107
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108
$as_echo "$ac_try_echo"; } >&5
2109
  (eval "$ac_link") 2>conftest.err
2110
  ac_status=$?
2111
  if test -s conftest.err; then
2112
    grep -v '^ *+' conftest.err >conftest.er1
2113
    cat conftest.er1 >&5
2114
    mv -f conftest.er1 conftest.err
2115
  fi
2116
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117
  test $ac_status = 0; } && {
2118
	 test -z "$ac_cxx_werror_flag" ||
2119
	 test ! -s conftest.err
2120
       } && test -s conftest$ac_exeext && {
2121
	 test "$cross_compiling" = yes ||
2122
	 $as_test_x conftest$ac_exeext
2123
       }; then :
2124
  ac_retval=0
2125
else
2126
  $as_echo "$as_me: failed program was:" >&5
2127
sed 's/^/| /' conftest.$ac_ext >&5
2128
 
2129
	ac_retval=1
2130
fi
2131
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2132
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2133
  # interfere with the next link command; also delete a directory that is
2134
  # left behind by Apple's compiler.  We do this before executing the actions.
2135
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2136
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137
  return $ac_retval
2138
 
2139
} @%:@ ac_fn_cxx_try_link
2140
 
2141
@%:@ ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2142
@%:@ ---------------------------------------------
2143
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2144
@%:@ variable VAR accordingly.
2145
ac_fn_cxx_check_type ()
2146
{
2147
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149
$as_echo_n "checking for $2... " >&6; }
2150
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2151
  $as_echo_n "(cached) " >&6
2152
else
2153
  eval "$3=no"
2154
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155
/* end confdefs.h.  */
2156
$4
2157
int
2158
main ()
2159
{
2160
if (sizeof ($2))
2161
	 return 0;
2162
  ;
2163
  return 0;
2164
}
2165
_ACEOF
2166
if ac_fn_cxx_try_compile "$LINENO"; then :
2167
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168
/* end confdefs.h.  */
2169
$4
2170
int
2171
main ()
2172
{
2173
if (sizeof (($2)))
2174
	    return 0;
2175
  ;
2176
  return 0;
2177
}
2178
_ACEOF
2179
if ac_fn_cxx_try_compile "$LINENO"; then :
2180
 
2181
else
2182
  eval "$3=yes"
2183
fi
2184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185
fi
2186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187
fi
2188
eval ac_res=\$$3
2189
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190
$as_echo "$ac_res" >&6; }
2191
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192
 
2193
} @%:@ ac_fn_cxx_check_type
2194
 
2195
@%:@ ac_fn_cxx_try_run LINENO
2196
@%:@ ------------------------
2197
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2198
@%:@ that executables *can* be run.
2199
ac_fn_cxx_try_run ()
2200
{
2201
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202
  if { { ac_try="$ac_link"
2203
case "(($ac_try" in
2204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205
  *) ac_try_echo=$ac_try;;
2206
esac
2207
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208
$as_echo "$ac_try_echo"; } >&5
2209
  (eval "$ac_link") 2>&5
2210
  ac_status=$?
2211
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2213
  { { case "(($ac_try" in
2214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215
  *) ac_try_echo=$ac_try;;
2216
esac
2217
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218
$as_echo "$ac_try_echo"; } >&5
2219
  (eval "$ac_try") 2>&5
2220
  ac_status=$?
2221
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222
  test $ac_status = 0; }; }; then :
2223
  ac_retval=0
2224
else
2225
  $as_echo "$as_me: program exited with status $ac_status" >&5
2226
       $as_echo "$as_me: failed program was:" >&5
2227
sed 's/^/| /' conftest.$ac_ext >&5
2228
 
2229
       ac_retval=$ac_status
2230
fi
2231
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2232
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233
  return $ac_retval
2234
 
2235
} @%:@ ac_fn_cxx_try_run
2236
 
2237
@%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2238
@%:@ ---------------------------------------------------------
2239
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
2240
@%:@ the include files in INCLUDES and setting the cache variable VAR
2241
@%:@ accordingly.
2242
ac_fn_cxx_check_header_mongrel ()
2243
{
2244
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247
$as_echo_n "checking for $2... " >&6; }
2248
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249
  $as_echo_n "(cached) " >&6
2250
fi
2251
eval ac_res=\$$3
2252
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253
$as_echo "$ac_res" >&6; }
2254
else
2255
  # Is the header compilable?
2256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2257
$as_echo_n "checking $2 usability... " >&6; }
2258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259
/* end confdefs.h.  */
2260
$4
2261
@%:@include <$2>
2262
_ACEOF
2263
if ac_fn_cxx_try_compile "$LINENO"; then :
2264
  ac_header_compiler=yes
2265
else
2266
  ac_header_compiler=no
2267
fi
2268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2270
$as_echo "$ac_header_compiler" >&6; }
2271
 
2272
# Is the header present?
2273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2274
$as_echo_n "checking $2 presence... " >&6; }
2275
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276
/* end confdefs.h.  */
2277
@%:@include <$2>
2278
_ACEOF
2279
if ac_fn_cxx_try_cpp "$LINENO"; then :
2280
  ac_header_preproc=yes
2281
else
2282
  ac_header_preproc=no
2283
fi
2284
rm -f conftest.err conftest.$ac_ext
2285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2286
$as_echo "$ac_header_preproc" >&6; }
2287
 
2288
# So?  What about this header?
2289
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2290
  yes:no: )
2291
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2292
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2293
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2294
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295
    ;;
2296
  no:yes:* )
2297
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2298
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2299
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2300
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2301
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2302
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2303
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2304
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2305
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2307
    ;;
2308
esac
2309
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310
$as_echo_n "checking for $2... " >&6; }
2311
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312
  $as_echo_n "(cached) " >&6
2313
else
2314
  eval "$3=\$ac_header_compiler"
2315
fi
2316
eval ac_res=\$$3
2317
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318
$as_echo "$ac_res" >&6; }
2319
fi
2320
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321
 
2322
} @%:@ ac_fn_cxx_check_header_mongrel
2323
 
2324
@%:@ ac_fn_c_find_intX_t LINENO BITS VAR
2325
@%:@ -----------------------------------
2326
@%:@ Finds a signed integer type with width BITS, setting cache variable VAR
2327
@%:@ accordingly.
2328
ac_fn_c_find_intX_t ()
2329
{
2330
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2332
$as_echo_n "checking for int$2_t... " >&6; }
2333
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334
  $as_echo_n "(cached) " >&6
2335
else
2336
  eval "$3=no"
2337
     for ac_type in int$2_t 'int' 'long int' \
2338
	 'long long int' 'short int' 'signed char'; do
2339
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340
/* end confdefs.h.  */
2341
$ac_includes_default
2342
int
2343
main ()
2344
{
2345
static int test_array @<:@1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))@:>@;
2346
test_array @<:@0@:>@ = 0
2347
 
2348
  ;
2349
  return 0;
2350
}
2351
_ACEOF
2352
if ac_fn_cxx_try_compile "$LINENO"; then :
2353
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354
/* end confdefs.h.  */
2355
$ac_includes_default
2356
int
2357
main ()
2358
{
2359
static int test_array @<:@1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2360
		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))@:>@;
2361
test_array @<:@0@:>@ = 0
2362
 
2363
  ;
2364
  return 0;
2365
}
2366
_ACEOF
2367
if ac_fn_cxx_try_compile "$LINENO"; then :
2368
 
2369
else
2370
  case $ac_type in @%:@(
2371
  int$2_t) :
2372
    eval "$3=yes" ;; @%:@(
2373
  *) :
2374
    eval "$3=\$ac_type" ;;
2375
esac
2376
fi
2377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378
fi
2379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380
       eval as_val=\$$3
2381
   if test "x$as_val" = x""no; then :
2382
 
2383
else
2384
  break
2385
fi
2386
     done
2387
fi
2388
eval ac_res=\$$3
2389
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390
$as_echo "$ac_res" >&6; }
2391
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392
 
2393
} @%:@ ac_fn_c_find_intX_t
2394
 
2395
@%:@ ac_fn_c_find_uintX_t LINENO BITS VAR
2396
@%:@ ------------------------------------
2397
@%:@ Finds an unsigned integer type with width BITS, setting cache variable VAR
2398
@%:@ accordingly.
2399
ac_fn_c_find_uintX_t ()
2400
{
2401
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403
$as_echo_n "checking for uint$2_t... " >&6; }
2404
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405
  $as_echo_n "(cached) " >&6
2406
else
2407
  eval "$3=no"
2408
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409
	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411
/* end confdefs.h.  */
2412
$ac_includes_default
2413
int
2414
main ()
2415
{
2416
static int test_array @<:@1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)@:>@;
2417
test_array @<:@0@:>@ = 0
2418
 
2419
  ;
2420
  return 0;
2421
}
2422
_ACEOF
2423
if ac_fn_cxx_try_compile "$LINENO"; then :
2424
  case $ac_type in @%:@(
2425
  uint$2_t) :
2426
    eval "$3=yes" ;; @%:@(
2427
  *) :
2428
    eval "$3=\$ac_type" ;;
2429
esac
2430
fi
2431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432
       eval as_val=\$$3
2433
   if test "x$as_val" = x""no; then :
2434
 
2435
else
2436
  break
2437
fi
2438
     done
2439
fi
2440
eval ac_res=\$$3
2441
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442
$as_echo "$ac_res" >&6; }
2443
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
 
2445
} @%:@ ac_fn_c_find_uintX_t
2446
 
2447
@%:@ ac_fn_cxx_check_decl LINENO SYMBOL VAR
2448
@%:@ --------------------------------------
2449
@%:@ Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2450
ac_fn_cxx_check_decl ()
2451
{
2452
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2454
$as_echo_n "checking whether $2 is declared... " >&6; }
2455
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456
  $as_echo_n "(cached) " >&6
2457
else
2458
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459
/* end confdefs.h.  */
2460
$4
2461
int
2462
main ()
2463
{
2464
@%:@ifndef $2
2465
  (void) $2;
2466
@%:@endif
2467
 
2468
  ;
2469
  return 0;
2470
}
2471
_ACEOF
2472
if ac_fn_cxx_try_compile "$LINENO"; then :
2473
  eval "$3=yes"
2474
else
2475
  eval "$3=no"
2476
fi
2477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478
fi
2479
eval ac_res=\$$3
2480
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481
$as_echo "$ac_res" >&6; }
2482
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483
 
2484
} @%:@ ac_fn_cxx_check_decl
2485
 
2486
@%:@ ac_fn_cxx_check_func LINENO FUNC VAR
2487
@%:@ ------------------------------------
2488
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2489
ac_fn_cxx_check_func ()
2490
{
2491
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493
$as_echo_n "checking for $2... " >&6; }
2494
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2495
  $as_echo_n "(cached) " >&6
2496
else
2497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498
/* end confdefs.h.  */
2499
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2500
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2501
#define $2 innocuous_$2
2502
 
2503
/* System header to define __stub macros and hopefully few prototypes,
2504
    which can conflict with char $2 (); below.
2505
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2506
    <limits.h> exists even on freestanding compilers.  */
2507
 
2508
#ifdef __STDC__
2509
# include <limits.h>
2510
#else
2511
# include <assert.h>
2512
#endif
2513
 
2514
#undef $2
2515
 
2516
/* Override any GCC internal prototype to avoid an error.
2517
   Use char because int might match the return type of a GCC
2518
   builtin and then its argument prototype would still apply.  */
2519
#ifdef __cplusplus
2520
extern "C"
2521
#endif
2522
char $2 ();
2523
/* The GNU C library defines this for functions which it implements
2524
    to always fail with ENOSYS.  Some functions are actually named
2525
    something starting with __ and the normal name is an alias.  */
2526
#if defined __stub_$2 || defined __stub___$2
2527
choke me
2528
#endif
2529
 
2530
int
2531
main ()
2532
{
2533
return $2 ();
2534
  ;
2535
  return 0;
2536
}
2537
_ACEOF
2538
if ac_fn_cxx_try_link "$LINENO"; then :
2539
  eval "$3=yes"
2540
else
2541
  eval "$3=no"
2542
fi
2543
rm -f core conftest.err conftest.$ac_objext \
2544
    conftest$ac_exeext conftest.$ac_ext
2545
fi
2546
eval ac_res=\$$3
2547
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548
$as_echo "$ac_res" >&6; }
2549
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550
 
2551
} @%:@ ac_fn_cxx_check_func
2552
cat >config.log <<_ACEOF
2553
This file contains any messages produced by compilers while
2554
running configure, to aid debugging if configure makes a mistake.
2555
 
2556
It was created by thrift $as_me 0.2.0, which was
2557
generated by GNU Autoconf 2.64.  Invocation command line was
2558
 
2559
  $ $0 $@
2560
 
2561
_ACEOF
2562
exec 5>>config.log
2563
{
2564
cat <<_ASUNAME
2565
## --------- ##
2566
## Platform. ##
2567
## --------- ##
2568
 
2569
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2570
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2571
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2572
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2573
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2574
 
2575
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2576
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2577
 
2578
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2579
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2580
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2581
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2582
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2583
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2584
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2585
 
2586
_ASUNAME
2587
 
2588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589
for as_dir in $PATH
2590
do
2591
  IFS=$as_save_IFS
2592
  test -z "$as_dir" && as_dir=.
2593
    $as_echo "PATH: $as_dir"
2594
  done
2595
IFS=$as_save_IFS
2596
 
2597
} >&5
2598
 
2599
cat >&5 <<_ACEOF
2600
 
2601
 
2602
## ----------- ##
2603
## Core tests. ##
2604
## ----------- ##
2605
 
2606
_ACEOF
2607
 
2608
 
2609
# Keep a trace of the command line.
2610
# Strip out --no-create and --no-recursion so they do not pile up.
2611
# Strip out --silent because we don't want to record it for future runs.
2612
# Also quote any args containing shell meta-characters.
2613
# Make two passes to allow for proper duplicate-argument suppression.
2614
ac_configure_args=
2615
ac_configure_args0=
2616
ac_configure_args1=
2617
ac_must_keep_next=false
2618
for ac_pass in 1 2
2619
do
2620
  for ac_arg
2621
  do
2622
    case $ac_arg in
2623
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2624
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2625
    | -silent | --silent | --silen | --sile | --sil)
2626
      continue ;;
2627
    *\'*)
2628
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2629
    esac
2630
    case $ac_pass in
2631
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2632
    2)
2633
      as_fn_append ac_configure_args1 " '$ac_arg'"
2634
      if test $ac_must_keep_next = true; then
2635
	ac_must_keep_next=false # Got value, back to normal.
2636
      else
2637
	case $ac_arg in
2638
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2639
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2640
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2641
	  | -with-* | --with-* | -without-* | --without-* | --x)
2642
	    case "$ac_configure_args0 " in
2643
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2644
	    esac
2645
	    ;;
2646
	  -* ) ac_must_keep_next=true ;;
2647
	esac
2648
      fi
2649
      as_fn_append ac_configure_args " '$ac_arg'"
2650
      ;;
2651
    esac
2652
  done
2653
done
2654
{ ac_configure_args0=; unset ac_configure_args0;}
2655
{ ac_configure_args1=; unset ac_configure_args1;}
2656
 
2657
# When interrupted or exit'd, cleanup temporary files, and complete
2658
# config.log.  We remove comments because anyway the quotes in there
2659
# would cause problems or look ugly.
2660
# WARNING: Use '\'' to represent an apostrophe within the trap.
2661
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2662
trap 'exit_status=$?
2663
  # Save into config.log some information that might help in debugging.
2664
  {
2665
    echo
2666
 
2667
    cat <<\_ASBOX
2668
## ---------------- ##
2669
## Cache variables. ##
2670
## ---------------- ##
2671
_ASBOX
2672
    echo
2673
    # The following way of writing the cache mishandles newlines in values,
2674
(
2675
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2676
    eval ac_val=\$$ac_var
2677
    case $ac_val in #(
2678
    *${as_nl}*)
2679
      case $ac_var in #(
2680
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2681
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2682
      esac
2683
      case $ac_var in #(
2684
      _ | IFS | as_nl) ;; #(
2685
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2686
      *) { eval $ac_var=; unset $ac_var;} ;;
2687
      esac ;;
2688
    esac
2689
  done
2690
  (set) 2>&1 |
2691
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2692
    *${as_nl}ac_space=\ *)
2693
      sed -n \
2694
	"s/'\''/'\''\\\\'\'''\''/g;
2695
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2696
      ;; #(
2697
    *)
2698
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2699
      ;;
2700
    esac |
2701
    sort
2702
)
2703
    echo
2704
 
2705
    cat <<\_ASBOX
2706
## ----------------- ##
2707
## Output variables. ##
2708
## ----------------- ##
2709
_ASBOX
2710
    echo
2711
    for ac_var in $ac_subst_vars
2712
    do
2713
      eval ac_val=\$$ac_var
2714
      case $ac_val in
2715
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2716
      esac
2717
      $as_echo "$ac_var='\''$ac_val'\''"
2718
    done | sort
2719
    echo
2720
 
2721
    if test -n "$ac_subst_files"; then
2722
      cat <<\_ASBOX
2723
## ------------------- ##
2724
## File substitutions. ##
2725
## ------------------- ##
2726
_ASBOX
2727
      echo
2728
      for ac_var in $ac_subst_files
2729
      do
2730
	eval ac_val=\$$ac_var
2731
	case $ac_val in
2732
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2733
	esac
2734
	$as_echo "$ac_var='\''$ac_val'\''"
2735
      done | sort
2736
      echo
2737
    fi
2738
 
2739
    if test -s confdefs.h; then
2740
      cat <<\_ASBOX
2741
## ----------- ##
2742
## confdefs.h. ##
2743
## ----------- ##
2744
_ASBOX
2745
      echo
2746
      cat confdefs.h
2747
      echo
2748
    fi
2749
    test "$ac_signal" != 0 &&
2750
      $as_echo "$as_me: caught signal $ac_signal"
2751
    $as_echo "$as_me: exit $exit_status"
2752
  } >&5
2753
  rm -f core *.core core.conftest.* &&
2754
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2755
    exit $exit_status
2756
' 0
2757
for ac_signal in 1 2 13 15; do
2758
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2759
done
2760
ac_signal=0
2761
 
2762
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2763
rm -f -r conftest* confdefs.h
2764
 
2765
$as_echo "/* confdefs.h */" > confdefs.h
2766
 
2767
# Predefined preprocessor variables.
2768
 
2769
cat >>confdefs.h <<_ACEOF
2770
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2771
_ACEOF
2772
 
2773
cat >>confdefs.h <<_ACEOF
2774
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2775
_ACEOF
2776
 
2777
cat >>confdefs.h <<_ACEOF
2778
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2779
_ACEOF
2780
 
2781
cat >>confdefs.h <<_ACEOF
2782
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2783
_ACEOF
2784
 
2785
cat >>confdefs.h <<_ACEOF
2786
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2787
_ACEOF
2788
 
2789
cat >>confdefs.h <<_ACEOF
2790
@%:@define PACKAGE_URL "$PACKAGE_URL"
2791
_ACEOF
2792
 
2793
 
2794
# Let the site file select an alternate cache file if it wants to.
2795
# Prefer an explicitly selected file to automatically selected ones.
2796
ac_site_file1=NONE
2797
ac_site_file2=NONE
2798
if test -n "$CONFIG_SITE"; then
2799
  ac_site_file1=$CONFIG_SITE
2800
elif test "x$prefix" != xNONE; then
2801
  ac_site_file1=$prefix/share/config.site
2802
  ac_site_file2=$prefix/etc/config.site
2803
else
2804
  ac_site_file1=$ac_default_prefix/share/config.site
2805
  ac_site_file2=$ac_default_prefix/etc/config.site
2806
fi
2807
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2808
do
2809
  test "x$ac_site_file" = xNONE && continue
2810
  if test -r "$ac_site_file"; then
2811
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2812
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2813
    sed 's/^/| /' "$ac_site_file" >&5
2814
    . "$ac_site_file"
2815
  fi
2816
done
2817
 
2818
if test -r "$cache_file"; then
2819
  # Some versions of bash will fail to source /dev/null (special
2820
  # files actually), so we avoid doing that.
2821
  if test -f "$cache_file"; then
2822
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2823
$as_echo "$as_me: loading cache $cache_file" >&6;}
2824
    case $cache_file in
2825
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2826
      *)                      . "./$cache_file";;
2827
    esac
2828
  fi
2829
else
2830
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2831
$as_echo "$as_me: creating cache $cache_file" >&6;}
2832
  >$cache_file
2833
fi
2834
 
2835
# Check that the precious variables saved in the cache have kept the same
2836
# value.
2837
ac_cache_corrupted=false
2838
for ac_var in $ac_precious_vars; do
2839
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2840
  eval ac_new_set=\$ac_env_${ac_var}_set
2841
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2842
  eval ac_new_val=\$ac_env_${ac_var}_value
2843
  case $ac_old_set,$ac_new_set in
2844
    set,)
2845
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2846
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2847
      ac_cache_corrupted=: ;;
2848
    ,set)
2849
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2850
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2851
      ac_cache_corrupted=: ;;
2852
    ,);;
2853
    *)
2854
      if test "x$ac_old_val" != "x$ac_new_val"; then
2855
	# differences in whitespace do not lead to failure.
2856
	ac_old_val_w=`echo x $ac_old_val`
2857
	ac_new_val_w=`echo x $ac_new_val`
2858
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2859
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2860
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2861
	  ac_cache_corrupted=:
2862
	else
2863
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2864
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2865
	  eval $ac_var=\$ac_old_val
2866
	fi
2867
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2868
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2869
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2870
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2871
      fi;;
2872
  esac
2873
  # Pass precious variables to config.status.
2874
  if test "$ac_new_set" = set; then
2875
    case $ac_new_val in
2876
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2877
    *) ac_arg=$ac_var=$ac_new_val ;;
2878
    esac
2879
    case " $ac_configure_args " in
2880
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2881
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2882
    esac
2883
  fi
2884
done
2885
if $ac_cache_corrupted; then
2886
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2889
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2890
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2891
fi
2892
## -------------------- ##
2893
## Main body of script. ##
2894
## -------------------- ##
2895
 
2896
ac_ext=c
2897
ac_cpp='$CPP $CPPFLAGS'
2898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901
 
2902
 
2903
 
2904
ac_aux_dir=
2905
for ac_dir in . "$srcdir"/.; do
2906
  for ac_t in install-sh install.sh shtool; do
2907
    if test -f "$ac_dir/$ac_t"; then
2908
      ac_aux_dir=$ac_dir
2909
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2910
      break 2
2911
    fi
2912
  done
2913
done
2914
if test -z "$ac_aux_dir"; then
2915
  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2916
fi
2917
 
2918
# These three variables are undocumented and unsupported,
2919
# and are intended to be withdrawn in a future Autoconf release.
2920
# They can cause serious problems if a builder's source tree is in a directory
2921
# whose full name contains unusual characters.
2922
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2923
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2924
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2925
 
2926
 
2927
 
2928
am__api_version='1.11'
2929
 
2930
# Find a good install program.  We prefer a C program (faster),
2931
# so one script is as good as another.  But avoid the broken or
2932
# incompatible versions:
2933
# SysV /etc/install, /usr/sbin/install
2934
# SunOS /usr/etc/install
2935
# IRIX /sbin/install
2936
# AIX /bin/install
2937
# AmigaOS /C/install, which installs bootblocks on floppy discs
2938
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2939
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2940
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2941
# OS/2's system install, which has a completely different semantic
2942
# ./install, which can be erroneously created by make from ./install.sh.
2943
# Reject install programs that cannot install multiple files.
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2945
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2946
if test -z "$INSTALL"; then
2947
if test "${ac_cv_path_install+set}" = set; then :
2948
  $as_echo_n "(cached) " >&6
2949
else
2950
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951
for as_dir in $PATH
2952
do
2953
  IFS=$as_save_IFS
2954
  test -z "$as_dir" && as_dir=.
2955
    # Account for people who put trailing slashes in PATH elements.
2956
case $as_dir/ in @%:@((
2957
  ./ | .// | /[cC]/* | \
2958
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2960
  /usr/ucb/* ) ;;
2961
  *)
2962
    # OSF1 and SCO ODT 3.0 have their own names for install.
2963
    # Don't use installbsd from OSF since it installs stuff as root
2964
    # by default.
2965
    for ac_prog in ginstall scoinst install; do
2966
      for ac_exec_ext in '' $ac_executable_extensions; do
2967
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2968
	  if test $ac_prog = install &&
2969
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970
	    # AIX install.  It has an incompatible calling convention.
2971
	    :
2972
	  elif test $ac_prog = install &&
2973
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974
	    # program-specific install script used by HP pwplus--don't use.
2975
	    :
2976
	  else
2977
	    rm -rf conftest.one conftest.two conftest.dir
2978
	    echo one > conftest.one
2979
	    echo two > conftest.two
2980
	    mkdir conftest.dir
2981
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2982
	      test -s conftest.one && test -s conftest.two &&
2983
	      test -s conftest.dir/conftest.one &&
2984
	      test -s conftest.dir/conftest.two
2985
	    then
2986
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2987
	      break 3
2988
	    fi
2989
	  fi
2990
	fi
2991
      done
2992
    done
2993
    ;;
2994
esac
2995
 
2996
  done
2997
IFS=$as_save_IFS
2998
 
2999
rm -rf conftest.one conftest.two conftest.dir
3000
 
3001
fi
3002
  if test "${ac_cv_path_install+set}" = set; then
3003
    INSTALL=$ac_cv_path_install
3004
  else
3005
    # As a last resort, use the slow shell script.  Don't cache a
3006
    # value for INSTALL within a source directory, because that will
3007
    # break other packages using the cache if that directory is
3008
    # removed, or if the value is a relative name.
3009
    INSTALL=$ac_install_sh
3010
  fi
3011
fi
3012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3013
$as_echo "$INSTALL" >&6; }
3014
 
3015
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016
# It thinks the first close brace ends the variable substitution.
3017
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3018
 
3019
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3020
 
3021
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3022
 
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3024
$as_echo_n "checking whether build environment is sane... " >&6; }
3025
# Just in case
3026
sleep 1
3027
echo timestamp > conftest.file
3028
# Reject unsafe characters in $srcdir or the absolute working directory
3029
# name.  Accept space and tab only in the latter.
3030
am_lf='
3031
'
3032
case `pwd` in
3033
  *[\\\"\#\$\&\'\`$am_lf]*)
3034
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3035
esac
3036
case $srcdir in
3037
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3038
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3039
esac
3040
 
3041
# Do `set' in a subshell so we don't clobber the current shell's
3042
# arguments.  Must try -L first in case configure is actually a
3043
# symlink; some systems play weird games with the mod time of symlinks
3044
# (eg FreeBSD returns the mod time of the symlink's containing
3045
# directory).
3046
if (
3047
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3048
   if test "$*" = "X"; then
3049
      # -L didn't work.
3050
      set X `ls -t "$srcdir/configure" conftest.file`
3051
   fi
3052
   rm -f conftest.file
3053
   if test "$*" != "X $srcdir/configure conftest.file" \
3054
      && test "$*" != "X conftest.file $srcdir/configure"; then
3055
 
3056
      # If neither matched, then we have a broken ls.  This can happen
3057
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3058
      # broken ls alias from the environment.  This has actually
3059
      # happened.  Such a system could not be considered "sane".
3060
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3061
alias in your environment" "$LINENO" 5
3062
   fi
3063
 
3064
   test "$2" = conftest.file
3065
   )
3066
then
3067
   # Ok.
3068
   :
3069
else
3070
   as_fn_error "newly created file is older than distributed files!
3071
Check your system clock" "$LINENO" 5
3072
fi
3073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074
$as_echo "yes" >&6; }
3075
test "$program_prefix" != NONE &&
3076
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3077
# Use a double $ so make ignores it.
3078
test "$program_suffix" != NONE &&
3079
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3080
# Double any \ or $.
3081
# By default was `s,x,x', remove it if useless.
3082
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3083
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3084
 
3085
# expand $ac_aux_dir to an absolute path
3086
am_aux_dir=`cd $ac_aux_dir && pwd`
3087
 
3088
if test x"${MISSING+set}" != xset; then
3089
  case $am_aux_dir in
3090
  *\ * | *\	*)
3091
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3092
  *)
3093
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3094
  esac
3095
fi
3096
# Use eval to expand $SHELL
3097
if eval "$MISSING --run true"; then
3098
  am_missing_run="$MISSING --run "
3099
else
3100
  am_missing_run=
3101
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3102
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103
fi
3104
 
3105
if test x"${install_sh}" != xset; then
3106
  case $am_aux_dir in
3107
  *\ * | *\	*)
3108
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3109
  *)
3110
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3111
  esac
3112
fi
3113
 
3114
# Installed binaries are usually stripped using `strip' when the user
3115
# run `make install-strip'.  However `strip' might not be the right
3116
# tool to use in cross-compilation environments, therefore Automake
3117
# will honor the `STRIP' environment variable to overrule this program.
3118
if test "$cross_compiling" != no; then
3119
  if test -n "$ac_tool_prefix"; then
3120
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3121
set dummy ${ac_tool_prefix}strip; ac_word=$2
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123
$as_echo_n "checking for $ac_word... " >&6; }
3124
if test "${ac_cv_prog_STRIP+set}" = set; then :
3125
  $as_echo_n "(cached) " >&6
3126
else
3127
  if test -n "$STRIP"; then
3128
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3129
else
3130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131
for as_dir in $PATH
3132
do
3133
  IFS=$as_save_IFS
3134
  test -z "$as_dir" && as_dir=.
3135
    for ac_exec_ext in '' $ac_executable_extensions; do
3136
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3138
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139
    break 2
3140
  fi
3141
done
3142
  done
3143
IFS=$as_save_IFS
3144
 
3145
fi
3146
fi
3147
STRIP=$ac_cv_prog_STRIP
3148
if test -n "$STRIP"; then
3149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3150
$as_echo "$STRIP" >&6; }
3151
else
3152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153
$as_echo "no" >&6; }
3154
fi
3155
 
3156
 
3157
fi
3158
if test -z "$ac_cv_prog_STRIP"; then
3159
  ac_ct_STRIP=$STRIP
3160
  # Extract the first word of "strip", so it can be a program name with args.
3161
set dummy strip; ac_word=$2
3162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163
$as_echo_n "checking for $ac_word... " >&6; }
3164
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3165
  $as_echo_n "(cached) " >&6
3166
else
3167
  if test -n "$ac_ct_STRIP"; then
3168
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3169
else
3170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171
for as_dir in $PATH
3172
do
3173
  IFS=$as_save_IFS
3174
  test -z "$as_dir" && as_dir=.
3175
    for ac_exec_ext in '' $ac_executable_extensions; do
3176
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177
    ac_cv_prog_ac_ct_STRIP="strip"
3178
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179
    break 2
3180
  fi
3181
done
3182
  done
3183
IFS=$as_save_IFS
3184
 
3185
fi
3186
fi
3187
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3188
if test -n "$ac_ct_STRIP"; then
3189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3190
$as_echo "$ac_ct_STRIP" >&6; }
3191
else
3192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193
$as_echo "no" >&6; }
3194
fi
3195
 
3196
  if test "x$ac_ct_STRIP" = x; then
3197
    STRIP=":"
3198
  else
3199
    case $cross_compiling:$ac_tool_warned in
3200
yes:)
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203
ac_tool_warned=yes ;;
3204
esac
3205
    STRIP=$ac_ct_STRIP
3206
  fi
3207
else
3208
  STRIP="$ac_cv_prog_STRIP"
3209
fi
3210
 
3211
fi
3212
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3213
 
3214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3215
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3216
if test -z "$MKDIR_P"; then
3217
  if test "${ac_cv_path_mkdir+set}" = set; then :
3218
  $as_echo_n "(cached) " >&6
3219
else
3220
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3222
do
3223
  IFS=$as_save_IFS
3224
  test -z "$as_dir" && as_dir=.
3225
    for ac_prog in mkdir gmkdir; do
3226
	 for ac_exec_ext in '' $ac_executable_extensions; do
3227
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3228
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3229
	     'mkdir (GNU coreutils) '* | \
3230
	     'mkdir (coreutils) '* | \
3231
	     'mkdir (fileutils) '4.1*)
3232
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3233
	       break 3;;
3234
	   esac
3235
	 done
3236
       done
3237
  done
3238
IFS=$as_save_IFS
3239
 
3240
fi
3241
 
3242
  if test "${ac_cv_path_mkdir+set}" = set; then
3243
    MKDIR_P="$ac_cv_path_mkdir -p"
3244
  else
3245
    # As a last resort, use the slow shell script.  Don't cache a
3246
    # value for MKDIR_P within a source directory, because that will
3247
    # break other packages using the cache if that directory is
3248
    # removed, or if the value is a relative name.
3249
    test -d ./--version && rmdir ./--version
3250
    MKDIR_P="$ac_install_sh -d"
3251
  fi
3252
fi
3253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3254
$as_echo "$MKDIR_P" >&6; }
3255
 
3256
mkdir_p="$MKDIR_P"
3257
case $mkdir_p in
3258
  [\\/$]* | ?:[\\/]*) ;;
3259
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3260
esac
3261
 
3262
for ac_prog in gawk mawk nawk awk
3263
do
3264
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3265
set dummy $ac_prog; ac_word=$2
3266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267
$as_echo_n "checking for $ac_word... " >&6; }
3268
if test "${ac_cv_prog_AWK+set}" = set; then :
3269
  $as_echo_n "(cached) " >&6
3270
else
3271
  if test -n "$AWK"; then
3272
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3273
else
3274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275
for as_dir in $PATH
3276
do
3277
  IFS=$as_save_IFS
3278
  test -z "$as_dir" && as_dir=.
3279
    for ac_exec_ext in '' $ac_executable_extensions; do
3280
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281
    ac_cv_prog_AWK="$ac_prog"
3282
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283
    break 2
3284
  fi
3285
done
3286
  done
3287
IFS=$as_save_IFS
3288
 
3289
fi
3290
fi
3291
AWK=$ac_cv_prog_AWK
3292
if test -n "$AWK"; then
3293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294
$as_echo "$AWK" >&6; }
3295
else
3296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297
$as_echo "no" >&6; }
3298
fi
3299
 
3300
 
3301
  test -n "$AWK" && break
3302
done
3303
 
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306
set x ${MAKE-make}
3307
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3309
  $as_echo_n "(cached) " >&6
3310
else
3311
  cat >conftest.make <<\_ACEOF
3312
SHELL = /bin/sh
3313
all:
3314
	@echo '@@@%%%=$(MAKE)=@@@%%%'
3315
_ACEOF
3316
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3317
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3318
  *@@@%%%=?*=@@@%%%*)
3319
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3320
  *)
3321
    eval ac_cv_prog_make_${ac_make}_set=no;;
3322
esac
3323
rm -f conftest.make
3324
fi
3325
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327
$as_echo "yes" >&6; }
3328
  SET_MAKE=
3329
else
3330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331
$as_echo "no" >&6; }
3332
  SET_MAKE="MAKE=${MAKE-make}"
3333
fi
3334
 
3335
rm -rf .tst 2>/dev/null
3336
mkdir .tst 2>/dev/null
3337
if test -d .tst; then
3338
  am__leading_dot=.
3339
else
3340
  am__leading_dot=_
3341
fi
3342
rmdir .tst 2>/dev/null
3343
 
3344
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3345
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3346
  # is not polluted with repeated "-I."
3347
  am__isrc=' -I$(srcdir)'
3348
  # test to see if srcdir already configured
3349
  if test -f $srcdir/config.status; then
3350
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3351
  fi
3352
fi
3353
 
3354
# test whether we have cygpath
3355
if test -z "$CYGPATH_W"; then
3356
  if (cygpath --version) >/dev/null 2>/dev/null; then
3357
    CYGPATH_W='cygpath -w'
3358
  else
3359
    CYGPATH_W=echo
3360
  fi
3361
fi
3362
 
3363
 
3364
# Define the identity of the package.
3365
 PACKAGE='thrift'
3366
 VERSION='0.2.0'
3367
 
3368
 
3369
cat >>confdefs.h <<_ACEOF
3370
@%:@define PACKAGE "$PACKAGE"
3371
_ACEOF
3372
 
3373
 
3374
cat >>confdefs.h <<_ACEOF
3375
@%:@define VERSION "$VERSION"
3376
_ACEOF
3377
 
3378
# Some tools Automake needs.
3379
 
3380
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3381
 
3382
 
3383
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3384
 
3385
 
3386
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3387
 
3388
 
3389
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3390
 
3391
 
3392
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3393
 
3394
# We need awk for the "check" target.  The system "awk" is bad on
3395
# some platforms.
3396
# Always define AMTAR for backward compatibility.
3397
 
3398
AMTAR=${AMTAR-"${am_missing_run}tar"}
3399
 
3400
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3401
 
3402
 
3403
 
3404
 
3405
 
3406
 
3407
 
3408
if test "x$PY_PREFIX" = x; then :
3409
  PY_PREFIX="/usr"
3410
fi
3411
 
3412
 
3413
if test "x$JAVA_PREFIX" = x; then :
3414
  JAVA_PREFIX="/usr/local/lib"
3415
fi
3416
 
3417
ac_ext=c
3418
ac_cpp='$CPP $CPPFLAGS'
3419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
if test -n "$ac_tool_prefix"; then
3423
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3424
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426
$as_echo_n "checking for $ac_word... " >&6; }
3427
if test "${ac_cv_prog_CC+set}" = set; then :
3428
  $as_echo_n "(cached) " >&6
3429
else
3430
  if test -n "$CC"; then
3431
  ac_cv_prog_CC="$CC" # Let the user override the test.
3432
else
3433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434
for as_dir in $PATH
3435
do
3436
  IFS=$as_save_IFS
3437
  test -z "$as_dir" && as_dir=.
3438
    for ac_exec_ext in '' $ac_executable_extensions; do
3439
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3441
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442
    break 2
3443
  fi
3444
done
3445
  done
3446
IFS=$as_save_IFS
3447
 
3448
fi
3449
fi
3450
CC=$ac_cv_prog_CC
3451
if test -n "$CC"; then
3452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453
$as_echo "$CC" >&6; }
3454
else
3455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456
$as_echo "no" >&6; }
3457
fi
3458
 
3459
 
3460
fi
3461
if test -z "$ac_cv_prog_CC"; then
3462
  ac_ct_CC=$CC
3463
  # Extract the first word of "gcc", so it can be a program name with args.
3464
set dummy gcc; ac_word=$2
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466
$as_echo_n "checking for $ac_word... " >&6; }
3467
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3468
  $as_echo_n "(cached) " >&6
3469
else
3470
  if test -n "$ac_ct_CC"; then
3471
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472
else
3473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474
for as_dir in $PATH
3475
do
3476
  IFS=$as_save_IFS
3477
  test -z "$as_dir" && as_dir=.
3478
    for ac_exec_ext in '' $ac_executable_extensions; do
3479
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480
    ac_cv_prog_ac_ct_CC="gcc"
3481
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482
    break 2
3483
  fi
3484
done
3485
  done
3486
IFS=$as_save_IFS
3487
 
3488
fi
3489
fi
3490
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491
if test -n "$ac_ct_CC"; then
3492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493
$as_echo "$ac_ct_CC" >&6; }
3494
else
3495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496
$as_echo "no" >&6; }
3497
fi
3498
 
3499
  if test "x$ac_ct_CC" = x; then
3500
    CC=""
3501
  else
3502
    case $cross_compiling:$ac_tool_warned in
3503
yes:)
3504
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506
ac_tool_warned=yes ;;
3507
esac
3508
    CC=$ac_ct_CC
3509
  fi
3510
else
3511
  CC="$ac_cv_prog_CC"
3512
fi
3513
 
3514
if test -z "$CC"; then
3515
          if test -n "$ac_tool_prefix"; then
3516
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3517
set dummy ${ac_tool_prefix}cc; ac_word=$2
3518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519
$as_echo_n "checking for $ac_word... " >&6; }
3520
if test "${ac_cv_prog_CC+set}" = set; then :
3521
  $as_echo_n "(cached) " >&6
3522
else
3523
  if test -n "$CC"; then
3524
  ac_cv_prog_CC="$CC" # Let the user override the test.
3525
else
3526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527
for as_dir in $PATH
3528
do
3529
  IFS=$as_save_IFS
3530
  test -z "$as_dir" && as_dir=.
3531
    for ac_exec_ext in '' $ac_executable_extensions; do
3532
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3534
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535
    break 2
3536
  fi
3537
done
3538
  done
3539
IFS=$as_save_IFS
3540
 
3541
fi
3542
fi
3543
CC=$ac_cv_prog_CC
3544
if test -n "$CC"; then
3545
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3546
$as_echo "$CC" >&6; }
3547
else
3548
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549
$as_echo "no" >&6; }
3550
fi
3551
 
3552
 
3553
  fi
3554
fi
3555
if test -z "$CC"; then
3556
  # Extract the first word of "cc", so it can be a program name with args.
3557
set dummy cc; ac_word=$2
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559
$as_echo_n "checking for $ac_word... " >&6; }
3560
if test "${ac_cv_prog_CC+set}" = set; then :
3561
  $as_echo_n "(cached) " >&6
3562
else
3563
  if test -n "$CC"; then
3564
  ac_cv_prog_CC="$CC" # Let the user override the test.
3565
else
3566
  ac_prog_rejected=no
3567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568
for as_dir in $PATH
3569
do
3570
  IFS=$as_save_IFS
3571
  test -z "$as_dir" && as_dir=.
3572
    for ac_exec_ext in '' $ac_executable_extensions; do
3573
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3575
       ac_prog_rejected=yes
3576
       continue
3577
     fi
3578
    ac_cv_prog_CC="cc"
3579
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580
    break 2
3581
  fi
3582
done
3583
  done
3584
IFS=$as_save_IFS
3585
 
3586
if test $ac_prog_rejected = yes; then
3587
  # We found a bogon in the path, so make sure we never use it.
3588
  set dummy $ac_cv_prog_CC
3589
  shift
3590
  if test $@%:@ != 0; then
3591
    # We chose a different compiler from the bogus one.
3592
    # However, it has the same basename, so the bogon will be chosen
3593
    # first if we set CC to just the basename; use the full file name.
3594
    shift
3595
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3596
  fi
3597
fi
3598
fi
3599
fi
3600
CC=$ac_cv_prog_CC
3601
if test -n "$CC"; then
3602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3603
$as_echo "$CC" >&6; }
3604
else
3605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606
$as_echo "no" >&6; }
3607
fi
3608
 
3609
 
3610
fi
3611
if test -z "$CC"; then
3612
  if test -n "$ac_tool_prefix"; then
3613
  for ac_prog in cl.exe
3614
  do
3615
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3616
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618
$as_echo_n "checking for $ac_word... " >&6; }
3619
if test "${ac_cv_prog_CC+set}" = set; then :
3620
  $as_echo_n "(cached) " >&6
3621
else
3622
  if test -n "$CC"; then
3623
  ac_cv_prog_CC="$CC" # Let the user override the test.
3624
else
3625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626
for as_dir in $PATH
3627
do
3628
  IFS=$as_save_IFS
3629
  test -z "$as_dir" && as_dir=.
3630
    for ac_exec_ext in '' $ac_executable_extensions; do
3631
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3633
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634
    break 2
3635
  fi
3636
done
3637
  done
3638
IFS=$as_save_IFS
3639
 
3640
fi
3641
fi
3642
CC=$ac_cv_prog_CC
3643
if test -n "$CC"; then
3644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3645
$as_echo "$CC" >&6; }
3646
else
3647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648
$as_echo "no" >&6; }
3649
fi
3650
 
3651
 
3652
    test -n "$CC" && break
3653
  done
3654
fi
3655
if test -z "$CC"; then
3656
  ac_ct_CC=$CC
3657
  for ac_prog in cl.exe
3658
do
3659
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3660
set dummy $ac_prog; ac_word=$2
3661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662
$as_echo_n "checking for $ac_word... " >&6; }
3663
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3664
  $as_echo_n "(cached) " >&6
3665
else
3666
  if test -n "$ac_ct_CC"; then
3667
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668
else
3669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670
for as_dir in $PATH
3671
do
3672
  IFS=$as_save_IFS
3673
  test -z "$as_dir" && as_dir=.
3674
    for ac_exec_ext in '' $ac_executable_extensions; do
3675
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676
    ac_cv_prog_ac_ct_CC="$ac_prog"
3677
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678
    break 2
3679
  fi
3680
done
3681
  done
3682
IFS=$as_save_IFS
3683
 
3684
fi
3685
fi
3686
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3687
if test -n "$ac_ct_CC"; then
3688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3689
$as_echo "$ac_ct_CC" >&6; }
3690
else
3691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692
$as_echo "no" >&6; }
3693
fi
3694
 
3695
 
3696
  test -n "$ac_ct_CC" && break
3697
done
3698
 
3699
  if test "x$ac_ct_CC" = x; then
3700
    CC=""
3701
  else
3702
    case $cross_compiling:$ac_tool_warned in
3703
yes:)
3704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706
ac_tool_warned=yes ;;
3707
esac
3708
    CC=$ac_ct_CC
3709
  fi
3710
fi
3711
 
3712
fi
3713
 
3714
 
3715
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717
as_fn_error "no acceptable C compiler found in \$PATH
3718
See \`config.log' for more details." "$LINENO" 5; }
3719
 
3720
# Provide some information about the compiler.
3721
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3722
set X $ac_compile
3723
ac_compiler=$2
3724
for ac_option in --version -v -V -qversion; do
3725
  { { ac_try="$ac_compiler $ac_option >&5"
3726
case "(($ac_try" in
3727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728
  *) ac_try_echo=$ac_try;;
3729
esac
3730
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731
$as_echo "$ac_try_echo"; } >&5
3732
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3733
  ac_status=$?
3734
  if test -s conftest.err; then
3735
    sed '10a\
3736
... rest of stderr output deleted ...
3737
         10q' conftest.err >conftest.er1
3738
    cat conftest.er1 >&5
3739
    rm -f conftest.er1 conftest.err
3740
  fi
3741
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742
  test $ac_status = 0; }
3743
done
3744
 
3745
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746
/* end confdefs.h.  */
3747
@%:@include <stdio.h>
3748
int
3749
main ()
3750
{
3751
FILE *f = fopen ("conftest.out", "w");
3752
 return ferror (f) || fclose (f) != 0;
3753
 
3754
  ;
3755
  return 0;
3756
}
3757
_ACEOF
3758
ac_clean_files_save=$ac_clean_files
3759
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3760
# Try to create an executable without -o first, disregard a.out.
3761
# It will help us diagnose broken compilers, and finding out an intuition
3762
# of exeext.
3763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3764
$as_echo_n "checking for C compiler default output file name... " >&6; }
3765
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3766
 
3767
# The possible output files:
3768
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3769
 
3770
ac_rmfiles=
3771
for ac_file in $ac_files
3772
do
3773
  case $ac_file in
3774
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3775
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3776
  esac
3777
done
3778
rm -f $ac_rmfiles
3779
 
3780
if { { ac_try="$ac_link_default"
3781
case "(($ac_try" in
3782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783
  *) ac_try_echo=$ac_try;;
3784
esac
3785
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786
$as_echo "$ac_try_echo"; } >&5
3787
  (eval "$ac_link_default") 2>&5
3788
  ac_status=$?
3789
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790
  test $ac_status = 0; }; then :
3791
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3792
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3793
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3794
# so that the user can short-circuit this test for compilers unknown to
3795
# Autoconf.
3796
for ac_file in $ac_files ''
3797
do
3798
  test -f "$ac_file" || continue
3799
  case $ac_file in
3800
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3801
	;;
3802
    [ab].out )
3803
	# We found the default executable, but exeext='' is most
3804
	# certainly right.
3805
	break;;
3806
    *.* )
3807
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3808
	then :; else
3809
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3810
	fi
3811
	# We set ac_cv_exeext here because the later test for it is not
3812
	# safe: cross compilers may not add the suffix if given an `-o'
3813
	# argument, so we may need to know it at that point already.
3814
	# Even if this section looks crufty: it has the advantage of
3815
	# actually working.
3816
	break;;
3817
    * )
3818
	break;;
3819
  esac
3820
done
3821
test "$ac_cv_exeext" = no && ac_cv_exeext=
3822
 
3823
else
3824
  ac_file=''
3825
fi
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3827
$as_echo "$ac_file" >&6; }
3828
if test -z "$ac_file"; then :
3829
  $as_echo "$as_me: failed program was:" >&5
3830
sed 's/^/| /' conftest.$ac_ext >&5
3831
 
3832
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834
{ as_fn_set_status 77
3835
as_fn_error "C compiler cannot create executables
3836
See \`config.log' for more details." "$LINENO" 5; }; }
3837
fi
3838
ac_exeext=$ac_cv_exeext
3839
 
3840
# Check that the compiler produces executables we can run.  If not, either
3841
# the compiler is broken, or we cross compile.
3842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3843
$as_echo_n "checking whether the C compiler works... " >&6; }
3844
# If not cross compiling, check that we can run a simple program.
3845
if test "$cross_compiling" != yes; then
3846
  if { ac_try='./$ac_file'
3847
  { { case "(($ac_try" in
3848
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849
  *) ac_try_echo=$ac_try;;
3850
esac
3851
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852
$as_echo "$ac_try_echo"; } >&5
3853
  (eval "$ac_try") 2>&5
3854
  ac_status=$?
3855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856
  test $ac_status = 0; }; }; then
3857
    cross_compiling=no
3858
  else
3859
    if test "$cross_compiling" = maybe; then
3860
	cross_compiling=yes
3861
    else
3862
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864
as_fn_error "cannot run C compiled programs.
3865
If you meant to cross compile, use \`--host'.
3866
See \`config.log' for more details." "$LINENO" 5; }
3867
    fi
3868
  fi
3869
fi
3870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871
$as_echo "yes" >&6; }
3872
 
3873
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3874
ac_clean_files=$ac_clean_files_save
3875
# Check that the compiler produces executables we can run.  If not, either
3876
# the compiler is broken, or we cross compile.
3877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878
$as_echo_n "checking whether we are cross compiling... " >&6; }
3879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3880
$as_echo "$cross_compiling" >&6; }
3881
 
3882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883
$as_echo_n "checking for suffix of executables... " >&6; }
3884
if { { ac_try="$ac_link"
3885
case "(($ac_try" in
3886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887
  *) ac_try_echo=$ac_try;;
3888
esac
3889
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890
$as_echo "$ac_try_echo"; } >&5
3891
  (eval "$ac_link") 2>&5
3892
  ac_status=$?
3893
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894
  test $ac_status = 0; }; then :
3895
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3897
# work properly (i.e., refer to `conftest.exe'), while it won't with
3898
# `rm'.
3899
for ac_file in conftest.exe conftest conftest.*; do
3900
  test -f "$ac_file" || continue
3901
  case $ac_file in
3902
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904
	  break;;
3905
    * ) break;;
3906
  esac
3907
done
3908
else
3909
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911
as_fn_error "cannot compute suffix of executables: cannot compile and link
3912
See \`config.log' for more details." "$LINENO" 5; }
3913
fi
3914
rm -f conftest$ac_cv_exeext
3915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916
$as_echo "$ac_cv_exeext" >&6; }
3917
 
3918
rm -f conftest.$ac_ext
3919
EXEEXT=$ac_cv_exeext
3920
ac_exeext=$EXEEXT
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3922
$as_echo_n "checking for suffix of object files... " >&6; }
3923
if test "${ac_cv_objext+set}" = set; then :
3924
  $as_echo_n "(cached) " >&6
3925
else
3926
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927
/* end confdefs.h.  */
3928
 
3929
int
3930
main ()
3931
{
3932
 
3933
  ;
3934
  return 0;
3935
}
3936
_ACEOF
3937
rm -f conftest.o conftest.obj
3938
if { { ac_try="$ac_compile"
3939
case "(($ac_try" in
3940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941
  *) ac_try_echo=$ac_try;;
3942
esac
3943
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944
$as_echo "$ac_try_echo"; } >&5
3945
  (eval "$ac_compile") 2>&5
3946
  ac_status=$?
3947
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948
  test $ac_status = 0; }; then :
3949
  for ac_file in conftest.o conftest.obj conftest.*; do
3950
  test -f "$ac_file" || continue;
3951
  case $ac_file in
3952
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3953
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3954
       break;;
3955
  esac
3956
done
3957
else
3958
  $as_echo "$as_me: failed program was:" >&5
3959
sed 's/^/| /' conftest.$ac_ext >&5
3960
 
3961
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963
as_fn_error "cannot compute suffix of object files: cannot compile
3964
See \`config.log' for more details." "$LINENO" 5; }
3965
fi
3966
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3967
fi
3968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3969
$as_echo "$ac_cv_objext" >&6; }
3970
OBJEXT=$ac_cv_objext
3971
ac_objext=$OBJEXT
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3973
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3974
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3975
  $as_echo_n "(cached) " >&6
3976
else
3977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978
/* end confdefs.h.  */
3979
 
3980
int
3981
main ()
3982
{
3983
#ifndef __GNUC__
3984
       choke me
3985
#endif
3986
 
3987
  ;
3988
  return 0;
3989
}
3990
_ACEOF
3991
if ac_fn_c_try_compile "$LINENO"; then :
3992
  ac_compiler_gnu=yes
3993
else
3994
  ac_compiler_gnu=no
3995
fi
3996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3998
 
3999
fi
4000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4002
if test $ac_compiler_gnu = yes; then
4003
  GCC=yes
4004
else
4005
  GCC=
4006
fi
4007
ac_test_CFLAGS=${CFLAGS+set}
4008
ac_save_CFLAGS=$CFLAGS
4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4010
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4011
if test "${ac_cv_prog_cc_g+set}" = set; then :
4012
  $as_echo_n "(cached) " >&6
4013
else
4014
  ac_save_c_werror_flag=$ac_c_werror_flag
4015
   ac_c_werror_flag=yes
4016
   ac_cv_prog_cc_g=no
4017
   CFLAGS="-g"
4018
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019
/* end confdefs.h.  */
4020
 
4021
int
4022
main ()
4023
{
4024
 
4025
  ;
4026
  return 0;
4027
}
4028
_ACEOF
4029
if ac_fn_c_try_compile "$LINENO"; then :
4030
  ac_cv_prog_cc_g=yes
4031
else
4032
  CFLAGS=""
4033
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034
/* end confdefs.h.  */
4035
 
4036
int
4037
main ()
4038
{
4039
 
4040
  ;
4041
  return 0;
4042
}
4043
_ACEOF
4044
if ac_fn_c_try_compile "$LINENO"; then :
4045
 
4046
else
4047
  ac_c_werror_flag=$ac_save_c_werror_flag
4048
	 CFLAGS="-g"
4049
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050
/* end confdefs.h.  */
4051
 
4052
int
4053
main ()
4054
{
4055
 
4056
  ;
4057
  return 0;
4058
}
4059
_ACEOF
4060
if ac_fn_c_try_compile "$LINENO"; then :
4061
  ac_cv_prog_cc_g=yes
4062
fi
4063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064
fi
4065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066
fi
4067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068
   ac_c_werror_flag=$ac_save_c_werror_flag
4069
fi
4070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4071
$as_echo "$ac_cv_prog_cc_g" >&6; }
4072
if test "$ac_test_CFLAGS" = set; then
4073
  CFLAGS=$ac_save_CFLAGS
4074
elif test $ac_cv_prog_cc_g = yes; then
4075
  if test "$GCC" = yes; then
4076
    CFLAGS="-g -O2"
4077
  else
4078
    CFLAGS="-g"
4079
  fi
4080
else
4081
  if test "$GCC" = yes; then
4082
    CFLAGS="-O2"
4083
  else
4084
    CFLAGS=
4085
  fi
4086
fi
4087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4088
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4089
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4090
  $as_echo_n "(cached) " >&6
4091
else
4092
  ac_cv_prog_cc_c89=no
4093
ac_save_CC=$CC
4094
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095
/* end confdefs.h.  */
4096
#include <stdarg.h>
4097
#include <stdio.h>
4098
#include <sys/types.h>
4099
#include <sys/stat.h>
4100
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4101
struct buf { int x; };
4102
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4103
static char *e (p, i)
4104
     char **p;
4105
     int i;
4106
{
4107
  return p[i];
4108
}
4109
static char *f (char * (*g) (char **, int), char **p, ...)
4110
{
4111
  char *s;
4112
  va_list v;
4113
  va_start (v,p);
4114
  s = g (p, va_arg (v,int));
4115
  va_end (v);
4116
  return s;
4117
}
4118
 
4119
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4120
   function prototypes and stuff, but not '\xHH' hex character constants.
4121
   These don't provoke an error unfortunately, instead are silently treated
4122
   as 'x'.  The following induces an error, until -std is added to get
4123
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4124
   array size at least.  It's necessary to write '\x00'==0 to get something
4125
   that's true only with -std.  */
4126
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4127
 
4128
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4129
   inside strings and character constants.  */
4130
#define FOO(x) 'x'
4131
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4132
 
4133
int test (int i, double x);
4134
struct s1 {int (*f) (int a);};
4135
struct s2 {int (*f) (double a);};
4136
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4137
int argc;
4138
char **argv;
4139
int
4140
main ()
4141
{
4142
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4143
  ;
4144
  return 0;
4145
}
4146
_ACEOF
4147
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4148
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4149
do
4150
  CC="$ac_save_CC $ac_arg"
4151
  if ac_fn_c_try_compile "$LINENO"; then :
4152
  ac_cv_prog_cc_c89=$ac_arg
4153
fi
4154
rm -f core conftest.err conftest.$ac_objext
4155
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4156
done
4157
rm -f conftest.$ac_ext
4158
CC=$ac_save_CC
4159
 
4160
fi
4161
# AC_CACHE_VAL
4162
case "x$ac_cv_prog_cc_c89" in
4163
  x)
4164
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165
$as_echo "none needed" >&6; } ;;
4166
  xno)
4167
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168
$as_echo "unsupported" >&6; } ;;
4169
  *)
4170
    CC="$CC $ac_cv_prog_cc_c89"
4171
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4172
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4173
esac
4174
if test "x$ac_cv_prog_cc_c89" != xno; then :
4175
 
4176
fi
4177
 
4178
ac_ext=c
4179
ac_cpp='$CPP $CPPFLAGS'
4180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183
DEPDIR="${am__leading_dot}deps"
4184
 
4185
ac_config_commands="$ac_config_commands depfiles"
4186
 
4187
 
4188
am_make=${MAKE-make}
4189
cat > confinc << 'END'
4190
am__doit:
4191
	@echo this is the am__doit target
4192
.PHONY: am__doit
4193
END
4194
# If we don't find an include directive, just comment out the code.
4195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4196
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4197
am__include="#"
4198
am__quote=
4199
_am_result=none
4200
# First try GNU make style include.
4201
echo "include confinc" > confmf
4202
# Ignore all kinds of additional output from `make'.
4203
case `$am_make -s -f confmf 2> /dev/null` in #(
4204
*the\ am__doit\ target*)
4205
  am__include=include
4206
  am__quote=
4207
  _am_result=GNU
4208
  ;;
4209
esac
4210
# Now try BSD make style include.
4211
if test "$am__include" = "#"; then
4212
   echo '.include "confinc"' > confmf
4213
   case `$am_make -s -f confmf 2> /dev/null` in #(
4214
   *the\ am__doit\ target*)
4215
     am__include=.include
4216
     am__quote="\""
4217
     _am_result=BSD
4218
     ;;
4219
   esac
4220
fi
4221
 
4222
 
4223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4224
$as_echo "$_am_result" >&6; }
4225
rm -f confinc confmf
4226
 
4227
@%:@ Check whether --enable-dependency-tracking was given.
4228
if test "${enable_dependency_tracking+set}" = set; then :
4229
  enableval=$enable_dependency_tracking; 
4230
fi
4231
 
4232
if test "x$enable_dependency_tracking" != xno; then
4233
  am_depcomp="$ac_aux_dir/depcomp"
4234
  AMDEPBACKSLASH='\'
4235
fi
4236
 if test "x$enable_dependency_tracking" != xno; then
4237
  AMDEP_TRUE=
4238
  AMDEP_FALSE='#'
4239
else
4240
  AMDEP_TRUE='#'
4241
  AMDEP_FALSE=
4242
fi
4243
 
4244
 
4245
 
4246
depcc="$CC"   am_compiler_list=
4247
 
4248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4249
$as_echo_n "checking dependency style of $depcc... " >&6; }
4250
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4251
  $as_echo_n "(cached) " >&6
4252
else
4253
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4254
  # We make a subdir and do the tests there.  Otherwise we can end up
4255
  # making bogus files that we don't know about and never remove.  For
4256
  # instance it was reported that on HP-UX the gcc test will end up
4257
  # making a dummy file named `D' -- because `-MD' means `put the output
4258
  # in D'.
4259
  mkdir conftest.dir
4260
  # Copy depcomp to subdir because otherwise we won't find it if we're
4261
  # using a relative directory.
4262
  cp "$am_depcomp" conftest.dir
4263
  cd conftest.dir
4264
  # We will build objects and dependencies in a subdirectory because
4265
  # it helps to detect inapplicable dependency modes.  For instance
4266
  # both Tru64's cc and ICC support -MD to output dependencies as a
4267
  # side effect of compilation, but ICC will put the dependencies in
4268
  # the current directory while Tru64 will put them in the object
4269
  # directory.
4270
  mkdir sub
4271
 
4272
  am_cv_CC_dependencies_compiler_type=none
4273
  if test "$am_compiler_list" = ""; then
4274
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4275
  fi
4276
  am__universal=false
4277
  case " $depcc " in #(
4278
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4279
     esac
4280
 
4281
  for depmode in $am_compiler_list; do
4282
    # Setup a source with many dependencies, because some compilers
4283
    # like to wrap large dependency lists on column 80 (with \), and
4284
    # we should not choose a depcomp mode which is confused by this.
4285
    #
4286
    # We need to recreate these files for each test, as the compiler may
4287
    # overwrite some of them when testing with obscure command lines.
4288
    # This happens at least with the AIX C compiler.
4289
    : > sub/conftest.c
4290
    for i in 1 2 3 4 5 6; do
4291
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4292
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4293
      # Solaris 8's {/usr,}/bin/sh.
4294
      touch sub/conftst$i.h
4295
    done
4296
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4297
 
4298
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4299
    # mode.  It turns out that the SunPro C++ compiler does not properly
4300
    # handle `-M -o', and we need to detect this.  Also, some Intel
4301
    # versions had trouble with output in subdirs
4302
    am__obj=sub/conftest.${OBJEXT-o}
4303
    am__minus_obj="-o $am__obj"
4304
    case $depmode in
4305
    gcc)
4306
      # This depmode causes a compiler race in universal mode.
4307
      test "$am__universal" = false || continue
4308
      ;;
4309
    nosideeffect)
4310
      # after this tag, mechanisms are not by side-effect, so they'll
4311
      # only be used when explicitly requested
4312
      if test "x$enable_dependency_tracking" = xyes; then
4313
	continue
4314
      else
4315
	break
4316
      fi
4317
      ;;
4318
    msvisualcpp | msvcmsys)
4319
      # This compiler won't grok `-c -o', but also, the minuso test has
4320
      # not run yet.  These depmodes are late enough in the game, and
4321
      # so weak that their functioning should not be impacted.
4322
      am__obj=conftest.${OBJEXT-o}
4323
      am__minus_obj=
4324
      ;;
4325
    none) break ;;
4326
    esac
4327
    if depmode=$depmode \
4328
       source=sub/conftest.c object=$am__obj \
4329
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4330
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4331
         >/dev/null 2>conftest.err &&
4332
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4333
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4334
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4335
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4336
      # icc doesn't choke on unknown options, it will just issue warnings
4337
      # or remarks (even with -Werror).  So we grep stderr for any message
4338
      # that says an option was ignored or not supported.
4339
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4340
      #   icc: Command line warning: ignoring option '-M'; no argument required
4341
      # The diagnosis changed in icc 8.0:
4342
      #   icc: Command line remark: option '-MP' not supported
4343
      if (grep 'ignoring option' conftest.err ||
4344
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4345
        am_cv_CC_dependencies_compiler_type=$depmode
4346
        break
4347
      fi
4348
    fi
4349
  done
4350
 
4351
  cd ..
4352
  rm -rf conftest.dir
4353
else
4354
  am_cv_CC_dependencies_compiler_type=none
4355
fi
4356
 
4357
fi
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4359
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4360
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4361
 
4362
 if 
4363
  test "x$enable_dependency_tracking" != xno \
4364
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4365
  am__fastdepCC_TRUE=
4366
  am__fastdepCC_FALSE='#'
4367
else
4368
  am__fastdepCC_TRUE='#'
4369
  am__fastdepCC_FALSE=
4370
fi
4371
 
4372
 
4373
ac_ext=c
4374
ac_cpp='$CPP $CPPFLAGS'
4375
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4379
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4380
# On Suns, sometimes $CPP names a directory.
4381
if test -n "$CPP" && test -d "$CPP"; then
4382
  CPP=
4383
fi
4384
if test -z "$CPP"; then
4385
  if test "${ac_cv_prog_CPP+set}" = set; then :
4386
  $as_echo_n "(cached) " >&6
4387
else
4388
      # Double quotes because CPP needs to be expanded
4389
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4390
    do
4391
      ac_preproc_ok=false
4392
for ac_c_preproc_warn_flag in '' yes
4393
do
4394
  # Use a header file that comes with gcc, so configuring glibc
4395
  # with a fresh cross-compiler works.
4396
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4397
  # <limits.h> exists even on freestanding compilers.
4398
  # On the NeXT, cc -E runs the code through the compiler's parser,
4399
  # not just through cpp. "Syntax error" is here to catch this case.
4400
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401
/* end confdefs.h.  */
4402
@%:@ifdef __STDC__
4403
@%:@ include <limits.h>
4404
@%:@else
4405
@%:@ include <assert.h>
4406
@%:@endif
4407
		     Syntax error
4408
_ACEOF
4409
if ac_fn_c_try_cpp "$LINENO"; then :
4410
 
4411
else
4412
  # Broken: fails on valid input.
4413
continue
4414
fi
4415
rm -f conftest.err conftest.$ac_ext
4416
 
4417
  # OK, works on sane cases.  Now check whether nonexistent headers
4418
  # can be detected and how.
4419
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420
/* end confdefs.h.  */
4421
@%:@include <ac_nonexistent.h>
4422
_ACEOF
4423
if ac_fn_c_try_cpp "$LINENO"; then :
4424
  # Broken: success on invalid input.
4425
continue
4426
else
4427
  # Passes both tests.
4428
ac_preproc_ok=:
4429
break
4430
fi
4431
rm -f conftest.err conftest.$ac_ext
4432
 
4433
done
4434
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4435
rm -f conftest.err conftest.$ac_ext
4436
if $ac_preproc_ok; then :
4437
  break
4438
fi
4439
 
4440
    done
4441
    ac_cv_prog_CPP=$CPP
4442
 
4443
fi
4444
  CPP=$ac_cv_prog_CPP
4445
else
4446
  ac_cv_prog_CPP=$CPP
4447
fi
4448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4449
$as_echo "$CPP" >&6; }
4450
ac_preproc_ok=false
4451
for ac_c_preproc_warn_flag in '' yes
4452
do
4453
  # Use a header file that comes with gcc, so configuring glibc
4454
  # with a fresh cross-compiler works.
4455
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4456
  # <limits.h> exists even on freestanding compilers.
4457
  # On the NeXT, cc -E runs the code through the compiler's parser,
4458
  # not just through cpp. "Syntax error" is here to catch this case.
4459
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460
/* end confdefs.h.  */
4461
@%:@ifdef __STDC__
4462
@%:@ include <limits.h>
4463
@%:@else
4464
@%:@ include <assert.h>
4465
@%:@endif
4466
		     Syntax error
4467
_ACEOF
4468
if ac_fn_c_try_cpp "$LINENO"; then :
4469
 
4470
else
4471
  # Broken: fails on valid input.
4472
continue
4473
fi
4474
rm -f conftest.err conftest.$ac_ext
4475
 
4476
  # OK, works on sane cases.  Now check whether nonexistent headers
4477
  # can be detected and how.
4478
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479
/* end confdefs.h.  */
4480
@%:@include <ac_nonexistent.h>
4481
_ACEOF
4482
if ac_fn_c_try_cpp "$LINENO"; then :
4483
  # Broken: success on invalid input.
4484
continue
4485
else
4486
  # Passes both tests.
4487
ac_preproc_ok=:
4488
break
4489
fi
4490
rm -f conftest.err conftest.$ac_ext
4491
 
4492
done
4493
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4494
rm -f conftest.err conftest.$ac_ext
4495
if $ac_preproc_ok; then :
4496
 
4497
else
4498
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4500
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4501
See \`config.log' for more details." "$LINENO" 5; }
4502
fi
4503
 
4504
ac_ext=c
4505
ac_cpp='$CPP $CPPFLAGS'
4506
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
 
4510
ac_ext=cpp
4511
ac_cpp='$CXXCPP $CPPFLAGS'
4512
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4515
if test -z "$CXX"; then
4516
  if test -n "$CCC"; then
4517
    CXX=$CCC
4518
  else
4519
    if test -n "$ac_tool_prefix"; then
4520
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4521
  do
4522
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525
$as_echo_n "checking for $ac_word... " >&6; }
4526
if test "${ac_cv_prog_CXX+set}" = set; then :
4527
  $as_echo_n "(cached) " >&6
4528
else
4529
  if test -n "$CXX"; then
4530
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4531
else
4532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533
for as_dir in $PATH
4534
do
4535
  IFS=$as_save_IFS
4536
  test -z "$as_dir" && as_dir=.
4537
    for ac_exec_ext in '' $ac_executable_extensions; do
4538
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4540
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541
    break 2
4542
  fi
4543
done
4544
  done
4545
IFS=$as_save_IFS
4546
 
4547
fi
4548
fi
4549
CXX=$ac_cv_prog_CXX
4550
if test -n "$CXX"; then
4551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4552
$as_echo "$CXX" >&6; }
4553
else
4554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555
$as_echo "no" >&6; }
4556
fi
4557
 
4558
 
4559
    test -n "$CXX" && break
4560
  done
4561
fi
4562
if test -z "$CXX"; then
4563
  ac_ct_CXX=$CXX
4564
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4565
do
4566
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4567
set dummy $ac_prog; ac_word=$2
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569
$as_echo_n "checking for $ac_word... " >&6; }
4570
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4571
  $as_echo_n "(cached) " >&6
4572
else
4573
  if test -n "$ac_ct_CXX"; then
4574
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4575
else
4576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577
for as_dir in $PATH
4578
do
4579
  IFS=$as_save_IFS
4580
  test -z "$as_dir" && as_dir=.
4581
    for ac_exec_ext in '' $ac_executable_extensions; do
4582
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4584
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585
    break 2
4586
  fi
4587
done
4588
  done
4589
IFS=$as_save_IFS
4590
 
4591
fi
4592
fi
4593
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4594
if test -n "$ac_ct_CXX"; then
4595
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4596
$as_echo "$ac_ct_CXX" >&6; }
4597
else
4598
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599
$as_echo "no" >&6; }
4600
fi
4601
 
4602
 
4603
  test -n "$ac_ct_CXX" && break
4604
done
4605
 
4606
  if test "x$ac_ct_CXX" = x; then
4607
    CXX="g++"
4608
  else
4609
    case $cross_compiling:$ac_tool_warned in
4610
yes:)
4611
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4612
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4613
ac_tool_warned=yes ;;
4614
esac
4615
    CXX=$ac_ct_CXX
4616
  fi
4617
fi
4618
 
4619
  fi
4620
fi
4621
# Provide some information about the compiler.
4622
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4623
set X $ac_compile
4624
ac_compiler=$2
4625
for ac_option in --version -v -V -qversion; do
4626
  { { ac_try="$ac_compiler $ac_option >&5"
4627
case "(($ac_try" in
4628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629
  *) ac_try_echo=$ac_try;;
4630
esac
4631
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632
$as_echo "$ac_try_echo"; } >&5
4633
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4634
  ac_status=$?
4635
  if test -s conftest.err; then
4636
    sed '10a\
4637
... rest of stderr output deleted ...
4638
         10q' conftest.err >conftest.er1
4639
    cat conftest.er1 >&5
4640
    rm -f conftest.er1 conftest.err
4641
  fi
4642
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643
  test $ac_status = 0; }
4644
done
4645
 
4646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4647
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4648
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4649
  $as_echo_n "(cached) " >&6
4650
else
4651
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652
/* end confdefs.h.  */
4653
 
4654
int
4655
main ()
4656
{
4657
#ifndef __GNUC__
4658
       choke me
4659
#endif
4660
 
4661
  ;
4662
  return 0;
4663
}
4664
_ACEOF
4665
if ac_fn_cxx_try_compile "$LINENO"; then :
4666
  ac_compiler_gnu=yes
4667
else
4668
  ac_compiler_gnu=no
4669
fi
4670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4672
 
4673
fi
4674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4675
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4676
if test $ac_compiler_gnu = yes; then
4677
  GXX=yes
4678
else
4679
  GXX=
4680
fi
4681
ac_test_CXXFLAGS=${CXXFLAGS+set}
4682
ac_save_CXXFLAGS=$CXXFLAGS
4683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4684
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4685
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4686
  $as_echo_n "(cached) " >&6
4687
else
4688
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4689
   ac_cxx_werror_flag=yes
4690
   ac_cv_prog_cxx_g=no
4691
   CXXFLAGS="-g"
4692
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693
/* end confdefs.h.  */
4694
 
4695
int
4696
main ()
4697
{
4698
 
4699
  ;
4700
  return 0;
4701
}
4702
_ACEOF
4703
if ac_fn_cxx_try_compile "$LINENO"; then :
4704
  ac_cv_prog_cxx_g=yes
4705
else
4706
  CXXFLAGS=""
4707
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708
/* end confdefs.h.  */
4709
 
4710
int
4711
main ()
4712
{
4713
 
4714
  ;
4715
  return 0;
4716
}
4717
_ACEOF
4718
if ac_fn_cxx_try_compile "$LINENO"; then :
4719
 
4720
else
4721
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4722
	 CXXFLAGS="-g"
4723
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724
/* end confdefs.h.  */
4725
 
4726
int
4727
main ()
4728
{
4729
 
4730
  ;
4731
  return 0;
4732
}
4733
_ACEOF
4734
if ac_fn_cxx_try_compile "$LINENO"; then :
4735
  ac_cv_prog_cxx_g=yes
4736
fi
4737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738
fi
4739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740
fi
4741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4743
fi
4744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4745
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4746
if test "$ac_test_CXXFLAGS" = set; then
4747
  CXXFLAGS=$ac_save_CXXFLAGS
4748
elif test $ac_cv_prog_cxx_g = yes; then
4749
  if test "$GXX" = yes; then
4750
    CXXFLAGS="-g -O2"
4751
  else
4752
    CXXFLAGS="-g"
4753
  fi
4754
else
4755
  if test "$GXX" = yes; then
4756
    CXXFLAGS="-O2"
4757
  else
4758
    CXXFLAGS=
4759
  fi
4760
fi
4761
ac_ext=c
4762
ac_cpp='$CPP $CPPFLAGS'
4763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766
 
4767
depcc="$CXX"  am_compiler_list=
4768
 
4769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4770
$as_echo_n "checking dependency style of $depcc... " >&6; }
4771
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4772
  $as_echo_n "(cached) " >&6
4773
else
4774
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4775
  # We make a subdir and do the tests there.  Otherwise we can end up
4776
  # making bogus files that we don't know about and never remove.  For
4777
  # instance it was reported that on HP-UX the gcc test will end up
4778
  # making a dummy file named `D' -- because `-MD' means `put the output
4779
  # in D'.
4780
  mkdir conftest.dir
4781
  # Copy depcomp to subdir because otherwise we won't find it if we're
4782
  # using a relative directory.
4783
  cp "$am_depcomp" conftest.dir
4784
  cd conftest.dir
4785
  # We will build objects and dependencies in a subdirectory because
4786
  # it helps to detect inapplicable dependency modes.  For instance
4787
  # both Tru64's cc and ICC support -MD to output dependencies as a
4788
  # side effect of compilation, but ICC will put the dependencies in
4789
  # the current directory while Tru64 will put them in the object
4790
  # directory.
4791
  mkdir sub
4792
 
4793
  am_cv_CXX_dependencies_compiler_type=none
4794
  if test "$am_compiler_list" = ""; then
4795
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4796
  fi
4797
  am__universal=false
4798
  case " $depcc " in #(
4799
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4800
     esac
4801
 
4802
  for depmode in $am_compiler_list; do
4803
    # Setup a source with many dependencies, because some compilers
4804
    # like to wrap large dependency lists on column 80 (with \), and
4805
    # we should not choose a depcomp mode which is confused by this.
4806
    #
4807
    # We need to recreate these files for each test, as the compiler may
4808
    # overwrite some of them when testing with obscure command lines.
4809
    # This happens at least with the AIX C compiler.
4810
    : > sub/conftest.c
4811
    for i in 1 2 3 4 5 6; do
4812
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4813
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4814
      # Solaris 8's {/usr,}/bin/sh.
4815
      touch sub/conftst$i.h
4816
    done
4817
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4818
 
4819
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4820
    # mode.  It turns out that the SunPro C++ compiler does not properly
4821
    # handle `-M -o', and we need to detect this.  Also, some Intel
4822
    # versions had trouble with output in subdirs
4823
    am__obj=sub/conftest.${OBJEXT-o}
4824
    am__minus_obj="-o $am__obj"
4825
    case $depmode in
4826
    gcc)
4827
      # This depmode causes a compiler race in universal mode.
4828
      test "$am__universal" = false || continue
4829
      ;;
4830
    nosideeffect)
4831
      # after this tag, mechanisms are not by side-effect, so they'll
4832
      # only be used when explicitly requested
4833
      if test "x$enable_dependency_tracking" = xyes; then
4834
	continue
4835
      else
4836
	break
4837
      fi
4838
      ;;
4839
    msvisualcpp | msvcmsys)
4840
      # This compiler won't grok `-c -o', but also, the minuso test has
4841
      # not run yet.  These depmodes are late enough in the game, and
4842
      # so weak that their functioning should not be impacted.
4843
      am__obj=conftest.${OBJEXT-o}
4844
      am__minus_obj=
4845
      ;;
4846
    none) break ;;
4847
    esac
4848
    if depmode=$depmode \
4849
       source=sub/conftest.c object=$am__obj \
4850
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4851
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4852
         >/dev/null 2>conftest.err &&
4853
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4854
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4855
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4856
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4857
      # icc doesn't choke on unknown options, it will just issue warnings
4858
      # or remarks (even with -Werror).  So we grep stderr for any message
4859
      # that says an option was ignored or not supported.
4860
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4861
      #   icc: Command line warning: ignoring option '-M'; no argument required
4862
      # The diagnosis changed in icc 8.0:
4863
      #   icc: Command line remark: option '-MP' not supported
4864
      if (grep 'ignoring option' conftest.err ||
4865
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4866
        am_cv_CXX_dependencies_compiler_type=$depmode
4867
        break
4868
      fi
4869
    fi
4870
  done
4871
 
4872
  cd ..
4873
  rm -rf conftest.dir
4874
else
4875
  am_cv_CXX_dependencies_compiler_type=none
4876
fi
4877
 
4878
fi
4879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4880
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4881
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4882
 
4883
 if 
4884
  test "x$enable_dependency_tracking" != xno \
4885
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4886
  am__fastdepCXX_TRUE=
4887
  am__fastdepCXX_FALSE='#'
4888
else
4889
  am__fastdepCXX_TRUE='#'
4890
  am__fastdepCXX_FALSE=
4891
fi
4892
 
4893
 
4894
 
4895
case `pwd` in
4896
  *\ * | *\	*)
4897
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4898
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4899
esac
4900
 
4901
 
4902
 
4903
macro_version='2.2.6'
4904
macro_revision='1.3012'
4905
 
4906
 
4907
 
4908
 
4909
 
4910
 
4911
 
4912
 
4913
 
4914
 
4915
 
4916
 
4917
 
4918
ltmain="$ac_aux_dir/ltmain.sh"
4919
 
4920
# Make sure we can run config.sub.
4921
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4922
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4923
 
4924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4925
$as_echo_n "checking build system type... " >&6; }
4926
if test "${ac_cv_build+set}" = set; then :
4927
  $as_echo_n "(cached) " >&6
4928
else
4929
  ac_build_alias=$build_alias
4930
test "x$ac_build_alias" = x &&
4931
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4932
test "x$ac_build_alias" = x &&
4933
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4934
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4935
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4936
 
4937
fi
4938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4939
$as_echo "$ac_cv_build" >&6; }
4940
case $ac_cv_build in
4941
*-*-*) ;;
4942
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4943
esac
4944
build=$ac_cv_build
4945
ac_save_IFS=$IFS; IFS='-'
4946
set x $ac_cv_build
4947
shift
4948
build_cpu=$1
4949
build_vendor=$2
4950
shift; shift
4951
# Remember, the first character of IFS is used to create $*,
4952
# except with old shells:
4953
build_os=$*
4954
IFS=$ac_save_IFS
4955
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4956
 
4957
 
4958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4959
$as_echo_n "checking host system type... " >&6; }
4960
if test "${ac_cv_host+set}" = set; then :
4961
  $as_echo_n "(cached) " >&6
4962
else
4963
  if test "x$host_alias" = x; then
4964
  ac_cv_host=$ac_cv_build
4965
else
4966
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4967
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4968
fi
4969
 
4970
fi
4971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4972
$as_echo "$ac_cv_host" >&6; }
4973
case $ac_cv_host in
4974
*-*-*) ;;
4975
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4976
esac
4977
host=$ac_cv_host
4978
ac_save_IFS=$IFS; IFS='-'
4979
set x $ac_cv_host
4980
shift
4981
host_cpu=$1
4982
host_vendor=$2
4983
shift; shift
4984
# Remember, the first character of IFS is used to create $*,
4985
# except with old shells:
4986
host_os=$*
4987
IFS=$ac_save_IFS
4988
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4989
 
4990
 
4991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4992
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4993
if test "${ac_cv_path_SED+set}" = set; then :
4994
  $as_echo_n "(cached) " >&6
4995
else
4996
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4997
     for ac_i in 1 2 3 4 5 6 7; do
4998
       ac_script="$ac_script$as_nl$ac_script"
4999
     done
5000
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5001
     { ac_script=; unset ac_script;}
5002
     if test -z "$SED"; then
5003
  ac_path_SED_found=false
5004
  # Loop through the user's path and test for each of PROGNAME-LIST
5005
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006
for as_dir in $PATH
5007
do
5008
  IFS=$as_save_IFS
5009
  test -z "$as_dir" && as_dir=.
5010
    for ac_prog in sed gsed; do
5011
    for ac_exec_ext in '' $ac_executable_extensions; do
5012
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5013
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5014
# Check for GNU ac_path_SED and select it if it is found.
5015
  # Check for GNU $ac_path_SED
5016
case `"$ac_path_SED" --version 2>&1` in
5017
*GNU*)
5018
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5019
*)
5020
  ac_count=0
5021
  $as_echo_n 0123456789 >"conftest.in"
5022
  while :
5023
  do
5024
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5025
    mv "conftest.tmp" "conftest.in"
5026
    cp "conftest.in" "conftest.nl"
5027
    $as_echo '' >> "conftest.nl"
5028
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5029
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5030
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5031
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5032
      # Best one so far, save it but keep looking for a better one
5033
      ac_cv_path_SED="$ac_path_SED"
5034
      ac_path_SED_max=$ac_count
5035
    fi
5036
    # 10*(2^10) chars as input seems more than enough
5037
    test $ac_count -gt 10 && break
5038
  done
5039
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5040
esac
5041
 
5042
      $ac_path_SED_found && break 3
5043
    done
5044
  done
5045
  done
5046
IFS=$as_save_IFS
5047
  if test -z "$ac_cv_path_SED"; then
5048
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5049
  fi
5050
else
5051
  ac_cv_path_SED=$SED
5052
fi
5053
 
5054
fi
5055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5056
$as_echo "$ac_cv_path_SED" >&6; }
5057
 SED="$ac_cv_path_SED"
5058
  rm -f conftest.sed
5059
 
5060
test -z "$SED" && SED=sed
5061
Xsed="$SED -e 1s/^X//"
5062
 
5063
 
5064
 
5065
 
5066
 
5067
 
5068
 
5069
 
5070
 
5071
 
5072
 
5073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5074
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5075
if test "${ac_cv_path_GREP+set}" = set; then :
5076
  $as_echo_n "(cached) " >&6
5077
else
5078
  if test -z "$GREP"; then
5079
  ac_path_GREP_found=false
5080
  # Loop through the user's path and test for each of PROGNAME-LIST
5081
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5083
do
5084
  IFS=$as_save_IFS
5085
  test -z "$as_dir" && as_dir=.
5086
    for ac_prog in grep ggrep; do
5087
    for ac_exec_ext in '' $ac_executable_extensions; do
5088
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5089
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5090
# Check for GNU ac_path_GREP and select it if it is found.
5091
  # Check for GNU $ac_path_GREP
5092
case `"$ac_path_GREP" --version 2>&1` in
5093
*GNU*)
5094
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5095
*)
5096
  ac_count=0
5097
  $as_echo_n 0123456789 >"conftest.in"
5098
  while :
5099
  do
5100
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5101
    mv "conftest.tmp" "conftest.in"
5102
    cp "conftest.in" "conftest.nl"
5103
    $as_echo 'GREP' >> "conftest.nl"
5104
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5105
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5106
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5107
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5108
      # Best one so far, save it but keep looking for a better one
5109
      ac_cv_path_GREP="$ac_path_GREP"
5110
      ac_path_GREP_max=$ac_count
5111
    fi
5112
    # 10*(2^10) chars as input seems more than enough
5113
    test $ac_count -gt 10 && break
5114
  done
5115
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5116
esac
5117
 
5118
      $ac_path_GREP_found && break 3
5119
    done
5120
  done
5121
  done
5122
IFS=$as_save_IFS
5123
  if test -z "$ac_cv_path_GREP"; then
5124
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5125
  fi
5126
else
5127
  ac_cv_path_GREP=$GREP
5128
fi
5129
 
5130
fi
5131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5132
$as_echo "$ac_cv_path_GREP" >&6; }
5133
 GREP="$ac_cv_path_GREP"
5134
 
5135
 
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5137
$as_echo_n "checking for egrep... " >&6; }
5138
if test "${ac_cv_path_EGREP+set}" = set; then :
5139
  $as_echo_n "(cached) " >&6
5140
else
5141
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5142
   then ac_cv_path_EGREP="$GREP -E"
5143
   else
5144
     if test -z "$EGREP"; then
5145
  ac_path_EGREP_found=false
5146
  # Loop through the user's path and test for each of PROGNAME-LIST
5147
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5149
do
5150
  IFS=$as_save_IFS
5151
  test -z "$as_dir" && as_dir=.
5152
    for ac_prog in egrep; do
5153
    for ac_exec_ext in '' $ac_executable_extensions; do
5154
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5155
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5156
# Check for GNU ac_path_EGREP and select it if it is found.
5157
  # Check for GNU $ac_path_EGREP
5158
case `"$ac_path_EGREP" --version 2>&1` in
5159
*GNU*)
5160
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5161
*)
5162
  ac_count=0
5163
  $as_echo_n 0123456789 >"conftest.in"
5164
  while :
5165
  do
5166
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5167
    mv "conftest.tmp" "conftest.in"
5168
    cp "conftest.in" "conftest.nl"
5169
    $as_echo 'EGREP' >> "conftest.nl"
5170
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5171
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5172
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5173
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5174
      # Best one so far, save it but keep looking for a better one
5175
      ac_cv_path_EGREP="$ac_path_EGREP"
5176
      ac_path_EGREP_max=$ac_count
5177
    fi
5178
    # 10*(2^10) chars as input seems more than enough
5179
    test $ac_count -gt 10 && break
5180
  done
5181
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5182
esac
5183
 
5184
      $ac_path_EGREP_found && break 3
5185
    done
5186
  done
5187
  done
5188
IFS=$as_save_IFS
5189
  if test -z "$ac_cv_path_EGREP"; then
5190
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5191
  fi
5192
else
5193
  ac_cv_path_EGREP=$EGREP
5194
fi
5195
 
5196
   fi
5197
fi
5198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5199
$as_echo "$ac_cv_path_EGREP" >&6; }
5200
 EGREP="$ac_cv_path_EGREP"
5201
 
5202
 
5203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5204
$as_echo_n "checking for fgrep... " >&6; }
5205
if test "${ac_cv_path_FGREP+set}" = set; then :
5206
  $as_echo_n "(cached) " >&6
5207
else
5208
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5209
   then ac_cv_path_FGREP="$GREP -F"
5210
   else
5211
     if test -z "$FGREP"; then
5212
  ac_path_FGREP_found=false
5213
  # Loop through the user's path and test for each of PROGNAME-LIST
5214
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216
do
5217
  IFS=$as_save_IFS
5218
  test -z "$as_dir" && as_dir=.
5219
    for ac_prog in fgrep; do
5220
    for ac_exec_ext in '' $ac_executable_extensions; do
5221
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5222
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5223
# Check for GNU ac_path_FGREP and select it if it is found.
5224
  # Check for GNU $ac_path_FGREP
5225
case `"$ac_path_FGREP" --version 2>&1` in
5226
*GNU*)
5227
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5228
*)
5229
  ac_count=0
5230
  $as_echo_n 0123456789 >"conftest.in"
5231
  while :
5232
  do
5233
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5234
    mv "conftest.tmp" "conftest.in"
5235
    cp "conftest.in" "conftest.nl"
5236
    $as_echo 'FGREP' >> "conftest.nl"
5237
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5240
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5241
      # Best one so far, save it but keep looking for a better one
5242
      ac_cv_path_FGREP="$ac_path_FGREP"
5243
      ac_path_FGREP_max=$ac_count
5244
    fi
5245
    # 10*(2^10) chars as input seems more than enough
5246
    test $ac_count -gt 10 && break
5247
  done
5248
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249
esac
5250
 
5251
      $ac_path_FGREP_found && break 3
5252
    done
5253
  done
5254
  done
5255
IFS=$as_save_IFS
5256
  if test -z "$ac_cv_path_FGREP"; then
5257
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5258
  fi
5259
else
5260
  ac_cv_path_FGREP=$FGREP
5261
fi
5262
 
5263
   fi
5264
fi
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5266
$as_echo "$ac_cv_path_FGREP" >&6; }
5267
 FGREP="$ac_cv_path_FGREP"
5268
 
5269
 
5270
test -z "$GREP" && GREP=grep
5271
 
5272
 
5273
 
5274
 
5275
 
5276
 
5277
 
5278
 
5279
 
5280
 
5281
 
5282
 
5283
 
5284
 
5285
 
5286
 
5287
 
5288
 
5289
 
5290
@%:@ Check whether --with-gnu-ld was given.
5291
if test "${with_gnu_ld+set}" = set; then :
5292
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5293
else
5294
  with_gnu_ld=no
5295
fi
5296
 
5297
ac_prog=ld
5298
if test "$GCC" = yes; then
5299
  # Check if gcc -print-prog-name=ld gives a path.
5300
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5301
$as_echo_n "checking for ld used by $CC... " >&6; }
5302
  case $host in
5303
  *-*-mingw*)
5304
    # gcc leaves a trailing carriage return which upsets mingw
5305
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5306
  *)
5307
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5308
  esac
5309
  case $ac_prog in
5310
    # Accept absolute paths.
5311
    [\\/]* | ?:[\\/]*)
5312
      re_direlt='/[^/][^/]*/\.\./'
5313
      # Canonicalize the pathname of ld
5314
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5315
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5316
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5317
      done
5318
      test -z "$LD" && LD="$ac_prog"
5319
      ;;
5320
  "")
5321
    # If it fails, then pretend we aren't using GCC.
5322
    ac_prog=ld
5323
    ;;
5324
  *)
5325
    # If it is relative, then search for the first ld in PATH.
5326
    with_gnu_ld=unknown
5327
    ;;
5328
  esac
5329
elif test "$with_gnu_ld" = yes; then
5330
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5331
$as_echo_n "checking for GNU ld... " >&6; }
5332
else
5333
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5334
$as_echo_n "checking for non-GNU ld... " >&6; }
5335
fi
5336
if test "${lt_cv_path_LD+set}" = set; then :
5337
  $as_echo_n "(cached) " >&6
5338
else
5339
  if test -z "$LD"; then
5340
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341
  for ac_dir in $PATH; do
5342
    IFS="$lt_save_ifs"
5343
    test -z "$ac_dir" && ac_dir=.
5344
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5345
      lt_cv_path_LD="$ac_dir/$ac_prog"
5346
      # Check to see if the program is GNU ld.  I'd rather use --version,
5347
      # but apparently some variants of GNU ld only accept -v.
5348
      # Break only if it was the GNU/non-GNU ld that we prefer.
5349
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5350
      *GNU* | *'with BFD'*)
5351
	test "$with_gnu_ld" != no && break
5352
	;;
5353
      *)
5354
	test "$with_gnu_ld" != yes && break
5355
	;;
5356
      esac
5357
    fi
5358
  done
5359
  IFS="$lt_save_ifs"
5360
else
5361
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5362
fi
5363
fi
5364
 
5365
LD="$lt_cv_path_LD"
5366
if test -n "$LD"; then
5367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5368
$as_echo "$LD" >&6; }
5369
else
5370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371
$as_echo "no" >&6; }
5372
fi
5373
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5375
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5376
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5377
  $as_echo_n "(cached) " >&6
5378
else
5379
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5380
case `$LD -v 2>&1 </dev/null` in
5381
*GNU* | *'with BFD'*)
5382
  lt_cv_prog_gnu_ld=yes
5383
  ;;
5384
*)
5385
  lt_cv_prog_gnu_ld=no
5386
  ;;
5387
esac
5388
fi
5389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5390
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5391
with_gnu_ld=$lt_cv_prog_gnu_ld
5392
 
5393
 
5394
 
5395
 
5396
 
5397
 
5398
 
5399
 
5400
 
5401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5402
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5403
if test "${lt_cv_path_NM+set}" = set; then :
5404
  $as_echo_n "(cached) " >&6
5405
else
5406
  if test -n "$NM"; then
5407
  # Let the user override the test.
5408
  lt_cv_path_NM="$NM"
5409
else
5410
  lt_nm_to_check="${ac_tool_prefix}nm"
5411
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5412
    lt_nm_to_check="$lt_nm_to_check nm"
5413
  fi
5414
  for lt_tmp_nm in $lt_nm_to_check; do
5415
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5416
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5417
      IFS="$lt_save_ifs"
5418
      test -z "$ac_dir" && ac_dir=.
5419
      tmp_nm="$ac_dir/$lt_tmp_nm"
5420
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5421
	# Check to see if the nm accepts a BSD-compat flag.
5422
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5423
	#   nm: unknown option "B" ignored
5424
	# Tru64's nm complains that /dev/null is an invalid object file
5425
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5426
	*/dev/null* | *'Invalid file or object type'*)
5427
	  lt_cv_path_NM="$tmp_nm -B"
5428
	  break
5429
	  ;;
5430
	*)
5431
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5432
	  */dev/null*)
5433
	    lt_cv_path_NM="$tmp_nm -p"
5434
	    break
5435
	    ;;
5436
	  *)
5437
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5438
	    continue # so that we can try to find one that supports BSD flags
5439
	    ;;
5440
	  esac
5441
	  ;;
5442
	esac
5443
      fi
5444
    done
5445
    IFS="$lt_save_ifs"
5446
  done
5447
  : ${lt_cv_path_NM=no}
5448
fi
5449
fi
5450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5451
$as_echo "$lt_cv_path_NM" >&6; }
5452
if test "$lt_cv_path_NM" != "no"; then
5453
  NM="$lt_cv_path_NM"
5454
else
5455
  # Didn't find any BSD compatible name lister, look for dumpbin.
5456
  if test -n "$ac_tool_prefix"; then
5457
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5458
  do
5459
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5460
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462
$as_echo_n "checking for $ac_word... " >&6; }
5463
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5464
  $as_echo_n "(cached) " >&6
5465
else
5466
  if test -n "$DUMPBIN"; then
5467
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5468
else
5469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470
for as_dir in $PATH
5471
do
5472
  IFS=$as_save_IFS
5473
  test -z "$as_dir" && as_dir=.
5474
    for ac_exec_ext in '' $ac_executable_extensions; do
5475
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5477
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478
    break 2
5479
  fi
5480
done
5481
  done
5482
IFS=$as_save_IFS
5483
 
5484
fi
5485
fi
5486
DUMPBIN=$ac_cv_prog_DUMPBIN
5487
if test -n "$DUMPBIN"; then
5488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5489
$as_echo "$DUMPBIN" >&6; }
5490
else
5491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492
$as_echo "no" >&6; }
5493
fi
5494
 
5495
 
5496
    test -n "$DUMPBIN" && break
5497
  done
5498
fi
5499
if test -z "$DUMPBIN"; then
5500
  ac_ct_DUMPBIN=$DUMPBIN
5501
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5502
do
5503
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5504
set dummy $ac_prog; ac_word=$2
5505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506
$as_echo_n "checking for $ac_word... " >&6; }
5507
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5508
  $as_echo_n "(cached) " >&6
5509
else
5510
  if test -n "$ac_ct_DUMPBIN"; then
5511
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5512
else
5513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514
for as_dir in $PATH
5515
do
5516
  IFS=$as_save_IFS
5517
  test -z "$as_dir" && as_dir=.
5518
    for ac_exec_ext in '' $ac_executable_extensions; do
5519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5521
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522
    break 2
5523
  fi
5524
done
5525
  done
5526
IFS=$as_save_IFS
5527
 
5528
fi
5529
fi
5530
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5531
if test -n "$ac_ct_DUMPBIN"; then
5532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5533
$as_echo "$ac_ct_DUMPBIN" >&6; }
5534
else
5535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536
$as_echo "no" >&6; }
5537
fi
5538
 
5539
 
5540
  test -n "$ac_ct_DUMPBIN" && break
5541
done
5542
 
5543
  if test "x$ac_ct_DUMPBIN" = x; then
5544
    DUMPBIN=":"
5545
  else
5546
    case $cross_compiling:$ac_tool_warned in
5547
yes:)
5548
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550
ac_tool_warned=yes ;;
5551
esac
5552
    DUMPBIN=$ac_ct_DUMPBIN
5553
  fi
5554
fi
5555
 
5556
 
5557
  if test "$DUMPBIN" != ":"; then
5558
    NM="$DUMPBIN"
5559
  fi
5560
fi
5561
test -z "$NM" && NM=nm
5562
 
5563
 
5564
 
5565
 
5566
 
5567
 
5568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5569
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5570
if test "${lt_cv_nm_interface+set}" = set; then :
5571
  $as_echo_n "(cached) " >&6
5572
else
5573
  lt_cv_nm_interface="BSD nm"
5574
  echo "int some_variable = 0;" > conftest.$ac_ext
5575
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
5576
  (eval "$ac_compile" 2>conftest.err)
5577
  cat conftest.err >&5
5578
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5579
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5580
  cat conftest.err >&5
5581
  (eval echo "\"\$as_me:__oline__: output\"" >&5)
5582
  cat conftest.out >&5
5583
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5584
    lt_cv_nm_interface="MS dumpbin"
5585
  fi
5586
  rm -f conftest*
5587
fi
5588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5589
$as_echo "$lt_cv_nm_interface" >&6; }
5590
 
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5592
$as_echo_n "checking whether ln -s works... " >&6; }
5593
LN_S=$as_ln_s
5594
if test "$LN_S" = "ln -s"; then
5595
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596
$as_echo "yes" >&6; }
5597
else
5598
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5599
$as_echo "no, using $LN_S" >&6; }
5600
fi
5601
 
5602
# find the maximum length of command line arguments
5603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5604
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5605
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5606
  $as_echo_n "(cached) " >&6
5607
else
5608
    i=0
5609
  teststring="ABCD"
5610
 
5611
  case $build_os in
5612
  msdosdjgpp*)
5613
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5614
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5615
    # during glob expansion).  Even if it were fixed, the result of this
5616
    # check would be larger than it should be.
5617
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5618
    ;;
5619
 
5620
  gnu*)
5621
    # Under GNU Hurd, this test is not required because there is
5622
    # no limit to the length of command line arguments.
5623
    # Libtool will interpret -1 as no limit whatsoever
5624
    lt_cv_sys_max_cmd_len=-1;
5625
    ;;
5626
 
5627
  cygwin* | mingw* | cegcc*)
5628
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5629
    # about 5 minutes as the teststring grows exponentially.
5630
    # Worse, since 9x/ME are not pre-emptively multitasking,
5631
    # you end up with a "frozen" computer, even though with patience
5632
    # the test eventually succeeds (with a max line length of 256k).
5633
    # Instead, let's just punt: use the minimum linelength reported by
5634
    # all of the supported platforms: 8192 (on NT/2K/XP).
5635
    lt_cv_sys_max_cmd_len=8192;
5636
    ;;
5637
 
5638
  amigaos*)
5639
    # On AmigaOS with pdksh, this test takes hours, literally.
5640
    # So we just punt and use a minimum line length of 8192.
5641
    lt_cv_sys_max_cmd_len=8192;
5642
    ;;
5643
 
5644
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5645
    # This has been around since 386BSD, at least.  Likely further.
5646
    if test -x /sbin/sysctl; then
5647
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5648
    elif test -x /usr/sbin/sysctl; then
5649
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5650
    else
5651
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5652
    fi
5653
    # And add a safety zone
5654
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5655
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5656
    ;;
5657
 
5658
  interix*)
5659
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5660
    lt_cv_sys_max_cmd_len=196608
5661
    ;;
5662
 
5663
  osf*)
5664
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5665
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5666
    # nice to cause kernel panics so lets avoid the loop below.
5667
    # First set a reasonable default.
5668
    lt_cv_sys_max_cmd_len=16384
5669
    #
5670
    if test -x /sbin/sysconfig; then
5671
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5672
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5673
      esac
5674
    fi
5675
    ;;
5676
  sco3.2v5*)
5677
    lt_cv_sys_max_cmd_len=102400
5678
    ;;
5679
  sysv5* | sco5v6* | sysv4.2uw2*)
5680
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5681
    if test -n "$kargmax"; then
5682
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5683
    else
5684
      lt_cv_sys_max_cmd_len=32768
5685
    fi
5686
    ;;
5687
  *)
5688
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5689
    if test -n "$lt_cv_sys_max_cmd_len"; then
5690
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5691
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5692
    else
5693
      # Make teststring a little bigger before we do anything with it.
5694
      # a 1K string should be a reasonable start.
5695
      for i in 1 2 3 4 5 6 7 8 ; do
5696
        teststring=$teststring$teststring
5697
      done
5698
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5699
      # If test is not a shell built-in, we'll probably end up computing a
5700
      # maximum length that is only half of the actual maximum length, but
5701
      # we can't tell.
5702
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5703
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5704
	      test $i != 17 # 1/2 MB should be enough
5705
      do
5706
        i=`expr $i + 1`
5707
        teststring=$teststring$teststring
5708
      done
5709
      # Only check the string length outside the loop.
5710
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5711
      teststring=
5712
      # Add a significant safety factor because C++ compilers can tack on
5713
      # massive amounts of additional arguments before passing them to the
5714
      # linker.  It appears as though 1/2 is a usable value.
5715
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5716
    fi
5717
    ;;
5718
  esac
5719
 
5720
fi
5721
 
5722
if test -n $lt_cv_sys_max_cmd_len ; then
5723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5724
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5725
else
5726
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5727
$as_echo "none" >&6; }
5728
fi
5729
max_cmd_len=$lt_cv_sys_max_cmd_len
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
: ${CP="cp -f"}
5737
: ${MV="mv -f"}
5738
: ${RM="rm -f"}
5739
 
5740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5741
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5742
# Try some XSI features
5743
xsi_shell=no
5744
( _lt_dummy="a/b/c"
5745
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5746
      = c,a/b,, \
5747
    && eval 'test $(( 1 + 1 )) -eq 2 \
5748
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5749
  && xsi_shell=yes
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5751
$as_echo "$xsi_shell" >&6; }
5752
 
5753
 
5754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5755
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5756
lt_shell_append=no
5757
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5758
    >/dev/null 2>&1 \
5759
  && lt_shell_append=yes
5760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5761
$as_echo "$lt_shell_append" >&6; }
5762
 
5763
 
5764
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5765
  lt_unset=unset
5766
else
5767
  lt_unset=false
5768
fi
5769
 
5770
 
5771
 
5772
 
5773
 
5774
# test EBCDIC or ASCII
5775
case `echo X|tr X '\101'` in
5776
 A) # ASCII based system
5777
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5778
  lt_SP2NL='tr \040 \012'
5779
  lt_NL2SP='tr \015\012 \040\040'
5780
  ;;
5781
 *) # EBCDIC based system
5782
  lt_SP2NL='tr \100 \n'
5783
  lt_NL2SP='tr \r\n \100\100'
5784
  ;;
5785
esac
5786
 
5787
 
5788
 
5789
 
5790
 
5791
 
5792
 
5793
 
5794
 
5795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5796
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5797
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5798
  $as_echo_n "(cached) " >&6
5799
else
5800
  lt_cv_ld_reload_flag='-r'
5801
fi
5802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5803
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5804
reload_flag=$lt_cv_ld_reload_flag
5805
case $reload_flag in
5806
"" | " "*) ;;
5807
*) reload_flag=" $reload_flag" ;;
5808
esac
5809
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5810
case $host_os in
5811
  darwin*)
5812
    if test "$GCC" = yes; then
5813
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5814
    else
5815
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5816
    fi
5817
    ;;
5818
esac
5819
 
5820
 
5821
 
5822
 
5823
 
5824
 
5825
 
5826
 
5827
 
5828
if test -n "$ac_tool_prefix"; then
5829
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5830
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832
$as_echo_n "checking for $ac_word... " >&6; }
5833
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5834
  $as_echo_n "(cached) " >&6
5835
else
5836
  if test -n "$OBJDUMP"; then
5837
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5838
else
5839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840
for as_dir in $PATH
5841
do
5842
  IFS=$as_save_IFS
5843
  test -z "$as_dir" && as_dir=.
5844
    for ac_exec_ext in '' $ac_executable_extensions; do
5845
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5847
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848
    break 2
5849
  fi
5850
done
5851
  done
5852
IFS=$as_save_IFS
5853
 
5854
fi
5855
fi
5856
OBJDUMP=$ac_cv_prog_OBJDUMP
5857
if test -n "$OBJDUMP"; then
5858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5859
$as_echo "$OBJDUMP" >&6; }
5860
else
5861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862
$as_echo "no" >&6; }
5863
fi
5864
 
5865
 
5866
fi
5867
if test -z "$ac_cv_prog_OBJDUMP"; then
5868
  ac_ct_OBJDUMP=$OBJDUMP
5869
  # Extract the first word of "objdump", so it can be a program name with args.
5870
set dummy objdump; ac_word=$2
5871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872
$as_echo_n "checking for $ac_word... " >&6; }
5873
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5874
  $as_echo_n "(cached) " >&6
5875
else
5876
  if test -n "$ac_ct_OBJDUMP"; then
5877
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5878
else
5879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880
for as_dir in $PATH
5881
do
5882
  IFS=$as_save_IFS
5883
  test -z "$as_dir" && as_dir=.
5884
    for ac_exec_ext in '' $ac_executable_extensions; do
5885
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5887
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888
    break 2
5889
  fi
5890
done
5891
  done
5892
IFS=$as_save_IFS
5893
 
5894
fi
5895
fi
5896
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5897
if test -n "$ac_ct_OBJDUMP"; then
5898
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5899
$as_echo "$ac_ct_OBJDUMP" >&6; }
5900
else
5901
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902
$as_echo "no" >&6; }
5903
fi
5904
 
5905
  if test "x$ac_ct_OBJDUMP" = x; then
5906
    OBJDUMP="false"
5907
  else
5908
    case $cross_compiling:$ac_tool_warned in
5909
yes:)
5910
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912
ac_tool_warned=yes ;;
5913
esac
5914
    OBJDUMP=$ac_ct_OBJDUMP
5915
  fi
5916
else
5917
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5918
fi
5919
 
5920
test -z "$OBJDUMP" && OBJDUMP=objdump
5921
 
5922
 
5923
 
5924
 
5925
 
5926
 
5927
 
5928
 
5929
 
5930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5931
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5932
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5933
  $as_echo_n "(cached) " >&6
5934
else
5935
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5936
lt_cv_file_magic_test_file=
5937
lt_cv_deplibs_check_method='unknown'
5938
# Need to set the preceding variable on all platforms that support
5939
# interlibrary dependencies.
5940
# 'none' -- dependencies not supported.
5941
# `unknown' -- same as none, but documents that we really don't know.
5942
# 'pass_all' -- all dependencies passed with no checks.
5943
# 'test_compile' -- check by making test program.
5944
# 'file_magic [[regex]]' -- check by looking for files in library path
5945
# which responds to the $file_magic_cmd with a given extended regex.
5946
# If you have `file' or equivalent on your system and you're not sure
5947
# whether `pass_all' will *always* work, you probably want this one.
5948
 
5949
case $host_os in
5950
aix[4-9]*)
5951
  lt_cv_deplibs_check_method=pass_all
5952
  ;;
5953
 
5954
beos*)
5955
  lt_cv_deplibs_check_method=pass_all
5956
  ;;
5957
 
5958
bsdi[45]*)
5959
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5960
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5961
  lt_cv_file_magic_test_file=/shlib/libc.so
5962
  ;;
5963
 
5964
cygwin*)
5965
  # func_win32_libid is a shell function defined in ltmain.sh
5966
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5967
  lt_cv_file_magic_cmd='func_win32_libid'
5968
  ;;
5969
 
5970
mingw* | pw32*)
5971
  # Base MSYS/MinGW do not provide the 'file' command needed by
5972
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5973
  # unless we find 'file', for example because we are cross-compiling.
5974
  if ( file / ) >/dev/null 2>&1; then
5975
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5976
    lt_cv_file_magic_cmd='func_win32_libid'
5977
  else
5978
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5979
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5980
  fi
5981
  ;;
5982
 
5983
cegcc)
5984
  # use the weaker test based on 'objdump'. See mingw*.
5985
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5986
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5987
  ;;
5988
 
5989
darwin* | rhapsody*)
5990
  lt_cv_deplibs_check_method=pass_all
5991
  ;;
5992
 
5993
freebsd* | dragonfly*)
5994
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5995
    case $host_cpu in
5996
    i*86 )
5997
      # Not sure whether the presence of OpenBSD here was a mistake.
5998
      # Let's accept both of them until this is cleared up.
5999
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6000
      lt_cv_file_magic_cmd=/usr/bin/file
6001
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6002
      ;;
6003
    esac
6004
  else
6005
    lt_cv_deplibs_check_method=pass_all
6006
  fi
6007
  ;;
6008
 
6009
gnu*)
6010
  lt_cv_deplibs_check_method=pass_all
6011
  ;;
6012
 
6013
hpux10.20* | hpux11*)
6014
  lt_cv_file_magic_cmd=/usr/bin/file
6015
  case $host_cpu in
6016
  ia64*)
6017
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6018
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6019
    ;;
6020
  hppa*64*)
6021
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6022
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6023
    ;;
6024
  *)
6025
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6026
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6027
    ;;
6028
  esac
6029
  ;;
6030
 
6031
interix[3-9]*)
6032
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6033
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6034
  ;;
6035
 
6036
irix5* | irix6* | nonstopux*)
6037
  case $LD in
6038
  *-32|*"-32 ") libmagic=32-bit;;
6039
  *-n32|*"-n32 ") libmagic=N32;;
6040
  *-64|*"-64 ") libmagic=64-bit;;
6041
  *) libmagic=never-match;;
6042
  esac
6043
  lt_cv_deplibs_check_method=pass_all
6044
  ;;
6045
 
6046
# This must be Linux ELF.
6047
linux* | k*bsd*-gnu)
6048
  lt_cv_deplibs_check_method=pass_all
6049
  ;;
6050
 
6051
netbsd* | netbsdelf*-gnu)
6052
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6053
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6054
  else
6055
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6056
  fi
6057
  ;;
6058
 
6059
newos6*)
6060
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6061
  lt_cv_file_magic_cmd=/usr/bin/file
6062
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6063
  ;;
6064
 
6065
*nto* | *qnx*)
6066
  lt_cv_deplibs_check_method=pass_all
6067
  ;;
6068
 
6069
openbsd*)
6070
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6071
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6072
  else
6073
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6074
  fi
6075
  ;;
6076
 
6077
osf3* | osf4* | osf5*)
6078
  lt_cv_deplibs_check_method=pass_all
6079
  ;;
6080
 
6081
rdos*)
6082
  lt_cv_deplibs_check_method=pass_all
6083
  ;;
6084
 
6085
solaris*)
6086
  lt_cv_deplibs_check_method=pass_all
6087
  ;;
6088
 
6089
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6090
  lt_cv_deplibs_check_method=pass_all
6091
  ;;
6092
 
6093
sysv4 | sysv4.3*)
6094
  case $host_vendor in
6095
  motorola)
6096
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6097
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6098
    ;;
6099
  ncr)
6100
    lt_cv_deplibs_check_method=pass_all
6101
    ;;
6102
  sequent)
6103
    lt_cv_file_magic_cmd='/bin/file'
6104
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6105
    ;;
6106
  sni)
6107
    lt_cv_file_magic_cmd='/bin/file'
6108
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6109
    lt_cv_file_magic_test_file=/lib/libc.so
6110
    ;;
6111
  siemens)
6112
    lt_cv_deplibs_check_method=pass_all
6113
    ;;
6114
  pc)
6115
    lt_cv_deplibs_check_method=pass_all
6116
    ;;
6117
  esac
6118
  ;;
6119
 
6120
tpf*)
6121
  lt_cv_deplibs_check_method=pass_all
6122
  ;;
6123
esac
6124
 
6125
fi
6126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6127
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6128
file_magic_cmd=$lt_cv_file_magic_cmd
6129
deplibs_check_method=$lt_cv_deplibs_check_method
6130
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6131
 
6132
 
6133
 
6134
 
6135
 
6136
 
6137
 
6138
 
6139
 
6140
 
6141
 
6142
 
6143
if test -n "$ac_tool_prefix"; then
6144
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6145
set dummy ${ac_tool_prefix}ar; ac_word=$2
6146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147
$as_echo_n "checking for $ac_word... " >&6; }
6148
if test "${ac_cv_prog_AR+set}" = set; then :
6149
  $as_echo_n "(cached) " >&6
6150
else
6151
  if test -n "$AR"; then
6152
  ac_cv_prog_AR="$AR" # Let the user override the test.
6153
else
6154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155
for as_dir in $PATH
6156
do
6157
  IFS=$as_save_IFS
6158
  test -z "$as_dir" && as_dir=.
6159
    for ac_exec_ext in '' $ac_executable_extensions; do
6160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6162
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163
    break 2
6164
  fi
6165
done
6166
  done
6167
IFS=$as_save_IFS
6168
 
6169
fi
6170
fi
6171
AR=$ac_cv_prog_AR
6172
if test -n "$AR"; then
6173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6174
$as_echo "$AR" >&6; }
6175
else
6176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177
$as_echo "no" >&6; }
6178
fi
6179
 
6180
 
6181
fi
6182
if test -z "$ac_cv_prog_AR"; then
6183
  ac_ct_AR=$AR
6184
  # Extract the first word of "ar", so it can be a program name with args.
6185
set dummy ar; ac_word=$2
6186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187
$as_echo_n "checking for $ac_word... " >&6; }
6188
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6189
  $as_echo_n "(cached) " >&6
6190
else
6191
  if test -n "$ac_ct_AR"; then
6192
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6193
else
6194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195
for as_dir in $PATH
6196
do
6197
  IFS=$as_save_IFS
6198
  test -z "$as_dir" && as_dir=.
6199
    for ac_exec_ext in '' $ac_executable_extensions; do
6200
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201
    ac_cv_prog_ac_ct_AR="ar"
6202
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203
    break 2
6204
  fi
6205
done
6206
  done
6207
IFS=$as_save_IFS
6208
 
6209
fi
6210
fi
6211
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6212
if test -n "$ac_ct_AR"; then
6213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6214
$as_echo "$ac_ct_AR" >&6; }
6215
else
6216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217
$as_echo "no" >&6; }
6218
fi
6219
 
6220
  if test "x$ac_ct_AR" = x; then
6221
    AR="false"
6222
  else
6223
    case $cross_compiling:$ac_tool_warned in
6224
yes:)
6225
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227
ac_tool_warned=yes ;;
6228
esac
6229
    AR=$ac_ct_AR
6230
  fi
6231
else
6232
  AR="$ac_cv_prog_AR"
6233
fi
6234
 
6235
test -z "$AR" && AR=ar
6236
test -z "$AR_FLAGS" && AR_FLAGS=cru
6237
 
6238
 
6239
 
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
if test -n "$ac_tool_prefix"; then
6249
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6250
set dummy ${ac_tool_prefix}strip; ac_word=$2
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252
$as_echo_n "checking for $ac_word... " >&6; }
6253
if test "${ac_cv_prog_STRIP+set}" = set; then :
6254
  $as_echo_n "(cached) " >&6
6255
else
6256
  if test -n "$STRIP"; then
6257
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6258
else
6259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260
for as_dir in $PATH
6261
do
6262
  IFS=$as_save_IFS
6263
  test -z "$as_dir" && as_dir=.
6264
    for ac_exec_ext in '' $ac_executable_extensions; do
6265
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6267
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268
    break 2
6269
  fi
6270
done
6271
  done
6272
IFS=$as_save_IFS
6273
 
6274
fi
6275
fi
6276
STRIP=$ac_cv_prog_STRIP
6277
if test -n "$STRIP"; then
6278
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6279
$as_echo "$STRIP" >&6; }
6280
else
6281
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282
$as_echo "no" >&6; }
6283
fi
6284
 
6285
 
6286
fi
6287
if test -z "$ac_cv_prog_STRIP"; then
6288
  ac_ct_STRIP=$STRIP
6289
  # Extract the first word of "strip", so it can be a program name with args.
6290
set dummy strip; ac_word=$2
6291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292
$as_echo_n "checking for $ac_word... " >&6; }
6293
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6294
  $as_echo_n "(cached) " >&6
6295
else
6296
  if test -n "$ac_ct_STRIP"; then
6297
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6298
else
6299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300
for as_dir in $PATH
6301
do
6302
  IFS=$as_save_IFS
6303
  test -z "$as_dir" && as_dir=.
6304
    for ac_exec_ext in '' $ac_executable_extensions; do
6305
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306
    ac_cv_prog_ac_ct_STRIP="strip"
6307
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308
    break 2
6309
  fi
6310
done
6311
  done
6312
IFS=$as_save_IFS
6313
 
6314
fi
6315
fi
6316
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6317
if test -n "$ac_ct_STRIP"; then
6318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6319
$as_echo "$ac_ct_STRIP" >&6; }
6320
else
6321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322
$as_echo "no" >&6; }
6323
fi
6324
 
6325
  if test "x$ac_ct_STRIP" = x; then
6326
    STRIP=":"
6327
  else
6328
    case $cross_compiling:$ac_tool_warned in
6329
yes:)
6330
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332
ac_tool_warned=yes ;;
6333
esac
6334
    STRIP=$ac_ct_STRIP
6335
  fi
6336
else
6337
  STRIP="$ac_cv_prog_STRIP"
6338
fi
6339
 
6340
test -z "$STRIP" && STRIP=:
6341
 
6342
 
6343
 
6344
 
6345
 
6346
 
6347
if test -n "$ac_tool_prefix"; then
6348
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6349
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351
$as_echo_n "checking for $ac_word... " >&6; }
6352
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6353
  $as_echo_n "(cached) " >&6
6354
else
6355
  if test -n "$RANLIB"; then
6356
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6357
else
6358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359
for as_dir in $PATH
6360
do
6361
  IFS=$as_save_IFS
6362
  test -z "$as_dir" && as_dir=.
6363
    for ac_exec_ext in '' $ac_executable_extensions; do
6364
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6366
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367
    break 2
6368
  fi
6369
done
6370
  done
6371
IFS=$as_save_IFS
6372
 
6373
fi
6374
fi
6375
RANLIB=$ac_cv_prog_RANLIB
6376
if test -n "$RANLIB"; then
6377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6378
$as_echo "$RANLIB" >&6; }
6379
else
6380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381
$as_echo "no" >&6; }
6382
fi
6383
 
6384
 
6385
fi
6386
if test -z "$ac_cv_prog_RANLIB"; then
6387
  ac_ct_RANLIB=$RANLIB
6388
  # Extract the first word of "ranlib", so it can be a program name with args.
6389
set dummy ranlib; ac_word=$2
6390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391
$as_echo_n "checking for $ac_word... " >&6; }
6392
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6393
  $as_echo_n "(cached) " >&6
6394
else
6395
  if test -n "$ac_ct_RANLIB"; then
6396
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6397
else
6398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399
for as_dir in $PATH
6400
do
6401
  IFS=$as_save_IFS
6402
  test -z "$as_dir" && as_dir=.
6403
    for ac_exec_ext in '' $ac_executable_extensions; do
6404
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6406
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407
    break 2
6408
  fi
6409
done
6410
  done
6411
IFS=$as_save_IFS
6412
 
6413
fi
6414
fi
6415
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6416
if test -n "$ac_ct_RANLIB"; then
6417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6418
$as_echo "$ac_ct_RANLIB" >&6; }
6419
else
6420
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421
$as_echo "no" >&6; }
6422
fi
6423
 
6424
  if test "x$ac_ct_RANLIB" = x; then
6425
    RANLIB=":"
6426
  else
6427
    case $cross_compiling:$ac_tool_warned in
6428
yes:)
6429
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431
ac_tool_warned=yes ;;
6432
esac
6433
    RANLIB=$ac_ct_RANLIB
6434
  fi
6435
else
6436
  RANLIB="$ac_cv_prog_RANLIB"
6437
fi
6438
 
6439
test -z "$RANLIB" && RANLIB=:
6440
 
6441
 
6442
 
6443
 
6444
 
6445
 
6446
# Determine commands to create old-style static archives.
6447
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6448
old_postinstall_cmds='chmod 644 $oldlib'
6449
old_postuninstall_cmds=
6450
 
6451
if test -n "$RANLIB"; then
6452
  case $host_os in
6453
  openbsd*)
6454
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6455
    ;;
6456
  *)
6457
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6458
    ;;
6459
  esac
6460
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6461
fi
6462
 
6463
 
6464
 
6465
 
6466
 
6467
 
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476
 
6477
 
6478
 
6479
 
6480
 
6481
 
6482
 
6483
 
6484
 
6485
 
6486
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492
 
6493
 
6494
 
6495
 
6496
# If no C compiler was specified, use CC.
6497
LTCC=${LTCC-"$CC"}
6498
 
6499
# If no C compiler flags were specified, use CFLAGS.
6500
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6501
 
6502
# Allow CC to be a program name with arguments.
6503
compiler=$CC
6504
 
6505
 
6506
# Check for command to grab the raw symbol name followed by C symbol from nm.
6507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6508
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6509
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6510
  $as_echo_n "(cached) " >&6
6511
else
6512
 
6513
# These are sane defaults that work on at least a few old systems.
6514
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6515
 
6516
# Character class describing NM global symbol codes.
6517
symcode='[BCDEGRST]'
6518
 
6519
# Regexp to match symbols that can be accessed directly from C.
6520
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6521
 
6522
# Define system-specific variables.
6523
case $host_os in
6524
aix*)
6525
  symcode='[BCDT]'
6526
  ;;
6527
cygwin* | mingw* | pw32* | cegcc*)
6528
  symcode='[ABCDGISTW]'
6529
  ;;
6530
hpux*)
6531
  if test "$host_cpu" = ia64; then
6532
    symcode='[ABCDEGRST]'
6533
  fi
6534
  ;;
6535
irix* | nonstopux*)
6536
  symcode='[BCDEGRST]'
6537
  ;;
6538
osf*)
6539
  symcode='[BCDEGQRST]'
6540
  ;;
6541
solaris*)
6542
  symcode='[BDRT]'
6543
  ;;
6544
sco3.2v5*)
6545
  symcode='[DT]'
6546
  ;;
6547
sysv4.2uw2*)
6548
  symcode='[DT]'
6549
  ;;
6550
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6551
  symcode='[ABDT]'
6552
  ;;
6553
sysv4)
6554
  symcode='[DFNSTU]'
6555
  ;;
6556
esac
6557
 
6558
# If we're using GNU nm, then use its standard symbol codes.
6559
case `$NM -V 2>&1` in
6560
*GNU* | *'with BFD'*)
6561
  symcode='[ABCDGIRSTW]' ;;
6562
esac
6563
 
6564
# Transform an extracted symbol line into a proper C declaration.
6565
# Some systems (esp. on ia64) link data and code symbols differently,
6566
# so use this general approach.
6567
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6568
 
6569
# Transform an extracted symbol line into symbol name and symbol address
6570
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6571
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6572
 
6573
# Handle CRLF in mingw tool chain
6574
opt_cr=
6575
case $build_os in
6576
mingw*)
6577
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6578
  ;;
6579
esac
6580
 
6581
# Try without a prefix underscore, then with it.
6582
for ac_symprfx in "" "_"; do
6583
 
6584
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6585
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6586
 
6587
  # Write the raw and C identifiers.
6588
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6589
    # Fake it for dumpbin and say T for any non-static function
6590
    # and D for any global variable.
6591
    # Also find C++ and __fastcall symbols from MSVC++,
6592
    # which start with @ or ?.
6593
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6594
"     {last_section=section; section=\$ 3};"\
6595
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6596
"     \$ 0!~/External *\|/{next};"\
6597
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6598
"     {if(hide[section]) next};"\
6599
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6600
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6601
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6602
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6603
"     ' prfx=^$ac_symprfx"
6604
  else
6605
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6606
  fi
6607
 
6608
  # Check to see that the pipe works correctly.
6609
  pipe_works=no
6610
 
6611
  rm -f conftest*
6612
  cat > conftest.$ac_ext <<_LT_EOF
6613
#ifdef __cplusplus
6614
extern "C" {
6615
#endif
6616
char nm_test_var;
6617
void nm_test_func(void);
6618
void nm_test_func(void){}
6619
#ifdef __cplusplus
6620
}
6621
#endif
6622
int main(){nm_test_var='a';nm_test_func();return(0);}
6623
_LT_EOF
6624
 
6625
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6626
  (eval $ac_compile) 2>&5
6627
  ac_status=$?
6628
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629
  test $ac_status = 0; }; then
6630
    # Now try to grab the symbols.
6631
    nlist=conftest.nm
6632
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6633
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6634
  ac_status=$?
6635
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636
  test $ac_status = 0; } && test -s "$nlist"; then
6637
      # Try sorting and uniquifying the output.
6638
      if sort "$nlist" | uniq > "$nlist"T; then
6639
	mv -f "$nlist"T "$nlist"
6640
      else
6641
	rm -f "$nlist"T
6642
      fi
6643
 
6644
      # Make sure that we snagged all the symbols we need.
6645
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6646
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6647
	  cat <<_LT_EOF > conftest.$ac_ext
6648
#ifdef __cplusplus
6649
extern "C" {
6650
#endif
6651
 
6652
_LT_EOF
6653
	  # Now generate the symbol file.
6654
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6655
 
6656
	  cat <<_LT_EOF >> conftest.$ac_ext
6657
 
6658
/* The mapping between symbol names and symbols.  */
6659
const struct {
6660
  const char *name;
6661
  void       *address;
6662
}
6663
lt__PROGRAM__LTX_preloaded_symbols[] =
6664
{
6665
  { "@PROGRAM@", (void *) 0 },
6666
_LT_EOF
6667
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6668
	  cat <<\_LT_EOF >> conftest.$ac_ext
6669
  {0, (void *) 0}
6670
};
6671
 
6672
/* This works around a problem in FreeBSD linker */
6673
#ifdef FREEBSD_WORKAROUND
6674
static const void *lt_preloaded_setup() {
6675
  return lt__PROGRAM__LTX_preloaded_symbols;
6676
}
6677
#endif
6678
 
6679
#ifdef __cplusplus
6680
}
6681
#endif
6682
_LT_EOF
6683
	  # Now try linking the two files.
6684
	  mv conftest.$ac_objext conftstm.$ac_objext
6685
	  lt_save_LIBS="$LIBS"
6686
	  lt_save_CFLAGS="$CFLAGS"
6687
	  LIBS="conftstm.$ac_objext"
6688
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6689
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6690
  (eval $ac_link) 2>&5
6691
  ac_status=$?
6692
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6694
	    pipe_works=yes
6695
	  fi
6696
	  LIBS="$lt_save_LIBS"
6697
	  CFLAGS="$lt_save_CFLAGS"
6698
	else
6699
	  echo "cannot find nm_test_func in $nlist" >&5
6700
	fi
6701
      else
6702
	echo "cannot find nm_test_var in $nlist" >&5
6703
      fi
6704
    else
6705
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6706
    fi
6707
  else
6708
    echo "$progname: failed program was:" >&5
6709
    cat conftest.$ac_ext >&5
6710
  fi
6711
  rm -rf conftest* conftst*
6712
 
6713
  # Do not use the global_symbol_pipe unless it works.
6714
  if test "$pipe_works" = yes; then
6715
    break
6716
  else
6717
    lt_cv_sys_global_symbol_pipe=
6718
  fi
6719
done
6720
 
6721
fi
6722
 
6723
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6724
  lt_cv_sys_global_symbol_to_cdecl=
6725
fi
6726
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6728
$as_echo "failed" >&6; }
6729
else
6730
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6731
$as_echo "ok" >&6; }
6732
fi
6733
 
6734
 
6735
 
6736
 
6737
 
6738
 
6739
 
6740
 
6741
 
6742
 
6743
 
6744
 
6745
 
6746
 
6747
 
6748
 
6749
 
6750
 
6751
 
6752
 
6753
 
6754
 
6755
 
6756
@%:@ Check whether --enable-libtool-lock was given.
6757
if test "${enable_libtool_lock+set}" = set; then :
6758
  enableval=$enable_libtool_lock; 
6759
fi
6760
 
6761
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6762
 
6763
# Some flags need to be propagated to the compiler or linker for good
6764
# libtool support.
6765
case $host in
6766
ia64-*-hpux*)
6767
  # Find out which ABI we are using.
6768
  echo 'int i;' > conftest.$ac_ext
6769
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770
  (eval $ac_compile) 2>&5
6771
  ac_status=$?
6772
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773
  test $ac_status = 0; }; then
6774
    case `/usr/bin/file conftest.$ac_objext` in
6775
      *ELF-32*)
6776
	HPUX_IA64_MODE="32"
6777
	;;
6778
      *ELF-64*)
6779
	HPUX_IA64_MODE="64"
6780
	;;
6781
    esac
6782
  fi
6783
  rm -rf conftest*
6784
  ;;
6785
*-*-irix6*)
6786
  # Find out which ABI we are using.
6787
  echo '#line __oline__ "configure"' > conftest.$ac_ext
6788
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6789
  (eval $ac_compile) 2>&5
6790
  ac_status=$?
6791
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792
  test $ac_status = 0; }; then
6793
    if test "$lt_cv_prog_gnu_ld" = yes; then
6794
      case `/usr/bin/file conftest.$ac_objext` in
6795
	*32-bit*)
6796
	  LD="${LD-ld} -melf32bsmip"
6797
	  ;;
6798
	*N32*)
6799
	  LD="${LD-ld} -melf32bmipn32"
6800
	  ;;
6801
	*64-bit*)
6802
	  LD="${LD-ld} -melf64bmip"
6803
	;;
6804
      esac
6805
    else
6806
      case `/usr/bin/file conftest.$ac_objext` in
6807
	*32-bit*)
6808
	  LD="${LD-ld} -32"
6809
	  ;;
6810
	*N32*)
6811
	  LD="${LD-ld} -n32"
6812
	  ;;
6813
	*64-bit*)
6814
	  LD="${LD-ld} -64"
6815
	  ;;
6816
      esac
6817
    fi
6818
  fi
6819
  rm -rf conftest*
6820
  ;;
6821
 
6822
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6823
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824
  # Find out which ABI we are using.
6825
  echo 'int i;' > conftest.$ac_ext
6826
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6827
  (eval $ac_compile) 2>&5
6828
  ac_status=$?
6829
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830
  test $ac_status = 0; }; then
6831
    case `/usr/bin/file conftest.o` in
6832
      *32-bit*)
6833
	case $host in
6834
	  x86_64-*kfreebsd*-gnu)
6835
	    LD="${LD-ld} -m elf_i386_fbsd"
6836
	    ;;
6837
	  x86_64-*linux*)
6838
	    LD="${LD-ld} -m elf_i386"
6839
	    ;;
6840
	  ppc64-*linux*|powerpc64-*linux*)
6841
	    LD="${LD-ld} -m elf32ppclinux"
6842
	    ;;
6843
	  s390x-*linux*)
6844
	    LD="${LD-ld} -m elf_s390"
6845
	    ;;
6846
	  sparc64-*linux*)
6847
	    LD="${LD-ld} -m elf32_sparc"
6848
	    ;;
6849
	esac
6850
	;;
6851
      *64-bit*)
6852
	case $host in
6853
	  x86_64-*kfreebsd*-gnu)
6854
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6855
	    ;;
6856
	  x86_64-*linux*)
6857
	    LD="${LD-ld} -m elf_x86_64"
6858
	    ;;
6859
	  ppc*-*linux*|powerpc*-*linux*)
6860
	    LD="${LD-ld} -m elf64ppc"
6861
	    ;;
6862
	  s390*-*linux*|s390*-*tpf*)
6863
	    LD="${LD-ld} -m elf64_s390"
6864
	    ;;
6865
	  sparc*-*linux*)
6866
	    LD="${LD-ld} -m elf64_sparc"
6867
	    ;;
6868
	esac
6869
	;;
6870
    esac
6871
  fi
6872
  rm -rf conftest*
6873
  ;;
6874
 
6875
*-*-sco3.2v5*)
6876
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6877
  SAVE_CFLAGS="$CFLAGS"
6878
  CFLAGS="$CFLAGS -belf"
6879
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6880
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6881
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6882
  $as_echo_n "(cached) " >&6
6883
else
6884
  ac_ext=c
6885
ac_cpp='$CPP $CPPFLAGS'
6886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889
 
6890
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891
/* end confdefs.h.  */
6892
 
6893
int
6894
main ()
6895
{
6896
 
6897
  ;
6898
  return 0;
6899
}
6900
_ACEOF
6901
if ac_fn_c_try_link "$LINENO"; then :
6902
  lt_cv_cc_needs_belf=yes
6903
else
6904
  lt_cv_cc_needs_belf=no
6905
fi
6906
rm -f core conftest.err conftest.$ac_objext \
6907
    conftest$ac_exeext conftest.$ac_ext
6908
     ac_ext=c
6909
ac_cpp='$CPP $CPPFLAGS'
6910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6913
 
6914
fi
6915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6916
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6917
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6918
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6919
    CFLAGS="$SAVE_CFLAGS"
6920
  fi
6921
  ;;
6922
sparc*-*solaris*)
6923
  # Find out which ABI we are using.
6924
  echo 'int i;' > conftest.$ac_ext
6925
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6926
  (eval $ac_compile) 2>&5
6927
  ac_status=$?
6928
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929
  test $ac_status = 0; }; then
6930
    case `/usr/bin/file conftest.o` in
6931
    *64-bit*)
6932
      case $lt_cv_prog_gnu_ld in
6933
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6934
      *)
6935
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6936
	  LD="${LD-ld} -64"
6937
	fi
6938
	;;
6939
      esac
6940
      ;;
6941
    esac
6942
  fi
6943
  rm -rf conftest*
6944
  ;;
6945
esac
6946
 
6947
need_locks="$enable_libtool_lock"
6948
 
6949
 
6950
  case $host_os in
6951
    rhapsody* | darwin*)
6952
    if test -n "$ac_tool_prefix"; then
6953
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6954
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956
$as_echo_n "checking for $ac_word... " >&6; }
6957
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6958
  $as_echo_n "(cached) " >&6
6959
else
6960
  if test -n "$DSYMUTIL"; then
6961
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6962
else
6963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964
for as_dir in $PATH
6965
do
6966
  IFS=$as_save_IFS
6967
  test -z "$as_dir" && as_dir=.
6968
    for ac_exec_ext in '' $ac_executable_extensions; do
6969
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6971
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972
    break 2
6973
  fi
6974
done
6975
  done
6976
IFS=$as_save_IFS
6977
 
6978
fi
6979
fi
6980
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6981
if test -n "$DSYMUTIL"; then
6982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6983
$as_echo "$DSYMUTIL" >&6; }
6984
else
6985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986
$as_echo "no" >&6; }
6987
fi
6988
 
6989
 
6990
fi
6991
if test -z "$ac_cv_prog_DSYMUTIL"; then
6992
  ac_ct_DSYMUTIL=$DSYMUTIL
6993
  # Extract the first word of "dsymutil", so it can be a program name with args.
6994
set dummy dsymutil; ac_word=$2
6995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996
$as_echo_n "checking for $ac_word... " >&6; }
6997
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6998
  $as_echo_n "(cached) " >&6
6999
else
7000
  if test -n "$ac_ct_DSYMUTIL"; then
7001
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7002
else
7003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004
for as_dir in $PATH
7005
do
7006
  IFS=$as_save_IFS
7007
  test -z "$as_dir" && as_dir=.
7008
    for ac_exec_ext in '' $ac_executable_extensions; do
7009
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7011
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012
    break 2
7013
  fi
7014
done
7015
  done
7016
IFS=$as_save_IFS
7017
 
7018
fi
7019
fi
7020
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7021
if test -n "$ac_ct_DSYMUTIL"; then
7022
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7023
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7024
else
7025
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026
$as_echo "no" >&6; }
7027
fi
7028
 
7029
  if test "x$ac_ct_DSYMUTIL" = x; then
7030
    DSYMUTIL=":"
7031
  else
7032
    case $cross_compiling:$ac_tool_warned in
7033
yes:)
7034
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036
ac_tool_warned=yes ;;
7037
esac
7038
    DSYMUTIL=$ac_ct_DSYMUTIL
7039
  fi
7040
else
7041
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7042
fi
7043
 
7044
    if test -n "$ac_tool_prefix"; then
7045
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7046
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048
$as_echo_n "checking for $ac_word... " >&6; }
7049
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7050
  $as_echo_n "(cached) " >&6
7051
else
7052
  if test -n "$NMEDIT"; then
7053
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7054
else
7055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056
for as_dir in $PATH
7057
do
7058
  IFS=$as_save_IFS
7059
  test -z "$as_dir" && as_dir=.
7060
    for ac_exec_ext in '' $ac_executable_extensions; do
7061
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7062
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7063
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064
    break 2
7065
  fi
7066
done
7067
  done
7068
IFS=$as_save_IFS
7069
 
7070
fi
7071
fi
7072
NMEDIT=$ac_cv_prog_NMEDIT
7073
if test -n "$NMEDIT"; then
7074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7075
$as_echo "$NMEDIT" >&6; }
7076
else
7077
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078
$as_echo "no" >&6; }
7079
fi
7080
 
7081
 
7082
fi
7083
if test -z "$ac_cv_prog_NMEDIT"; then
7084
  ac_ct_NMEDIT=$NMEDIT
7085
  # Extract the first word of "nmedit", so it can be a program name with args.
7086
set dummy nmedit; ac_word=$2
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088
$as_echo_n "checking for $ac_word... " >&6; }
7089
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7090
  $as_echo_n "(cached) " >&6
7091
else
7092
  if test -n "$ac_ct_NMEDIT"; then
7093
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7094
else
7095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096
for as_dir in $PATH
7097
do
7098
  IFS=$as_save_IFS
7099
  test -z "$as_dir" && as_dir=.
7100
    for ac_exec_ext in '' $ac_executable_extensions; do
7101
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7103
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104
    break 2
7105
  fi
7106
done
7107
  done
7108
IFS=$as_save_IFS
7109
 
7110
fi
7111
fi
7112
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7113
if test -n "$ac_ct_NMEDIT"; then
7114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7115
$as_echo "$ac_ct_NMEDIT" >&6; }
7116
else
7117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118
$as_echo "no" >&6; }
7119
fi
7120
 
7121
  if test "x$ac_ct_NMEDIT" = x; then
7122
    NMEDIT=":"
7123
  else
7124
    case $cross_compiling:$ac_tool_warned in
7125
yes:)
7126
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128
ac_tool_warned=yes ;;
7129
esac
7130
    NMEDIT=$ac_ct_NMEDIT
7131
  fi
7132
else
7133
  NMEDIT="$ac_cv_prog_NMEDIT"
7134
fi
7135
 
7136
    if test -n "$ac_tool_prefix"; then
7137
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7138
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140
$as_echo_n "checking for $ac_word... " >&6; }
7141
if test "${ac_cv_prog_LIPO+set}" = set; then :
7142
  $as_echo_n "(cached) " >&6
7143
else
7144
  if test -n "$LIPO"; then
7145
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7146
else
7147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148
for as_dir in $PATH
7149
do
7150
  IFS=$as_save_IFS
7151
  test -z "$as_dir" && as_dir=.
7152
    for ac_exec_ext in '' $ac_executable_extensions; do
7153
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7155
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156
    break 2
7157
  fi
7158
done
7159
  done
7160
IFS=$as_save_IFS
7161
 
7162
fi
7163
fi
7164
LIPO=$ac_cv_prog_LIPO
7165
if test -n "$LIPO"; then
7166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7167
$as_echo "$LIPO" >&6; }
7168
else
7169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170
$as_echo "no" >&6; }
7171
fi
7172
 
7173
 
7174
fi
7175
if test -z "$ac_cv_prog_LIPO"; then
7176
  ac_ct_LIPO=$LIPO
7177
  # Extract the first word of "lipo", so it can be a program name with args.
7178
set dummy lipo; ac_word=$2
7179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180
$as_echo_n "checking for $ac_word... " >&6; }
7181
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7182
  $as_echo_n "(cached) " >&6
7183
else
7184
  if test -n "$ac_ct_LIPO"; then
7185
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7186
else
7187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188
for as_dir in $PATH
7189
do
7190
  IFS=$as_save_IFS
7191
  test -z "$as_dir" && as_dir=.
7192
    for ac_exec_ext in '' $ac_executable_extensions; do
7193
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194
    ac_cv_prog_ac_ct_LIPO="lipo"
7195
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196
    break 2
7197
  fi
7198
done
7199
  done
7200
IFS=$as_save_IFS
7201
 
7202
fi
7203
fi
7204
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7205
if test -n "$ac_ct_LIPO"; then
7206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7207
$as_echo "$ac_ct_LIPO" >&6; }
7208
else
7209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210
$as_echo "no" >&6; }
7211
fi
7212
 
7213
  if test "x$ac_ct_LIPO" = x; then
7214
    LIPO=":"
7215
  else
7216
    case $cross_compiling:$ac_tool_warned in
7217
yes:)
7218
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7219
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7220
ac_tool_warned=yes ;;
7221
esac
7222
    LIPO=$ac_ct_LIPO
7223
  fi
7224
else
7225
  LIPO="$ac_cv_prog_LIPO"
7226
fi
7227
 
7228
    if test -n "$ac_tool_prefix"; then
7229
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7230
set dummy ${ac_tool_prefix}otool; ac_word=$2
7231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232
$as_echo_n "checking for $ac_word... " >&6; }
7233
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7234
  $as_echo_n "(cached) " >&6
7235
else
7236
  if test -n "$OTOOL"; then
7237
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7238
else
7239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240
for as_dir in $PATH
7241
do
7242
  IFS=$as_save_IFS
7243
  test -z "$as_dir" && as_dir=.
7244
    for ac_exec_ext in '' $ac_executable_extensions; do
7245
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7247
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248
    break 2
7249
  fi
7250
done
7251
  done
7252
IFS=$as_save_IFS
7253
 
7254
fi
7255
fi
7256
OTOOL=$ac_cv_prog_OTOOL
7257
if test -n "$OTOOL"; then
7258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7259
$as_echo "$OTOOL" >&6; }
7260
else
7261
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262
$as_echo "no" >&6; }
7263
fi
7264
 
7265
 
7266
fi
7267
if test -z "$ac_cv_prog_OTOOL"; then
7268
  ac_ct_OTOOL=$OTOOL
7269
  # Extract the first word of "otool", so it can be a program name with args.
7270
set dummy otool; ac_word=$2
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272
$as_echo_n "checking for $ac_word... " >&6; }
7273
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7274
  $as_echo_n "(cached) " >&6
7275
else
7276
  if test -n "$ac_ct_OTOOL"; then
7277
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7278
else
7279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280
for as_dir in $PATH
7281
do
7282
  IFS=$as_save_IFS
7283
  test -z "$as_dir" && as_dir=.
7284
    for ac_exec_ext in '' $ac_executable_extensions; do
7285
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286
    ac_cv_prog_ac_ct_OTOOL="otool"
7287
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288
    break 2
7289
  fi
7290
done
7291
  done
7292
IFS=$as_save_IFS
7293
 
7294
fi
7295
fi
7296
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7297
if test -n "$ac_ct_OTOOL"; then
7298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7299
$as_echo "$ac_ct_OTOOL" >&6; }
7300
else
7301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302
$as_echo "no" >&6; }
7303
fi
7304
 
7305
  if test "x$ac_ct_OTOOL" = x; then
7306
    OTOOL=":"
7307
  else
7308
    case $cross_compiling:$ac_tool_warned in
7309
yes:)
7310
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7311
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7312
ac_tool_warned=yes ;;
7313
esac
7314
    OTOOL=$ac_ct_OTOOL
7315
  fi
7316
else
7317
  OTOOL="$ac_cv_prog_OTOOL"
7318
fi
7319
 
7320
    if test -n "$ac_tool_prefix"; then
7321
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7322
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324
$as_echo_n "checking for $ac_word... " >&6; }
7325
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7326
  $as_echo_n "(cached) " >&6
7327
else
7328
  if test -n "$OTOOL64"; then
7329
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7330
else
7331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332
for as_dir in $PATH
7333
do
7334
  IFS=$as_save_IFS
7335
  test -z "$as_dir" && as_dir=.
7336
    for ac_exec_ext in '' $ac_executable_extensions; do
7337
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7339
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340
    break 2
7341
  fi
7342
done
7343
  done
7344
IFS=$as_save_IFS
7345
 
7346
fi
7347
fi
7348
OTOOL64=$ac_cv_prog_OTOOL64
7349
if test -n "$OTOOL64"; then
7350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7351
$as_echo "$OTOOL64" >&6; }
7352
else
7353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354
$as_echo "no" >&6; }
7355
fi
7356
 
7357
 
7358
fi
7359
if test -z "$ac_cv_prog_OTOOL64"; then
7360
  ac_ct_OTOOL64=$OTOOL64
7361
  # Extract the first word of "otool64", so it can be a program name with args.
7362
set dummy otool64; ac_word=$2
7363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364
$as_echo_n "checking for $ac_word... " >&6; }
7365
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7366
  $as_echo_n "(cached) " >&6
7367
else
7368
  if test -n "$ac_ct_OTOOL64"; then
7369
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7370
else
7371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372
for as_dir in $PATH
7373
do
7374
  IFS=$as_save_IFS
7375
  test -z "$as_dir" && as_dir=.
7376
    for ac_exec_ext in '' $ac_executable_extensions; do
7377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7379
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380
    break 2
7381
  fi
7382
done
7383
  done
7384
IFS=$as_save_IFS
7385
 
7386
fi
7387
fi
7388
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7389
if test -n "$ac_ct_OTOOL64"; then
7390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7391
$as_echo "$ac_ct_OTOOL64" >&6; }
7392
else
7393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394
$as_echo "no" >&6; }
7395
fi
7396
 
7397
  if test "x$ac_ct_OTOOL64" = x; then
7398
    OTOOL64=":"
7399
  else
7400
    case $cross_compiling:$ac_tool_warned in
7401
yes:)
7402
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7403
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404
ac_tool_warned=yes ;;
7405
esac
7406
    OTOOL64=$ac_ct_OTOOL64
7407
  fi
7408
else
7409
  OTOOL64="$ac_cv_prog_OTOOL64"
7410
fi
7411
 
7412
 
7413
 
7414
 
7415
 
7416
 
7417
 
7418
 
7419
 
7420
 
7421
 
7422
 
7423
 
7424
 
7425
 
7426
 
7427
 
7428
 
7429
 
7430
 
7431
 
7432
 
7433
 
7434
 
7435
 
7436
 
7437
 
7438
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7439
$as_echo_n "checking for -single_module linker flag... " >&6; }
7440
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7441
  $as_echo_n "(cached) " >&6
7442
else
7443
  lt_cv_apple_cc_single_mod=no
7444
      if test -z "${LT_MULTI_MODULE}"; then
7445
	# By default we will add the -single_module flag. You can override
7446
	# by either setting the environment variable LT_MULTI_MODULE
7447
	# non-empty at configure time, or by adding -multi_module to the
7448
	# link flags.
7449
	rm -rf libconftest.dylib*
7450
	echo "int foo(void){return 1;}" > conftest.c
7451
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7452
-dynamiclib -Wl,-single_module conftest.c" >&5
7453
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7454
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7455
        _lt_result=$?
7456
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7457
	  lt_cv_apple_cc_single_mod=yes
7458
	else
7459
	  cat conftest.err >&5
7460
	fi
7461
	rm -rf libconftest.dylib*
7462
	rm -f conftest.*
7463
      fi
7464
fi
7465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7466
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7467
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7468
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7469
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7470
  $as_echo_n "(cached) " >&6
7471
else
7472
  lt_cv_ld_exported_symbols_list=no
7473
      save_LDFLAGS=$LDFLAGS
7474
      echo "_main" > conftest.sym
7475
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7476
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477
/* end confdefs.h.  */
7478
 
7479
int
7480
main ()
7481
{
7482
 
7483
  ;
7484
  return 0;
7485
}
7486
_ACEOF
7487
if ac_fn_c_try_link "$LINENO"; then :
7488
  lt_cv_ld_exported_symbols_list=yes
7489
else
7490
  lt_cv_ld_exported_symbols_list=no
7491
fi
7492
rm -f core conftest.err conftest.$ac_objext \
7493
    conftest$ac_exeext conftest.$ac_ext
7494
	LDFLAGS="$save_LDFLAGS"
7495
 
7496
fi
7497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7498
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7499
    case $host_os in
7500
    rhapsody* | darwin1.[012])
7501
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7502
    darwin1.*)
7503
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7504
    darwin*) # darwin 5.x on
7505
      # if running on 10.5 or later, the deployment target defaults
7506
      # to the OS version, if on x86, and 10.4, the deployment
7507
      # target defaults to 10.4. Don't you love it?
7508
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7509
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7510
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7511
	10.[012]*)
7512
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7513
	10.*)
7514
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7515
      esac
7516
    ;;
7517
  esac
7518
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7519
      _lt_dar_single_mod='$single_module'
7520
    fi
7521
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7522
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7523
    else
7524
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7525
    fi
7526
    if test "$DSYMUTIL" != ":"; then
7527
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7528
    else
7529
      _lt_dsymutil=
7530
    fi
7531
    ;;
7532
  esac
7533
 
7534
 
7535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7536
$as_echo_n "checking for ANSI C header files... " >&6; }
7537
if test "${ac_cv_header_stdc+set}" = set; then :
7538
  $as_echo_n "(cached) " >&6
7539
else
7540
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541
/* end confdefs.h.  */
7542
#include <stdlib.h>
7543
#include <stdarg.h>
7544
#include <string.h>
7545
#include <float.h>
7546
 
7547
int
7548
main ()
7549
{
7550
 
7551
  ;
7552
  return 0;
7553
}
7554
_ACEOF
7555
if ac_fn_c_try_compile "$LINENO"; then :
7556
  ac_cv_header_stdc=yes
7557
else
7558
  ac_cv_header_stdc=no
7559
fi
7560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561
 
7562
if test $ac_cv_header_stdc = yes; then
7563
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7564
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565
/* end confdefs.h.  */
7566
#include <string.h>
7567
 
7568
_ACEOF
7569
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7570
  $EGREP "memchr" >/dev/null 2>&1; then :
7571
 
7572
else
7573
  ac_cv_header_stdc=no
7574
fi
7575
rm -f conftest*
7576
 
7577
fi
7578
 
7579
if test $ac_cv_header_stdc = yes; then
7580
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582
/* end confdefs.h.  */
7583
#include <stdlib.h>
7584
 
7585
_ACEOF
7586
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7587
  $EGREP "free" >/dev/null 2>&1; then :
7588
 
7589
else
7590
  ac_cv_header_stdc=no
7591
fi
7592
rm -f conftest*
7593
 
7594
fi
7595
 
7596
if test $ac_cv_header_stdc = yes; then
7597
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7598
  if test "$cross_compiling" = yes; then :
7599
  :
7600
else
7601
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602
/* end confdefs.h.  */
7603
#include <ctype.h>
7604
#include <stdlib.h>
7605
#if ((' ' & 0x0FF) == 0x020)
7606
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7607
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7608
#else
7609
# define ISLOWER(c) \
7610
		   (('a' <= (c) && (c) <= 'i') \
7611
		     || ('j' <= (c) && (c) <= 'r') \
7612
		     || ('s' <= (c) && (c) <= 'z'))
7613
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7614
#endif
7615
 
7616
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7617
int
7618
main ()
7619
{
7620
  int i;
7621
  for (i = 0; i < 256; i++)
7622
    if (XOR (islower (i), ISLOWER (i))
7623
	|| toupper (i) != TOUPPER (i))
7624
      return 2;
7625
  return 0;
7626
}
7627
_ACEOF
7628
if ac_fn_c_try_run "$LINENO"; then :
7629
 
7630
else
7631
  ac_cv_header_stdc=no
7632
fi
7633
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7634
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7635
fi
7636
 
7637
fi
7638
fi
7639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7640
$as_echo "$ac_cv_header_stdc" >&6; }
7641
if test $ac_cv_header_stdc = yes; then
7642
 
7643
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7644
 
7645
fi
7646
 
7647
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7648
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7649
		  inttypes.h stdint.h unistd.h
7650
do :
7651
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7652
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7653
"
7654
eval as_val=\$$as_ac_Header
7655
   if test "x$as_val" = x""yes; then :
7656
  cat >>confdefs.h <<_ACEOF
7657
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7658
_ACEOF
7659
 
7660
fi
7661
 
7662
done
7663
 
7664
 
7665
for ac_header in dlfcn.h
7666
do :
7667
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7668
"
7669
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7670
  cat >>confdefs.h <<_ACEOF
7671
@%:@define HAVE_DLFCN_H 1
7672
_ACEOF
7673
 
7674
fi
7675
 
7676
done
7677
 
7678
 
7679
 
7680
ac_ext=cpp
7681
ac_cpp='$CXXCPP $CPPFLAGS'
7682
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7683
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7684
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7685
if test -z "$CXX"; then
7686
  if test -n "$CCC"; then
7687
    CXX=$CCC
7688
  else
7689
    if test -n "$ac_tool_prefix"; then
7690
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7691
  do
7692
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7693
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695
$as_echo_n "checking for $ac_word... " >&6; }
7696
if test "${ac_cv_prog_CXX+set}" = set; then :
7697
  $as_echo_n "(cached) " >&6
7698
else
7699
  if test -n "$CXX"; then
7700
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7701
else
7702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703
for as_dir in $PATH
7704
do
7705
  IFS=$as_save_IFS
7706
  test -z "$as_dir" && as_dir=.
7707
    for ac_exec_ext in '' $ac_executable_extensions; do
7708
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7710
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711
    break 2
7712
  fi
7713
done
7714
  done
7715
IFS=$as_save_IFS
7716
 
7717
fi
7718
fi
7719
CXX=$ac_cv_prog_CXX
7720
if test -n "$CXX"; then
7721
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7722
$as_echo "$CXX" >&6; }
7723
else
7724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725
$as_echo "no" >&6; }
7726
fi
7727
 
7728
 
7729
    test -n "$CXX" && break
7730
  done
7731
fi
7732
if test -z "$CXX"; then
7733
  ac_ct_CXX=$CXX
7734
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7735
do
7736
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7737
set dummy $ac_prog; ac_word=$2
7738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739
$as_echo_n "checking for $ac_word... " >&6; }
7740
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7741
  $as_echo_n "(cached) " >&6
7742
else
7743
  if test -n "$ac_ct_CXX"; then
7744
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7745
else
7746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747
for as_dir in $PATH
7748
do
7749
  IFS=$as_save_IFS
7750
  test -z "$as_dir" && as_dir=.
7751
    for ac_exec_ext in '' $ac_executable_extensions; do
7752
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753
    ac_cv_prog_ac_ct_CXX="$ac_prog"
7754
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755
    break 2
7756
  fi
7757
done
7758
  done
7759
IFS=$as_save_IFS
7760
 
7761
fi
7762
fi
7763
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7764
if test -n "$ac_ct_CXX"; then
7765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7766
$as_echo "$ac_ct_CXX" >&6; }
7767
else
7768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769
$as_echo "no" >&6; }
7770
fi
7771
 
7772
 
7773
  test -n "$ac_ct_CXX" && break
7774
done
7775
 
7776
  if test "x$ac_ct_CXX" = x; then
7777
    CXX="g++"
7778
  else
7779
    case $cross_compiling:$ac_tool_warned in
7780
yes:)
7781
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7782
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783
ac_tool_warned=yes ;;
7784
esac
7785
    CXX=$ac_ct_CXX
7786
  fi
7787
fi
7788
 
7789
  fi
7790
fi
7791
# Provide some information about the compiler.
7792
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7793
set X $ac_compile
7794
ac_compiler=$2
7795
for ac_option in --version -v -V -qversion; do
7796
  { { ac_try="$ac_compiler $ac_option >&5"
7797
case "(($ac_try" in
7798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799
  *) ac_try_echo=$ac_try;;
7800
esac
7801
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7802
$as_echo "$ac_try_echo"; } >&5
7803
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7804
  ac_status=$?
7805
  if test -s conftest.err; then
7806
    sed '10a\
7807
... rest of stderr output deleted ...
7808
         10q' conftest.err >conftest.er1
7809
    cat conftest.er1 >&5
7810
    rm -f conftest.er1 conftest.err
7811
  fi
7812
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813
  test $ac_status = 0; }
7814
done
7815
 
7816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7817
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7818
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7819
  $as_echo_n "(cached) " >&6
7820
else
7821
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822
/* end confdefs.h.  */
7823
 
7824
int
7825
main ()
7826
{
7827
#ifndef __GNUC__
7828
       choke me
7829
#endif
7830
 
7831
  ;
7832
  return 0;
7833
}
7834
_ACEOF
7835
if ac_fn_cxx_try_compile "$LINENO"; then :
7836
  ac_compiler_gnu=yes
7837
else
7838
  ac_compiler_gnu=no
7839
fi
7840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7842
 
7843
fi
7844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7845
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7846
if test $ac_compiler_gnu = yes; then
7847
  GXX=yes
7848
else
7849
  GXX=
7850
fi
7851
ac_test_CXXFLAGS=${CXXFLAGS+set}
7852
ac_save_CXXFLAGS=$CXXFLAGS
7853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7854
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7855
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7856
  $as_echo_n "(cached) " >&6
7857
else
7858
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7859
   ac_cxx_werror_flag=yes
7860
   ac_cv_prog_cxx_g=no
7861
   CXXFLAGS="-g"
7862
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863
/* end confdefs.h.  */
7864
 
7865
int
7866
main ()
7867
{
7868
 
7869
  ;
7870
  return 0;
7871
}
7872
_ACEOF
7873
if ac_fn_cxx_try_compile "$LINENO"; then :
7874
  ac_cv_prog_cxx_g=yes
7875
else
7876
  CXXFLAGS=""
7877
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878
/* end confdefs.h.  */
7879
 
7880
int
7881
main ()
7882
{
7883
 
7884
  ;
7885
  return 0;
7886
}
7887
_ACEOF
7888
if ac_fn_cxx_try_compile "$LINENO"; then :
7889
 
7890
else
7891
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7892
	 CXXFLAGS="-g"
7893
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894
/* end confdefs.h.  */
7895
 
7896
int
7897
main ()
7898
{
7899
 
7900
  ;
7901
  return 0;
7902
}
7903
_ACEOF
7904
if ac_fn_cxx_try_compile "$LINENO"; then :
7905
  ac_cv_prog_cxx_g=yes
7906
fi
7907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908
fi
7909
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910
fi
7911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7913
fi
7914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7915
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7916
if test "$ac_test_CXXFLAGS" = set; then
7917
  CXXFLAGS=$ac_save_CXXFLAGS
7918
elif test $ac_cv_prog_cxx_g = yes; then
7919
  if test "$GXX" = yes; then
7920
    CXXFLAGS="-g -O2"
7921
  else
7922
    CXXFLAGS="-g"
7923
  fi
7924
else
7925
  if test "$GXX" = yes; then
7926
    CXXFLAGS="-O2"
7927
  else
7928
    CXXFLAGS=
7929
  fi
7930
fi
7931
ac_ext=c
7932
ac_cpp='$CPP $CPPFLAGS'
7933
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
 
7937
depcc="$CXX"  am_compiler_list=
7938
 
7939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7940
$as_echo_n "checking dependency style of $depcc... " >&6; }
7941
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7942
  $as_echo_n "(cached) " >&6
7943
else
7944
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7945
  # We make a subdir and do the tests there.  Otherwise we can end up
7946
  # making bogus files that we don't know about and never remove.  For
7947
  # instance it was reported that on HP-UX the gcc test will end up
7948
  # making a dummy file named `D' -- because `-MD' means `put the output
7949
  # in D'.
7950
  mkdir conftest.dir
7951
  # Copy depcomp to subdir because otherwise we won't find it if we're
7952
  # using a relative directory.
7953
  cp "$am_depcomp" conftest.dir
7954
  cd conftest.dir
7955
  # We will build objects and dependencies in a subdirectory because
7956
  # it helps to detect inapplicable dependency modes.  For instance
7957
  # both Tru64's cc and ICC support -MD to output dependencies as a
7958
  # side effect of compilation, but ICC will put the dependencies in
7959
  # the current directory while Tru64 will put them in the object
7960
  # directory.
7961
  mkdir sub
7962
 
7963
  am_cv_CXX_dependencies_compiler_type=none
7964
  if test "$am_compiler_list" = ""; then
7965
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7966
  fi
7967
  am__universal=false
7968
  case " $depcc " in #(
7969
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7970
     esac
7971
 
7972
  for depmode in $am_compiler_list; do
7973
    # Setup a source with many dependencies, because some compilers
7974
    # like to wrap large dependency lists on column 80 (with \), and
7975
    # we should not choose a depcomp mode which is confused by this.
7976
    #
7977
    # We need to recreate these files for each test, as the compiler may
7978
    # overwrite some of them when testing with obscure command lines.
7979
    # This happens at least with the AIX C compiler.
7980
    : > sub/conftest.c
7981
    for i in 1 2 3 4 5 6; do
7982
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7983
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7984
      # Solaris 8's {/usr,}/bin/sh.
7985
      touch sub/conftst$i.h
7986
    done
7987
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7988
 
7989
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7990
    # mode.  It turns out that the SunPro C++ compiler does not properly
7991
    # handle `-M -o', and we need to detect this.  Also, some Intel
7992
    # versions had trouble with output in subdirs
7993
    am__obj=sub/conftest.${OBJEXT-o}
7994
    am__minus_obj="-o $am__obj"
7995
    case $depmode in
7996
    gcc)
7997
      # This depmode causes a compiler race in universal mode.
7998
      test "$am__universal" = false || continue
7999
      ;;
8000
    nosideeffect)
8001
      # after this tag, mechanisms are not by side-effect, so they'll
8002
      # only be used when explicitly requested
8003
      if test "x$enable_dependency_tracking" = xyes; then
8004
	continue
8005
      else
8006
	break
8007
      fi
8008
      ;;
8009
    msvisualcpp | msvcmsys)
8010
      # This compiler won't grok `-c -o', but also, the minuso test has
8011
      # not run yet.  These depmodes are late enough in the game, and
8012
      # so weak that their functioning should not be impacted.
8013
      am__obj=conftest.${OBJEXT-o}
8014
      am__minus_obj=
8015
      ;;
8016
    none) break ;;
8017
    esac
8018
    if depmode=$depmode \
8019
       source=sub/conftest.c object=$am__obj \
8020
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8021
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8022
         >/dev/null 2>conftest.err &&
8023
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8024
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8025
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8026
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8027
      # icc doesn't choke on unknown options, it will just issue warnings
8028
      # or remarks (even with -Werror).  So we grep stderr for any message
8029
      # that says an option was ignored or not supported.
8030
      # When given -MP, icc 7.0 and 7.1 complain thusly:
8031
      #   icc: Command line warning: ignoring option '-M'; no argument required
8032
      # The diagnosis changed in icc 8.0:
8033
      #   icc: Command line remark: option '-MP' not supported
8034
      if (grep 'ignoring option' conftest.err ||
8035
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8036
        am_cv_CXX_dependencies_compiler_type=$depmode
8037
        break
8038
      fi
8039
    fi
8040
  done
8041
 
8042
  cd ..
8043
  rm -rf conftest.dir
8044
else
8045
  am_cv_CXX_dependencies_compiler_type=none
8046
fi
8047
 
8048
fi
8049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8050
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8051
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8052
 
8053
 if 
8054
  test "x$enable_dependency_tracking" != xno \
8055
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8056
  am__fastdepCXX_TRUE=
8057
  am__fastdepCXX_FALSE='#'
8058
else
8059
  am__fastdepCXX_TRUE='#'
8060
  am__fastdepCXX_FALSE=
8061
fi
8062
 
8063
 
8064
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8065
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8066
    (test "X$CXX" != "Xg++"))) ; then
8067
  ac_ext=cpp
8068
ac_cpp='$CXXCPP $CPPFLAGS'
8069
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8073
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8074
if test -z "$CXXCPP"; then
8075
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8076
  $as_echo_n "(cached) " >&6
8077
else
8078
      # Double quotes because CXXCPP needs to be expanded
8079
    for CXXCPP in "$CXX -E" "/lib/cpp"
8080
    do
8081
      ac_preproc_ok=false
8082
for ac_cxx_preproc_warn_flag in '' yes
8083
do
8084
  # Use a header file that comes with gcc, so configuring glibc
8085
  # with a fresh cross-compiler works.
8086
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087
  # <limits.h> exists even on freestanding compilers.
8088
  # On the NeXT, cc -E runs the code through the compiler's parser,
8089
  # not just through cpp. "Syntax error" is here to catch this case.
8090
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091
/* end confdefs.h.  */
8092
@%:@ifdef __STDC__
8093
@%:@ include <limits.h>
8094
@%:@else
8095
@%:@ include <assert.h>
8096
@%:@endif
8097
		     Syntax error
8098
_ACEOF
8099
if ac_fn_cxx_try_cpp "$LINENO"; then :
8100
 
8101
else
8102
  # Broken: fails on valid input.
8103
continue
8104
fi
8105
rm -f conftest.err conftest.$ac_ext
8106
 
8107
  # OK, works on sane cases.  Now check whether nonexistent headers
8108
  # can be detected and how.
8109
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110
/* end confdefs.h.  */
8111
@%:@include <ac_nonexistent.h>
8112
_ACEOF
8113
if ac_fn_cxx_try_cpp "$LINENO"; then :
8114
  # Broken: success on invalid input.
8115
continue
8116
else
8117
  # Passes both tests.
8118
ac_preproc_ok=:
8119
break
8120
fi
8121
rm -f conftest.err conftest.$ac_ext
8122
 
8123
done
8124
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8125
rm -f conftest.err conftest.$ac_ext
8126
if $ac_preproc_ok; then :
8127
  break
8128
fi
8129
 
8130
    done
8131
    ac_cv_prog_CXXCPP=$CXXCPP
8132
 
8133
fi
8134
  CXXCPP=$ac_cv_prog_CXXCPP
8135
else
8136
  ac_cv_prog_CXXCPP=$CXXCPP
8137
fi
8138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8139
$as_echo "$CXXCPP" >&6; }
8140
ac_preproc_ok=false
8141
for ac_cxx_preproc_warn_flag in '' yes
8142
do
8143
  # Use a header file that comes with gcc, so configuring glibc
8144
  # with a fresh cross-compiler works.
8145
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8146
  # <limits.h> exists even on freestanding compilers.
8147
  # On the NeXT, cc -E runs the code through the compiler's parser,
8148
  # not just through cpp. "Syntax error" is here to catch this case.
8149
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150
/* end confdefs.h.  */
8151
@%:@ifdef __STDC__
8152
@%:@ include <limits.h>
8153
@%:@else
8154
@%:@ include <assert.h>
8155
@%:@endif
8156
		     Syntax error
8157
_ACEOF
8158
if ac_fn_cxx_try_cpp "$LINENO"; then :
8159
 
8160
else
8161
  # Broken: fails on valid input.
8162
continue
8163
fi
8164
rm -f conftest.err conftest.$ac_ext
8165
 
8166
  # OK, works on sane cases.  Now check whether nonexistent headers
8167
  # can be detected and how.
8168
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169
/* end confdefs.h.  */
8170
@%:@include <ac_nonexistent.h>
8171
_ACEOF
8172
if ac_fn_cxx_try_cpp "$LINENO"; then :
8173
  # Broken: success on invalid input.
8174
continue
8175
else
8176
  # Passes both tests.
8177
ac_preproc_ok=:
8178
break
8179
fi
8180
rm -f conftest.err conftest.$ac_ext
8181
 
8182
done
8183
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8184
rm -f conftest.err conftest.$ac_ext
8185
if $ac_preproc_ok; then :
8186
 
8187
else
8188
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8189
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8190
_lt_caught_CXX_error=yes; }
8191
fi
8192
 
8193
ac_ext=c
8194
ac_cpp='$CPP $CPPFLAGS'
8195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198
 
8199
else
8200
  _lt_caught_CXX_error=yes
8201
fi
8202
 
8203
 
8204
 
8205
 
8206
 
8207
# Set options
8208
 
8209
 
8210
 
8211
        enable_dlopen=no
8212
 
8213
 
8214
  enable_win32_dll=no
8215
 
8216
 
8217
            @%:@ Check whether --enable-shared was given.
8218
if test "${enable_shared+set}" = set; then :
8219
  enableval=$enable_shared; p=${PACKAGE-default}
8220
    case $enableval in
8221
    yes) enable_shared=yes ;;
8222
    no) enable_shared=no ;;
8223
    *)
8224
      enable_shared=no
8225
      # Look at the argument we got.  We use all the common list separators.
8226
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8227
      for pkg in $enableval; do
8228
	IFS="$lt_save_ifs"
8229
	if test "X$pkg" = "X$p"; then
8230
	  enable_shared=yes
8231
	fi
8232
      done
8233
      IFS="$lt_save_ifs"
8234
      ;;
8235
    esac
8236
else
8237
  enable_shared=yes
8238
fi
8239
 
8240
 
8241
 
8242
 
8243
 
8244
 
8245
 
8246
 
8247
 
8248
  @%:@ Check whether --enable-static was given.
8249
if test "${enable_static+set}" = set; then :
8250
  enableval=$enable_static; p=${PACKAGE-default}
8251
    case $enableval in
8252
    yes) enable_static=yes ;;
8253
    no) enable_static=no ;;
8254
    *)
8255
     enable_static=no
8256
      # Look at the argument we got.  We use all the common list separators.
8257
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8258
      for pkg in $enableval; do
8259
	IFS="$lt_save_ifs"
8260
	if test "X$pkg" = "X$p"; then
8261
	  enable_static=yes
8262
	fi
8263
      done
8264
      IFS="$lt_save_ifs"
8265
      ;;
8266
    esac
8267
else
8268
  enable_static=yes
8269
fi
8270
 
8271
 
8272
 
8273
 
8274
 
8275
 
8276
 
8277
 
8278
 
8279
 
8280
@%:@ Check whether --with-pic was given.
8281
if test "${with_pic+set}" = set; then :
8282
  withval=$with_pic; pic_mode="$withval"
8283
else
8284
  pic_mode=default
8285
fi
8286
 
8287
 
8288
test -z "$pic_mode" && pic_mode=default
8289
 
8290
 
8291
 
8292
 
8293
 
8294
 
8295
 
8296
  @%:@ Check whether --enable-fast-install was given.
8297
if test "${enable_fast_install+set}" = set; then :
8298
  enableval=$enable_fast_install; p=${PACKAGE-default}
8299
    case $enableval in
8300
    yes) enable_fast_install=yes ;;
8301
    no) enable_fast_install=no ;;
8302
    *)
8303
      enable_fast_install=no
8304
      # Look at the argument we got.  We use all the common list separators.
8305
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8306
      for pkg in $enableval; do
8307
	IFS="$lt_save_ifs"
8308
	if test "X$pkg" = "X$p"; then
8309
	  enable_fast_install=yes
8310
	fi
8311
      done
8312
      IFS="$lt_save_ifs"
8313
      ;;
8314
    esac
8315
else
8316
  enable_fast_install=yes
8317
fi
8318
 
8319
 
8320
 
8321
 
8322
 
8323
 
8324
 
8325
 
8326
 
8327
 
8328
 
8329
# This can be used to rebuild libtool when needed
8330
LIBTOOL_DEPS="$ltmain"
8331
 
8332
# Always use our own libtool.
8333
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8334
 
8335
 
8336
 
8337
 
8338
 
8339
 
8340
 
8341
 
8342
 
8343
 
8344
 
8345
 
8346
 
8347
 
8348
 
8349
 
8350
 
8351
 
8352
 
8353
 
8354
 
8355
 
8356
 
8357
 
8358
 
8359
test -z "$LN_S" && LN_S="ln -s"
8360
 
8361
 
8362
 
8363
 
8364
 
8365
 
8366
 
8367
 
8368
 
8369
 
8370
 
8371
 
8372
 
8373
 
8374
if test -n "${ZSH_VERSION+set}" ; then
8375
   setopt NO_GLOB_SUBST
8376
fi
8377
 
8378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8379
$as_echo_n "checking for objdir... " >&6; }
8380
if test "${lt_cv_objdir+set}" = set; then :
8381
  $as_echo_n "(cached) " >&6
8382
else
8383
  rm -f .libs 2>/dev/null
8384
mkdir .libs 2>/dev/null
8385
if test -d .libs; then
8386
  lt_cv_objdir=.libs
8387
else
8388
  # MS-DOS does not allow filenames that begin with a dot.
8389
  lt_cv_objdir=_libs
8390
fi
8391
rmdir .libs 2>/dev/null
8392
fi
8393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8394
$as_echo "$lt_cv_objdir" >&6; }
8395
objdir=$lt_cv_objdir
8396
 
8397
 
8398
 
8399
 
8400
 
8401
cat >>confdefs.h <<_ACEOF
8402
@%:@define LT_OBJDIR "$lt_cv_objdir/"
8403
_ACEOF
8404
 
8405
 
8406
 
8407
 
8408
 
8409
 
8410
 
8411
 
8412
 
8413
 
8414
 
8415
 
8416
 
8417
 
8418
 
8419
 
8420
 
8421
case $host_os in
8422
aix3*)
8423
  # AIX sometimes has problems with the GCC collect2 program.  For some
8424
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8425
  # vanish in a puff of smoke.
8426
  if test "X${COLLECT_NAMES+set}" != Xset; then
8427
    COLLECT_NAMES=
8428
    export COLLECT_NAMES
8429
  fi
8430
  ;;
8431
esac
8432
 
8433
# Sed substitution that helps us do robust quoting.  It backslashifies
8434
# metacharacters that are still active within double-quoted strings.
8435
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8436
 
8437
# Same as above, but do not quote variable references.
8438
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8439
 
8440
# Sed substitution to delay expansion of an escaped shell variable in a
8441
# double_quote_subst'ed string.
8442
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8443
 
8444
# Sed substitution to delay expansion of an escaped single quote.
8445
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8446
 
8447
# Sed substitution to avoid accidental globbing in evaled expressions
8448
no_glob_subst='s/\*/\\\*/g'
8449
 
8450
# Global variables:
8451
ofile=libtool
8452
can_build_shared=yes
8453
 
8454
# All known linkers require a `.a' archive for static linking (except MSVC,
8455
# which needs '.lib').
8456
libext=a
8457
 
8458
with_gnu_ld="$lt_cv_prog_gnu_ld"
8459
 
8460
old_CC="$CC"
8461
old_CFLAGS="$CFLAGS"
8462
 
8463
# Set sane defaults for various variables
8464
test -z "$CC" && CC=cc
8465
test -z "$LTCC" && LTCC=$CC
8466
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8467
test -z "$LD" && LD=ld
8468
test -z "$ac_objext" && ac_objext=o
8469
 
8470
for cc_temp in $compiler""; do
8471
  case $cc_temp in
8472
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8473
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8474
    \-*) ;;
8475
    *) break;;
8476
  esac
8477
done
8478
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8479
 
8480
 
8481
# Only perform the check for file, if the check method requires it
8482
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8483
case $deplibs_check_method in
8484
file_magic*)
8485
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8486
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8487
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8488
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8489
  $as_echo_n "(cached) " >&6
8490
else
8491
  case $MAGIC_CMD in
8492
[\\/*] |  ?:[\\/]*)
8493
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8494
  ;;
8495
*)
8496
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8497
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8498
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8499
  for ac_dir in $ac_dummy; do
8500
    IFS="$lt_save_ifs"
8501
    test -z "$ac_dir" && ac_dir=.
8502
    if test -f $ac_dir/${ac_tool_prefix}file; then
8503
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8504
      if test -n "$file_magic_test_file"; then
8505
	case $deplibs_check_method in
8506
	"file_magic "*)
8507
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8508
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8509
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8510
	    $EGREP "$file_magic_regex" > /dev/null; then
8511
	    :
8512
	  else
8513
	    cat <<_LT_EOF 1>&2
8514
 
8515
*** Warning: the command libtool uses to detect shared libraries,
8516
*** $file_magic_cmd, produces output that libtool cannot recognize.
8517
*** The result is that libtool may fail to recognize shared libraries
8518
*** as such.  This will affect the creation of libtool libraries that
8519
*** depend on shared libraries, but programs linked with such libtool
8520
*** libraries will work regardless of this problem.  Nevertheless, you
8521
*** may want to report the problem to your system manager and/or to
8522
*** bug-libtool@gnu.org
8523
 
8524
_LT_EOF
8525
	  fi ;;
8526
	esac
8527
      fi
8528
      break
8529
    fi
8530
  done
8531
  IFS="$lt_save_ifs"
8532
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8533
  ;;
8534
esac
8535
fi
8536
 
8537
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8538
if test -n "$MAGIC_CMD"; then
8539
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8540
$as_echo "$MAGIC_CMD" >&6; }
8541
else
8542
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543
$as_echo "no" >&6; }
8544
fi
8545
 
8546
 
8547
 
8548
 
8549
 
8550
if test -z "$lt_cv_path_MAGIC_CMD"; then
8551
  if test -n "$ac_tool_prefix"; then
8552
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8553
$as_echo_n "checking for file... " >&6; }
8554
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8555
  $as_echo_n "(cached) " >&6
8556
else
8557
  case $MAGIC_CMD in
8558
[\\/*] |  ?:[\\/]*)
8559
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8560
  ;;
8561
*)
8562
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8563
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8564
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8565
  for ac_dir in $ac_dummy; do
8566
    IFS="$lt_save_ifs"
8567
    test -z "$ac_dir" && ac_dir=.
8568
    if test -f $ac_dir/file; then
8569
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8570
      if test -n "$file_magic_test_file"; then
8571
	case $deplibs_check_method in
8572
	"file_magic "*)
8573
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8574
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8575
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8576
	    $EGREP "$file_magic_regex" > /dev/null; then
8577
	    :
8578
	  else
8579
	    cat <<_LT_EOF 1>&2
8580
 
8581
*** Warning: the command libtool uses to detect shared libraries,
8582
*** $file_magic_cmd, produces output that libtool cannot recognize.
8583
*** The result is that libtool may fail to recognize shared libraries
8584
*** as such.  This will affect the creation of libtool libraries that
8585
*** depend on shared libraries, but programs linked with such libtool
8586
*** libraries will work regardless of this problem.  Nevertheless, you
8587
*** may want to report the problem to your system manager and/or to
8588
*** bug-libtool@gnu.org
8589
 
8590
_LT_EOF
8591
	  fi ;;
8592
	esac
8593
      fi
8594
      break
8595
    fi
8596
  done
8597
  IFS="$lt_save_ifs"
8598
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8599
  ;;
8600
esac
8601
fi
8602
 
8603
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8604
if test -n "$MAGIC_CMD"; then
8605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8606
$as_echo "$MAGIC_CMD" >&6; }
8607
else
8608
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609
$as_echo "no" >&6; }
8610
fi
8611
 
8612
 
8613
  else
8614
    MAGIC_CMD=:
8615
  fi
8616
fi
8617
 
8618
  fi
8619
  ;;
8620
esac
8621
 
8622
# Use C for the default configuration in the libtool script
8623
 
8624
lt_save_CC="$CC"
8625
ac_ext=c
8626
ac_cpp='$CPP $CPPFLAGS'
8627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8630
 
8631
 
8632
# Source file extension for C test sources.
8633
ac_ext=c
8634
 
8635
# Object file extension for compiled C test sources.
8636
objext=o
8637
objext=$objext
8638
 
8639
# Code to be used in simple compile tests
8640
lt_simple_compile_test_code="int some_variable = 0;"
8641
 
8642
# Code to be used in simple link tests
8643
lt_simple_link_test_code='int main(){return(0);}'
8644
 
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
# If no C compiler was specified, use CC.
8652
LTCC=${LTCC-"$CC"}
8653
 
8654
# If no C compiler flags were specified, use CFLAGS.
8655
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8656
 
8657
# Allow CC to be a program name with arguments.
8658
compiler=$CC
8659
 
8660
# Save the default compiler, since it gets overwritten when the other
8661
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8662
compiler_DEFAULT=$CC
8663
 
8664
# save warnings/boilerplate of simple test code
8665
ac_outfile=conftest.$ac_objext
8666
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8667
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8668
_lt_compiler_boilerplate=`cat conftest.err`
8669
$RM conftest*
8670
 
8671
ac_outfile=conftest.$ac_objext
8672
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8673
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8674
_lt_linker_boilerplate=`cat conftest.err`
8675
$RM -r conftest*
8676
 
8677
 
8678
## CAVEAT EMPTOR:
8679
## There is no encapsulation within the following macros, do not change
8680
## the running order or otherwise move them around unless you know exactly
8681
## what you are doing...
8682
if test -n "$compiler"; then
8683
 
8684
lt_prog_compiler_no_builtin_flag=
8685
 
8686
if test "$GCC" = yes; then
8687
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8688
 
8689
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8690
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8691
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8692
  $as_echo_n "(cached) " >&6
8693
else
8694
  lt_cv_prog_compiler_rtti_exceptions=no
8695
   ac_outfile=conftest.$ac_objext
8696
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8697
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8698
   # Insert the option either (1) after the last *FLAGS variable, or
8699
   # (2) before a word containing "conftest.", or (3) at the end.
8700
   # Note that $ac_compile itself does not contain backslashes and begins
8701
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8702
   # The option is referenced via a variable to avoid confusing sed.
8703
   lt_compile=`echo "$ac_compile" | $SED \
8704
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8705
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8706
   -e 's:$: $lt_compiler_flag:'`
8707
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8708
   (eval "$lt_compile" 2>conftest.err)
8709
   ac_status=$?
8710
   cat conftest.err >&5
8711
   echo "$as_me:__oline__: \$? = $ac_status" >&5
8712
   if (exit $ac_status) && test -s "$ac_outfile"; then
8713
     # The compiler can only warn and ignore the option if not recognized
8714
     # So say no if there are warnings other than the usual output.
8715
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8716
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8717
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8718
       lt_cv_prog_compiler_rtti_exceptions=yes
8719
     fi
8720
   fi
8721
   $RM conftest*
8722
 
8723
fi
8724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8725
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8726
 
8727
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8728
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8729
else
8730
    :
8731
fi
8732
 
8733
fi
8734
 
8735
 
8736
 
8737
 
8738
 
8739
 
8740
  lt_prog_compiler_wl=
8741
lt_prog_compiler_pic=
8742
lt_prog_compiler_static=
8743
 
8744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8745
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8746
 
8747
  if test "$GCC" = yes; then
8748
    lt_prog_compiler_wl='-Wl,'
8749
    lt_prog_compiler_static='-static'
8750
 
8751
    case $host_os in
8752
      aix*)
8753
      # All AIX code is PIC.
8754
      if test "$host_cpu" = ia64; then
8755
	# AIX 5 now supports IA64 processor
8756
	lt_prog_compiler_static='-Bstatic'
8757
      fi
8758
      ;;
8759
 
8760
    amigaos*)
8761
      case $host_cpu in
8762
      powerpc)
8763
            # see comment about AmigaOS4 .so support
8764
            lt_prog_compiler_pic='-fPIC'
8765
        ;;
8766
      m68k)
8767
            # FIXME: we need at least 68020 code to build shared libraries, but
8768
            # adding the `-m68020' flag to GCC prevents building anything better,
8769
            # like `-m68040'.
8770
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8771
        ;;
8772
      esac
8773
      ;;
8774
 
8775
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8776
      # PIC is the default for these OSes.
8777
      ;;
8778
 
8779
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8780
      # This hack is so that the source file can tell whether it is being
8781
      # built for inclusion in a dll (and should export symbols for example).
8782
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8783
      # (--disable-auto-import) libraries
8784
      lt_prog_compiler_pic='-DDLL_EXPORT'
8785
      ;;
8786
 
8787
    darwin* | rhapsody*)
8788
      # PIC is the default on this platform
8789
      # Common symbols not allowed in MH_DYLIB files
8790
      lt_prog_compiler_pic='-fno-common'
8791
      ;;
8792
 
8793
    hpux*)
8794
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8795
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8796
      # sets the default TLS model and affects inlining.
8797
      case $host_cpu in
8798
      hppa*64*)
8799
	# +Z the default
8800
	;;
8801
      *)
8802
	lt_prog_compiler_pic='-fPIC'
8803
	;;
8804
      esac
8805
      ;;
8806
 
8807
    interix[3-9]*)
8808
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8809
      # Instead, we relocate shared libraries at runtime.
8810
      ;;
8811
 
8812
    msdosdjgpp*)
8813
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8814
      # on systems that don't support them.
8815
      lt_prog_compiler_can_build_shared=no
8816
      enable_shared=no
8817
      ;;
8818
 
8819
    *nto* | *qnx*)
8820
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8821
      # it will coredump.
8822
      lt_prog_compiler_pic='-fPIC -shared'
8823
      ;;
8824
 
8825
    sysv4*MP*)
8826
      if test -d /usr/nec; then
8827
	lt_prog_compiler_pic=-Kconform_pic
8828
      fi
8829
      ;;
8830
 
8831
    *)
8832
      lt_prog_compiler_pic='-fPIC'
8833
      ;;
8834
    esac
8835
  else
8836
    # PORTME Check for flag to pass linker flags through the system compiler.
8837
    case $host_os in
8838
    aix*)
8839
      lt_prog_compiler_wl='-Wl,'
8840
      if test "$host_cpu" = ia64; then
8841
	# AIX 5 now supports IA64 processor
8842
	lt_prog_compiler_static='-Bstatic'
8843
      else
8844
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8845
      fi
8846
      ;;
8847
 
8848
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8849
      # This hack is so that the source file can tell whether it is being
8850
      # built for inclusion in a dll (and should export symbols for example).
8851
      lt_prog_compiler_pic='-DDLL_EXPORT'
8852
      ;;
8853
 
8854
    hpux9* | hpux10* | hpux11*)
8855
      lt_prog_compiler_wl='-Wl,'
8856
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8857
      # not for PA HP-UX.
8858
      case $host_cpu in
8859
      hppa*64*|ia64*)
8860
	# +Z the default
8861
	;;
8862
      *)
8863
	lt_prog_compiler_pic='+Z'
8864
	;;
8865
      esac
8866
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8867
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8868
      ;;
8869
 
8870
    irix5* | irix6* | nonstopux*)
8871
      lt_prog_compiler_wl='-Wl,'
8872
      # PIC (with -KPIC) is the default.
8873
      lt_prog_compiler_static='-non_shared'
8874
      ;;
8875
 
8876
    linux* | k*bsd*-gnu)
8877
      case $cc_basename in
8878
      # old Intel for x86_64 which still supported -KPIC.
8879
      ecc*)
8880
	lt_prog_compiler_wl='-Wl,'
8881
	lt_prog_compiler_pic='-KPIC'
8882
	lt_prog_compiler_static='-static'
8883
        ;;
8884
      # icc used to be incompatible with GCC.
8885
      # ICC 10 doesn't accept -KPIC any more.
8886
      icc* | ifort*)
8887
	lt_prog_compiler_wl='-Wl,'
8888
	lt_prog_compiler_pic='-fPIC'
8889
	lt_prog_compiler_static='-static'
8890
        ;;
8891
      # Lahey Fortran 8.1.
8892
      lf95*)
8893
	lt_prog_compiler_wl='-Wl,'
8894
	lt_prog_compiler_pic='--shared'
8895
	lt_prog_compiler_static='--static'
8896
	;;
8897
      pgcc* | pgf77* | pgf90* | pgf95*)
8898
        # Portland Group compilers (*not* the Pentium gcc compiler,
8899
	# which looks to be a dead project)
8900
	lt_prog_compiler_wl='-Wl,'
8901
	lt_prog_compiler_pic='-fpic'
8902
	lt_prog_compiler_static='-Bstatic'
8903
        ;;
8904
      ccc*)
8905
        lt_prog_compiler_wl='-Wl,'
8906
        # All Alpha code is PIC.
8907
        lt_prog_compiler_static='-non_shared'
8908
        ;;
8909
      xl*)
8910
	# IBM XL C 8.0/Fortran 10.1 on PPC
8911
	lt_prog_compiler_wl='-Wl,'
8912
	lt_prog_compiler_pic='-qpic'
8913
	lt_prog_compiler_static='-qstaticlink'
8914
	;;
8915
      *)
8916
	case `$CC -V 2>&1 | sed 5q` in
8917
	*Sun\ C*)
8918
	  # Sun C 5.9
8919
	  lt_prog_compiler_pic='-KPIC'
8920
	  lt_prog_compiler_static='-Bstatic'
8921
	  lt_prog_compiler_wl='-Wl,'
8922
	  ;;
8923
	*Sun\ F*)
8924
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8925
	  lt_prog_compiler_pic='-KPIC'
8926
	  lt_prog_compiler_static='-Bstatic'
8927
	  lt_prog_compiler_wl=''
8928
	  ;;
8929
	esac
8930
	;;
8931
      esac
8932
      ;;
8933
 
8934
    newsos6)
8935
      lt_prog_compiler_pic='-KPIC'
8936
      lt_prog_compiler_static='-Bstatic'
8937
      ;;
8938
 
8939
    *nto* | *qnx*)
8940
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8941
      # it will coredump.
8942
      lt_prog_compiler_pic='-fPIC -shared'
8943
      ;;
8944
 
8945
    osf3* | osf4* | osf5*)
8946
      lt_prog_compiler_wl='-Wl,'
8947
      # All OSF/1 code is PIC.
8948
      lt_prog_compiler_static='-non_shared'
8949
      ;;
8950
 
8951
    rdos*)
8952
      lt_prog_compiler_static='-non_shared'
8953
      ;;
8954
 
8955
    solaris*)
8956
      lt_prog_compiler_pic='-KPIC'
8957
      lt_prog_compiler_static='-Bstatic'
8958
      case $cc_basename in
8959
      f77* | f90* | f95*)
8960
	lt_prog_compiler_wl='-Qoption ld ';;
8961
      *)
8962
	lt_prog_compiler_wl='-Wl,';;
8963
      esac
8964
      ;;
8965
 
8966
    sunos4*)
8967
      lt_prog_compiler_wl='-Qoption ld '
8968
      lt_prog_compiler_pic='-PIC'
8969
      lt_prog_compiler_static='-Bstatic'
8970
      ;;
8971
 
8972
    sysv4 | sysv4.2uw2* | sysv4.3*)
8973
      lt_prog_compiler_wl='-Wl,'
8974
      lt_prog_compiler_pic='-KPIC'
8975
      lt_prog_compiler_static='-Bstatic'
8976
      ;;
8977
 
8978
    sysv4*MP*)
8979
      if test -d /usr/nec ;then
8980
	lt_prog_compiler_pic='-Kconform_pic'
8981
	lt_prog_compiler_static='-Bstatic'
8982
      fi
8983
      ;;
8984
 
8985
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8986
      lt_prog_compiler_wl='-Wl,'
8987
      lt_prog_compiler_pic='-KPIC'
8988
      lt_prog_compiler_static='-Bstatic'
8989
      ;;
8990
 
8991
    unicos*)
8992
      lt_prog_compiler_wl='-Wl,'
8993
      lt_prog_compiler_can_build_shared=no
8994
      ;;
8995
 
8996
    uts4*)
8997
      lt_prog_compiler_pic='-pic'
8998
      lt_prog_compiler_static='-Bstatic'
8999
      ;;
9000
 
9001
    *)
9002
      lt_prog_compiler_can_build_shared=no
9003
      ;;
9004
    esac
9005
  fi
9006
 
9007
case $host_os in
9008
  # For platforms which do not support PIC, -DPIC is meaningless:
9009
  *djgpp*)
9010
    lt_prog_compiler_pic=
9011
    ;;
9012
  *)
9013
    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9014
    ;;
9015
esac
9016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9017
$as_echo "$lt_prog_compiler_pic" >&6; }
9018
 
9019
 
9020
 
9021
 
9022
 
9023
 
9024
#
9025
# Check to make sure the PIC flag actually works.
9026
#
9027
if test -n "$lt_prog_compiler_pic"; then
9028
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9029
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9030
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9031
  $as_echo_n "(cached) " >&6
9032
else
9033
  lt_cv_prog_compiler_pic_works=no
9034
   ac_outfile=conftest.$ac_objext
9035
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9036
   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
9037
   # Insert the option either (1) after the last *FLAGS variable, or
9038
   # (2) before a word containing "conftest.", or (3) at the end.
9039
   # Note that $ac_compile itself does not contain backslashes and begins
9040
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9041
   # The option is referenced via a variable to avoid confusing sed.
9042
   lt_compile=`echo "$ac_compile" | $SED \
9043
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9044
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9045
   -e 's:$: $lt_compiler_flag:'`
9046
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9047
   (eval "$lt_compile" 2>conftest.err)
9048
   ac_status=$?
9049
   cat conftest.err >&5
9050
   echo "$as_me:__oline__: \$? = $ac_status" >&5
9051
   if (exit $ac_status) && test -s "$ac_outfile"; then
9052
     # The compiler can only warn and ignore the option if not recognized
9053
     # So say no if there are warnings other than the usual output.
9054
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9055
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9056
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9057
       lt_cv_prog_compiler_pic_works=yes
9058
     fi
9059
   fi
9060
   $RM conftest*
9061
 
9062
fi
9063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9064
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9065
 
9066
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9067
    case $lt_prog_compiler_pic in
9068
     "" | " "*) ;;
9069
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9070
     esac
9071
else
9072
    lt_prog_compiler_pic=
9073
     lt_prog_compiler_can_build_shared=no
9074
fi
9075
 
9076
fi
9077
 
9078
 
9079
 
9080
 
9081
 
9082
 
9083
#
9084
# Check to make sure the static flag actually works.
9085
#
9086
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9088
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9089
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9090
  $as_echo_n "(cached) " >&6
9091
else
9092
  lt_cv_prog_compiler_static_works=no
9093
   save_LDFLAGS="$LDFLAGS"
9094
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9095
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9096
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9097
     # The linker can only warn and ignore the option if not recognized
9098
     # So say no if there are warnings
9099
     if test -s conftest.err; then
9100
       # Append any errors to the config.log.
9101
       cat conftest.err 1>&5
9102
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9103
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9104
       if diff conftest.exp conftest.er2 >/dev/null; then
9105
         lt_cv_prog_compiler_static_works=yes
9106
       fi
9107
     else
9108
       lt_cv_prog_compiler_static_works=yes
9109
     fi
9110
   fi
9111
   $RM -r conftest*
9112
   LDFLAGS="$save_LDFLAGS"
9113
 
9114
fi
9115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9116
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9117
 
9118
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9119
    :
9120
else
9121
    lt_prog_compiler_static=
9122
fi
9123
 
9124
 
9125
 
9126
 
9127
 
9128
 
9129
 
9130
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9131
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9132
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9133
  $as_echo_n "(cached) " >&6
9134
else
9135
  lt_cv_prog_compiler_c_o=no
9136
   $RM -r conftest 2>/dev/null
9137
   mkdir conftest
9138
   cd conftest
9139
   mkdir out
9140
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9141
 
9142
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9143
   # Insert the option either (1) after the last *FLAGS variable, or
9144
   # (2) before a word containing "conftest.", or (3) at the end.
9145
   # Note that $ac_compile itself does not contain backslashes and begins
9146
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9147
   lt_compile=`echo "$ac_compile" | $SED \
9148
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9149
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9150
   -e 's:$: $lt_compiler_flag:'`
9151
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9152
   (eval "$lt_compile" 2>out/conftest.err)
9153
   ac_status=$?
9154
   cat out/conftest.err >&5
9155
   echo "$as_me:__oline__: \$? = $ac_status" >&5
9156
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9157
   then
9158
     # The compiler can only warn and ignore the option if not recognized
9159
     # So say no if there are warnings
9160
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9161
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9162
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9163
       lt_cv_prog_compiler_c_o=yes
9164
     fi
9165
   fi
9166
   chmod u+w . 2>&5
9167
   $RM conftest*
9168
   # SGI C++ compiler will create directory out/ii_files/ for
9169
   # template instantiation
9170
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9171
   $RM out/* && rmdir out
9172
   cd ..
9173
   $RM -r conftest
9174
   $RM conftest*
9175
 
9176
fi
9177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9178
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9179
 
9180
 
9181
 
9182
 
9183
 
9184
 
9185
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9186
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9187
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9188
  $as_echo_n "(cached) " >&6
9189
else
9190
  lt_cv_prog_compiler_c_o=no
9191
   $RM -r conftest 2>/dev/null
9192
   mkdir conftest
9193
   cd conftest
9194
   mkdir out
9195
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9196
 
9197
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9198
   # Insert the option either (1) after the last *FLAGS variable, or
9199
   # (2) before a word containing "conftest.", or (3) at the end.
9200
   # Note that $ac_compile itself does not contain backslashes and begins
9201
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9202
   lt_compile=`echo "$ac_compile" | $SED \
9203
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9204
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9205
   -e 's:$: $lt_compiler_flag:'`
9206
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9207
   (eval "$lt_compile" 2>out/conftest.err)
9208
   ac_status=$?
9209
   cat out/conftest.err >&5
9210
   echo "$as_me:__oline__: \$? = $ac_status" >&5
9211
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9212
   then
9213
     # The compiler can only warn and ignore the option if not recognized
9214
     # So say no if there are warnings
9215
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9216
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9217
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9218
       lt_cv_prog_compiler_c_o=yes
9219
     fi
9220
   fi
9221
   chmod u+w . 2>&5
9222
   $RM conftest*
9223
   # SGI C++ compiler will create directory out/ii_files/ for
9224
   # template instantiation
9225
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9226
   $RM out/* && rmdir out
9227
   cd ..
9228
   $RM -r conftest
9229
   $RM conftest*
9230
 
9231
fi
9232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9233
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9234
 
9235
 
9236
 
9237
 
9238
hard_links="nottested"
9239
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9240
  # do not overwrite the value of need_locks provided by the user
9241
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9242
$as_echo_n "checking if we can lock with hard links... " >&6; }
9243
  hard_links=yes
9244
  $RM conftest*
9245
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9246
  touch conftest.a
9247
  ln conftest.a conftest.b 2>&5 || hard_links=no
9248
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9250
$as_echo "$hard_links" >&6; }
9251
  if test "$hard_links" = no; then
9252
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9253
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9254
    need_locks=warn
9255
  fi
9256
else
9257
  need_locks=no
9258
fi
9259
 
9260
 
9261
 
9262
 
9263
 
9264
 
9265
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9266
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9267
 
9268
  runpath_var=
9269
  allow_undefined_flag=
9270
  always_export_symbols=no
9271
  archive_cmds=
9272
  archive_expsym_cmds=
9273
  compiler_needs_object=no
9274
  enable_shared_with_static_runtimes=no
9275
  export_dynamic_flag_spec=
9276
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9277
  hardcode_automatic=no
9278
  hardcode_direct=no
9279
  hardcode_direct_absolute=no
9280
  hardcode_libdir_flag_spec=
9281
  hardcode_libdir_flag_spec_ld=
9282
  hardcode_libdir_separator=
9283
  hardcode_minus_L=no
9284
  hardcode_shlibpath_var=unsupported
9285
  inherit_rpath=no
9286
  link_all_deplibs=unknown
9287
  module_cmds=
9288
  module_expsym_cmds=
9289
  old_archive_from_new_cmds=
9290
  old_archive_from_expsyms_cmds=
9291
  thread_safe_flag_spec=
9292
  whole_archive_flag_spec=
9293
  # include_expsyms should be a list of space-separated symbols to be *always*
9294
  # included in the symbol list
9295
  include_expsyms=
9296
  # exclude_expsyms can be an extended regexp of symbols to exclude
9297
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9298
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9299
  # as well as any symbol that contains `d'.
9300
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9301
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9302
  # platforms (ab)use it in PIC code, but their linkers get confused if
9303
  # the symbol is explicitly referenced.  Since portable code cannot
9304
  # rely on this symbol name, it's probably fine to never include it in
9305
  # preloaded symbol tables.
9306
  # Exclude shared library initialization/finalization symbols.
9307
  extract_expsyms_cmds=
9308
 
9309
  case $host_os in
9310
  cygwin* | mingw* | pw32* | cegcc*)
9311
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9312
    # When not using gcc, we currently assume that we are using
9313
    # Microsoft Visual C++.
9314
    if test "$GCC" != yes; then
9315
      with_gnu_ld=no
9316
    fi
9317
    ;;
9318
  interix*)
9319
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9320
    with_gnu_ld=yes
9321
    ;;
9322
  openbsd*)
9323
    with_gnu_ld=no
9324
    ;;
9325
  linux* | k*bsd*-gnu)
9326
    link_all_deplibs=no
9327
    ;;
9328
  esac
9329
 
9330
  ld_shlibs=yes
9331
  if test "$with_gnu_ld" = yes; then
9332
    # If archive_cmds runs LD, not CC, wlarc should be empty
9333
    wlarc='${wl}'
9334
 
9335
    # Set some defaults for GNU ld with shared library support. These
9336
    # are reset later if shared libraries are not supported. Putting them
9337
    # here allows them to be overridden if necessary.
9338
    runpath_var=LD_RUN_PATH
9339
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340
    export_dynamic_flag_spec='${wl}--export-dynamic'
9341
    # ancient GNU ld didn't support --whole-archive et. al.
9342
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9343
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9344
    else
9345
      whole_archive_flag_spec=
9346
    fi
9347
    supports_anon_versioning=no
9348
    case `$LD -v 2>&1` in
9349
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9350
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9351
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9352
      *\ 2.11.*) ;; # other 2.11 versions
9353
      *) supports_anon_versioning=yes ;;
9354
    esac
9355
 
9356
    # See if GNU ld supports shared libraries.
9357
    case $host_os in
9358
    aix[3-9]*)
9359
      # On AIX/PPC, the GNU linker is very broken
9360
      if test "$host_cpu" != ia64; then
9361
	ld_shlibs=no
9362
	cat <<_LT_EOF 1>&2
9363
 
9364
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9365
*** to be unable to reliably create shared libraries on AIX.
9366
*** Therefore, libtool is disabling shared libraries support.  If you
9367
*** really care for shared libraries, you may want to modify your PATH
9368
*** so that a non-GNU linker is found, and then restart.
9369
 
9370
_LT_EOF
9371
      fi
9372
      ;;
9373
 
9374
    amigaos*)
9375
      case $host_cpu in
9376
      powerpc)
9377
            # see comment about AmigaOS4 .so support
9378
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379
            archive_expsym_cmds=''
9380
        ;;
9381
      m68k)
9382
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9383
            hardcode_libdir_flag_spec='-L$libdir'
9384
            hardcode_minus_L=yes
9385
        ;;
9386
      esac
9387
      ;;
9388
 
9389
    beos*)
9390
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9391
	allow_undefined_flag=unsupported
9392
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9393
	# support --undefined.  This deserves some investigation.  FIXME
9394
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9395
      else
9396
	ld_shlibs=no
9397
      fi
9398
      ;;
9399
 
9400
    cygwin* | mingw* | pw32* | cegcc*)
9401
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9402
      # as there is no search path for DLLs.
9403
      hardcode_libdir_flag_spec='-L$libdir'
9404
      allow_undefined_flag=unsupported
9405
      always_export_symbols=no
9406
      enable_shared_with_static_runtimes=yes
9407
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9408
 
9409
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9410
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411
	# If the export-symbols file already is a .def file (1st line
9412
	# is EXPORTS), use it as is; otherwise, prepend...
9413
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9414
	  cp $export_symbols $output_objdir/$soname.def;
9415
	else
9416
	  echo EXPORTS > $output_objdir/$soname.def;
9417
	  cat $export_symbols >> $output_objdir/$soname.def;
9418
	fi~
9419
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9420
      else
9421
	ld_shlibs=no
9422
      fi
9423
      ;;
9424
 
9425
    interix[3-9]*)
9426
      hardcode_direct=no
9427
      hardcode_shlibpath_var=no
9428
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9429
      export_dynamic_flag_spec='${wl}-E'
9430
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9431
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9432
      # default) and relocated if they conflict, which is a slow very memory
9433
      # consuming and fragmenting process.  To avoid this, we pick a random,
9434
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9435
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9436
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9437
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9438
      ;;
9439
 
9440
    gnu* | linux* | tpf* | k*bsd*-gnu)
9441
      tmp_diet=no
9442
      if test "$host_os" = linux-dietlibc; then
9443
	case $cc_basename in
9444
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9445
	esac
9446
      fi
9447
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9448
	 && test "$tmp_diet" = no
9449
      then
9450
	tmp_addflag=
9451
	tmp_sharedflag='-shared'
9452
	case $cc_basename,$host_cpu in
9453
        pgcc*)				# Portland Group C compiler
9454
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9455
	  tmp_addflag=' $pic_flag'
9456
	  ;;
9457
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9458
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9459
	  tmp_addflag=' $pic_flag -Mnomain' ;;
9460
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9461
	  tmp_addflag=' -i_dynamic' ;;
9462
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9463
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9464
	ifc* | ifort*)			# Intel Fortran compiler
9465
	  tmp_addflag=' -nofor_main' ;;
9466
	lf95*)				# Lahey Fortran 8.1
9467
	  whole_archive_flag_spec=
9468
	  tmp_sharedflag='--shared' ;;
9469
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9470
	  tmp_sharedflag='-qmkshrobj'
9471
	  tmp_addflag= ;;
9472
	esac
9473
	case `$CC -V 2>&1 | sed 5q` in
9474
	*Sun\ C*)			# Sun C 5.9
9475
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9476
	  compiler_needs_object=yes
9477
	  tmp_sharedflag='-G' ;;
9478
	*Sun\ F*)			# Sun Fortran 8.3
9479
	  tmp_sharedflag='-G' ;;
9480
	esac
9481
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482
 
9483
        if test "x$supports_anon_versioning" = xyes; then
9484
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9485
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9486
	    echo "local: *; };" >> $output_objdir/$libname.ver~
9487
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9488
        fi
9489
 
9490
	case $cc_basename in
9491
	xlf*)
9492
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9493
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9494
	  hardcode_libdir_flag_spec=
9495
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9496
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9497
	  if test "x$supports_anon_versioning" = xyes; then
9498
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9499
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9500
	      echo "local: *; };" >> $output_objdir/$libname.ver~
9501
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9502
	  fi
9503
	  ;;
9504
	esac
9505
      else
9506
        ld_shlibs=no
9507
      fi
9508
      ;;
9509
 
9510
    netbsd* | netbsdelf*-gnu)
9511
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9513
	wlarc=
9514
      else
9515
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9517
      fi
9518
      ;;
9519
 
9520
    solaris*)
9521
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9522
	ld_shlibs=no
9523
	cat <<_LT_EOF 1>&2
9524
 
9525
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9526
*** create shared libraries on Solaris systems.  Therefore, libtool
9527
*** is disabling shared libraries support.  We urge you to upgrade GNU
9528
*** binutils to release 2.9.1 or newer.  Another option is to modify
9529
*** your PATH or compiler configuration so that the native linker is
9530
*** used, and then restart.
9531
 
9532
_LT_EOF
9533
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9534
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536
      else
9537
	ld_shlibs=no
9538
      fi
9539
      ;;
9540
 
9541
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9542
      case `$LD -v 2>&1` in
9543
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9544
	ld_shlibs=no
9545
	cat <<_LT_EOF 1>&2
9546
 
9547
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9548
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9549
*** is disabling shared libraries support.  We urge you to upgrade GNU
9550
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9551
*** your PATH or compiler configuration so that the native linker is
9552
*** used, and then restart.
9553
 
9554
_LT_EOF
9555
	;;
9556
	*)
9557
	  # For security reasons, it is highly recommended that you always
9558
	  # use absolute paths for naming shared libraries, and exclude the
9559
	  # DT_RUNPATH tag from executables and libraries.  But doing so
9560
	  # requires that you compile everything twice, which is a pain.
9561
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9562
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9563
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9565
	  else
9566
	    ld_shlibs=no
9567
	  fi
9568
	;;
9569
      esac
9570
      ;;
9571
 
9572
    sunos4*)
9573
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9574
      wlarc=
9575
      hardcode_direct=yes
9576
      hardcode_shlibpath_var=no
9577
      ;;
9578
 
9579
    *)
9580
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9581
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9583
      else
9584
	ld_shlibs=no
9585
      fi
9586
      ;;
9587
    esac
9588
 
9589
    if test "$ld_shlibs" = no; then
9590
      runpath_var=
9591
      hardcode_libdir_flag_spec=
9592
      export_dynamic_flag_spec=
9593
      whole_archive_flag_spec=
9594
    fi
9595
  else
9596
    # PORTME fill in a description of your system's linker (not GNU ld)
9597
    case $host_os in
9598
    aix3*)
9599
      allow_undefined_flag=unsupported
9600
      always_export_symbols=yes
9601
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9602
      # Note: this linker hardcodes the directories in LIBPATH if there
9603
      # are no directories specified by -L.
9604
      hardcode_minus_L=yes
9605
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9606
	# Neither direct hardcoding nor static linking is supported with a
9607
	# broken collect2.
9608
	hardcode_direct=unsupported
9609
      fi
9610
      ;;
9611
 
9612
    aix[4-9]*)
9613
      if test "$host_cpu" = ia64; then
9614
	# On IA64, the linker does run time linking by default, so we don't
9615
	# have to do anything special.
9616
	aix_use_runtimelinking=no
9617
	exp_sym_flag='-Bexport'
9618
	no_entry_flag=""
9619
      else
9620
	# If we're using GNU nm, then we don't want the "-C" option.
9621
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9622
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9623
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9624
	else
9625
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9626
	fi
9627
	aix_use_runtimelinking=no
9628
 
9629
	# Test if we are trying to use run time linking or normal
9630
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9631
	# need to do runtime linking.
9632
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9633
	  for ld_flag in $LDFLAGS; do
9634
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9635
	    aix_use_runtimelinking=yes
9636
	    break
9637
	  fi
9638
	  done
9639
	  ;;
9640
	esac
9641
 
9642
	exp_sym_flag='-bexport'
9643
	no_entry_flag='-bnoentry'
9644
      fi
9645
 
9646
      # When large executables or shared objects are built, AIX ld can
9647
      # have problems creating the table of contents.  If linking a library
9648
      # or program results in "error TOC overflow" add -mminimal-toc to
9649
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9650
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9651
 
9652
      archive_cmds=''
9653
      hardcode_direct=yes
9654
      hardcode_direct_absolute=yes
9655
      hardcode_libdir_separator=':'
9656
      link_all_deplibs=yes
9657
      file_list_spec='${wl}-f,'
9658
 
9659
      if test "$GCC" = yes; then
9660
	case $host_os in aix4.[012]|aix4.[012].*)
9661
	# We only want to do this on AIX 4.2 and lower, the check
9662
	# below for broken collect2 doesn't work under 4.3+
9663
	  collect2name=`${CC} -print-prog-name=collect2`
9664
	  if test -f "$collect2name" &&
9665
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9666
	  then
9667
	  # We have reworked collect2
9668
	  :
9669
	  else
9670
	  # We have old collect2
9671
	  hardcode_direct=unsupported
9672
	  # It fails to find uninstalled libraries when the uninstalled
9673
	  # path is not listed in the libpath.  Setting hardcode_minus_L
9674
	  # to unsupported forces relinking
9675
	  hardcode_minus_L=yes
9676
	  hardcode_libdir_flag_spec='-L$libdir'
9677
	  hardcode_libdir_separator=
9678
	  fi
9679
	  ;;
9680
	esac
9681
	shared_flag='-shared'
9682
	if test "$aix_use_runtimelinking" = yes; then
9683
	  shared_flag="$shared_flag "'${wl}-G'
9684
	fi
9685
	link_all_deplibs=no
9686
      else
9687
	# not using gcc
9688
	if test "$host_cpu" = ia64; then
9689
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9690
	# chokes on -Wl,-G. The following line is correct:
9691
	  shared_flag='-G'
9692
	else
9693
	  if test "$aix_use_runtimelinking" = yes; then
9694
	    shared_flag='${wl}-G'
9695
	  else
9696
	    shared_flag='${wl}-bM:SRE'
9697
	  fi
9698
	fi
9699
      fi
9700
 
9701
      export_dynamic_flag_spec='${wl}-bexpall'
9702
      # It seems that -bexpall does not export symbols beginning with
9703
      # underscore (_), so it is better to generate a list of symbols to export.
9704
      always_export_symbols=yes
9705
      if test "$aix_use_runtimelinking" = yes; then
9706
	# Warning - without using the other runtime loading flags (-brtl),
9707
	# -berok will link without error, but may produce a broken library.
9708
	allow_undefined_flag='-berok'
9709
        # Determine the default libpath from the value encoded in an
9710
        # empty executable.
9711
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712
/* end confdefs.h.  */
9713
 
9714
int
9715
main ()
9716
{
9717
 
9718
  ;
9719
  return 0;
9720
}
9721
_ACEOF
9722
if ac_fn_c_try_link "$LINENO"; then :
9723
 
9724
lt_aix_libpath_sed='
9725
    /Import File Strings/,/^$/ {
9726
	/^0/ {
9727
	    s/^0  *\(.*\)$/\1/
9728
	    p
9729
	}
9730
    }'
9731
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9732
# Check for a 64-bit object if we didn't find anything.
9733
if test -z "$aix_libpath"; then
9734
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9735
fi
9736
fi
9737
rm -f core conftest.err conftest.$ac_objext \
9738
    conftest$ac_exeext conftest.$ac_ext
9739
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9740
 
9741
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9742
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9743
      else
9744
	if test "$host_cpu" = ia64; then
9745
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9746
	  allow_undefined_flag="-z nodefs"
9747
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9748
	else
9749
	 # Determine the default libpath from the value encoded in an
9750
	 # empty executable.
9751
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752
/* end confdefs.h.  */
9753
 
9754
int
9755
main ()
9756
{
9757
 
9758
  ;
9759
  return 0;
9760
}
9761
_ACEOF
9762
if ac_fn_c_try_link "$LINENO"; then :
9763
 
9764
lt_aix_libpath_sed='
9765
    /Import File Strings/,/^$/ {
9766
	/^0/ {
9767
	    s/^0  *\(.*\)$/\1/
9768
	    p
9769
	}
9770
    }'
9771
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9772
# Check for a 64-bit object if we didn't find anything.
9773
if test -z "$aix_libpath"; then
9774
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9775
fi
9776
fi
9777
rm -f core conftest.err conftest.$ac_objext \
9778
    conftest$ac_exeext conftest.$ac_ext
9779
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9780
 
9781
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9782
	  # Warning - without using the other run time loading flags,
9783
	  # -berok will link without error, but may produce a broken library.
9784
	  no_undefined_flag=' ${wl}-bernotok'
9785
	  allow_undefined_flag=' ${wl}-berok'
9786
	  # Exported symbols can be pulled into shared objects from archives
9787
	  whole_archive_flag_spec='$convenience'
9788
	  archive_cmds_need_lc=yes
9789
	  # This is similar to how AIX traditionally builds its shared libraries.
9790
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9791
	fi
9792
      fi
9793
      ;;
9794
 
9795
    amigaos*)
9796
      case $host_cpu in
9797
      powerpc)
9798
            # see comment about AmigaOS4 .so support
9799
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800
            archive_expsym_cmds=''
9801
        ;;
9802
      m68k)
9803
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9804
            hardcode_libdir_flag_spec='-L$libdir'
9805
            hardcode_minus_L=yes
9806
        ;;
9807
      esac
9808
      ;;
9809
 
9810
    bsdi[45]*)
9811
      export_dynamic_flag_spec=-rdynamic
9812
      ;;
9813
 
9814
    cygwin* | mingw* | pw32* | cegcc*)
9815
      # When not using gcc, we currently assume that we are using
9816
      # Microsoft Visual C++.
9817
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9818
      # no search path for DLLs.
9819
      hardcode_libdir_flag_spec=' '
9820
      allow_undefined_flag=unsupported
9821
      # Tell ltmain to make .lib files, not .a files.
9822
      libext=lib
9823
      # Tell ltmain to make .dll files, not .so files.
9824
      shrext_cmds=".dll"
9825
      # FIXME: Setting linknames here is a bad hack.
9826
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9827
      # The linker will automatically build a .lib file if we build a DLL.
9828
      old_archive_from_new_cmds='true'
9829
      # FIXME: Should let the user specify the lib program.
9830
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9831
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9832
      enable_shared_with_static_runtimes=yes
9833
      ;;
9834
 
9835
    darwin* | rhapsody*)
9836
 
9837
 
9838
  archive_cmds_need_lc=no
9839
  hardcode_direct=no
9840
  hardcode_automatic=yes
9841
  hardcode_shlibpath_var=unsupported
9842
  whole_archive_flag_spec=''
9843
  link_all_deplibs=yes
9844
  allow_undefined_flag="$_lt_dar_allow_undefined"
9845
  case $cc_basename in
9846
     ifort*) _lt_dar_can_shared=yes ;;
9847
     *) _lt_dar_can_shared=$GCC ;;
9848
  esac
9849
  if test "$_lt_dar_can_shared" = "yes"; then
9850
    output_verbose_link_cmd=echo
9851
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9852
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9853
    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}"
9854
    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}"
9855
 
9856
  else
9857
  ld_shlibs=no
9858
  fi
9859
 
9860
      ;;
9861
 
9862
    dgux*)
9863
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864
      hardcode_libdir_flag_spec='-L$libdir'
9865
      hardcode_shlibpath_var=no
9866
      ;;
9867
 
9868
    freebsd1*)
9869
      ld_shlibs=no
9870
      ;;
9871
 
9872
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9873
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9874
    # does not break anything, and helps significantly (at the cost of a little
9875
    # extra space).
9876
    freebsd2.2*)
9877
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9878
      hardcode_libdir_flag_spec='-R$libdir'
9879
      hardcode_direct=yes
9880
      hardcode_shlibpath_var=no
9881
      ;;
9882
 
9883
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9884
    freebsd2*)
9885
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9886
      hardcode_direct=yes
9887
      hardcode_minus_L=yes
9888
      hardcode_shlibpath_var=no
9889
      ;;
9890
 
9891
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9892
    freebsd* | dragonfly*)
9893
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9894
      hardcode_libdir_flag_spec='-R$libdir'
9895
      hardcode_direct=yes
9896
      hardcode_shlibpath_var=no
9897
      ;;
9898
 
9899
    hpux9*)
9900
      if test "$GCC" = yes; then
9901
	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9902
      else
9903
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9904
      fi
9905
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9906
      hardcode_libdir_separator=:
9907
      hardcode_direct=yes
9908
 
9909
      # hardcode_minus_L: Not really in the search PATH,
9910
      # but as the default location of the library.
9911
      hardcode_minus_L=yes
9912
      export_dynamic_flag_spec='${wl}-E'
9913
      ;;
9914
 
9915
    hpux10*)
9916
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9917
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918
      else
9919
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9920
      fi
9921
      if test "$with_gnu_ld" = no; then
9922
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9923
	hardcode_libdir_flag_spec_ld='+b $libdir'
9924
	hardcode_libdir_separator=:
9925
	hardcode_direct=yes
9926
	hardcode_direct_absolute=yes
9927
	export_dynamic_flag_spec='${wl}-E'
9928
	# hardcode_minus_L: Not really in the search PATH,
9929
	# but as the default location of the library.
9930
	hardcode_minus_L=yes
9931
      fi
9932
      ;;
9933
 
9934
    hpux11*)
9935
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9936
	case $host_cpu in
9937
	hppa*64*)
9938
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9939
	  ;;
9940
	ia64*)
9941
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9942
	  ;;
9943
	*)
9944
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9945
	  ;;
9946
	esac
9947
      else
9948
	case $host_cpu in
9949
	hppa*64*)
9950
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9951
	  ;;
9952
	ia64*)
9953
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9954
	  ;;
9955
	*)
9956
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9957
	  ;;
9958
	esac
9959
      fi
9960
      if test "$with_gnu_ld" = no; then
9961
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9962
	hardcode_libdir_separator=:
9963
 
9964
	case $host_cpu in
9965
	hppa*64*|ia64*)
9966
	  hardcode_direct=no
9967
	  hardcode_shlibpath_var=no
9968
	  ;;
9969
	*)
9970
	  hardcode_direct=yes
9971
	  hardcode_direct_absolute=yes
9972
	  export_dynamic_flag_spec='${wl}-E'
9973
 
9974
	  # hardcode_minus_L: Not really in the search PATH,
9975
	  # but as the default location of the library.
9976
	  hardcode_minus_L=yes
9977
	  ;;
9978
	esac
9979
      fi
9980
      ;;
9981
 
9982
    irix5* | irix6* | nonstopux*)
9983
      if test "$GCC" = yes; then
9984
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9985
	# Try to use the -exported_symbol ld option, if it does not
9986
	# work, assume that -exports_file does not work either and
9987
	# implicitly export all symbols.
9988
        save_LDFLAGS="$LDFLAGS"
9989
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9990
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991
/* end confdefs.h.  */
9992
int foo(void) {}
9993
_ACEOF
9994
if ac_fn_c_try_link "$LINENO"; then :
9995
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9996
 
9997
fi
9998
rm -f core conftest.err conftest.$ac_objext \
9999
    conftest$ac_exeext conftest.$ac_ext
10000
        LDFLAGS="$save_LDFLAGS"
10001
      else
10002
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10003
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10004
      fi
10005
      archive_cmds_need_lc='no'
10006
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007
      hardcode_libdir_separator=:
10008
      inherit_rpath=yes
10009
      link_all_deplibs=yes
10010
      ;;
10011
 
10012
    netbsd* | netbsdelf*-gnu)
10013
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10014
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10015
      else
10016
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10017
      fi
10018
      hardcode_libdir_flag_spec='-R$libdir'
10019
      hardcode_direct=yes
10020
      hardcode_shlibpath_var=no
10021
      ;;
10022
 
10023
    newsos6)
10024
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025
      hardcode_direct=yes
10026
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10027
      hardcode_libdir_separator=:
10028
      hardcode_shlibpath_var=no
10029
      ;;
10030
 
10031
    *nto* | *qnx*)
10032
      ;;
10033
 
10034
    openbsd*)
10035
      if test -f /usr/libexec/ld.so; then
10036
	hardcode_direct=yes
10037
	hardcode_shlibpath_var=no
10038
	hardcode_direct_absolute=yes
10039
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10040
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10041
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10042
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10043
	  export_dynamic_flag_spec='${wl}-E'
10044
	else
10045
	  case $host_os in
10046
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10047
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10048
	     hardcode_libdir_flag_spec='-R$libdir'
10049
	     ;;
10050
	   *)
10051
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10052
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10053
	     ;;
10054
	  esac
10055
	fi
10056
      else
10057
	ld_shlibs=no
10058
      fi
10059
      ;;
10060
 
10061
    os2*)
10062
      hardcode_libdir_flag_spec='-L$libdir'
10063
      hardcode_minus_L=yes
10064
      allow_undefined_flag=unsupported
10065
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10066
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10067
      ;;
10068
 
10069
    osf3*)
10070
      if test "$GCC" = yes; then
10071
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10072
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10073
      else
10074
	allow_undefined_flag=' -expect_unresolved \*'
10075
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10076
      fi
10077
      archive_cmds_need_lc='no'
10078
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10079
      hardcode_libdir_separator=:
10080
      ;;
10081
 
10082
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10083
      if test "$GCC" = yes; then
10084
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10085
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10086
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10087
      else
10088
	allow_undefined_flag=' -expect_unresolved \*'
10089
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10090
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10091
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10092
 
10093
	# Both c and cxx compiler support -rpath directly
10094
	hardcode_libdir_flag_spec='-rpath $libdir'
10095
      fi
10096
      archive_cmds_need_lc='no'
10097
      hardcode_libdir_separator=:
10098
      ;;
10099
 
10100
    solaris*)
10101
      no_undefined_flag=' -z defs'
10102
      if test "$GCC" = yes; then
10103
	wlarc='${wl}'
10104
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10105
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10106
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10107
      else
10108
	case `$CC -V 2>&1` in
10109
	*"Compilers 5.0"*)
10110
	  wlarc=''
10111
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10113
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10114
	  ;;
10115
	*)
10116
	  wlarc='${wl}'
10117
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10118
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10119
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10120
	  ;;
10121
	esac
10122
      fi
10123
      hardcode_libdir_flag_spec='-R$libdir'
10124
      hardcode_shlibpath_var=no
10125
      case $host_os in
10126
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10127
      *)
10128
	# The compiler driver will combine and reorder linker options,
10129
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10130
	# but is careful enough not to reorder.
10131
	# Supported since Solaris 2.6 (maybe 2.5.1?)
10132
	if test "$GCC" = yes; then
10133
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10134
	else
10135
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10136
	fi
10137
	;;
10138
      esac
10139
      link_all_deplibs=yes
10140
      ;;
10141
 
10142
    sunos4*)
10143
      if test "x$host_vendor" = xsequent; then
10144
	# Use $CC to link under sequent, because it throws in some extra .o
10145
	# files that make .init and .fini sections work.
10146
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10147
      else
10148
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10149
      fi
10150
      hardcode_libdir_flag_spec='-L$libdir'
10151
      hardcode_direct=yes
10152
      hardcode_minus_L=yes
10153
      hardcode_shlibpath_var=no
10154
      ;;
10155
 
10156
    sysv4)
10157
      case $host_vendor in
10158
	sni)
10159
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160
	  hardcode_direct=yes # is this really true???
10161
	;;
10162
	siemens)
10163
	  ## LD is ld it makes a PLAMLIB
10164
	  ## CC just makes a GrossModule.
10165
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10166
	  reload_cmds='$CC -r -o $output$reload_objs'
10167
	  hardcode_direct=no
10168
        ;;
10169
	motorola)
10170
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10172
	;;
10173
      esac
10174
      runpath_var='LD_RUN_PATH'
10175
      hardcode_shlibpath_var=no
10176
      ;;
10177
 
10178
    sysv4.3*)
10179
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180
      hardcode_shlibpath_var=no
10181
      export_dynamic_flag_spec='-Bexport'
10182
      ;;
10183
 
10184
    sysv4*MP*)
10185
      if test -d /usr/nec; then
10186
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187
	hardcode_shlibpath_var=no
10188
	runpath_var=LD_RUN_PATH
10189
	hardcode_runpath_var=yes
10190
	ld_shlibs=yes
10191
      fi
10192
      ;;
10193
 
10194
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10195
      no_undefined_flag='${wl}-z,text'
10196
      archive_cmds_need_lc=no
10197
      hardcode_shlibpath_var=no
10198
      runpath_var='LD_RUN_PATH'
10199
 
10200
      if test "$GCC" = yes; then
10201
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10202
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10203
      else
10204
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206
      fi
10207
      ;;
10208
 
10209
    sysv5* | sco3.2v5* | sco5v6*)
10210
      # Note: We can NOT use -z defs as we might desire, because we do not
10211
      # link with -lc, and that would cause any symbols used from libc to
10212
      # always be unresolved, which means just about no library would
10213
      # ever link correctly.  If we're not using GNU ld we use -z text
10214
      # though, which does catch some bad symbols but isn't as heavy-handed
10215
      # as -z defs.
10216
      no_undefined_flag='${wl}-z,text'
10217
      allow_undefined_flag='${wl}-z,nodefs'
10218
      archive_cmds_need_lc=no
10219
      hardcode_shlibpath_var=no
10220
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10221
      hardcode_libdir_separator=':'
10222
      link_all_deplibs=yes
10223
      export_dynamic_flag_spec='${wl}-Bexport'
10224
      runpath_var='LD_RUN_PATH'
10225
 
10226
      if test "$GCC" = yes; then
10227
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10228
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10229
      else
10230
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232
      fi
10233
      ;;
10234
 
10235
    uts4*)
10236
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237
      hardcode_libdir_flag_spec='-L$libdir'
10238
      hardcode_shlibpath_var=no
10239
      ;;
10240
 
10241
    *)
10242
      ld_shlibs=no
10243
      ;;
10244
    esac
10245
 
10246
    if test x$host_vendor = xsni; then
10247
      case $host in
10248
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10249
	export_dynamic_flag_spec='${wl}-Blargedynsym'
10250
	;;
10251
      esac
10252
    fi
10253
  fi
10254
 
10255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10256
$as_echo "$ld_shlibs" >&6; }
10257
test "$ld_shlibs" = no && can_build_shared=no
10258
 
10259
with_gnu_ld=$with_gnu_ld
10260
 
10261
 
10262
 
10263
 
10264
 
10265
 
10266
 
10267
 
10268
 
10269
 
10270
 
10271
 
10272
 
10273
 
10274
 
10275
#
10276
# Do we need to explicitly link libc?
10277
#
10278
case "x$archive_cmds_need_lc" in
10279
x|xyes)
10280
  # Assume -lc should be added
10281
  archive_cmds_need_lc=yes
10282
 
10283
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10284
    case $archive_cmds in
10285
    *'~'*)
10286
      # FIXME: we may have to deal with multi-command sequences.
10287
      ;;
10288
    '$CC '*)
10289
      # Test whether the compiler implicitly links with -lc since on some
10290
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10291
      # to ld, don't add -lc before -lgcc.
10292
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10293
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10294
      $RM conftest*
10295
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10296
 
10297
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10298
  (eval $ac_compile) 2>&5
10299
  ac_status=$?
10300
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10301
  test $ac_status = 0; } 2>conftest.err; then
10302
        soname=conftest
10303
        lib=conftest
10304
        libobjs=conftest.$ac_objext
10305
        deplibs=
10306
        wl=$lt_prog_compiler_wl
10307
	pic_flag=$lt_prog_compiler_pic
10308
        compiler_flags=-v
10309
        linker_flags=-v
10310
        verstring=
10311
        output_objdir=.
10312
        libname=conftest
10313
        lt_save_allow_undefined_flag=$allow_undefined_flag
10314
        allow_undefined_flag=
10315
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10316
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10317
  ac_status=$?
10318
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10319
  test $ac_status = 0; }
10320
        then
10321
	  archive_cmds_need_lc=no
10322
        else
10323
	  archive_cmds_need_lc=yes
10324
        fi
10325
        allow_undefined_flag=$lt_save_allow_undefined_flag
10326
      else
10327
        cat conftest.err 1>&5
10328
      fi
10329
      $RM conftest*
10330
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10331
$as_echo "$archive_cmds_need_lc" >&6; }
10332
      ;;
10333
    esac
10334
  fi
10335
  ;;
10336
esac
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
 
10375
 
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
 
10389
 
10390
 
10391
 
10392
 
10393
 
10394
 
10395
 
10396
 
10397
 
10398
 
10399
 
10400
 
10401
 
10402
 
10403
 
10404
 
10405
 
10406
 
10407
 
10408
 
10409
 
10410
 
10411
 
10412
 
10413
 
10414
 
10415
 
10416
 
10417
 
10418
 
10419
 
10420
 
10421
 
10422
 
10423
 
10424
 
10425
 
10426
 
10427
 
10428
 
10429
 
10430
 
10431
 
10432
 
10433
 
10434
 
10435
 
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
 
10443
 
10444
 
10445
 
10446
 
10447
 
10448
 
10449
 
10450
 
10451
 
10452
 
10453
 
10454
 
10455
 
10456
 
10457
 
10458
 
10459
 
10460
 
10461
 
10462
 
10463
 
10464
 
10465
 
10466
 
10467
 
10468
 
10469
 
10470
 
10471
 
10472
 
10473
 
10474
 
10475
 
10476
 
10477
 
10478
 
10479
 
10480
 
10481
 
10482
 
10483
 
10484
 
10485
 
10486
 
10487
 
10488
 
10489
 
10490
 
10491
 
10492
 
10493
 
10494
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10495
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10496
 
10497
if test "$GCC" = yes; then
10498
  case $host_os in
10499
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10500
    *) lt_awk_arg="/^libraries:/" ;;
10501
  esac
10502
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10503
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10504
    # if the path contains ";" then we assume it to be the separator
10505
    # otherwise default to the standard path separator (i.e. ":") - it is
10506
    # assumed that no part of a normal pathname contains ";" but that should
10507
    # okay in the real world where ";" in dirpaths is itself problematic.
10508
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10509
  else
10510
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10511
  fi
10512
  # Ok, now we have the path, separated by spaces, we can step through it
10513
  # and add multilib dir if necessary.
10514
  lt_tmp_lt_search_path_spec=
10515
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10516
  for lt_sys_path in $lt_search_path_spec; do
10517
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10518
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10519
    else
10520
      test -d "$lt_sys_path" && \
10521
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10522
    fi
10523
  done
10524
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10525
BEGIN {RS=" "; FS="/|\n";} {
10526
  lt_foo="";
10527
  lt_count=0;
10528
  for (lt_i = NF; lt_i > 0; lt_i--) {
10529
    if ($lt_i != "" && $lt_i != ".") {
10530
      if ($lt_i == "..") {
10531
        lt_count++;
10532
      } else {
10533
        if (lt_count == 0) {
10534
          lt_foo="/" $lt_i lt_foo;
10535
        } else {
10536
          lt_count--;
10537
        }
10538
      }
10539
    }
10540
  }
10541
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10542
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10543
}'`
10544
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10545
else
10546
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10547
fi
10548
library_names_spec=
10549
libname_spec='lib$name'
10550
soname_spec=
10551
shrext_cmds=".so"
10552
postinstall_cmds=
10553
postuninstall_cmds=
10554
finish_cmds=
10555
finish_eval=
10556
shlibpath_var=
10557
shlibpath_overrides_runpath=unknown
10558
version_type=none
10559
dynamic_linker="$host_os ld.so"
10560
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10561
need_lib_prefix=unknown
10562
hardcode_into_libs=no
10563
 
10564
# when you set need_version to no, make sure it does not cause -set_version
10565
# flags to be left without arguments
10566
need_version=unknown
10567
 
10568
case $host_os in
10569
aix3*)
10570
  version_type=linux
10571
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10572
  shlibpath_var=LIBPATH
10573
 
10574
  # AIX 3 has no versioning support, so we append a major version to the name.
10575
  soname_spec='${libname}${release}${shared_ext}$major'
10576
  ;;
10577
 
10578
aix[4-9]*)
10579
  version_type=linux
10580
  need_lib_prefix=no
10581
  need_version=no
10582
  hardcode_into_libs=yes
10583
  if test "$host_cpu" = ia64; then
10584
    # AIX 5 supports IA64
10585
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10586
    shlibpath_var=LD_LIBRARY_PATH
10587
  else
10588
    # With GCC up to 2.95.x, collect2 would create an import file
10589
    # for dependence libraries.  The import file would start with
10590
    # the line `#! .'.  This would cause the generated library to
10591
    # depend on `.', always an invalid library.  This was fixed in
10592
    # development snapshots of GCC prior to 3.0.
10593
    case $host_os in
10594
      aix4 | aix4.[01] | aix4.[01].*)
10595
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10596
	   echo ' yes '
10597
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10598
	:
10599
      else
10600
	can_build_shared=no
10601
      fi
10602
      ;;
10603
    esac
10604
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10605
    # soname into executable. Probably we can add versioning support to
10606
    # collect2, so additional links can be useful in future.
10607
    if test "$aix_use_runtimelinking" = yes; then
10608
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10609
      # instead of lib<name>.a to let people know that these are not
10610
      # typical AIX shared libraries.
10611
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612
    else
10613
      # We preserve .a as extension for shared libraries through AIX4.2
10614
      # and later when we are not doing run time linking.
10615
      library_names_spec='${libname}${release}.a $libname.a'
10616
      soname_spec='${libname}${release}${shared_ext}$major'
10617
    fi
10618
    shlibpath_var=LIBPATH
10619
  fi
10620
  ;;
10621
 
10622
amigaos*)
10623
  case $host_cpu in
10624
  powerpc)
10625
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10626
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10627
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628
    ;;
10629
  m68k)
10630
    library_names_spec='$libname.ixlibrary $libname.a'
10631
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10632
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10633
    ;;
10634
  esac
10635
  ;;
10636
 
10637
beos*)
10638
  library_names_spec='${libname}${shared_ext}'
10639
  dynamic_linker="$host_os ld.so"
10640
  shlibpath_var=LIBRARY_PATH
10641
  ;;
10642
 
10643
bsdi[45]*)
10644
  version_type=linux
10645
  need_version=no
10646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647
  soname_spec='${libname}${release}${shared_ext}$major'
10648
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10649
  shlibpath_var=LD_LIBRARY_PATH
10650
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10651
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10652
  # the default ld.so.conf also contains /usr/contrib/lib and
10653
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10654
  # libtool to hard-code these into programs
10655
  ;;
10656
 
10657
cygwin* | mingw* | pw32* | cegcc*)
10658
  version_type=windows
10659
  shrext_cmds=".dll"
10660
  need_version=no
10661
  need_lib_prefix=no
10662
 
10663
  case $GCC,$host_os in
10664
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10665
    library_names_spec='$libname.dll.a'
10666
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10667
    postinstall_cmds='base_file=`basename \${file}`~
10668
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10669
      dldir=$destdir/`dirname \$dlpath`~
10670
      test -d \$dldir || mkdir -p \$dldir~
10671
      $install_prog $dir/$dlname \$dldir/$dlname~
10672
      chmod a+x \$dldir/$dlname~
10673
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10674
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10675
      fi'
10676
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10677
      dlpath=$dir/\$dldll~
10678
       $RM \$dlpath'
10679
    shlibpath_overrides_runpath=yes
10680
 
10681
    case $host_os in
10682
    cygwin*)
10683
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10684
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10685
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10686
      ;;
10687
    mingw* | cegcc*)
10688
      # MinGW DLLs use traditional 'lib' prefix
10689
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10690
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10691
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10692
        # It is most probably a Windows format PATH printed by
10693
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10694
        # path with ; separators, and with drive letters. We can handle the
10695
        # drive letters (cygwin fileutils understands them), so leave them,
10696
        # especially as we might pass files found there to a mingw objdump,
10697
        # which wouldn't understand a cygwinified path. Ahh.
10698
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10699
      else
10700
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10701
      fi
10702
      ;;
10703
    pw32*)
10704
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10705
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10706
      ;;
10707
    esac
10708
    ;;
10709
 
10710
  *)
10711
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10712
    ;;
10713
  esac
10714
  dynamic_linker='Win32 ld.exe'
10715
  # FIXME: first we should search . and the directory the executable is in
10716
  shlibpath_var=PATH
10717
  ;;
10718
 
10719
darwin* | rhapsody*)
10720
  dynamic_linker="$host_os dyld"
10721
  version_type=darwin
10722
  need_lib_prefix=no
10723
  need_version=no
10724
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10725
  soname_spec='${libname}${release}${major}$shared_ext'
10726
  shlibpath_overrides_runpath=yes
10727
  shlibpath_var=DYLD_LIBRARY_PATH
10728
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10729
 
10730
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10731
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10732
  ;;
10733
 
10734
dgux*)
10735
  version_type=linux
10736
  need_lib_prefix=no
10737
  need_version=no
10738
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10739
  soname_spec='${libname}${release}${shared_ext}$major'
10740
  shlibpath_var=LD_LIBRARY_PATH
10741
  ;;
10742
 
10743
freebsd1*)
10744
  dynamic_linker=no
10745
  ;;
10746
 
10747
freebsd* | dragonfly*)
10748
  # DragonFly does not have aout.  When/if they implement a new
10749
  # versioning mechanism, adjust this.
10750
  if test -x /usr/bin/objformat; then
10751
    objformat=`/usr/bin/objformat`
10752
  else
10753
    case $host_os in
10754
    freebsd[123]*) objformat=aout ;;
10755
    *) objformat=elf ;;
10756
    esac
10757
  fi
10758
  version_type=freebsd-$objformat
10759
  case $version_type in
10760
    freebsd-elf*)
10761
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10762
      need_version=no
10763
      need_lib_prefix=no
10764
      ;;
10765
    freebsd-*)
10766
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10767
      need_version=yes
10768
      ;;
10769
  esac
10770
  shlibpath_var=LD_LIBRARY_PATH
10771
  case $host_os in
10772
  freebsd2*)
10773
    shlibpath_overrides_runpath=yes
10774
    ;;
10775
  freebsd3.[01]* | freebsdelf3.[01]*)
10776
    shlibpath_overrides_runpath=yes
10777
    hardcode_into_libs=yes
10778
    ;;
10779
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10780
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10781
    shlibpath_overrides_runpath=no
10782
    hardcode_into_libs=yes
10783
    ;;
10784
  *) # from 4.6 on, and DragonFly
10785
    shlibpath_overrides_runpath=yes
10786
    hardcode_into_libs=yes
10787
    ;;
10788
  esac
10789
  ;;
10790
 
10791
gnu*)
10792
  version_type=linux
10793
  need_lib_prefix=no
10794
  need_version=no
10795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10796
  soname_spec='${libname}${release}${shared_ext}$major'
10797
  shlibpath_var=LD_LIBRARY_PATH
10798
  hardcode_into_libs=yes
10799
  ;;
10800
 
10801
hpux9* | hpux10* | hpux11*)
10802
  # Give a soname corresponding to the major version so that dld.sl refuses to
10803
  # link against other versions.
10804
  version_type=sunos
10805
  need_lib_prefix=no
10806
  need_version=no
10807
  case $host_cpu in
10808
  ia64*)
10809
    shrext_cmds='.so'
10810
    hardcode_into_libs=yes
10811
    dynamic_linker="$host_os dld.so"
10812
    shlibpath_var=LD_LIBRARY_PATH
10813
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10814
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815
    soname_spec='${libname}${release}${shared_ext}$major'
10816
    if test "X$HPUX_IA64_MODE" = X32; then
10817
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10818
    else
10819
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10820
    fi
10821
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10822
    ;;
10823
  hppa*64*)
10824
    shrext_cmds='.sl'
10825
    hardcode_into_libs=yes
10826
    dynamic_linker="$host_os dld.sl"
10827
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10828
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10829
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830
    soname_spec='${libname}${release}${shared_ext}$major'
10831
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10832
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10833
    ;;
10834
  *)
10835
    shrext_cmds='.sl'
10836
    dynamic_linker="$host_os dld.sl"
10837
    shlibpath_var=SHLIB_PATH
10838
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10839
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840
    soname_spec='${libname}${release}${shared_ext}$major'
10841
    ;;
10842
  esac
10843
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10844
  postinstall_cmds='chmod 555 $lib'
10845
  ;;
10846
 
10847
interix[3-9]*)
10848
  version_type=linux
10849
  need_lib_prefix=no
10850
  need_version=no
10851
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10852
  soname_spec='${libname}${release}${shared_ext}$major'
10853
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10854
  shlibpath_var=LD_LIBRARY_PATH
10855
  shlibpath_overrides_runpath=no
10856
  hardcode_into_libs=yes
10857
  ;;
10858
 
10859
irix5* | irix6* | nonstopux*)
10860
  case $host_os in
10861
    nonstopux*) version_type=nonstopux ;;
10862
    *)
10863
	if test "$lt_cv_prog_gnu_ld" = yes; then
10864
		version_type=linux
10865
	else
10866
		version_type=irix
10867
	fi ;;
10868
  esac
10869
  need_lib_prefix=no
10870
  need_version=no
10871
  soname_spec='${libname}${release}${shared_ext}$major'
10872
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10873
  case $host_os in
10874
  irix5* | nonstopux*)
10875
    libsuff= shlibsuff=
10876
    ;;
10877
  *)
10878
    case $LD in # libtool.m4 will add one of these switches to LD
10879
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10880
      libsuff= shlibsuff= libmagic=32-bit;;
10881
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10882
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10883
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10884
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10885
    *) libsuff= shlibsuff= libmagic=never-match;;
10886
    esac
10887
    ;;
10888
  esac
10889
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10890
  shlibpath_overrides_runpath=no
10891
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10892
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10893
  hardcode_into_libs=yes
10894
  ;;
10895
 
10896
# No shared lib support for Linux oldld, aout, or coff.
10897
linux*oldld* | linux*aout* | linux*coff*)
10898
  dynamic_linker=no
10899
  ;;
10900
 
10901
# This must be Linux ELF.
10902
linux* | k*bsd*-gnu)
10903
  version_type=linux
10904
  need_lib_prefix=no
10905
  need_version=no
10906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907
  soname_spec='${libname}${release}${shared_ext}$major'
10908
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10909
  shlibpath_var=LD_LIBRARY_PATH
10910
  shlibpath_overrides_runpath=no
10911
  # Some binutils ld are patched to set DT_RUNPATH
10912
  save_LDFLAGS=$LDFLAGS
10913
  save_libdir=$libdir
10914
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10915
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10916
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917
/* end confdefs.h.  */
10918
 
10919
int
10920
main ()
10921
{
10922
 
10923
  ;
10924
  return 0;
10925
}
10926
_ACEOF
10927
if ac_fn_c_try_link "$LINENO"; then :
10928
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10929
  shlibpath_overrides_runpath=yes
10930
fi
10931
fi
10932
rm -f core conftest.err conftest.$ac_objext \
10933
    conftest$ac_exeext conftest.$ac_ext
10934
  LDFLAGS=$save_LDFLAGS
10935
  libdir=$save_libdir
10936
 
10937
  # This implies no fast_install, which is unacceptable.
10938
  # Some rework will be needed to allow for fast_install
10939
  # before this can be enabled.
10940
  hardcode_into_libs=yes
10941
 
10942
  # Append ld.so.conf contents to the search path
10943
  if test -f /etc/ld.so.conf; then
10944
    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' ' '`
10945
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10946
  fi
10947
 
10948
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10949
  # powerpc, because MkLinux only supported shared libraries with the
10950
  # GNU dynamic linker.  Since this was broken with cross compilers,
10951
  # most powerpc-linux boxes support dynamic linking these days and
10952
  # people can always --disable-shared, the test was removed, and we
10953
  # assume the GNU/Linux dynamic linker is in use.
10954
  dynamic_linker='GNU/Linux ld.so'
10955
  ;;
10956
 
10957
netbsdelf*-gnu)
10958
  version_type=linux
10959
  need_lib_prefix=no
10960
  need_version=no
10961
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10962
  soname_spec='${libname}${release}${shared_ext}$major'
10963
  shlibpath_var=LD_LIBRARY_PATH
10964
  shlibpath_overrides_runpath=no
10965
  hardcode_into_libs=yes
10966
  dynamic_linker='NetBSD ld.elf_so'
10967
  ;;
10968
 
10969
netbsd*)
10970
  version_type=sunos
10971
  need_lib_prefix=no
10972
  need_version=no
10973
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10974
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10975
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10976
    dynamic_linker='NetBSD (a.out) ld.so'
10977
  else
10978
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10979
    soname_spec='${libname}${release}${shared_ext}$major'
10980
    dynamic_linker='NetBSD ld.elf_so'
10981
  fi
10982
  shlibpath_var=LD_LIBRARY_PATH
10983
  shlibpath_overrides_runpath=yes
10984
  hardcode_into_libs=yes
10985
  ;;
10986
 
10987
newsos6)
10988
  version_type=linux
10989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990
  shlibpath_var=LD_LIBRARY_PATH
10991
  shlibpath_overrides_runpath=yes
10992
  ;;
10993
 
10994
*nto* | *qnx*)
10995
  version_type=qnx
10996
  need_lib_prefix=no
10997
  need_version=no
10998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10999
  soname_spec='${libname}${release}${shared_ext}$major'
11000
  shlibpath_var=LD_LIBRARY_PATH
11001
  shlibpath_overrides_runpath=no
11002
  hardcode_into_libs=yes
11003
  dynamic_linker='ldqnx.so'
11004
  ;;
11005
 
11006
openbsd*)
11007
  version_type=sunos
11008
  sys_lib_dlsearch_path_spec="/usr/lib"
11009
  need_lib_prefix=no
11010
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11011
  case $host_os in
11012
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11013
    *)				need_version=no  ;;
11014
  esac
11015
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11016
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11017
  shlibpath_var=LD_LIBRARY_PATH
11018
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11019
    case $host_os in
11020
      openbsd2.[89] | openbsd2.[89].*)
11021
	shlibpath_overrides_runpath=no
11022
	;;
11023
      *)
11024
	shlibpath_overrides_runpath=yes
11025
	;;
11026
      esac
11027
  else
11028
    shlibpath_overrides_runpath=yes
11029
  fi
11030
  ;;
11031
 
11032
os2*)
11033
  libname_spec='$name'
11034
  shrext_cmds=".dll"
11035
  need_lib_prefix=no
11036
  library_names_spec='$libname${shared_ext} $libname.a'
11037
  dynamic_linker='OS/2 ld.exe'
11038
  shlibpath_var=LIBPATH
11039
  ;;
11040
 
11041
osf3* | osf4* | osf5*)
11042
  version_type=osf
11043
  need_lib_prefix=no
11044
  need_version=no
11045
  soname_spec='${libname}${release}${shared_ext}$major'
11046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047
  shlibpath_var=LD_LIBRARY_PATH
11048
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11049
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11050
  ;;
11051
 
11052
rdos*)
11053
  dynamic_linker=no
11054
  ;;
11055
 
11056
solaris*)
11057
  version_type=linux
11058
  need_lib_prefix=no
11059
  need_version=no
11060
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061
  soname_spec='${libname}${release}${shared_ext}$major'
11062
  shlibpath_var=LD_LIBRARY_PATH
11063
  shlibpath_overrides_runpath=yes
11064
  hardcode_into_libs=yes
11065
  # ldd complains unless libraries are executable
11066
  postinstall_cmds='chmod +x $lib'
11067
  ;;
11068
 
11069
sunos4*)
11070
  version_type=sunos
11071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11072
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11073
  shlibpath_var=LD_LIBRARY_PATH
11074
  shlibpath_overrides_runpath=yes
11075
  if test "$with_gnu_ld" = yes; then
11076
    need_lib_prefix=no
11077
  fi
11078
  need_version=yes
11079
  ;;
11080
 
11081
sysv4 | sysv4.3*)
11082
  version_type=linux
11083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084
  soname_spec='${libname}${release}${shared_ext}$major'
11085
  shlibpath_var=LD_LIBRARY_PATH
11086
  case $host_vendor in
11087
    sni)
11088
      shlibpath_overrides_runpath=no
11089
      need_lib_prefix=no
11090
      runpath_var=LD_RUN_PATH
11091
      ;;
11092
    siemens)
11093
      need_lib_prefix=no
11094
      ;;
11095
    motorola)
11096
      need_lib_prefix=no
11097
      need_version=no
11098
      shlibpath_overrides_runpath=no
11099
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11100
      ;;
11101
  esac
11102
  ;;
11103
 
11104
sysv4*MP*)
11105
  if test -d /usr/nec ;then
11106
    version_type=linux
11107
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11108
    soname_spec='$libname${shared_ext}.$major'
11109
    shlibpath_var=LD_LIBRARY_PATH
11110
  fi
11111
  ;;
11112
 
11113
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11114
  version_type=freebsd-elf
11115
  need_lib_prefix=no
11116
  need_version=no
11117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11118
  soname_spec='${libname}${release}${shared_ext}$major'
11119
  shlibpath_var=LD_LIBRARY_PATH
11120
  shlibpath_overrides_runpath=yes
11121
  hardcode_into_libs=yes
11122
  if test "$with_gnu_ld" = yes; then
11123
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11124
  else
11125
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11126
    case $host_os in
11127
      sco3.2v5*)
11128
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11129
	;;
11130
    esac
11131
  fi
11132
  sys_lib_dlsearch_path_spec='/usr/lib'
11133
  ;;
11134
 
11135
tpf*)
11136
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11137
  version_type=linux
11138
  need_lib_prefix=no
11139
  need_version=no
11140
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141
  shlibpath_var=LD_LIBRARY_PATH
11142
  shlibpath_overrides_runpath=no
11143
  hardcode_into_libs=yes
11144
  ;;
11145
 
11146
uts4*)
11147
  version_type=linux
11148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149
  soname_spec='${libname}${release}${shared_ext}$major'
11150
  shlibpath_var=LD_LIBRARY_PATH
11151
  ;;
11152
 
11153
*)
11154
  dynamic_linker=no
11155
  ;;
11156
esac
11157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11158
$as_echo "$dynamic_linker" >&6; }
11159
test "$dynamic_linker" = no && can_build_shared=no
11160
 
11161
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11162
if test "$GCC" = yes; then
11163
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11164
fi
11165
 
11166
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11167
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11168
fi
11169
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11170
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11171
fi
11172
 
11173
 
11174
 
11175
 
11176
 
11177
 
11178
 
11179
 
11180
 
11181
 
11182
 
11183
 
11184
 
11185
 
11186
 
11187
 
11188
 
11189
 
11190
 
11191
 
11192
 
11193
 
11194
 
11195
 
11196
 
11197
 
11198
 
11199
 
11200
 
11201
 
11202
 
11203
 
11204
 
11205
 
11206
 
11207
 
11208
 
11209
 
11210
 
11211
 
11212
 
11213
 
11214
 
11215
 
11216
 
11217
 
11218
 
11219
 
11220
 
11221
 
11222
 
11223
 
11224
 
11225
 
11226
 
11227
 
11228
 
11229
 
11230
 
11231
 
11232
 
11233
 
11234
 
11235
 
11236
 
11237
 
11238
 
11239
 
11240
 
11241
 
11242
 
11243
 
11244
 
11245
 
11246
 
11247
 
11248
 
11249
 
11250
 
11251
 
11252
 
11253
 
11254
 
11255
 
11256
 
11257
 
11258
 
11259
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11260
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11261
hardcode_action=
11262
if test -n "$hardcode_libdir_flag_spec" ||
11263
   test -n "$runpath_var" ||
11264
   test "X$hardcode_automatic" = "Xyes" ; then
11265
 
11266
  # We can hardcode non-existent directories.
11267
  if test "$hardcode_direct" != no &&
11268
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11269
     # have to relink, otherwise we might link with an installed library
11270
     # when we should be linking with a yet-to-be-installed one
11271
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11272
     test "$hardcode_minus_L" != no; then
11273
    # Linking always hardcodes the temporary library directory.
11274
    hardcode_action=relink
11275
  else
11276
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11277
    hardcode_action=immediate
11278
  fi
11279
else
11280
  # We cannot hardcode anything, or else we can only hardcode existing
11281
  # directories.
11282
  hardcode_action=unsupported
11283
fi
11284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11285
$as_echo "$hardcode_action" >&6; }
11286
 
11287
if test "$hardcode_action" = relink ||
11288
   test "$inherit_rpath" = yes; then
11289
  # Fast installation is not supported
11290
  enable_fast_install=no
11291
elif test "$shlibpath_overrides_runpath" = yes ||
11292
     test "$enable_shared" = no; then
11293
  # Fast installation is not necessary
11294
  enable_fast_install=needless
11295
fi
11296
 
11297
 
11298
 
11299
 
11300
 
11301
 
11302
  if test "x$enable_dlopen" != xyes; then
11303
  enable_dlopen=unknown
11304
  enable_dlopen_self=unknown
11305
  enable_dlopen_self_static=unknown
11306
else
11307
  lt_cv_dlopen=no
11308
  lt_cv_dlopen_libs=
11309
 
11310
  case $host_os in
11311
  beos*)
11312
    lt_cv_dlopen="load_add_on"
11313
    lt_cv_dlopen_libs=
11314
    lt_cv_dlopen_self=yes
11315
    ;;
11316
 
11317
  mingw* | pw32* | cegcc*)
11318
    lt_cv_dlopen="LoadLibrary"
11319
    lt_cv_dlopen_libs=
11320
    ;;
11321
 
11322
  cygwin*)
11323
    lt_cv_dlopen="dlopen"
11324
    lt_cv_dlopen_libs=
11325
    ;;
11326
 
11327
  darwin*)
11328
  # if libdl is installed we need to link against it
11329
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11330
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11331
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11332
  $as_echo_n "(cached) " >&6
11333
else
11334
  ac_check_lib_save_LIBS=$LIBS
11335
LIBS="-ldl  $LIBS"
11336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337
/* end confdefs.h.  */
11338
 
11339
/* Override any GCC internal prototype to avoid an error.
11340
   Use char because int might match the return type of a GCC
11341
   builtin and then its argument prototype would still apply.  */
11342
#ifdef __cplusplus
11343
extern "C"
11344
#endif
11345
char dlopen ();
11346
int
11347
main ()
11348
{
11349
return dlopen ();
11350
  ;
11351
  return 0;
11352
}
11353
_ACEOF
11354
if ac_fn_c_try_link "$LINENO"; then :
11355
  ac_cv_lib_dl_dlopen=yes
11356
else
11357
  ac_cv_lib_dl_dlopen=no
11358
fi
11359
rm -f core conftest.err conftest.$ac_objext \
11360
    conftest$ac_exeext conftest.$ac_ext
11361
LIBS=$ac_check_lib_save_LIBS
11362
fi
11363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11364
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11365
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11366
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11367
else
11368
 
11369
    lt_cv_dlopen="dyld"
11370
    lt_cv_dlopen_libs=
11371
    lt_cv_dlopen_self=yes
11372
 
11373
fi
11374
 
11375
    ;;
11376
 
11377
  *)
11378
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11379
if test "x$ac_cv_func_shl_load" = x""yes; then :
11380
  lt_cv_dlopen="shl_load"
11381
else
11382
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11383
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11384
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11385
  $as_echo_n "(cached) " >&6
11386
else
11387
  ac_check_lib_save_LIBS=$LIBS
11388
LIBS="-ldld  $LIBS"
11389
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390
/* end confdefs.h.  */
11391
 
11392
/* Override any GCC internal prototype to avoid an error.
11393
   Use char because int might match the return type of a GCC
11394
   builtin and then its argument prototype would still apply.  */
11395
#ifdef __cplusplus
11396
extern "C"
11397
#endif
11398
char shl_load ();
11399
int
11400
main ()
11401
{
11402
return shl_load ();
11403
  ;
11404
  return 0;
11405
}
11406
_ACEOF
11407
if ac_fn_c_try_link "$LINENO"; then :
11408
  ac_cv_lib_dld_shl_load=yes
11409
else
11410
  ac_cv_lib_dld_shl_load=no
11411
fi
11412
rm -f core conftest.err conftest.$ac_objext \
11413
    conftest$ac_exeext conftest.$ac_ext
11414
LIBS=$ac_check_lib_save_LIBS
11415
fi
11416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11417
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11418
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11419
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11420
else
11421
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11422
if test "x$ac_cv_func_dlopen" = x""yes; then :
11423
  lt_cv_dlopen="dlopen"
11424
else
11425
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11426
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11427
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11428
  $as_echo_n "(cached) " >&6
11429
else
11430
  ac_check_lib_save_LIBS=$LIBS
11431
LIBS="-ldl  $LIBS"
11432
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433
/* end confdefs.h.  */
11434
 
11435
/* Override any GCC internal prototype to avoid an error.
11436
   Use char because int might match the return type of a GCC
11437
   builtin and then its argument prototype would still apply.  */
11438
#ifdef __cplusplus
11439
extern "C"
11440
#endif
11441
char dlopen ();
11442
int
11443
main ()
11444
{
11445
return dlopen ();
11446
  ;
11447
  return 0;
11448
}
11449
_ACEOF
11450
if ac_fn_c_try_link "$LINENO"; then :
11451
  ac_cv_lib_dl_dlopen=yes
11452
else
11453
  ac_cv_lib_dl_dlopen=no
11454
fi
11455
rm -f core conftest.err conftest.$ac_objext \
11456
    conftest$ac_exeext conftest.$ac_ext
11457
LIBS=$ac_check_lib_save_LIBS
11458
fi
11459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11460
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11461
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11462
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11463
else
11464
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11465
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11466
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11467
  $as_echo_n "(cached) " >&6
11468
else
11469
  ac_check_lib_save_LIBS=$LIBS
11470
LIBS="-lsvld  $LIBS"
11471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472
/* end confdefs.h.  */
11473
 
11474
/* Override any GCC internal prototype to avoid an error.
11475
   Use char because int might match the return type of a GCC
11476
   builtin and then its argument prototype would still apply.  */
11477
#ifdef __cplusplus
11478
extern "C"
11479
#endif
11480
char dlopen ();
11481
int
11482
main ()
11483
{
11484
return dlopen ();
11485
  ;
11486
  return 0;
11487
}
11488
_ACEOF
11489
if ac_fn_c_try_link "$LINENO"; then :
11490
  ac_cv_lib_svld_dlopen=yes
11491
else
11492
  ac_cv_lib_svld_dlopen=no
11493
fi
11494
rm -f core conftest.err conftest.$ac_objext \
11495
    conftest$ac_exeext conftest.$ac_ext
11496
LIBS=$ac_check_lib_save_LIBS
11497
fi
11498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11499
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11500
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11501
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11502
else
11503
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11504
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11505
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11506
  $as_echo_n "(cached) " >&6
11507
else
11508
  ac_check_lib_save_LIBS=$LIBS
11509
LIBS="-ldld  $LIBS"
11510
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511
/* end confdefs.h.  */
11512
 
11513
/* Override any GCC internal prototype to avoid an error.
11514
   Use char because int might match the return type of a GCC
11515
   builtin and then its argument prototype would still apply.  */
11516
#ifdef __cplusplus
11517
extern "C"
11518
#endif
11519
char dld_link ();
11520
int
11521
main ()
11522
{
11523
return dld_link ();
11524
  ;
11525
  return 0;
11526
}
11527
_ACEOF
11528
if ac_fn_c_try_link "$LINENO"; then :
11529
  ac_cv_lib_dld_dld_link=yes
11530
else
11531
  ac_cv_lib_dld_dld_link=no
11532
fi
11533
rm -f core conftest.err conftest.$ac_objext \
11534
    conftest$ac_exeext conftest.$ac_ext
11535
LIBS=$ac_check_lib_save_LIBS
11536
fi
11537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11538
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11539
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11540
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11541
fi
11542
 
11543
 
11544
fi
11545
 
11546
 
11547
fi
11548
 
11549
 
11550
fi
11551
 
11552
 
11553
fi
11554
 
11555
 
11556
fi
11557
 
11558
    ;;
11559
  esac
11560
 
11561
  if test "x$lt_cv_dlopen" != xno; then
11562
    enable_dlopen=yes
11563
  else
11564
    enable_dlopen=no
11565
  fi
11566
 
11567
  case $lt_cv_dlopen in
11568
  dlopen)
11569
    save_CPPFLAGS="$CPPFLAGS"
11570
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11571
 
11572
    save_LDFLAGS="$LDFLAGS"
11573
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11574
 
11575
    save_LIBS="$LIBS"
11576
    LIBS="$lt_cv_dlopen_libs $LIBS"
11577
 
11578
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11579
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11580
if test "${lt_cv_dlopen_self+set}" = set; then :
11581
  $as_echo_n "(cached) " >&6
11582
else
11583
  	  if test "$cross_compiling" = yes; then :
11584
  lt_cv_dlopen_self=cross
11585
else
11586
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11587
  lt_status=$lt_dlunknown
11588
  cat > conftest.$ac_ext <<_LT_EOF
11589
#line __oline__ "configure"
11590
#include "confdefs.h"
11591
 
11592
#if HAVE_DLFCN_H
11593
#include <dlfcn.h>
11594
#endif
11595
 
11596
#include <stdio.h>
11597
 
11598
#ifdef RTLD_GLOBAL
11599
#  define LT_DLGLOBAL		RTLD_GLOBAL
11600
#else
11601
#  ifdef DL_GLOBAL
11602
#    define LT_DLGLOBAL		DL_GLOBAL
11603
#  else
11604
#    define LT_DLGLOBAL		0
11605
#  endif
11606
#endif
11607
 
11608
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11609
   find out it does not work in some platform. */
11610
#ifndef LT_DLLAZY_OR_NOW
11611
#  ifdef RTLD_LAZY
11612
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11613
#  else
11614
#    ifdef DL_LAZY
11615
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11616
#    else
11617
#      ifdef RTLD_NOW
11618
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11619
#      else
11620
#        ifdef DL_NOW
11621
#          define LT_DLLAZY_OR_NOW	DL_NOW
11622
#        else
11623
#          define LT_DLLAZY_OR_NOW	0
11624
#        endif
11625
#      endif
11626
#    endif
11627
#  endif
11628
#endif
11629
 
11630
void fnord() { int i=42;}
11631
int main ()
11632
{
11633
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11634
  int status = $lt_dlunknown;
11635
 
11636
  if (self)
11637
    {
11638
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11639
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11640
      /* dlclose (self); */
11641
    }
11642
  else
11643
    puts (dlerror ());
11644
 
11645
  return status;
11646
}
11647
_LT_EOF
11648
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11649
  (eval $ac_link) 2>&5
11650
  ac_status=$?
11651
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11652
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11653
    (./conftest; exit; ) >&5 2>/dev/null
11654
    lt_status=$?
11655
    case x$lt_status in
11656
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11657
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11658
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11659
    esac
11660
  else :
11661
    # compilation failed
11662
    lt_cv_dlopen_self=no
11663
  fi
11664
fi
11665
rm -fr conftest*
11666
 
11667
 
11668
fi
11669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11670
$as_echo "$lt_cv_dlopen_self" >&6; }
11671
 
11672
    if test "x$lt_cv_dlopen_self" = xyes; then
11673
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11674
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11675
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11676
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11677
  $as_echo_n "(cached) " >&6
11678
else
11679
  	  if test "$cross_compiling" = yes; then :
11680
  lt_cv_dlopen_self_static=cross
11681
else
11682
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11683
  lt_status=$lt_dlunknown
11684
  cat > conftest.$ac_ext <<_LT_EOF
11685
#line __oline__ "configure"
11686
#include "confdefs.h"
11687
 
11688
#if HAVE_DLFCN_H
11689
#include <dlfcn.h>
11690
#endif
11691
 
11692
#include <stdio.h>
11693
 
11694
#ifdef RTLD_GLOBAL
11695
#  define LT_DLGLOBAL		RTLD_GLOBAL
11696
#else
11697
#  ifdef DL_GLOBAL
11698
#    define LT_DLGLOBAL		DL_GLOBAL
11699
#  else
11700
#    define LT_DLGLOBAL		0
11701
#  endif
11702
#endif
11703
 
11704
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11705
   find out it does not work in some platform. */
11706
#ifndef LT_DLLAZY_OR_NOW
11707
#  ifdef RTLD_LAZY
11708
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11709
#  else
11710
#    ifdef DL_LAZY
11711
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11712
#    else
11713
#      ifdef RTLD_NOW
11714
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11715
#      else
11716
#        ifdef DL_NOW
11717
#          define LT_DLLAZY_OR_NOW	DL_NOW
11718
#        else
11719
#          define LT_DLLAZY_OR_NOW	0
11720
#        endif
11721
#      endif
11722
#    endif
11723
#  endif
11724
#endif
11725
 
11726
void fnord() { int i=42;}
11727
int main ()
11728
{
11729
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11730
  int status = $lt_dlunknown;
11731
 
11732
  if (self)
11733
    {
11734
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11735
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11736
      /* dlclose (self); */
11737
    }
11738
  else
11739
    puts (dlerror ());
11740
 
11741
  return status;
11742
}
11743
_LT_EOF
11744
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11745
  (eval $ac_link) 2>&5
11746
  ac_status=$?
11747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11749
    (./conftest; exit; ) >&5 2>/dev/null
11750
    lt_status=$?
11751
    case x$lt_status in
11752
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11753
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11754
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11755
    esac
11756
  else :
11757
    # compilation failed
11758
    lt_cv_dlopen_self_static=no
11759
  fi
11760
fi
11761
rm -fr conftest*
11762
 
11763
 
11764
fi
11765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11766
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11767
    fi
11768
 
11769
    CPPFLAGS="$save_CPPFLAGS"
11770
    LDFLAGS="$save_LDFLAGS"
11771
    LIBS="$save_LIBS"
11772
    ;;
11773
  esac
11774
 
11775
  case $lt_cv_dlopen_self in
11776
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11777
  *) enable_dlopen_self=unknown ;;
11778
  esac
11779
 
11780
  case $lt_cv_dlopen_self_static in
11781
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11782
  *) enable_dlopen_self_static=unknown ;;
11783
  esac
11784
fi
11785
 
11786
 
11787
 
11788
 
11789
 
11790
 
11791
 
11792
 
11793
 
11794
 
11795
 
11796
 
11797
 
11798
 
11799
 
11800
 
11801
 
11802
striplib=
11803
old_striplib=
11804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11805
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11806
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11807
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11808
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11810
$as_echo "yes" >&6; }
11811
else
11812
# FIXME - insert some real tests, host_os isn't really good enough
11813
  case $host_os in
11814
  darwin*)
11815
    if test -n "$STRIP" ; then
11816
      striplib="$STRIP -x"
11817
      old_striplib="$STRIP -S"
11818
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11819
$as_echo "yes" >&6; }
11820
    else
11821
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822
$as_echo "no" >&6; }
11823
    fi
11824
    ;;
11825
  *)
11826
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827
$as_echo "no" >&6; }
11828
    ;;
11829
  esac
11830
fi
11831
 
11832
 
11833
 
11834
 
11835
 
11836
 
11837
 
11838
 
11839
 
11840
 
11841
 
11842
 
11843
  # Report which library types will actually be built
11844
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11845
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11847
$as_echo "$can_build_shared" >&6; }
11848
 
11849
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11850
$as_echo_n "checking whether to build shared libraries... " >&6; }
11851
  test "$can_build_shared" = "no" && enable_shared=no
11852
 
11853
  # On AIX, shared libraries and static libraries use the same namespace, and
11854
  # are all built from PIC.
11855
  case $host_os in
11856
  aix3*)
11857
    test "$enable_shared" = yes && enable_static=no
11858
    if test -n "$RANLIB"; then
11859
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11860
      postinstall_cmds='$RANLIB $lib'
11861
    fi
11862
    ;;
11863
 
11864
  aix[4-9]*)
11865
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11866
      test "$enable_shared" = yes && enable_static=no
11867
    fi
11868
    ;;
11869
  esac
11870
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11871
$as_echo "$enable_shared" >&6; }
11872
 
11873
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11874
$as_echo_n "checking whether to build static libraries... " >&6; }
11875
  # Make sure either enable_shared or enable_static is yes.
11876
  test "$enable_shared" = yes || enable_static=yes
11877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11878
$as_echo "$enable_static" >&6; }
11879
 
11880
 
11881
 
11882
 
11883
fi
11884
ac_ext=c
11885
ac_cpp='$CPP $CPPFLAGS'
11886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11889
 
11890
CC="$lt_save_CC"
11891
 
11892
 
11893
ac_ext=cpp
11894
ac_cpp='$CXXCPP $CPPFLAGS'
11895
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11896
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11897
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11898
 
11899
archive_cmds_need_lc_CXX=no
11900
allow_undefined_flag_CXX=
11901
always_export_symbols_CXX=no
11902
archive_expsym_cmds_CXX=
11903
compiler_needs_object_CXX=no
11904
export_dynamic_flag_spec_CXX=
11905
hardcode_direct_CXX=no
11906
hardcode_direct_absolute_CXX=no
11907
hardcode_libdir_flag_spec_CXX=
11908
hardcode_libdir_flag_spec_ld_CXX=
11909
hardcode_libdir_separator_CXX=
11910
hardcode_minus_L_CXX=no
11911
hardcode_shlibpath_var_CXX=unsupported
11912
hardcode_automatic_CXX=no
11913
inherit_rpath_CXX=no
11914
module_cmds_CXX=
11915
module_expsym_cmds_CXX=
11916
link_all_deplibs_CXX=unknown
11917
old_archive_cmds_CXX=$old_archive_cmds
11918
no_undefined_flag_CXX=
11919
whole_archive_flag_spec_CXX=
11920
enable_shared_with_static_runtimes_CXX=no
11921
 
11922
# Source file extension for C++ test sources.
11923
ac_ext=cpp
11924
 
11925
# Object file extension for compiled C++ test sources.
11926
objext=o
11927
objext_CXX=$objext
11928
 
11929
# No sense in running all these tests if we already determined that
11930
# the CXX compiler isn't working.  Some variables (like enable_shared)
11931
# are currently assumed to apply to all compilers on this platform,
11932
# and will be corrupted by setting them based on a non-working compiler.
11933
if test "$_lt_caught_CXX_error" != yes; then
11934
  # Code to be used in simple compile tests
11935
  lt_simple_compile_test_code="int some_variable = 0;"
11936
 
11937
  # Code to be used in simple link tests
11938
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11939
 
11940
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11941
 
11942
 
11943
 
11944
 
11945
 
11946
 
11947
# If no C compiler was specified, use CC.
11948
LTCC=${LTCC-"$CC"}
11949
 
11950
# If no C compiler flags were specified, use CFLAGS.
11951
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11952
 
11953
# Allow CC to be a program name with arguments.
11954
compiler=$CC
11955
 
11956
 
11957
  # save warnings/boilerplate of simple test code
11958
  ac_outfile=conftest.$ac_objext
11959
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11960
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11961
_lt_compiler_boilerplate=`cat conftest.err`
11962
$RM conftest*
11963
 
11964
  ac_outfile=conftest.$ac_objext
11965
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11966
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11967
_lt_linker_boilerplate=`cat conftest.err`
11968
$RM -r conftest*
11969
 
11970
 
11971
  # Allow CC to be a program name with arguments.
11972
  lt_save_CC=$CC
11973
  lt_save_LD=$LD
11974
  lt_save_GCC=$GCC
11975
  GCC=$GXX
11976
  lt_save_with_gnu_ld=$with_gnu_ld
11977
  lt_save_path_LD=$lt_cv_path_LD
11978
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11979
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11980
  else
11981
    $as_unset lt_cv_prog_gnu_ld
11982
  fi
11983
  if test -n "${lt_cv_path_LDCXX+set}"; then
11984
    lt_cv_path_LD=$lt_cv_path_LDCXX
11985
  else
11986
    $as_unset lt_cv_path_LD
11987
  fi
11988
  test -z "${LDCXX+set}" || LD=$LDCXX
11989
  CC=${CXX-"c++"}
11990
  compiler=$CC
11991
  compiler_CXX=$CC
11992
  for cc_temp in $compiler""; do
11993
  case $cc_temp in
11994
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11995
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11996
    \-*) ;;
11997
    *) break;;
11998
  esac
11999
done
12000
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12001
 
12002
 
12003
  if test -n "$compiler"; then
12004
    # We don't want -fno-exception when compiling C++ code, so set the
12005
    # no_builtin_flag separately
12006
    if test "$GXX" = yes; then
12007
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12008
    else
12009
      lt_prog_compiler_no_builtin_flag_CXX=
12010
    fi
12011
 
12012
    if test "$GXX" = yes; then
12013
      # Set up default GNU C++ configuration
12014
 
12015
 
12016
 
12017
@%:@ Check whether --with-gnu-ld was given.
12018
if test "${with_gnu_ld+set}" = set; then :
12019
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12020
else
12021
  with_gnu_ld=no
12022
fi
12023
 
12024
ac_prog=ld
12025
if test "$GCC" = yes; then
12026
  # Check if gcc -print-prog-name=ld gives a path.
12027
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12028
$as_echo_n "checking for ld used by $CC... " >&6; }
12029
  case $host in
12030
  *-*-mingw*)
12031
    # gcc leaves a trailing carriage return which upsets mingw
12032
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12033
  *)
12034
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12035
  esac
12036
  case $ac_prog in
12037
    # Accept absolute paths.
12038
    [\\/]* | ?:[\\/]*)
12039
      re_direlt='/[^/][^/]*/\.\./'
12040
      # Canonicalize the pathname of ld
12041
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12042
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12043
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12044
      done
12045
      test -z "$LD" && LD="$ac_prog"
12046
      ;;
12047
  "")
12048
    # If it fails, then pretend we aren't using GCC.
12049
    ac_prog=ld
12050
    ;;
12051
  *)
12052
    # If it is relative, then search for the first ld in PATH.
12053
    with_gnu_ld=unknown
12054
    ;;
12055
  esac
12056
elif test "$with_gnu_ld" = yes; then
12057
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12058
$as_echo_n "checking for GNU ld... " >&6; }
12059
else
12060
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12061
$as_echo_n "checking for non-GNU ld... " >&6; }
12062
fi
12063
if test "${lt_cv_path_LD+set}" = set; then :
12064
  $as_echo_n "(cached) " >&6
12065
else
12066
  if test -z "$LD"; then
12067
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12068
  for ac_dir in $PATH; do
12069
    IFS="$lt_save_ifs"
12070
    test -z "$ac_dir" && ac_dir=.
12071
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12072
      lt_cv_path_LD="$ac_dir/$ac_prog"
12073
      # Check to see if the program is GNU ld.  I'd rather use --version,
12074
      # but apparently some variants of GNU ld only accept -v.
12075
      # Break only if it was the GNU/non-GNU ld that we prefer.
12076
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12077
      *GNU* | *'with BFD'*)
12078
	test "$with_gnu_ld" != no && break
12079
	;;
12080
      *)
12081
	test "$with_gnu_ld" != yes && break
12082
	;;
12083
      esac
12084
    fi
12085
  done
12086
  IFS="$lt_save_ifs"
12087
else
12088
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12089
fi
12090
fi
12091
 
12092
LD="$lt_cv_path_LD"
12093
if test -n "$LD"; then
12094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12095
$as_echo "$LD" >&6; }
12096
else
12097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098
$as_echo "no" >&6; }
12099
fi
12100
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12102
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12103
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12104
  $as_echo_n "(cached) " >&6
12105
else
12106
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12107
case `$LD -v 2>&1 </dev/null` in
12108
*GNU* | *'with BFD'*)
12109
  lt_cv_prog_gnu_ld=yes
12110
  ;;
12111
*)
12112
  lt_cv_prog_gnu_ld=no
12113
  ;;
12114
esac
12115
fi
12116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12117
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12118
with_gnu_ld=$lt_cv_prog_gnu_ld
12119
 
12120
 
12121
 
12122
 
12123
 
12124
 
12125
 
12126
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12127
      # archiving commands below assume that GNU ld is being used.
12128
      if test "$with_gnu_ld" = yes; then
12129
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12130
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12131
 
12132
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12133
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12134
 
12135
        # If archive_cmds runs LD, not CC, wlarc should be empty
12136
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12137
        #     investigate it a little bit more. (MM)
12138
        wlarc='${wl}'
12139
 
12140
        # ancient GNU ld didn't support --whole-archive et. al.
12141
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12142
	  $GREP 'no-whole-archive' > /dev/null; then
12143
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12144
        else
12145
          whole_archive_flag_spec_CXX=
12146
        fi
12147
      else
12148
        with_gnu_ld=no
12149
        wlarc=
12150
 
12151
        # A generic and very simple default shared library creation
12152
        # command for GNU C++ for the case where it uses the native
12153
        # linker, instead of GNU ld.  If possible, this setting should
12154
        # overridden to take advantage of the native linker features on
12155
        # the platform it is being used on.
12156
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12157
      fi
12158
 
12159
      # Commands to make compiler produce verbose output that lists
12160
      # what "hidden" libraries, object files and flags are used when
12161
      # linking a shared library.
12162
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12163
 
12164
    else
12165
      GXX=no
12166
      with_gnu_ld=no
12167
      wlarc=
12168
    fi
12169
 
12170
    # PORTME: fill in a description of your system's C++ link characteristics
12171
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12172
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12173
    ld_shlibs_CXX=yes
12174
    case $host_os in
12175
      aix3*)
12176
        # FIXME: insert proper C++ library support
12177
        ld_shlibs_CXX=no
12178
        ;;
12179
      aix[4-9]*)
12180
        if test "$host_cpu" = ia64; then
12181
          # On IA64, the linker does run time linking by default, so we don't
12182
          # have to do anything special.
12183
          aix_use_runtimelinking=no
12184
          exp_sym_flag='-Bexport'
12185
          no_entry_flag=""
12186
        else
12187
          aix_use_runtimelinking=no
12188
 
12189
          # Test if we are trying to use run time linking or normal
12190
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12191
          # need to do runtime linking.
12192
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12193
	    for ld_flag in $LDFLAGS; do
12194
	      case $ld_flag in
12195
	      *-brtl*)
12196
	        aix_use_runtimelinking=yes
12197
	        break
12198
	        ;;
12199
	      esac
12200
	    done
12201
	    ;;
12202
          esac
12203
 
12204
          exp_sym_flag='-bexport'
12205
          no_entry_flag='-bnoentry'
12206
        fi
12207
 
12208
        # When large executables or shared objects are built, AIX ld can
12209
        # have problems creating the table of contents.  If linking a library
12210
        # or program results in "error TOC overflow" add -mminimal-toc to
12211
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12212
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12213
 
12214
        archive_cmds_CXX=''
12215
        hardcode_direct_CXX=yes
12216
        hardcode_direct_absolute_CXX=yes
12217
        hardcode_libdir_separator_CXX=':'
12218
        link_all_deplibs_CXX=yes
12219
        file_list_spec_CXX='${wl}-f,'
12220
 
12221
        if test "$GXX" = yes; then
12222
          case $host_os in aix4.[012]|aix4.[012].*)
12223
          # We only want to do this on AIX 4.2 and lower, the check
12224
          # below for broken collect2 doesn't work under 4.3+
12225
	  collect2name=`${CC} -print-prog-name=collect2`
12226
	  if test -f "$collect2name" &&
12227
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12228
	  then
12229
	    # We have reworked collect2
12230
	    :
12231
	  else
12232
	    # We have old collect2
12233
	    hardcode_direct_CXX=unsupported
12234
	    # It fails to find uninstalled libraries when the uninstalled
12235
	    # path is not listed in the libpath.  Setting hardcode_minus_L
12236
	    # to unsupported forces relinking
12237
	    hardcode_minus_L_CXX=yes
12238
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12239
	    hardcode_libdir_separator_CXX=
12240
	  fi
12241
          esac
12242
          shared_flag='-shared'
12243
	  if test "$aix_use_runtimelinking" = yes; then
12244
	    shared_flag="$shared_flag "'${wl}-G'
12245
	  fi
12246
        else
12247
          # not using gcc
12248
          if test "$host_cpu" = ia64; then
12249
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12250
	  # chokes on -Wl,-G. The following line is correct:
12251
	  shared_flag='-G'
12252
          else
12253
	    if test "$aix_use_runtimelinking" = yes; then
12254
	      shared_flag='${wl}-G'
12255
	    else
12256
	      shared_flag='${wl}-bM:SRE'
12257
	    fi
12258
          fi
12259
        fi
12260
 
12261
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12262
        # It seems that -bexpall does not export symbols beginning with
12263
        # underscore (_), so it is better to generate a list of symbols to
12264
	# export.
12265
        always_export_symbols_CXX=yes
12266
        if test "$aix_use_runtimelinking" = yes; then
12267
          # Warning - without using the other runtime loading flags (-brtl),
12268
          # -berok will link without error, but may produce a broken library.
12269
          allow_undefined_flag_CXX='-berok'
12270
          # Determine the default libpath from the value encoded in an empty
12271
          # executable.
12272
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273
/* end confdefs.h.  */
12274
 
12275
int
12276
main ()
12277
{
12278
 
12279
  ;
12280
  return 0;
12281
}
12282
_ACEOF
12283
if ac_fn_cxx_try_link "$LINENO"; then :
12284
 
12285
lt_aix_libpath_sed='
12286
    /Import File Strings/,/^$/ {
12287
	/^0/ {
12288
	    s/^0  *\(.*\)$/\1/
12289
	    p
12290
	}
12291
    }'
12292
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12293
# Check for a 64-bit object if we didn't find anything.
12294
if test -z "$aix_libpath"; then
12295
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12296
fi
12297
fi
12298
rm -f core conftest.err conftest.$ac_objext \
12299
    conftest$ac_exeext conftest.$ac_ext
12300
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12301
 
12302
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12303
 
12304
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12305
        else
12306
          if test "$host_cpu" = ia64; then
12307
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12308
	    allow_undefined_flag_CXX="-z nodefs"
12309
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12310
          else
12311
	    # Determine the default libpath from the value encoded in an
12312
	    # empty executable.
12313
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314
/* end confdefs.h.  */
12315
 
12316
int
12317
main ()
12318
{
12319
 
12320
  ;
12321
  return 0;
12322
}
12323
_ACEOF
12324
if ac_fn_cxx_try_link "$LINENO"; then :
12325
 
12326
lt_aix_libpath_sed='
12327
    /Import File Strings/,/^$/ {
12328
	/^0/ {
12329
	    s/^0  *\(.*\)$/\1/
12330
	    p
12331
	}
12332
    }'
12333
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12334
# Check for a 64-bit object if we didn't find anything.
12335
if test -z "$aix_libpath"; then
12336
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12337
fi
12338
fi
12339
rm -f core conftest.err conftest.$ac_objext \
12340
    conftest$ac_exeext conftest.$ac_ext
12341
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12342
 
12343
	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12344
	    # Warning - without using the other run time loading flags,
12345
	    # -berok will link without error, but may produce a broken library.
12346
	    no_undefined_flag_CXX=' ${wl}-bernotok'
12347
	    allow_undefined_flag_CXX=' ${wl}-berok'
12348
	    # Exported symbols can be pulled into shared objects from archives
12349
	    whole_archive_flag_spec_CXX='$convenience'
12350
	    archive_cmds_need_lc_CXX=yes
12351
	    # This is similar to how AIX traditionally builds its shared
12352
	    # libraries.
12353
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12354
          fi
12355
        fi
12356
        ;;
12357
 
12358
      beos*)
12359
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12360
	  allow_undefined_flag_CXX=unsupported
12361
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12362
	  # support --undefined.  This deserves some investigation.  FIXME
12363
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12364
	else
12365
	  ld_shlibs_CXX=no
12366
	fi
12367
	;;
12368
 
12369
      chorus*)
12370
        case $cc_basename in
12371
          *)
12372
	  # FIXME: insert proper C++ library support
12373
	  ld_shlibs_CXX=no
12374
	  ;;
12375
        esac
12376
        ;;
12377
 
12378
      cygwin* | mingw* | pw32* | cegcc*)
12379
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12380
        # as there is no search path for DLLs.
12381
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12382
        allow_undefined_flag_CXX=unsupported
12383
        always_export_symbols_CXX=no
12384
        enable_shared_with_static_runtimes_CXX=yes
12385
 
12386
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12387
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12388
          # If the export-symbols file already is a .def file (1st line
12389
          # is EXPORTS), use it as is; otherwise, prepend...
12390
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12391
	    cp $export_symbols $output_objdir/$soname.def;
12392
          else
12393
	    echo EXPORTS > $output_objdir/$soname.def;
12394
	    cat $export_symbols >> $output_objdir/$soname.def;
12395
          fi~
12396
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12397
        else
12398
          ld_shlibs_CXX=no
12399
        fi
12400
        ;;
12401
      darwin* | rhapsody*)
12402
 
12403
 
12404
  archive_cmds_need_lc_CXX=no
12405
  hardcode_direct_CXX=no
12406
  hardcode_automatic_CXX=yes
12407
  hardcode_shlibpath_var_CXX=unsupported
12408
  whole_archive_flag_spec_CXX=''
12409
  link_all_deplibs_CXX=yes
12410
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12411
  case $cc_basename in
12412
     ifort*) _lt_dar_can_shared=yes ;;
12413
     *) _lt_dar_can_shared=$GCC ;;
12414
  esac
12415
  if test "$_lt_dar_can_shared" = "yes"; then
12416
    output_verbose_link_cmd=echo
12417
    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}"
12418
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12419
    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}"
12420
    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}"
12421
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12422
      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}"
12423
      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}"
12424
    fi
12425
 
12426
  else
12427
  ld_shlibs_CXX=no
12428
  fi
12429
 
12430
	;;
12431
 
12432
      dgux*)
12433
        case $cc_basename in
12434
          ec++*)
12435
	    # FIXME: insert proper C++ library support
12436
	    ld_shlibs_CXX=no
12437
	    ;;
12438
          ghcx*)
12439
	    # Green Hills C++ Compiler
12440
	    # FIXME: insert proper C++ library support
12441
	    ld_shlibs_CXX=no
12442
	    ;;
12443
          *)
12444
	    # FIXME: insert proper C++ library support
12445
	    ld_shlibs_CXX=no
12446
	    ;;
12447
        esac
12448
        ;;
12449
 
12450
      freebsd[12]*)
12451
        # C++ shared libraries reported to be fairly broken before
12452
	# switch to ELF
12453
        ld_shlibs_CXX=no
12454
        ;;
12455
 
12456
      freebsd-elf*)
12457
        archive_cmds_need_lc_CXX=no
12458
        ;;
12459
 
12460
      freebsd* | dragonfly*)
12461
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12462
        # conventions
12463
        ld_shlibs_CXX=yes
12464
        ;;
12465
 
12466
      gnu*)
12467
        ;;
12468
 
12469
      hpux9*)
12470
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12471
        hardcode_libdir_separator_CXX=:
12472
        export_dynamic_flag_spec_CXX='${wl}-E'
12473
        hardcode_direct_CXX=yes
12474
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12475
				             # but as the default
12476
				             # location of the library.
12477
 
12478
        case $cc_basename in
12479
          CC*)
12480
            # FIXME: insert proper C++ library support
12481
            ld_shlibs_CXX=no
12482
            ;;
12483
          aCC*)
12484
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12485
            # Commands to make compiler produce verbose output that lists
12486
            # what "hidden" libraries, object files and flags are used when
12487
            # linking a shared library.
12488
            #
12489
            # There doesn't appear to be a way to prevent this compiler from
12490
            # explicitly linking system object files so we need to strip them
12491
            # from the output so that they don't get included in the library
12492
            # dependencies.
12493
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12494
            ;;
12495
          *)
12496
            if test "$GXX" = yes; then
12497
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12498
            else
12499
              # FIXME: insert proper C++ library support
12500
              ld_shlibs_CXX=no
12501
            fi
12502
            ;;
12503
        esac
12504
        ;;
12505
 
12506
      hpux10*|hpux11*)
12507
        if test $with_gnu_ld = no; then
12508
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12509
	  hardcode_libdir_separator_CXX=:
12510
 
12511
          case $host_cpu in
12512
            hppa*64*|ia64*)
12513
              ;;
12514
            *)
12515
	      export_dynamic_flag_spec_CXX='${wl}-E'
12516
              ;;
12517
          esac
12518
        fi
12519
        case $host_cpu in
12520
          hppa*64*|ia64*)
12521
            hardcode_direct_CXX=no
12522
            hardcode_shlibpath_var_CXX=no
12523
            ;;
12524
          *)
12525
            hardcode_direct_CXX=yes
12526
            hardcode_direct_absolute_CXX=yes
12527
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12528
					         # but as the default
12529
					         # location of the library.
12530
            ;;
12531
        esac
12532
 
12533
        case $cc_basename in
12534
          CC*)
12535
	    # FIXME: insert proper C++ library support
12536
	    ld_shlibs_CXX=no
12537
	    ;;
12538
          aCC*)
12539
	    case $host_cpu in
12540
	      hppa*64*)
12541
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542
	        ;;
12543
	      ia64*)
12544
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12545
	        ;;
12546
	      *)
12547
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12548
	        ;;
12549
	    esac
12550
	    # Commands to make compiler produce verbose output that lists
12551
	    # what "hidden" libraries, object files and flags are used when
12552
	    # linking a shared library.
12553
	    #
12554
	    # There doesn't appear to be a way to prevent this compiler from
12555
	    # explicitly linking system object files so we need to strip them
12556
	    # from the output so that they don't get included in the library
12557
	    # dependencies.
12558
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12559
	    ;;
12560
          *)
12561
	    if test "$GXX" = yes; then
12562
	      if test $with_gnu_ld = no; then
12563
	        case $host_cpu in
12564
	          hppa*64*)
12565
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12566
	            ;;
12567
	          ia64*)
12568
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12569
	            ;;
12570
	          *)
12571
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12572
	            ;;
12573
	        esac
12574
	      fi
12575
	    else
12576
	      # FIXME: insert proper C++ library support
12577
	      ld_shlibs_CXX=no
12578
	    fi
12579
	    ;;
12580
        esac
12581
        ;;
12582
 
12583
      interix[3-9]*)
12584
	hardcode_direct_CXX=no
12585
	hardcode_shlibpath_var_CXX=no
12586
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12587
	export_dynamic_flag_spec_CXX='${wl}-E'
12588
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12589
	# Instead, shared libraries are loaded at an image base (0x10000000 by
12590
	# default) and relocated if they conflict, which is a slow very memory
12591
	# consuming and fragmenting process.  To avoid this, we pick a random,
12592
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12593
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12594
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12595
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12596
	;;
12597
      irix5* | irix6*)
12598
        case $cc_basename in
12599
          CC*)
12600
	    # SGI C++
12601
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12602
 
12603
	    # Archives containing C++ object files must be created using
12604
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12605
	    # necessary to make sure instantiated templates are included
12606
	    # in the archive.
12607
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12608
	    ;;
12609
          *)
12610
	    if test "$GXX" = yes; then
12611
	      if test "$with_gnu_ld" = no; then
12612
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12613
	      else
12614
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12615
	      fi
12616
	    fi
12617
	    link_all_deplibs_CXX=yes
12618
	    ;;
12619
        esac
12620
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12621
        hardcode_libdir_separator_CXX=:
12622
        inherit_rpath_CXX=yes
12623
        ;;
12624
 
12625
      linux* | k*bsd*-gnu)
12626
        case $cc_basename in
12627
          KCC*)
12628
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12629
 
12630
	    # KCC will only create a shared library if the output file
12631
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12632
	    # to its proper name (with version) after linking.
12633
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12634
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12635
	    # Commands to make compiler produce verbose output that lists
12636
	    # what "hidden" libraries, object files and flags are used when
12637
	    # linking a shared library.
12638
	    #
12639
	    # There doesn't appear to be a way to prevent this compiler from
12640
	    # explicitly linking system object files so we need to strip them
12641
	    # from the output so that they don't get included in the library
12642
	    # dependencies.
12643
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12644
 
12645
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12646
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12647
 
12648
	    # Archives containing C++ object files must be created using
12649
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12650
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12651
	    ;;
12652
	  icpc* | ecpc* )
12653
	    # Intel C++
12654
	    with_gnu_ld=yes
12655
	    # version 8.0 and above of icpc choke on multiply defined symbols
12656
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12657
	    # earlier do not add the objects themselves.
12658
	    case `$CC -V 2>&1` in
12659
	      *"Version 7."*)
12660
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12661
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12662
		;;
12663
	      *)  # Version 8.0 or newer
12664
	        tmp_idyn=
12665
	        case $host_cpu in
12666
		  ia64*) tmp_idyn=' -i_dynamic';;
12667
		esac
12668
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12670
		;;
12671
	    esac
12672
	    archive_cmds_need_lc_CXX=no
12673
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12674
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12675
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12676
	    ;;
12677
          pgCC* | pgcpp*)
12678
            # Portland Group C++ compiler
12679
	    case `$CC -V` in
12680
	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12681
	      prelink_cmds_CXX='tpldir=Template.dir~
12682
		rm -rf $tpldir~
12683
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12684
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12685
	      old_archive_cmds_CXX='tpldir=Template.dir~
12686
		rm -rf $tpldir~
12687
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12688
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12689
		$RANLIB $oldlib'
12690
	      archive_cmds_CXX='tpldir=Template.dir~
12691
		rm -rf $tpldir~
12692
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12693
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12694
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12695
		rm -rf $tpldir~
12696
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12697
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12698
	      ;;
12699
	    *) # Version 6 will use weak symbols
12700
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12701
	      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'
12702
	      ;;
12703
	    esac
12704
 
12705
	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12706
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12707
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12708
            ;;
12709
	  cxx*)
12710
	    # Compaq C++
12711
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12712
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12713
 
12714
	    runpath_var=LD_RUN_PATH
12715
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12716
	    hardcode_libdir_separator_CXX=:
12717
 
12718
	    # Commands to make compiler produce verbose output that lists
12719
	    # what "hidden" libraries, object files and flags are used when
12720
	    # linking a shared library.
12721
	    #
12722
	    # There doesn't appear to be a way to prevent this compiler from
12723
	    # explicitly linking system object files so we need to strip them
12724
	    # from the output so that they don't get included in the library
12725
	    # dependencies.
12726
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12727
	    ;;
12728
	  xl*)
12729
	    # IBM XL 8.0 on PPC, with GNU ld
12730
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12731
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12732
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733
	    if test "x$supports_anon_versioning" = xyes; then
12734
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12735
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12736
		echo "local: *; };" >> $output_objdir/$libname.ver~
12737
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12738
	    fi
12739
	    ;;
12740
	  *)
12741
	    case `$CC -V 2>&1 | sed 5q` in
12742
	    *Sun\ C*)
12743
	      # Sun C++ 5.9
12744
	      no_undefined_flag_CXX=' -zdefs'
12745
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12746
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12747
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12748
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12749
	      compiler_needs_object_CXX=yes
12750
 
12751
	      # Not sure whether something based on
12752
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12753
	      # would be better.
12754
	      output_verbose_link_cmd='echo'
12755
 
12756
	      # Archives containing C++ object files must be created using
12757
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12758
	      # necessary to make sure instantiated templates are included
12759
	      # in the archive.
12760
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12761
	      ;;
12762
	    esac
12763
	    ;;
12764
	esac
12765
	;;
12766
 
12767
      lynxos*)
12768
        # FIXME: insert proper C++ library support
12769
	ld_shlibs_CXX=no
12770
	;;
12771
 
12772
      m88k*)
12773
        # FIXME: insert proper C++ library support
12774
        ld_shlibs_CXX=no
12775
	;;
12776
 
12777
      mvs*)
12778
        case $cc_basename in
12779
          cxx*)
12780
	    # FIXME: insert proper C++ library support
12781
	    ld_shlibs_CXX=no
12782
	    ;;
12783
	  *)
12784
	    # FIXME: insert proper C++ library support
12785
	    ld_shlibs_CXX=no
12786
	    ;;
12787
	esac
12788
	;;
12789
 
12790
      netbsd*)
12791
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12792
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12793
	  wlarc=
12794
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12795
	  hardcode_direct_CXX=yes
12796
	  hardcode_shlibpath_var_CXX=no
12797
	fi
12798
	# Workaround some broken pre-1.5 toolchains
12799
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12800
	;;
12801
 
12802
      *nto* | *qnx*)
12803
        ld_shlibs_CXX=yes
12804
	;;
12805
 
12806
      openbsd2*)
12807
        # C++ shared libraries are fairly broken
12808
	ld_shlibs_CXX=no
12809
	;;
12810
 
12811
      openbsd*)
12812
	if test -f /usr/libexec/ld.so; then
12813
	  hardcode_direct_CXX=yes
12814
	  hardcode_shlibpath_var_CXX=no
12815
	  hardcode_direct_absolute_CXX=yes
12816
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12817
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12818
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12819
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12820
	    export_dynamic_flag_spec_CXX='${wl}-E'
12821
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12822
	  fi
12823
	  output_verbose_link_cmd=echo
12824
	else
12825
	  ld_shlibs_CXX=no
12826
	fi
12827
	;;
12828
 
12829
      osf3* | osf4* | osf5*)
12830
        case $cc_basename in
12831
          KCC*)
12832
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12833
 
12834
	    # KCC will only create a shared library if the output file
12835
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12836
	    # to its proper name (with version) after linking.
12837
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12838
 
12839
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12840
	    hardcode_libdir_separator_CXX=:
12841
 
12842
	    # Archives containing C++ object files must be created using
12843
	    # the KAI C++ compiler.
12844
	    case $host in
12845
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12846
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12847
	    esac
12848
	    ;;
12849
          RCC*)
12850
	    # Rational C++ 2.4.1
12851
	    # FIXME: insert proper C++ library support
12852
	    ld_shlibs_CXX=no
12853
	    ;;
12854
          cxx*)
12855
	    case $host in
12856
	      osf3*)
12857
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12858
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12859
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12860
		;;
12861
	      *)
12862
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12863
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12864
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12865
	          echo "-hidden">> $lib.exp~
12866
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12867
	          $RM $lib.exp'
12868
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12869
		;;
12870
	    esac
12871
 
12872
	    hardcode_libdir_separator_CXX=:
12873
 
12874
	    # Commands to make compiler produce verbose output that lists
12875
	    # what "hidden" libraries, object files and flags are used when
12876
	    # linking a shared library.
12877
	    #
12878
	    # There doesn't appear to be a way to prevent this compiler from
12879
	    # explicitly linking system object files so we need to strip them
12880
	    # from the output so that they don't get included in the library
12881
	    # dependencies.
12882
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12883
	    ;;
12884
	  *)
12885
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12886
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12887
	      case $host in
12888
	        osf3*)
12889
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12890
		  ;;
12891
	        *)
12892
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12893
		  ;;
12894
	      esac
12895
 
12896
	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12897
	      hardcode_libdir_separator_CXX=:
12898
 
12899
	      # Commands to make compiler produce verbose output that lists
12900
	      # what "hidden" libraries, object files and flags are used when
12901
	      # linking a shared library.
12902
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12903
 
12904
	    else
12905
	      # FIXME: insert proper C++ library support
12906
	      ld_shlibs_CXX=no
12907
	    fi
12908
	    ;;
12909
        esac
12910
        ;;
12911
 
12912
      psos*)
12913
        # FIXME: insert proper C++ library support
12914
        ld_shlibs_CXX=no
12915
        ;;
12916
 
12917
      sunos4*)
12918
        case $cc_basename in
12919
          CC*)
12920
	    # Sun C++ 4.x
12921
	    # FIXME: insert proper C++ library support
12922
	    ld_shlibs_CXX=no
12923
	    ;;
12924
          lcc*)
12925
	    # Lucid
12926
	    # FIXME: insert proper C++ library support
12927
	    ld_shlibs_CXX=no
12928
	    ;;
12929
          *)
12930
	    # FIXME: insert proper C++ library support
12931
	    ld_shlibs_CXX=no
12932
	    ;;
12933
        esac
12934
        ;;
12935
 
12936
      solaris*)
12937
        case $cc_basename in
12938
          CC*)
12939
	    # Sun C++ 4.2, 5.x and Centerline C++
12940
            archive_cmds_need_lc_CXX=yes
12941
	    no_undefined_flag_CXX=' -zdefs'
12942
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12943
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12944
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12945
 
12946
	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12947
	    hardcode_shlibpath_var_CXX=no
12948
	    case $host_os in
12949
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12950
	      *)
12951
		# The compiler driver will combine and reorder linker options,
12952
		# but understands `-z linker_flag'.
12953
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12954
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12955
	        ;;
12956
	    esac
12957
	    link_all_deplibs_CXX=yes
12958
 
12959
	    output_verbose_link_cmd='echo'
12960
 
12961
	    # Archives containing C++ object files must be created using
12962
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12963
	    # necessary to make sure instantiated templates are included
12964
	    # in the archive.
12965
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12966
	    ;;
12967
          gcx*)
12968
	    # Green Hills C++ Compiler
12969
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12970
 
12971
	    # The C++ compiler must be used to create the archive.
12972
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12973
	    ;;
12974
          *)
12975
	    # GNU C++ compiler with Solaris linker
12976
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12977
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12978
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12979
	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12980
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12981
		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12982
 
12983
	        # Commands to make compiler produce verbose output that lists
12984
	        # what "hidden" libraries, object files and flags are used when
12985
	        # linking a shared library.
12986
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12987
	      else
12988
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12989
	        # platform.
12990
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12991
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12992
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12993
 
12994
	        # Commands to make compiler produce verbose output that lists
12995
	        # what "hidden" libraries, object files and flags are used when
12996
	        # linking a shared library.
12997
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12998
	      fi
12999
 
13000
	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13001
	      case $host_os in
13002
		solaris2.[0-5] | solaris2.[0-5].*) ;;
13003
		*)
13004
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13005
		  ;;
13006
	      esac
13007
	    fi
13008
	    ;;
13009
        esac
13010
        ;;
13011
 
13012
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13013
      no_undefined_flag_CXX='${wl}-z,text'
13014
      archive_cmds_need_lc_CXX=no
13015
      hardcode_shlibpath_var_CXX=no
13016
      runpath_var='LD_RUN_PATH'
13017
 
13018
      case $cc_basename in
13019
        CC*)
13020
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13021
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13022
	  ;;
13023
	*)
13024
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13025
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13026
	  ;;
13027
      esac
13028
      ;;
13029
 
13030
      sysv5* | sco3.2v5* | sco5v6*)
13031
	# Note: We can NOT use -z defs as we might desire, because we do not
13032
	# link with -lc, and that would cause any symbols used from libc to
13033
	# always be unresolved, which means just about no library would
13034
	# ever link correctly.  If we're not using GNU ld we use -z text
13035
	# though, which does catch some bad symbols but isn't as heavy-handed
13036
	# as -z defs.
13037
	no_undefined_flag_CXX='${wl}-z,text'
13038
	allow_undefined_flag_CXX='${wl}-z,nodefs'
13039
	archive_cmds_need_lc_CXX=no
13040
	hardcode_shlibpath_var_CXX=no
13041
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13042
	hardcode_libdir_separator_CXX=':'
13043
	link_all_deplibs_CXX=yes
13044
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13045
	runpath_var='LD_RUN_PATH'
13046
 
13047
	case $cc_basename in
13048
          CC*)
13049
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13050
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13051
	    ;;
13052
	  *)
13053
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13054
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13055
	    ;;
13056
	esac
13057
      ;;
13058
 
13059
      tandem*)
13060
        case $cc_basename in
13061
          NCC*)
13062
	    # NonStop-UX NCC 3.20
13063
	    # FIXME: insert proper C++ library support
13064
	    ld_shlibs_CXX=no
13065
	    ;;
13066
          *)
13067
	    # FIXME: insert proper C++ library support
13068
	    ld_shlibs_CXX=no
13069
	    ;;
13070
        esac
13071
        ;;
13072
 
13073
      vxworks*)
13074
        # FIXME: insert proper C++ library support
13075
        ld_shlibs_CXX=no
13076
        ;;
13077
 
13078
      *)
13079
        # FIXME: insert proper C++ library support
13080
        ld_shlibs_CXX=no
13081
        ;;
13082
    esac
13083
 
13084
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13085
$as_echo "$ld_shlibs_CXX" >&6; }
13086
    test "$ld_shlibs_CXX" = no && can_build_shared=no
13087
 
13088
    GCC_CXX="$GXX"
13089
    LD_CXX="$LD"
13090
 
13091
    ## CAVEAT EMPTOR:
13092
    ## There is no encapsulation within the following macros, do not change
13093
    ## the running order or otherwise move them around unless you know exactly
13094
    ## what you are doing...
13095
    # Dependencies to place before and after the object being linked:
13096
predep_objects_CXX=
13097
postdep_objects_CXX=
13098
predeps_CXX=
13099
postdeps_CXX=
13100
compiler_lib_search_path_CXX=
13101
 
13102
cat > conftest.$ac_ext <<_LT_EOF
13103
class Foo
13104
{
13105
public:
13106
  Foo (void) { a = 0; }
13107
private:
13108
  int a;
13109
};
13110
_LT_EOF
13111
 
13112
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13113
  (eval $ac_compile) 2>&5
13114
  ac_status=$?
13115
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116
  test $ac_status = 0; }; then
13117
  # Parse the compiler output and extract the necessary
13118
  # objects, libraries and library flags.
13119
 
13120
  # Sentinel used to keep track of whether or not we are before
13121
  # the conftest object file.
13122
  pre_test_object_deps_done=no
13123
 
13124
  for p in `eval "$output_verbose_link_cmd"`; do
13125
    case $p in
13126
 
13127
    -L* | -R* | -l*)
13128
       # Some compilers place space between "-{L,R}" and the path.
13129
       # Remove the space.
13130
       if test $p = "-L" ||
13131
          test $p = "-R"; then
13132
	 prev=$p
13133
	 continue
13134
       else
13135
	 prev=
13136
       fi
13137
 
13138
       if test "$pre_test_object_deps_done" = no; then
13139
	 case $p in
13140
	 -L* | -R*)
13141
	   # Internal compiler library paths should come after those
13142
	   # provided the user.  The postdeps already come after the
13143
	   # user supplied libs so there is no need to process them.
13144
	   if test -z "$compiler_lib_search_path_CXX"; then
13145
	     compiler_lib_search_path_CXX="${prev}${p}"
13146
	   else
13147
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13148
	   fi
13149
	   ;;
13150
	 # The "-l" case would never come before the object being
13151
	 # linked, so don't bother handling this case.
13152
	 esac
13153
       else
13154
	 if test -z "$postdeps_CXX"; then
13155
	   postdeps_CXX="${prev}${p}"
13156
	 else
13157
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13158
	 fi
13159
       fi
13160
       ;;
13161
 
13162
    *.$objext)
13163
       # This assumes that the test object file only shows up
13164
       # once in the compiler output.
13165
       if test "$p" = "conftest.$objext"; then
13166
	 pre_test_object_deps_done=yes
13167
	 continue
13168
       fi
13169
 
13170
       if test "$pre_test_object_deps_done" = no; then
13171
	 if test -z "$predep_objects_CXX"; then
13172
	   predep_objects_CXX="$p"
13173
	 else
13174
	   predep_objects_CXX="$predep_objects_CXX $p"
13175
	 fi
13176
       else
13177
	 if test -z "$postdep_objects_CXX"; then
13178
	   postdep_objects_CXX="$p"
13179
	 else
13180
	   postdep_objects_CXX="$postdep_objects_CXX $p"
13181
	 fi
13182
       fi
13183
       ;;
13184
 
13185
    *) ;; # Ignore the rest.
13186
 
13187
    esac
13188
  done
13189
 
13190
  # Clean up.
13191
  rm -f a.out a.exe
13192
else
13193
  echo "libtool.m4: error: problem compiling CXX test program"
13194
fi
13195
 
13196
$RM -f confest.$objext
13197
 
13198
# PORTME: override above test on systems where it is broken
13199
case $host_os in
13200
interix[3-9]*)
13201
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13202
  # hack all around it, let's just trust "g++" to DTRT.
13203
  predep_objects_CXX=
13204
  postdep_objects_CXX=
13205
  postdeps_CXX=
13206
  ;;
13207
 
13208
linux*)
13209
  case `$CC -V 2>&1 | sed 5q` in
13210
  *Sun\ C*)
13211
    # Sun C++ 5.9
13212
 
13213
    # The more standards-conforming stlport4 library is
13214
    # incompatible with the Cstd library. Avoid specifying
13215
    # it if it's in CXXFLAGS. Ignore libCrun as
13216
    # -library=stlport4 depends on it.
13217
    case " $CXX $CXXFLAGS " in
13218
    *" -library=stlport4 "*)
13219
      solaris_use_stlport4=yes
13220
      ;;
13221
    esac
13222
 
13223
    if test "$solaris_use_stlport4" != yes; then
13224
      postdeps_CXX='-library=Cstd -library=Crun'
13225
    fi
13226
    ;;
13227
  esac
13228
  ;;
13229
 
13230
solaris*)
13231
  case $cc_basename in
13232
  CC*)
13233
    # The more standards-conforming stlport4 library is
13234
    # incompatible with the Cstd library. Avoid specifying
13235
    # it if it's in CXXFLAGS. Ignore libCrun as
13236
    # -library=stlport4 depends on it.
13237
    case " $CXX $CXXFLAGS " in
13238
    *" -library=stlport4 "*)
13239
      solaris_use_stlport4=yes
13240
      ;;
13241
    esac
13242
 
13243
    # Adding this requires a known-good setup of shared libraries for
13244
    # Sun compiler versions before 5.6, else PIC objects from an old
13245
    # archive will be linked into the output, leading to subtle bugs.
13246
    if test "$solaris_use_stlport4" != yes; then
13247
      postdeps_CXX='-library=Cstd -library=Crun'
13248
    fi
13249
    ;;
13250
  esac
13251
  ;;
13252
esac
13253
 
13254
 
13255
case " $postdeps_CXX " in
13256
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13257
esac
13258
 compiler_lib_search_dirs_CXX=
13259
if test -n "${compiler_lib_search_path_CXX}"; then
13260
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13261
fi
13262
 
13263
 
13264
 
13265
 
13266
 
13267
 
13268
 
13269
 
13270
 
13271
 
13272
 
13273
 
13274
 
13275
 
13276
 
13277
 
13278
 
13279
 
13280
 
13281
 
13282
 
13283
 
13284
 
13285
 
13286
 
13287
 
13288
 
13289
 
13290
 
13291
 
13292
 
13293
    lt_prog_compiler_wl_CXX=
13294
lt_prog_compiler_pic_CXX=
13295
lt_prog_compiler_static_CXX=
13296
 
13297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13298
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13299
 
13300
  # C++ specific cases for pic, static, wl, etc.
13301
  if test "$GXX" = yes; then
13302
    lt_prog_compiler_wl_CXX='-Wl,'
13303
    lt_prog_compiler_static_CXX='-static'
13304
 
13305
    case $host_os in
13306
    aix*)
13307
      # All AIX code is PIC.
13308
      if test "$host_cpu" = ia64; then
13309
	# AIX 5 now supports IA64 processor
13310
	lt_prog_compiler_static_CXX='-Bstatic'
13311
      fi
13312
      ;;
13313
 
13314
    amigaos*)
13315
      case $host_cpu in
13316
      powerpc)
13317
            # see comment about AmigaOS4 .so support
13318
            lt_prog_compiler_pic_CXX='-fPIC'
13319
        ;;
13320
      m68k)
13321
            # FIXME: we need at least 68020 code to build shared libraries, but
13322
            # adding the `-m68020' flag to GCC prevents building anything better,
13323
            # like `-m68040'.
13324
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13325
        ;;
13326
      esac
13327
      ;;
13328
 
13329
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13330
      # PIC is the default for these OSes.
13331
      ;;
13332
    mingw* | cygwin* | os2* | pw32* | cegcc*)
13333
      # This hack is so that the source file can tell whether it is being
13334
      # built for inclusion in a dll (and should export symbols for example).
13335
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13336
      # (--disable-auto-import) libraries
13337
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13338
      ;;
13339
    darwin* | rhapsody*)
13340
      # PIC is the default on this platform
13341
      # Common symbols not allowed in MH_DYLIB files
13342
      lt_prog_compiler_pic_CXX='-fno-common'
13343
      ;;
13344
    *djgpp*)
13345
      # DJGPP does not support shared libraries at all
13346
      lt_prog_compiler_pic_CXX=
13347
      ;;
13348
    interix[3-9]*)
13349
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13350
      # Instead, we relocate shared libraries at runtime.
13351
      ;;
13352
    sysv4*MP*)
13353
      if test -d /usr/nec; then
13354
	lt_prog_compiler_pic_CXX=-Kconform_pic
13355
      fi
13356
      ;;
13357
    hpux*)
13358
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13359
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13360
      # sets the default TLS model and affects inlining.
13361
      case $host_cpu in
13362
      hppa*64*)
13363
	;;
13364
      *)
13365
	lt_prog_compiler_pic_CXX='-fPIC'
13366
	;;
13367
      esac
13368
      ;;
13369
    *qnx* | *nto*)
13370
      # QNX uses GNU C++, but need to define -shared option too, otherwise
13371
      # it will coredump.
13372
      lt_prog_compiler_pic_CXX='-fPIC -shared'
13373
      ;;
13374
    *)
13375
      lt_prog_compiler_pic_CXX='-fPIC'
13376
      ;;
13377
    esac
13378
  else
13379
    case $host_os in
13380
      aix[4-9]*)
13381
	# All AIX code is PIC.
13382
	if test "$host_cpu" = ia64; then
13383
	  # AIX 5 now supports IA64 processor
13384
	  lt_prog_compiler_static_CXX='-Bstatic'
13385
	else
13386
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13387
	fi
13388
	;;
13389
      chorus*)
13390
	case $cc_basename in
13391
	cxch68*)
13392
	  # Green Hills C++ Compiler
13393
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13394
	  ;;
13395
	esac
13396
	;;
13397
      dgux*)
13398
	case $cc_basename in
13399
	  ec++*)
13400
	    lt_prog_compiler_pic_CXX='-KPIC'
13401
	    ;;
13402
	  ghcx*)
13403
	    # Green Hills C++ Compiler
13404
	    lt_prog_compiler_pic_CXX='-pic'
13405
	    ;;
13406
	  *)
13407
	    ;;
13408
	esac
13409
	;;
13410
      freebsd* | dragonfly*)
13411
	# FreeBSD uses GNU C++
13412
	;;
13413
      hpux9* | hpux10* | hpux11*)
13414
	case $cc_basename in
13415
	  CC*)
13416
	    lt_prog_compiler_wl_CXX='-Wl,'
13417
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13418
	    if test "$host_cpu" != ia64; then
13419
	      lt_prog_compiler_pic_CXX='+Z'
13420
	    fi
13421
	    ;;
13422
	  aCC*)
13423
	    lt_prog_compiler_wl_CXX='-Wl,'
13424
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13425
	    case $host_cpu in
13426
	    hppa*64*|ia64*)
13427
	      # +Z the default
13428
	      ;;
13429
	    *)
13430
	      lt_prog_compiler_pic_CXX='+Z'
13431
	      ;;
13432
	    esac
13433
	    ;;
13434
	  *)
13435
	    ;;
13436
	esac
13437
	;;
13438
      interix*)
13439
	# This is c89, which is MS Visual C++ (no shared libs)
13440
	# Anyone wants to do a port?
13441
	;;
13442
      irix5* | irix6* | nonstopux*)
13443
	case $cc_basename in
13444
	  CC*)
13445
	    lt_prog_compiler_wl_CXX='-Wl,'
13446
	    lt_prog_compiler_static_CXX='-non_shared'
13447
	    # CC pic flag -KPIC is the default.
13448
	    ;;
13449
	  *)
13450
	    ;;
13451
	esac
13452
	;;
13453
      linux* | k*bsd*-gnu)
13454
	case $cc_basename in
13455
	  KCC*)
13456
	    # KAI C++ Compiler
13457
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13458
	    lt_prog_compiler_pic_CXX='-fPIC'
13459
	    ;;
13460
	  ecpc* )
13461
	    # old Intel C++ for x86_64 which still supported -KPIC.
13462
	    lt_prog_compiler_wl_CXX='-Wl,'
13463
	    lt_prog_compiler_pic_CXX='-KPIC'
13464
	    lt_prog_compiler_static_CXX='-static'
13465
	    ;;
13466
	  icpc* )
13467
	    # Intel C++, used to be incompatible with GCC.
13468
	    # ICC 10 doesn't accept -KPIC any more.
13469
	    lt_prog_compiler_wl_CXX='-Wl,'
13470
	    lt_prog_compiler_pic_CXX='-fPIC'
13471
	    lt_prog_compiler_static_CXX='-static'
13472
	    ;;
13473
	  pgCC* | pgcpp*)
13474
	    # Portland Group C++ compiler
13475
	    lt_prog_compiler_wl_CXX='-Wl,'
13476
	    lt_prog_compiler_pic_CXX='-fpic'
13477
	    lt_prog_compiler_static_CXX='-Bstatic'
13478
	    ;;
13479
	  cxx*)
13480
	    # Compaq C++
13481
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13482
	    # Linux and Compaq Tru64 Unix objects are PIC.
13483
	    lt_prog_compiler_pic_CXX=
13484
	    lt_prog_compiler_static_CXX='-non_shared'
13485
	    ;;
13486
	  xlc* | xlC*)
13487
	    # IBM XL 8.0 on PPC
13488
	    lt_prog_compiler_wl_CXX='-Wl,'
13489
	    lt_prog_compiler_pic_CXX='-qpic'
13490
	    lt_prog_compiler_static_CXX='-qstaticlink'
13491
	    ;;
13492
	  *)
13493
	    case `$CC -V 2>&1 | sed 5q` in
13494
	    *Sun\ C*)
13495
	      # Sun C++ 5.9
13496
	      lt_prog_compiler_pic_CXX='-KPIC'
13497
	      lt_prog_compiler_static_CXX='-Bstatic'
13498
	      lt_prog_compiler_wl_CXX='-Qoption ld '
13499
	      ;;
13500
	    esac
13501
	    ;;
13502
	esac
13503
	;;
13504
      lynxos*)
13505
	;;
13506
      m88k*)
13507
	;;
13508
      mvs*)
13509
	case $cc_basename in
13510
	  cxx*)
13511
	    lt_prog_compiler_pic_CXX='-W c,exportall'
13512
	    ;;
13513
	  *)
13514
	    ;;
13515
	esac
13516
	;;
13517
      netbsd* | netbsdelf*-gnu)
13518
	;;
13519
      *qnx* | *nto*)
13520
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13521
        # it will coredump.
13522
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13523
        ;;
13524
      osf3* | osf4* | osf5*)
13525
	case $cc_basename in
13526
	  KCC*)
13527
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13528
	    ;;
13529
	  RCC*)
13530
	    # Rational C++ 2.4.1
13531
	    lt_prog_compiler_pic_CXX='-pic'
13532
	    ;;
13533
	  cxx*)
13534
	    # Digital/Compaq C++
13535
	    lt_prog_compiler_wl_CXX='-Wl,'
13536
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13537
	    # Linux and Compaq Tru64 Unix objects are PIC.
13538
	    lt_prog_compiler_pic_CXX=
13539
	    lt_prog_compiler_static_CXX='-non_shared'
13540
	    ;;
13541
	  *)
13542
	    ;;
13543
	esac
13544
	;;
13545
      psos*)
13546
	;;
13547
      solaris*)
13548
	case $cc_basename in
13549
	  CC*)
13550
	    # Sun C++ 4.2, 5.x and Centerline C++
13551
	    lt_prog_compiler_pic_CXX='-KPIC'
13552
	    lt_prog_compiler_static_CXX='-Bstatic'
13553
	    lt_prog_compiler_wl_CXX='-Qoption ld '
13554
	    ;;
13555
	  gcx*)
13556
	    # Green Hills C++ Compiler
13557
	    lt_prog_compiler_pic_CXX='-PIC'
13558
	    ;;
13559
	  *)
13560
	    ;;
13561
	esac
13562
	;;
13563
      sunos4*)
13564
	case $cc_basename in
13565
	  CC*)
13566
	    # Sun C++ 4.x
13567
	    lt_prog_compiler_pic_CXX='-pic'
13568
	    lt_prog_compiler_static_CXX='-Bstatic'
13569
	    ;;
13570
	  lcc*)
13571
	    # Lucid
13572
	    lt_prog_compiler_pic_CXX='-pic'
13573
	    ;;
13574
	  *)
13575
	    ;;
13576
	esac
13577
	;;
13578
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13579
	case $cc_basename in
13580
	  CC*)
13581
	    lt_prog_compiler_wl_CXX='-Wl,'
13582
	    lt_prog_compiler_pic_CXX='-KPIC'
13583
	    lt_prog_compiler_static_CXX='-Bstatic'
13584
	    ;;
13585
	esac
13586
	;;
13587
      tandem*)
13588
	case $cc_basename in
13589
	  NCC*)
13590
	    # NonStop-UX NCC 3.20
13591
	    lt_prog_compiler_pic_CXX='-KPIC'
13592
	    ;;
13593
	  *)
13594
	    ;;
13595
	esac
13596
	;;
13597
      vxworks*)
13598
	;;
13599
      *)
13600
	lt_prog_compiler_can_build_shared_CXX=no
13601
	;;
13602
    esac
13603
  fi
13604
 
13605
case $host_os in
13606
  # For platforms which do not support PIC, -DPIC is meaningless:
13607
  *djgpp*)
13608
    lt_prog_compiler_pic_CXX=
13609
    ;;
13610
  *)
13611
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13612
    ;;
13613
esac
13614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13615
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13616
 
13617
 
13618
 
13619
#
13620
# Check to make sure the PIC flag actually works.
13621
#
13622
if test -n "$lt_prog_compiler_pic_CXX"; then
13623
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13624
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13625
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13626
  $as_echo_n "(cached) " >&6
13627
else
13628
  lt_cv_prog_compiler_pic_works_CXX=no
13629
   ac_outfile=conftest.$ac_objext
13630
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13631
   lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13632
   # Insert the option either (1) after the last *FLAGS variable, or
13633
   # (2) before a word containing "conftest.", or (3) at the end.
13634
   # Note that $ac_compile itself does not contain backslashes and begins
13635
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13636
   # The option is referenced via a variable to avoid confusing sed.
13637
   lt_compile=`echo "$ac_compile" | $SED \
13638
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13639
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13640
   -e 's:$: $lt_compiler_flag:'`
13641
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13642
   (eval "$lt_compile" 2>conftest.err)
13643
   ac_status=$?
13644
   cat conftest.err >&5
13645
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13646
   if (exit $ac_status) && test -s "$ac_outfile"; then
13647
     # The compiler can only warn and ignore the option if not recognized
13648
     # So say no if there are warnings other than the usual output.
13649
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13650
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13651
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13652
       lt_cv_prog_compiler_pic_works_CXX=yes
13653
     fi
13654
   fi
13655
   $RM conftest*
13656
 
13657
fi
13658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13659
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13660
 
13661
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13662
    case $lt_prog_compiler_pic_CXX in
13663
     "" | " "*) ;;
13664
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13665
     esac
13666
else
13667
    lt_prog_compiler_pic_CXX=
13668
     lt_prog_compiler_can_build_shared_CXX=no
13669
fi
13670
 
13671
fi
13672
 
13673
 
13674
 
13675
#
13676
# Check to make sure the static flag actually works.
13677
#
13678
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13680
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13681
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13682
  $as_echo_n "(cached) " >&6
13683
else
13684
  lt_cv_prog_compiler_static_works_CXX=no
13685
   save_LDFLAGS="$LDFLAGS"
13686
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13687
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13688
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13689
     # The linker can only warn and ignore the option if not recognized
13690
     # So say no if there are warnings
13691
     if test -s conftest.err; then
13692
       # Append any errors to the config.log.
13693
       cat conftest.err 1>&5
13694
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13695
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13696
       if diff conftest.exp conftest.er2 >/dev/null; then
13697
         lt_cv_prog_compiler_static_works_CXX=yes
13698
       fi
13699
     else
13700
       lt_cv_prog_compiler_static_works_CXX=yes
13701
     fi
13702
   fi
13703
   $RM -r conftest*
13704
   LDFLAGS="$save_LDFLAGS"
13705
 
13706
fi
13707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13708
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13709
 
13710
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13711
    :
13712
else
13713
    lt_prog_compiler_static_CXX=
13714
fi
13715
 
13716
 
13717
 
13718
 
13719
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13720
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13721
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13722
  $as_echo_n "(cached) " >&6
13723
else
13724
  lt_cv_prog_compiler_c_o_CXX=no
13725
   $RM -r conftest 2>/dev/null
13726
   mkdir conftest
13727
   cd conftest
13728
   mkdir out
13729
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13730
 
13731
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13732
   # Insert the option either (1) after the last *FLAGS variable, or
13733
   # (2) before a word containing "conftest.", or (3) at the end.
13734
   # Note that $ac_compile itself does not contain backslashes and begins
13735
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13736
   lt_compile=`echo "$ac_compile" | $SED \
13737
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13738
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13739
   -e 's:$: $lt_compiler_flag:'`
13740
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13741
   (eval "$lt_compile" 2>out/conftest.err)
13742
   ac_status=$?
13743
   cat out/conftest.err >&5
13744
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13745
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13746
   then
13747
     # The compiler can only warn and ignore the option if not recognized
13748
     # So say no if there are warnings
13749
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13750
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13751
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13752
       lt_cv_prog_compiler_c_o_CXX=yes
13753
     fi
13754
   fi
13755
   chmod u+w . 2>&5
13756
   $RM conftest*
13757
   # SGI C++ compiler will create directory out/ii_files/ for
13758
   # template instantiation
13759
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13760
   $RM out/* && rmdir out
13761
   cd ..
13762
   $RM -r conftest
13763
   $RM conftest*
13764
 
13765
fi
13766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13767
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13768
 
13769
 
13770
 
13771
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13772
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13773
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13774
  $as_echo_n "(cached) " >&6
13775
else
13776
  lt_cv_prog_compiler_c_o_CXX=no
13777
   $RM -r conftest 2>/dev/null
13778
   mkdir conftest
13779
   cd conftest
13780
   mkdir out
13781
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13782
 
13783
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13784
   # Insert the option either (1) after the last *FLAGS variable, or
13785
   # (2) before a word containing "conftest.", or (3) at the end.
13786
   # Note that $ac_compile itself does not contain backslashes and begins
13787
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13788
   lt_compile=`echo "$ac_compile" | $SED \
13789
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13790
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13791
   -e 's:$: $lt_compiler_flag:'`
13792
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13793
   (eval "$lt_compile" 2>out/conftest.err)
13794
   ac_status=$?
13795
   cat out/conftest.err >&5
13796
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13797
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13798
   then
13799
     # The compiler can only warn and ignore the option if not recognized
13800
     # So say no if there are warnings
13801
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13802
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13803
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13804
       lt_cv_prog_compiler_c_o_CXX=yes
13805
     fi
13806
   fi
13807
   chmod u+w . 2>&5
13808
   $RM conftest*
13809
   # SGI C++ compiler will create directory out/ii_files/ for
13810
   # template instantiation
13811
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13812
   $RM out/* && rmdir out
13813
   cd ..
13814
   $RM -r conftest
13815
   $RM conftest*
13816
 
13817
fi
13818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13819
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13820
 
13821
 
13822
 
13823
 
13824
hard_links="nottested"
13825
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13826
  # do not overwrite the value of need_locks provided by the user
13827
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13828
$as_echo_n "checking if we can lock with hard links... " >&6; }
13829
  hard_links=yes
13830
  $RM conftest*
13831
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13832
  touch conftest.a
13833
  ln conftest.a conftest.b 2>&5 || hard_links=no
13834
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13835
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13836
$as_echo "$hard_links" >&6; }
13837
  if test "$hard_links" = no; then
13838
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13839
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13840
    need_locks=warn
13841
  fi
13842
else
13843
  need_locks=no
13844
fi
13845
 
13846
 
13847
 
13848
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13849
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13850
 
13851
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13852
  case $host_os in
13853
  aix[4-9]*)
13854
    # If we're using GNU nm, then we don't want the "-C" option.
13855
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13856
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13857
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13858
    else
13859
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13860
    fi
13861
    ;;
13862
  pw32*)
13863
    export_symbols_cmds_CXX="$ltdll_cmds"
13864
  ;;
13865
  cygwin* | mingw* | cegcc*)
13866
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13867
  ;;
13868
  linux* | k*bsd*-gnu)
13869
    link_all_deplibs_CXX=no
13870
  ;;
13871
  *)
13872
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13873
  ;;
13874
  esac
13875
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13876
 
13877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13878
$as_echo "$ld_shlibs_CXX" >&6; }
13879
test "$ld_shlibs_CXX" = no && can_build_shared=no
13880
 
13881
with_gnu_ld_CXX=$with_gnu_ld
13882
 
13883
 
13884
 
13885
 
13886
 
13887
 
13888
#
13889
# Do we need to explicitly link libc?
13890
#
13891
case "x$archive_cmds_need_lc_CXX" in
13892
x|xyes)
13893
  # Assume -lc should be added
13894
  archive_cmds_need_lc_CXX=yes
13895
 
13896
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13897
    case $archive_cmds_CXX in
13898
    *'~'*)
13899
      # FIXME: we may have to deal with multi-command sequences.
13900
      ;;
13901
    '$CC '*)
13902
      # Test whether the compiler implicitly links with -lc since on some
13903
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13904
      # to ld, don't add -lc before -lgcc.
13905
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13906
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13907
      $RM conftest*
13908
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13909
 
13910
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13911
  (eval $ac_compile) 2>&5
13912
  ac_status=$?
13913
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914
  test $ac_status = 0; } 2>conftest.err; then
13915
        soname=conftest
13916
        lib=conftest
13917
        libobjs=conftest.$ac_objext
13918
        deplibs=
13919
        wl=$lt_prog_compiler_wl_CXX
13920
	pic_flag=$lt_prog_compiler_pic_CXX
13921
        compiler_flags=-v
13922
        linker_flags=-v
13923
        verstring=
13924
        output_objdir=.
13925
        libname=conftest
13926
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13927
        allow_undefined_flag_CXX=
13928
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13929
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13930
  ac_status=$?
13931
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932
  test $ac_status = 0; }
13933
        then
13934
	  archive_cmds_need_lc_CXX=no
13935
        else
13936
	  archive_cmds_need_lc_CXX=yes
13937
        fi
13938
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13939
      else
13940
        cat conftest.err 1>&5
13941
      fi
13942
      $RM conftest*
13943
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13944
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13945
      ;;
13946
    esac
13947
  fi
13948
  ;;
13949
esac
13950
 
13951
 
13952
 
13953
 
13954
 
13955
 
13956
 
13957
 
13958
 
13959
 
13960
 
13961
 
13962
 
13963
 
13964
 
13965
 
13966
 
13967
 
13968
 
13969
 
13970
 
13971
 
13972
 
13973
 
13974
 
13975
 
13976
 
13977
 
13978
 
13979
 
13980
 
13981
 
13982
 
13983
 
13984
 
13985
 
13986
 
13987
 
13988
 
13989
 
13990
 
13991
 
13992
 
13993
 
13994
 
13995
 
13996
 
13997
 
13998
 
13999
 
14000
 
14001
 
14002
 
14003
 
14004
 
14005
 
14006
 
14007
 
14008
 
14009
 
14010
 
14011
 
14012
 
14013
 
14014
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14015
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14016
 
14017
library_names_spec=
14018
libname_spec='lib$name'
14019
soname_spec=
14020
shrext_cmds=".so"
14021
postinstall_cmds=
14022
postuninstall_cmds=
14023
finish_cmds=
14024
finish_eval=
14025
shlibpath_var=
14026
shlibpath_overrides_runpath=unknown
14027
version_type=none
14028
dynamic_linker="$host_os ld.so"
14029
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14030
need_lib_prefix=unknown
14031
hardcode_into_libs=no
14032
 
14033
# when you set need_version to no, make sure it does not cause -set_version
14034
# flags to be left without arguments
14035
need_version=unknown
14036
 
14037
case $host_os in
14038
aix3*)
14039
  version_type=linux
14040
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14041
  shlibpath_var=LIBPATH
14042
 
14043
  # AIX 3 has no versioning support, so we append a major version to the name.
14044
  soname_spec='${libname}${release}${shared_ext}$major'
14045
  ;;
14046
 
14047
aix[4-9]*)
14048
  version_type=linux
14049
  need_lib_prefix=no
14050
  need_version=no
14051
  hardcode_into_libs=yes
14052
  if test "$host_cpu" = ia64; then
14053
    # AIX 5 supports IA64
14054
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14055
    shlibpath_var=LD_LIBRARY_PATH
14056
  else
14057
    # With GCC up to 2.95.x, collect2 would create an import file
14058
    # for dependence libraries.  The import file would start with
14059
    # the line `#! .'.  This would cause the generated library to
14060
    # depend on `.', always an invalid library.  This was fixed in
14061
    # development snapshots of GCC prior to 3.0.
14062
    case $host_os in
14063
      aix4 | aix4.[01] | aix4.[01].*)
14064
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14065
	   echo ' yes '
14066
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14067
	:
14068
      else
14069
	can_build_shared=no
14070
      fi
14071
      ;;
14072
    esac
14073
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14074
    # soname into executable. Probably we can add versioning support to
14075
    # collect2, so additional links can be useful in future.
14076
    if test "$aix_use_runtimelinking" = yes; then
14077
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14078
      # instead of lib<name>.a to let people know that these are not
14079
      # typical AIX shared libraries.
14080
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081
    else
14082
      # We preserve .a as extension for shared libraries through AIX4.2
14083
      # and later when we are not doing run time linking.
14084
      library_names_spec='${libname}${release}.a $libname.a'
14085
      soname_spec='${libname}${release}${shared_ext}$major'
14086
    fi
14087
    shlibpath_var=LIBPATH
14088
  fi
14089
  ;;
14090
 
14091
amigaos*)
14092
  case $host_cpu in
14093
  powerpc)
14094
    # Since July 2007 AmigaOS4 officially supports .so libraries.
14095
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14096
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14097
    ;;
14098
  m68k)
14099
    library_names_spec='$libname.ixlibrary $libname.a'
14100
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14101
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14102
    ;;
14103
  esac
14104
  ;;
14105
 
14106
beos*)
14107
  library_names_spec='${libname}${shared_ext}'
14108
  dynamic_linker="$host_os ld.so"
14109
  shlibpath_var=LIBRARY_PATH
14110
  ;;
14111
 
14112
bsdi[45]*)
14113
  version_type=linux
14114
  need_version=no
14115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116
  soname_spec='${libname}${release}${shared_ext}$major'
14117
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14118
  shlibpath_var=LD_LIBRARY_PATH
14119
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14120
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14121
  # the default ld.so.conf also contains /usr/contrib/lib and
14122
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14123
  # libtool to hard-code these into programs
14124
  ;;
14125
 
14126
cygwin* | mingw* | pw32* | cegcc*)
14127
  version_type=windows
14128
  shrext_cmds=".dll"
14129
  need_version=no
14130
  need_lib_prefix=no
14131
 
14132
  case $GCC,$host_os in
14133
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14134
    library_names_spec='$libname.dll.a'
14135
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14136
    postinstall_cmds='base_file=`basename \${file}`~
14137
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14138
      dldir=$destdir/`dirname \$dlpath`~
14139
      test -d \$dldir || mkdir -p \$dldir~
14140
      $install_prog $dir/$dlname \$dldir/$dlname~
14141
      chmod a+x \$dldir/$dlname~
14142
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14143
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14144
      fi'
14145
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14146
      dlpath=$dir/\$dldll~
14147
       $RM \$dlpath'
14148
    shlibpath_overrides_runpath=yes
14149
 
14150
    case $host_os in
14151
    cygwin*)
14152
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14153
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14154
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14155
      ;;
14156
    mingw* | cegcc*)
14157
      # MinGW DLLs use traditional 'lib' prefix
14158
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14159
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14160
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14161
        # It is most probably a Windows format PATH printed by
14162
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14163
        # path with ; separators, and with drive letters. We can handle the
14164
        # drive letters (cygwin fileutils understands them), so leave them,
14165
        # especially as we might pass files found there to a mingw objdump,
14166
        # which wouldn't understand a cygwinified path. Ahh.
14167
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14168
      else
14169
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14170
      fi
14171
      ;;
14172
    pw32*)
14173
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14174
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14175
      ;;
14176
    esac
14177
    ;;
14178
 
14179
  *)
14180
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14181
    ;;
14182
  esac
14183
  dynamic_linker='Win32 ld.exe'
14184
  # FIXME: first we should search . and the directory the executable is in
14185
  shlibpath_var=PATH
14186
  ;;
14187
 
14188
darwin* | rhapsody*)
14189
  dynamic_linker="$host_os dyld"
14190
  version_type=darwin
14191
  need_lib_prefix=no
14192
  need_version=no
14193
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14194
  soname_spec='${libname}${release}${major}$shared_ext'
14195
  shlibpath_overrides_runpath=yes
14196
  shlibpath_var=DYLD_LIBRARY_PATH
14197
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14198
 
14199
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14200
  ;;
14201
 
14202
dgux*)
14203
  version_type=linux
14204
  need_lib_prefix=no
14205
  need_version=no
14206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14207
  soname_spec='${libname}${release}${shared_ext}$major'
14208
  shlibpath_var=LD_LIBRARY_PATH
14209
  ;;
14210
 
14211
freebsd1*)
14212
  dynamic_linker=no
14213
  ;;
14214
 
14215
freebsd* | dragonfly*)
14216
  # DragonFly does not have aout.  When/if they implement a new
14217
  # versioning mechanism, adjust this.
14218
  if test -x /usr/bin/objformat; then
14219
    objformat=`/usr/bin/objformat`
14220
  else
14221
    case $host_os in
14222
    freebsd[123]*) objformat=aout ;;
14223
    *) objformat=elf ;;
14224
    esac
14225
  fi
14226
  version_type=freebsd-$objformat
14227
  case $version_type in
14228
    freebsd-elf*)
14229
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14230
      need_version=no
14231
      need_lib_prefix=no
14232
      ;;
14233
    freebsd-*)
14234
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14235
      need_version=yes
14236
      ;;
14237
  esac
14238
  shlibpath_var=LD_LIBRARY_PATH
14239
  case $host_os in
14240
  freebsd2*)
14241
    shlibpath_overrides_runpath=yes
14242
    ;;
14243
  freebsd3.[01]* | freebsdelf3.[01]*)
14244
    shlibpath_overrides_runpath=yes
14245
    hardcode_into_libs=yes
14246
    ;;
14247
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14248
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14249
    shlibpath_overrides_runpath=no
14250
    hardcode_into_libs=yes
14251
    ;;
14252
  *) # from 4.6 on, and DragonFly
14253
    shlibpath_overrides_runpath=yes
14254
    hardcode_into_libs=yes
14255
    ;;
14256
  esac
14257
  ;;
14258
 
14259
gnu*)
14260
  version_type=linux
14261
  need_lib_prefix=no
14262
  need_version=no
14263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14264
  soname_spec='${libname}${release}${shared_ext}$major'
14265
  shlibpath_var=LD_LIBRARY_PATH
14266
  hardcode_into_libs=yes
14267
  ;;
14268
 
14269
hpux9* | hpux10* | hpux11*)
14270
  # Give a soname corresponding to the major version so that dld.sl refuses to
14271
  # link against other versions.
14272
  version_type=sunos
14273
  need_lib_prefix=no
14274
  need_version=no
14275
  case $host_cpu in
14276
  ia64*)
14277
    shrext_cmds='.so'
14278
    hardcode_into_libs=yes
14279
    dynamic_linker="$host_os dld.so"
14280
    shlibpath_var=LD_LIBRARY_PATH
14281
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14282
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283
    soname_spec='${libname}${release}${shared_ext}$major'
14284
    if test "X$HPUX_IA64_MODE" = X32; then
14285
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14286
    else
14287
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14288
    fi
14289
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14290
    ;;
14291
  hppa*64*)
14292
    shrext_cmds='.sl'
14293
    hardcode_into_libs=yes
14294
    dynamic_linker="$host_os dld.sl"
14295
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14296
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14297
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298
    soname_spec='${libname}${release}${shared_ext}$major'
14299
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14300
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14301
    ;;
14302
  *)
14303
    shrext_cmds='.sl'
14304
    dynamic_linker="$host_os dld.sl"
14305
    shlibpath_var=SHLIB_PATH
14306
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14307
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308
    soname_spec='${libname}${release}${shared_ext}$major'
14309
    ;;
14310
  esac
14311
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14312
  postinstall_cmds='chmod 555 $lib'
14313
  ;;
14314
 
14315
interix[3-9]*)
14316
  version_type=linux
14317
  need_lib_prefix=no
14318
  need_version=no
14319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14320
  soname_spec='${libname}${release}${shared_ext}$major'
14321
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14322
  shlibpath_var=LD_LIBRARY_PATH
14323
  shlibpath_overrides_runpath=no
14324
  hardcode_into_libs=yes
14325
  ;;
14326
 
14327
irix5* | irix6* | nonstopux*)
14328
  case $host_os in
14329
    nonstopux*) version_type=nonstopux ;;
14330
    *)
14331
	if test "$lt_cv_prog_gnu_ld" = yes; then
14332
		version_type=linux
14333
	else
14334
		version_type=irix
14335
	fi ;;
14336
  esac
14337
  need_lib_prefix=no
14338
  need_version=no
14339
  soname_spec='${libname}${release}${shared_ext}$major'
14340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14341
  case $host_os in
14342
  irix5* | nonstopux*)
14343
    libsuff= shlibsuff=
14344
    ;;
14345
  *)
14346
    case $LD in # libtool.m4 will add one of these switches to LD
14347
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14348
      libsuff= shlibsuff= libmagic=32-bit;;
14349
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14350
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14351
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14352
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14353
    *) libsuff= shlibsuff= libmagic=never-match;;
14354
    esac
14355
    ;;
14356
  esac
14357
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14358
  shlibpath_overrides_runpath=no
14359
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14360
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14361
  hardcode_into_libs=yes
14362
  ;;
14363
 
14364
# No shared lib support for Linux oldld, aout, or coff.
14365
linux*oldld* | linux*aout* | linux*coff*)
14366
  dynamic_linker=no
14367
  ;;
14368
 
14369
# This must be Linux ELF.
14370
linux* | k*bsd*-gnu)
14371
  version_type=linux
14372
  need_lib_prefix=no
14373
  need_version=no
14374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375
  soname_spec='${libname}${release}${shared_ext}$major'
14376
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14377
  shlibpath_var=LD_LIBRARY_PATH
14378
  shlibpath_overrides_runpath=no
14379
  # Some binutils ld are patched to set DT_RUNPATH
14380
  save_LDFLAGS=$LDFLAGS
14381
  save_libdir=$libdir
14382
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14383
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14384
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385
/* end confdefs.h.  */
14386
 
14387
int
14388
main ()
14389
{
14390
 
14391
  ;
14392
  return 0;
14393
}
14394
_ACEOF
14395
if ac_fn_cxx_try_link "$LINENO"; then :
14396
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14397
  shlibpath_overrides_runpath=yes
14398
fi
14399
fi
14400
rm -f core conftest.err conftest.$ac_objext \
14401
    conftest$ac_exeext conftest.$ac_ext
14402
  LDFLAGS=$save_LDFLAGS
14403
  libdir=$save_libdir
14404
 
14405
  # This implies no fast_install, which is unacceptable.
14406
  # Some rework will be needed to allow for fast_install
14407
  # before this can be enabled.
14408
  hardcode_into_libs=yes
14409
 
14410
  # Append ld.so.conf contents to the search path
14411
  if test -f /etc/ld.so.conf; then
14412
    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' ' '`
14413
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14414
  fi
14415
 
14416
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14417
  # powerpc, because MkLinux only supported shared libraries with the
14418
  # GNU dynamic linker.  Since this was broken with cross compilers,
14419
  # most powerpc-linux boxes support dynamic linking these days and
14420
  # people can always --disable-shared, the test was removed, and we
14421
  # assume the GNU/Linux dynamic linker is in use.
14422
  dynamic_linker='GNU/Linux ld.so'
14423
  ;;
14424
 
14425
netbsdelf*-gnu)
14426
  version_type=linux
14427
  need_lib_prefix=no
14428
  need_version=no
14429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14430
  soname_spec='${libname}${release}${shared_ext}$major'
14431
  shlibpath_var=LD_LIBRARY_PATH
14432
  shlibpath_overrides_runpath=no
14433
  hardcode_into_libs=yes
14434
  dynamic_linker='NetBSD ld.elf_so'
14435
  ;;
14436
 
14437
netbsd*)
14438
  version_type=sunos
14439
  need_lib_prefix=no
14440
  need_version=no
14441
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14442
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14443
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14444
    dynamic_linker='NetBSD (a.out) ld.so'
14445
  else
14446
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14447
    soname_spec='${libname}${release}${shared_ext}$major'
14448
    dynamic_linker='NetBSD ld.elf_so'
14449
  fi
14450
  shlibpath_var=LD_LIBRARY_PATH
14451
  shlibpath_overrides_runpath=yes
14452
  hardcode_into_libs=yes
14453
  ;;
14454
 
14455
newsos6)
14456
  version_type=linux
14457
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458
  shlibpath_var=LD_LIBRARY_PATH
14459
  shlibpath_overrides_runpath=yes
14460
  ;;
14461
 
14462
*nto* | *qnx*)
14463
  version_type=qnx
14464
  need_lib_prefix=no
14465
  need_version=no
14466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467
  soname_spec='${libname}${release}${shared_ext}$major'
14468
  shlibpath_var=LD_LIBRARY_PATH
14469
  shlibpath_overrides_runpath=no
14470
  hardcode_into_libs=yes
14471
  dynamic_linker='ldqnx.so'
14472
  ;;
14473
 
14474
openbsd*)
14475
  version_type=sunos
14476
  sys_lib_dlsearch_path_spec="/usr/lib"
14477
  need_lib_prefix=no
14478
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14479
  case $host_os in
14480
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14481
    *)				need_version=no  ;;
14482
  esac
14483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14484
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14485
  shlibpath_var=LD_LIBRARY_PATH
14486
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14487
    case $host_os in
14488
      openbsd2.[89] | openbsd2.[89].*)
14489
	shlibpath_overrides_runpath=no
14490
	;;
14491
      *)
14492
	shlibpath_overrides_runpath=yes
14493
	;;
14494
      esac
14495
  else
14496
    shlibpath_overrides_runpath=yes
14497
  fi
14498
  ;;
14499
 
14500
os2*)
14501
  libname_spec='$name'
14502
  shrext_cmds=".dll"
14503
  need_lib_prefix=no
14504
  library_names_spec='$libname${shared_ext} $libname.a'
14505
  dynamic_linker='OS/2 ld.exe'
14506
  shlibpath_var=LIBPATH
14507
  ;;
14508
 
14509
osf3* | osf4* | osf5*)
14510
  version_type=osf
14511
  need_lib_prefix=no
14512
  need_version=no
14513
  soname_spec='${libname}${release}${shared_ext}$major'
14514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515
  shlibpath_var=LD_LIBRARY_PATH
14516
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14517
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14518
  ;;
14519
 
14520
rdos*)
14521
  dynamic_linker=no
14522
  ;;
14523
 
14524
solaris*)
14525
  version_type=linux
14526
  need_lib_prefix=no
14527
  need_version=no
14528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529
  soname_spec='${libname}${release}${shared_ext}$major'
14530
  shlibpath_var=LD_LIBRARY_PATH
14531
  shlibpath_overrides_runpath=yes
14532
  hardcode_into_libs=yes
14533
  # ldd complains unless libraries are executable
14534
  postinstall_cmds='chmod +x $lib'
14535
  ;;
14536
 
14537
sunos4*)
14538
  version_type=sunos
14539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14540
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14541
  shlibpath_var=LD_LIBRARY_PATH
14542
  shlibpath_overrides_runpath=yes
14543
  if test "$with_gnu_ld" = yes; then
14544
    need_lib_prefix=no
14545
  fi
14546
  need_version=yes
14547
  ;;
14548
 
14549
sysv4 | sysv4.3*)
14550
  version_type=linux
14551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14552
  soname_spec='${libname}${release}${shared_ext}$major'
14553
  shlibpath_var=LD_LIBRARY_PATH
14554
  case $host_vendor in
14555
    sni)
14556
      shlibpath_overrides_runpath=no
14557
      need_lib_prefix=no
14558
      runpath_var=LD_RUN_PATH
14559
      ;;
14560
    siemens)
14561
      need_lib_prefix=no
14562
      ;;
14563
    motorola)
14564
      need_lib_prefix=no
14565
      need_version=no
14566
      shlibpath_overrides_runpath=no
14567
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14568
      ;;
14569
  esac
14570
  ;;
14571
 
14572
sysv4*MP*)
14573
  if test -d /usr/nec ;then
14574
    version_type=linux
14575
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14576
    soname_spec='$libname${shared_ext}.$major'
14577
    shlibpath_var=LD_LIBRARY_PATH
14578
  fi
14579
  ;;
14580
 
14581
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14582
  version_type=freebsd-elf
14583
  need_lib_prefix=no
14584
  need_version=no
14585
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14586
  soname_spec='${libname}${release}${shared_ext}$major'
14587
  shlibpath_var=LD_LIBRARY_PATH
14588
  shlibpath_overrides_runpath=yes
14589
  hardcode_into_libs=yes
14590
  if test "$with_gnu_ld" = yes; then
14591
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14592
  else
14593
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14594
    case $host_os in
14595
      sco3.2v5*)
14596
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14597
	;;
14598
    esac
14599
  fi
14600
  sys_lib_dlsearch_path_spec='/usr/lib'
14601
  ;;
14602
 
14603
tpf*)
14604
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14605
  version_type=linux
14606
  need_lib_prefix=no
14607
  need_version=no
14608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609
  shlibpath_var=LD_LIBRARY_PATH
14610
  shlibpath_overrides_runpath=no
14611
  hardcode_into_libs=yes
14612
  ;;
14613
 
14614
uts4*)
14615
  version_type=linux
14616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617
  soname_spec='${libname}${release}${shared_ext}$major'
14618
  shlibpath_var=LD_LIBRARY_PATH
14619
  ;;
14620
 
14621
*)
14622
  dynamic_linker=no
14623
  ;;
14624
esac
14625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14626
$as_echo "$dynamic_linker" >&6; }
14627
test "$dynamic_linker" = no && can_build_shared=no
14628
 
14629
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14630
if test "$GCC" = yes; then
14631
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14632
fi
14633
 
14634
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14635
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14636
fi
14637
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14638
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14639
fi
14640
 
14641
 
14642
 
14643
 
14644
 
14645
 
14646
 
14647
 
14648
 
14649
 
14650
 
14651
 
14652
 
14653
 
14654
 
14655
 
14656
 
14657
 
14658
 
14659
 
14660
 
14661
 
14662
 
14663
 
14664
 
14665
 
14666
 
14667
 
14668
 
14669
 
14670
 
14671
 
14672
 
14673
 
14674
 
14675
 
14676
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14677
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14678
hardcode_action_CXX=
14679
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14680
   test -n "$runpath_var_CXX" ||
14681
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14682
 
14683
  # We can hardcode non-existent directories.
14684
  if test "$hardcode_direct_CXX" != no &&
14685
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14686
     # have to relink, otherwise we might link with an installed library
14687
     # when we should be linking with a yet-to-be-installed one
14688
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14689
     test "$hardcode_minus_L_CXX" != no; then
14690
    # Linking always hardcodes the temporary library directory.
14691
    hardcode_action_CXX=relink
14692
  else
14693
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14694
    hardcode_action_CXX=immediate
14695
  fi
14696
else
14697
  # We cannot hardcode anything, or else we can only hardcode existing
14698
  # directories.
14699
  hardcode_action_CXX=unsupported
14700
fi
14701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14702
$as_echo "$hardcode_action_CXX" >&6; }
14703
 
14704
if test "$hardcode_action_CXX" = relink ||
14705
   test "$inherit_rpath_CXX" = yes; then
14706
  # Fast installation is not supported
14707
  enable_fast_install=no
14708
elif test "$shlibpath_overrides_runpath" = yes ||
14709
     test "$enable_shared" = no; then
14710
  # Fast installation is not necessary
14711
  enable_fast_install=needless
14712
fi
14713
 
14714
 
14715
 
14716
 
14717
 
14718
 
14719
 
14720
  fi # test -n "$compiler"
14721
 
14722
  CC=$lt_save_CC
14723
  LDCXX=$LD
14724
  LD=$lt_save_LD
14725
  GCC=$lt_save_GCC
14726
  with_gnu_ld=$lt_save_with_gnu_ld
14727
  lt_cv_path_LDCXX=$lt_cv_path_LD
14728
  lt_cv_path_LD=$lt_save_path_LD
14729
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14730
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14731
fi # test "$_lt_caught_CXX_error" != yes
14732
 
14733
ac_ext=c
14734
ac_cpp='$CPP $CPPFLAGS'
14735
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14736
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14737
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14738
 
14739
 
14740
 
14741
 
14742
 
14743
 
14744
 
14745
 
14746
 
14747
 
14748
 
14749
 
14750
 
14751
        ac_config_commands="$ac_config_commands libtool"
14752
 
14753
 
14754
 
14755
 
14756
# Only expand once:
14757
 
14758
 
14759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14760
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14761
set x ${MAKE-make}
14762
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14763
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14764
  $as_echo_n "(cached) " >&6
14765
else
14766
  cat >conftest.make <<\_ACEOF
14767
SHELL = /bin/sh
14768
all:
14769
	@echo '@@@%%%=$(MAKE)=@@@%%%'
14770
_ACEOF
14771
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14772
case `${MAKE-make} -f conftest.make 2>/dev/null` in
14773
  *@@@%%%=?*=@@@%%%*)
14774
    eval ac_cv_prog_make_${ac_make}_set=yes;;
14775
  *)
14776
    eval ac_cv_prog_make_${ac_make}_set=no;;
14777
esac
14778
rm -f conftest.make
14779
fi
14780
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14781
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14782
$as_echo "yes" >&6; }
14783
  SET_MAKE=
14784
else
14785
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786
$as_echo "no" >&6; }
14787
  SET_MAKE="MAKE=${MAKE-make}"
14788
fi
14789
 
14790
for ac_prog in 'bison -y' byacc
14791
do
14792
  # Extract the first word of "$ac_prog", so it can be a program name with args.
14793
set dummy $ac_prog; ac_word=$2
14794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14795
$as_echo_n "checking for $ac_word... " >&6; }
14796
if test "${ac_cv_prog_YACC+set}" = set; then :
14797
  $as_echo_n "(cached) " >&6
14798
else
14799
  if test -n "$YACC"; then
14800
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
14801
else
14802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14803
for as_dir in $PATH
14804
do
14805
  IFS=$as_save_IFS
14806
  test -z "$as_dir" && as_dir=.
14807
    for ac_exec_ext in '' $ac_executable_extensions; do
14808
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14809
    ac_cv_prog_YACC="$ac_prog"
14810
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14811
    break 2
14812
  fi
14813
done
14814
  done
14815
IFS=$as_save_IFS
14816
 
14817
fi
14818
fi
14819
YACC=$ac_cv_prog_YACC
14820
if test -n "$YACC"; then
14821
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14822
$as_echo "$YACC" >&6; }
14823
else
14824
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825
$as_echo "no" >&6; }
14826
fi
14827
 
14828
 
14829
  test -n "$YACC" && break
14830
done
14831
test -n "$YACC" || YACC="yacc"
14832
 
14833
for ac_prog in flex lex
14834
do
14835
  # Extract the first word of "$ac_prog", so it can be a program name with args.
14836
set dummy $ac_prog; ac_word=$2
14837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838
$as_echo_n "checking for $ac_word... " >&6; }
14839
if test "${ac_cv_prog_LEX+set}" = set; then :
14840
  $as_echo_n "(cached) " >&6
14841
else
14842
  if test -n "$LEX"; then
14843
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
14844
else
14845
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846
for as_dir in $PATH
14847
do
14848
  IFS=$as_save_IFS
14849
  test -z "$as_dir" && as_dir=.
14850
    for ac_exec_ext in '' $ac_executable_extensions; do
14851
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14852
    ac_cv_prog_LEX="$ac_prog"
14853
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14854
    break 2
14855
  fi
14856
done
14857
  done
14858
IFS=$as_save_IFS
14859
 
14860
fi
14861
fi
14862
LEX=$ac_cv_prog_LEX
14863
if test -n "$LEX"; then
14864
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14865
$as_echo "$LEX" >&6; }
14866
else
14867
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868
$as_echo "no" >&6; }
14869
fi
14870
 
14871
 
14872
  test -n "$LEX" && break
14873
done
14874
test -n "$LEX" || LEX=":"
14875
 
14876
if test "x$LEX" != "x:"; then
14877
  cat >conftest.l <<_ACEOF
14878
%%
14879
a { ECHO; }
14880
b { REJECT; }
14881
c { yymore (); }
14882
d { yyless (1); }
14883
e { yyless (input () != 0); }
14884
f { unput (yytext[0]); }
14885
. { BEGIN INITIAL; }
14886
%%
14887
#ifdef YYTEXT_POINTER
14888
extern char *yytext;
14889
#endif
14890
int
14891
main (void)
14892
{
14893
  return ! yylex () + ! yywrap ();
14894
}
14895
_ACEOF
14896
{ { ac_try="$LEX conftest.l"
14897
case "(($ac_try" in
14898
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899
  *) ac_try_echo=$ac_try;;
14900
esac
14901
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14902
$as_echo "$ac_try_echo"; } >&5
14903
  (eval "$LEX conftest.l") 2>&5
14904
  ac_status=$?
14905
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906
  test $ac_status = 0; }
14907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14908
$as_echo_n "checking lex output file root... " >&6; }
14909
if test "${ac_cv_prog_lex_root+set}" = set; then :
14910
  $as_echo_n "(cached) " >&6
14911
else
14912
 
14913
if test -f lex.yy.c; then
14914
  ac_cv_prog_lex_root=lex.yy
14915
elif test -f lexyy.c; then
14916
  ac_cv_prog_lex_root=lexyy
14917
else
14918
  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
14919
fi
14920
fi
14921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14922
$as_echo "$ac_cv_prog_lex_root" >&6; }
14923
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14924
 
14925
if test -z "${LEXLIB+set}"; then
14926
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14927
$as_echo_n "checking lex library... " >&6; }
14928
if test "${ac_cv_lib_lex+set}" = set; then :
14929
  $as_echo_n "(cached) " >&6
14930
else
14931
 
14932
    ac_save_LIBS=$LIBS
14933
    ac_cv_lib_lex='none needed'
14934
    for ac_lib in '' -lfl -ll; do
14935
      LIBS="$ac_lib $ac_save_LIBS"
14936
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937
/* end confdefs.h.  */
14938
`cat $LEX_OUTPUT_ROOT.c`
14939
_ACEOF
14940
if ac_fn_c_try_link "$LINENO"; then :
14941
  ac_cv_lib_lex=$ac_lib
14942
fi
14943
rm -f core conftest.err conftest.$ac_objext \
14944
    conftest$ac_exeext conftest.$ac_ext
14945
      test "$ac_cv_lib_lex" != 'none needed' && break
14946
    done
14947
    LIBS=$ac_save_LIBS
14948
 
14949
fi
14950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14951
$as_echo "$ac_cv_lib_lex" >&6; }
14952
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14953
fi
14954
 
14955
 
14956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14957
$as_echo_n "checking whether yytext is a pointer... " >&6; }
14958
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
14959
  $as_echo_n "(cached) " >&6
14960
else
14961
  # POSIX says lex can declare yytext either as a pointer or an array; the
14962
# default is implementation-dependent.  Figure out which it is, since
14963
# not all implementations provide the %pointer and %array declarations.
14964
ac_cv_prog_lex_yytext_pointer=no
14965
ac_save_LIBS=$LIBS
14966
LIBS="$LEXLIB $ac_save_LIBS"
14967
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968
/* end confdefs.h.  */
14969
#define YYTEXT_POINTER 1
14970
`cat $LEX_OUTPUT_ROOT.c`
14971
_ACEOF
14972
if ac_fn_c_try_link "$LINENO"; then :
14973
  ac_cv_prog_lex_yytext_pointer=yes
14974
fi
14975
rm -f core conftest.err conftest.$ac_objext \
14976
    conftest$ac_exeext conftest.$ac_ext
14977
LIBS=$ac_save_LIBS
14978
 
14979
fi
14980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14981
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14982
if test $ac_cv_prog_lex_yytext_pointer = yes; then
14983
 
14984
$as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h
14985
 
14986
fi
14987
rm -f conftest.l $LEX_OUTPUT_ROOT.c
14988
 
14989
fi
14990
if test "$LEX" = :; then
14991
  LEX=${am_missing_run}flex
14992
fi
14993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14994
$as_echo_n "checking whether ln -s works... " >&6; }
14995
LN_S=$as_ln_s
14996
if test "$LN_S" = "ln -s"; then
14997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14998
$as_echo "yes" >&6; }
14999
else
15000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15001
$as_echo "no, using $LN_S" >&6; }
15002
fi
15003
 
15004
 
15005
 
15006
ac_ext=cpp
15007
ac_cpp='$CXXCPP $CPPFLAGS'
15008
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15011
 
15012
 
15013
 
15014
@%:@ Check whether --with-boost was given.
15015
if test "${with_boost+set}" = set; then :
15016
  withval=$with_boost; 
15017
    if test "$withval" = "no"; then
15018
		want_boost="no"
15019
    elif test "$withval" = "yes"; then
15020
        want_boost="yes"
15021
        ac_boost_path=""
15022
    else
15023
	    want_boost="yes"
15024
        ac_boost_path="$withval"
15025
	fi
15026
 
15027
else
15028
  want_boost="yes"
15029
fi
15030
 
15031
 
15032
if test "x$want_boost" = "xyes"; then
15033
	boost_lib_version_req=1.33.1
15034
	boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
15035
	boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
15036
	boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
15037
	boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15038
	if test "x$boost_lib_version_req_sub_minor" = "x" ; then
15039
		boost_lib_version_req_sub_minor="0"
15040
    	fi
15041
	WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
15042
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
15043
$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
15044
	succeeded=no
15045
 
15046
				if test "$ac_boost_path" != ""; then
15047
		BOOST_LDFLAGS="-L$ac_boost_path/lib"
15048
		BOOST_CPPFLAGS="-I$ac_boost_path/include"
15049
	else
15050
		for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
15051
			if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
15052
				BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
15053
				BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
15054
				break;
15055
			fi
15056
		done
15057
	fi
15058
 
15059
	CPPFLAGS_SAVED="$CPPFLAGS"
15060
	CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15061
	export CPPFLAGS
15062
 
15063
	LDFLAGS_SAVED="$LDFLAGS"
15064
	LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15065
	export LDFLAGS
15066
 
15067
	ac_ext=cpp
15068
ac_cpp='$CXXCPP $CPPFLAGS'
15069
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15070
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15071
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15072
 
15073
     	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074
/* end confdefs.h.  */
15075
 
15076
	@%:@include <boost/version.hpp>
15077
 
15078
int
15079
main ()
15080
{
15081
 
15082
	#if BOOST_VERSION >= $WANT_BOOST_VERSION
15083
	// Everything is okay
15084
	#else
15085
	#  error Boost version is too old
15086
	#endif
15087
 
15088
  ;
15089
  return 0;
15090
}
15091
_ACEOF
15092
if ac_fn_cxx_try_compile "$LINENO"; then :
15093
 
15094
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15095
$as_echo "yes" >&6; }
15096
	succeeded=yes
15097
	found_system=yes
15098
 
15099
fi
15100
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101
	ac_ext=cpp
15102
ac_cpp='$CXXCPP $CPPFLAGS'
15103
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15104
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15105
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15106
 
15107
 
15108
 
15109
 
15110
			if test "x$succeeded" != "xyes"; then
15111
		_version=0
15112
		if test "$ac_boost_path" != ""; then
15113
               		BOOST_LDFLAGS="-L$ac_boost_path/lib"
15114
			if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15115
				for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15116
					_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15117
					V_CHECK=`expr $_version_tmp \> $_version`
15118
					if test "$V_CHECK" = "1" ; then
15119
						_version=$_version_tmp
15120
					fi
15121
					VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15122
					BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
15123
				done
15124
			fi
15125
		else
15126
			for ac_boost_path in /usr /usr/local /opt /opt/local ; do
15127
				if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15128
					for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15129
						_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15130
						V_CHECK=`expr $_version_tmp \> $_version`
15131
						if test "$V_CHECK" = "1" ; then
15132
							_version=$_version_tmp
15133
	               					best_path=$ac_boost_path
15134
						fi
15135
					done
15136
				fi
15137
			done
15138
 
15139
			VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15140
			BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
15141
			BOOST_LDFLAGS="-L$best_path/lib"
15142
 
15143
	    		if test "x$BOOST_ROOT" != "x"; then
15144
				if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
15145
					version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
15146
					stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
15147
			        	stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
15148
					V_CHECK=`expr $stage_version_shorten \>\= $_version`
15149
				        if test "$V_CHECK" = "1" ; then
15150
						{ $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
15151
$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
15152
						BOOST_CPPFLAGS="-I$BOOST_ROOT"
15153
						BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
15154
					fi
15155
				fi
15156
	    		fi
15157
		fi
15158
 
15159
		CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15160
		export CPPFLAGS
15161
		LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15162
		export LDFLAGS
15163
 
15164
		ac_ext=cpp
15165
ac_cpp='$CXXCPP $CPPFLAGS'
15166
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15167
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15168
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15169
 
15170
	     	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171
/* end confdefs.h.  */
15172
 
15173
		@%:@include <boost/version.hpp>
15174
 
15175
int
15176
main ()
15177
{
15178
 
15179
		#if BOOST_VERSION >= $WANT_BOOST_VERSION
15180
		// Everything is okay
15181
		#else
15182
		#  error Boost version is too old
15183
		#endif
15184
 
15185
  ;
15186
  return 0;
15187
}
15188
_ACEOF
15189
if ac_fn_cxx_try_compile "$LINENO"; then :
15190
 
15191
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15192
$as_echo "yes" >&6; }
15193
		succeeded=yes
15194
		found_system=yes
15195
 
15196
fi
15197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198
		ac_ext=cpp
15199
ac_cpp='$CXXCPP $CPPFLAGS'
15200
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15201
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15202
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15203
 
15204
	fi
15205
 
15206
	if test "$succeeded" != "yes" ; then
15207
		if test "$_version" = "0" ; then
15208
			as_fn_error "We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." "$LINENO" 5
15209
		else
15210
			{ $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
15211
$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
15212
		fi
15213
	else
15214
 
15215
 
15216
 
15217
$as_echo "@%:@define HAVE_BOOST /**/" >>confdefs.h
15218
 
15219
	fi
15220
 
15221
        CPPFLAGS="$CPPFLAGS_SAVED"
15222
       	LDFLAGS="$LDFLAGS_SAVED"
15223
fi
15224
 
15225
 
15226
 
15227
 
15228
 
15229
 
15230
@%:@ Check whether --with-libevent was given.
15231
if test "${with_libevent+set}" = set; then :
15232
  withval=$with_libevent; 
15233
                       if test "x$withval" = "xno"; then
15234
                         want_libevent="no"
15235
                       elif test "x$withval" = "xyes"; then
15236
                         want_libevent="yes"
15237
                         ax_libevent_path=""
15238
                       else
15239
                         want_libevent="yes"
15240
                         ax_libevent_path="$withval"
15241
                       fi
15242
 
15243
else
15244
   want_libevent="yes" ; ax_libevent_path="" 
15245
fi
15246
 
15247
 
15248
 
15249
          if test "$want_libevent" = "yes"; then
15250
            WANT_LIBEVENT_VERSION=1.0
15251
 
15252
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent >= $WANT_LIBEVENT_VERSION" >&5
15253
$as_echo_n "checking for libevent >= $WANT_LIBEVENT_VERSION... " >&6; }
15254
 
15255
            # Run tests.
15256
            if test -n "$ax_libevent_path"; then
15257
 
15258
          # Save our flags.
15259
          CPPFLAGS_SAVED="$CPPFLAGS"
15260
          LDFLAGS_SAVED="$LDFLAGS"
15261
          LIBS_SAVED="$LIBS"
15262
          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
15263
 
15264
          # Set our flags if we are checking a specific directory.
15265
          if test -n "$ax_libevent_path" ; then
15266
            LIBEVENT_CPPFLAGS="-I$ax_libevent_path/include"
15267
            LIBEVENT_LDFLAGS="-L$ax_libevent_path/lib"
15268
            LD_LIBRARY_PATH="$ax_libevent_path/lib:$LD_LIBRARY_PATH"
15269
          else
15270
            LIBEVENT_CPPFLAGS=""
15271
            LIBEVENT_LDFLAGS=""
15272
          fi
15273
 
15274
          # Required flag for libevent.
15275
          LIBEVENT_LIBS="-levent"
15276
 
15277
          # Prepare the environment for compilation.
15278
          CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
15279
          LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
15280
          LIBS="$LIBS $LIBEVENT_LIBS"
15281
          export CPPFLAGS
15282
          export LDFLAGS
15283
          export LIBS
15284
          export LD_LIBRARY_PATH
15285
 
15286
          success=no
15287
 
15288
          # Compile, link, and run the program.  This checks:
15289
          # - event.h is available for including.
15290
          # - event_get_version() is available for linking.
15291
          # - The event version string is lexicographically greater
15292
          #   than the required version.
15293
          ac_ext=c
15294
ac_cpp='$CPP $CPPFLAGS'
15295
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15296
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15297
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15298
 
15299
                              if test "$cross_compiling" = yes; then :
15300
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15301
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15302
as_fn_error "cannot run test program while cross compiling
15303
See \`config.log' for more details." "$LINENO" 5; }
15304
else
15305
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306
/* end confdefs.h.  */
15307
 
15308
          #include <sys/types.h>
15309
          #include <event.h>
15310
 
15311
int
15312
main ()
15313
{
15314
 
15315
          const char* lib_version = event_get_version();
15316
          const char* wnt_version = "$WANT_LIBEVENT_VERSION";
15317
          for (;;) {
15318
            /* If we reached the end of the want version.  We have it. */
15319
            if (*wnt_version == '\0' || *wnt_version == '-') {
15320
              return 0;
15321
            }
15322
            /* If the want version continues but the lib version does not, */
15323
            /* we are missing a letter.  We don't have it. */
15324
            if (*lib_version == '\0' || *lib_version == '-') {
15325
              return 1;
15326
            }
15327
            /* In the 1.4 version numbering style, if there are more digits */
15328
            /* in one version than the other, that one is higher. */
15329
            int lib_digits;
15330
            for (lib_digits = 0;
15331
                lib_version[lib_digits] >= '0' &&
15332
                lib_version[lib_digits] <= '9';
15333
                lib_digits++)
15334
              ;
15335
            int wnt_digits;
15336
            for (wnt_digits = 0;
15337
                wnt_version[wnt_digits] >= '0' &&
15338
                wnt_version[wnt_digits] <= '9';
15339
                wnt_digits++)
15340
              ;
15341
            if (lib_digits > wnt_digits) {
15342
              return 0;
15343
            }
15344
            if (lib_digits < wnt_digits) {
15345
              return 1;
15346
            }
15347
            /* If we have greater than what we want.  We have it. */
15348
            if (*lib_version > *wnt_version) {
15349
              return 0;
15350
            }
15351
            /* If we have less, we don't. */
15352
            if (*lib_version < *wnt_version) {
15353
              return 1;
15354
            }
15355
            lib_version++;
15356
            wnt_version++;
15357
          }
15358
          return 0;
15359
 
15360
  ;
15361
  return 0;
15362
}
15363
_ACEOF
15364
if ac_fn_c_try_run "$LINENO"; then :
15365
 
15366
          success=yes
15367
 
15368
fi
15369
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15370
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15371
fi
15372
 
15373
          ac_ext=cpp
15374
ac_cpp='$CXXCPP $CPPFLAGS'
15375
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15376
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15377
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15378
 
15379
 
15380
          # Restore flags.
15381
          CPPFLAGS="$CPPFLAGS_SAVED"
15382
          LDFLAGS="$LDFLAGS_SAVED"
15383
          LIBS="$LIBS_SAVED"
15384
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
15385
 
15386
            else
15387
              for ax_libevent_path in "" /usr /usr/local /opt /opt/local /opt/libevent "$LIBEVENT_ROOT" ; do
15388
 
15389
          # Save our flags.
15390
          CPPFLAGS_SAVED="$CPPFLAGS"
15391
          LDFLAGS_SAVED="$LDFLAGS"
15392
          LIBS_SAVED="$LIBS"
15393
          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
15394
 
15395
          # Set our flags if we are checking a specific directory.
15396
          if test -n "$ax_libevent_path" ; then
15397
            LIBEVENT_CPPFLAGS="-I$ax_libevent_path/include"
15398
            LIBEVENT_LDFLAGS="-L$ax_libevent_path/lib"
15399
            LD_LIBRARY_PATH="$ax_libevent_path/lib:$LD_LIBRARY_PATH"
15400
          else
15401
            LIBEVENT_CPPFLAGS=""
15402
            LIBEVENT_LDFLAGS=""
15403
          fi
15404
 
15405
          # Required flag for libevent.
15406
          LIBEVENT_LIBS="-levent"
15407
 
15408
          # Prepare the environment for compilation.
15409
          CPPFLAGS="$CPPFLAGS $LIBEVENT_CPPFLAGS"
15410
          LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
15411
          LIBS="$LIBS $LIBEVENT_LIBS"
15412
          export CPPFLAGS
15413
          export LDFLAGS
15414
          export LIBS
15415
          export LD_LIBRARY_PATH
15416
 
15417
          success=no
15418
 
15419
          # Compile, link, and run the program.  This checks:
15420
          # - event.h is available for including.
15421
          # - event_get_version() is available for linking.
15422
          # - The event version string is lexicographically greater
15423
          #   than the required version.
15424
          ac_ext=c
15425
ac_cpp='$CPP $CPPFLAGS'
15426
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15427
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15428
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15429
 
15430
                              if test "$cross_compiling" = yes; then :
15431
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15432
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15433
as_fn_error "cannot run test program while cross compiling
15434
See \`config.log' for more details." "$LINENO" 5; }
15435
else
15436
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437
/* end confdefs.h.  */
15438
 
15439
          #include <sys/types.h>
15440
          #include <event.h>
15441
 
15442
int
15443
main ()
15444
{
15445
 
15446
          const char* lib_version = event_get_version();
15447
          const char* wnt_version = "$WANT_LIBEVENT_VERSION";
15448
          for (;;) {
15449
            /* If we reached the end of the want version.  We have it. */
15450
            if (*wnt_version == '\0' || *wnt_version == '-') {
15451
              return 0;
15452
            }
15453
            /* If the want version continues but the lib version does not, */
15454
            /* we are missing a letter.  We don't have it. */
15455
            if (*lib_version == '\0' || *lib_version == '-') {
15456
              return 1;
15457
            }
15458
            /* In the 1.4 version numbering style, if there are more digits */
15459
            /* in one version than the other, that one is higher. */
15460
            int lib_digits;
15461
            for (lib_digits = 0;
15462
                lib_version[lib_digits] >= '0' &&
15463
                lib_version[lib_digits] <= '9';
15464
                lib_digits++)
15465
              ;
15466
            int wnt_digits;
15467
            for (wnt_digits = 0;
15468
                wnt_version[wnt_digits] >= '0' &&
15469
                wnt_version[wnt_digits] <= '9';
15470
                wnt_digits++)
15471
              ;
15472
            if (lib_digits > wnt_digits) {
15473
              return 0;
15474
            }
15475
            if (lib_digits < wnt_digits) {
15476
              return 1;
15477
            }
15478
            /* If we have greater than what we want.  We have it. */
15479
            if (*lib_version > *wnt_version) {
15480
              return 0;
15481
            }
15482
            /* If we have less, we don't. */
15483
            if (*lib_version < *wnt_version) {
15484
              return 1;
15485
            }
15486
            lib_version++;
15487
            wnt_version++;
15488
          }
15489
          return 0;
15490
 
15491
  ;
15492
  return 0;
15493
}
15494
_ACEOF
15495
if ac_fn_c_try_run "$LINENO"; then :
15496
 
15497
          success=yes
15498
 
15499
fi
15500
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15501
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15502
fi
15503
 
15504
          ac_ext=cpp
15505
ac_cpp='$CXXCPP $CPPFLAGS'
15506
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15507
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15508
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15509
 
15510
 
15511
          # Restore flags.
15512
          CPPFLAGS="$CPPFLAGS_SAVED"
15513
          LDFLAGS="$LDFLAGS_SAVED"
15514
          LIBS="$LIBS_SAVED"
15515
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
15516
 
15517
                if test "$success" = "yes"; then
15518
                  break;
15519
                fi
15520
              done
15521
            fi
15522
 
15523
            if test "$success" != "yes" ; then
15524
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15525
$as_echo "no" >&6; }
15526
              LIBEVENT_CPPFLAGS=""
15527
              LIBEVENT_LDFLAGS=""
15528
              LIBEVENT_LIBS=""
15529
            else
15530
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15531
$as_echo "yes" >&6; }
15532
 
15533
$as_echo "@%:@define HAVE_LIBEVENT /**/" >>confdefs.h
15534
 
15535
              ax_have_libevent_1_0="yes"
15536
            fi
15537
 
15538
            ax_have_libevent="$success"
15539
 
15540
 
15541
 
15542
 
15543
          fi
15544
 
15545
 
15546
 if test "$success" = "yes"; then
15547
  AMX_HAVE_LIBEVENT_TRUE=
15548
  AMX_HAVE_LIBEVENT_FALSE='#'
15549
else
15550
  AMX_HAVE_LIBEVENT_TRUE='#'
15551
  AMX_HAVE_LIBEVENT_FALSE=
15552
fi
15553
 
15554
 
15555
 
15556
 
15557
 
15558
@%:@ Check whether --with-zlib was given.
15559
if test "${with_zlib+set}" = set; then :
15560
  withval=$with_zlib; 
15561
                       if test "x$withval" = "xno"; then
15562
                         want_zlib="no"
15563
                       elif test "x$withval" = "xyes"; then
15564
                         want_zlib="yes"
15565
                         ax_zlib_path=""
15566
                       else
15567
                         want_zlib="yes"
15568
                         ax_zlib_path="$withval"
15569
                       fi
15570
 
15571
else
15572
  want_zlib="yes" ; ax_zlib_path="" 
15573
fi
15574
 
15575
 
15576
 
15577
          if test "$want_zlib" = "yes"; then
15578
            # Parse out the version.
15579
            zlib_version_req=1.2.3
15580
            zlib_version_req_major=`expr $zlib_version_req : '\([0-9]*\)'`
15581
            zlib_version_req_minor=`expr $zlib_version_req : '[0-9]*\.\([0-9]*\)'`
15582
            zlib_version_req_patch=`expr $zlib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15583
            if test -z "$zlib_version_req_patch" ; then
15584
              zlib_version_req_patch="0"
15585
            fi
15586
            WANT_ZLIB_VERSION=`expr $zlib_version_req_major \* 1000 \+  $zlib_version_req_minor \* 100 \+ $zlib_version_req_patch \* 10`
15587
 
15588
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= $zlib_version_req" >&5
15589
$as_echo_n "checking for zlib >= $zlib_version_req... " >&6; }
15590
 
15591
            # Run tests.
15592
            if test -n "$ax_zlib_path"; then
15593
 
15594
          # Save our flags.
15595
          CPPFLAGS_SAVED="$CPPFLAGS"
15596
          LDFLAGS_SAVED="$LDFLAGS"
15597
          LIBS_SAVED="$LIBS"
15598
          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
15599
 
15600
          # Set our flags if we are checking a specific directory.
15601
          if test -n "$ax_zlib_path" ; then
15602
            ZLIB_CPPFLAGS="-I$ax_zlib_path/include"
15603
            ZLIB_LDFLAGS="-L$ax_zlib_path/lib"
15604
            LD_LIBRARY_PATH="$ax_zlib_path/lib:$LD_LIBRARY_PATH"
15605
          else
15606
            ZLIB_CPPFLAGS=""
15607
            ZLIB_LDFLAGS=""
15608
          fi
15609
 
15610
          # Required flag for zlib.
15611
          ZLIB_LIBS="-lz"
15612
 
15613
          # Prepare the environment for compilation.
15614
          CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
15615
          LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
15616
          LIBS="$LIBS $ZLIB_LIBS"
15617
          export CPPFLAGS
15618
          export LDFLAGS
15619
          export LIBS
15620
          export LD_LIBRARY_PATH
15621
 
15622
          success=no
15623
 
15624
          # Compile, link, and run the program.  This checks:
15625
          # - zlib.h is available for including.
15626
          # - zlibVersion() is available for linking.
15627
          # - ZLIB_VERNUM is greater than or equal to the desired version.
15628
          # - ZLIB_VERSION (defined in zlib.h) matches zlibVersion()
15629
          #   (defined in the library).
15630
          ac_ext=c
15631
ac_cpp='$CPP $CPPFLAGS'
15632
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15633
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15634
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15635
 
15636
                    if test "$cross_compiling" = yes; then :
15637
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15638
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15639
as_fn_error "cannot run test program while cross compiling
15640
See \`config.log' for more details." "$LINENO" 5; }
15641
else
15642
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643
/* end confdefs.h.  */
15644
 
15645
          #include <zlib.h>
15646
          #if ZLIB_VERNUM >= 0x$WANT_ZLIB_VERSION
15647
          #else
15648
          # error zlib is too old
15649
          #endif
15650
 
15651
int
15652
main ()
15653
{
15654
 
15655
          const char* lib_version = zlibVersion();
15656
          const char* hdr_version = ZLIB_VERSION;
15657
          for (;;) {
15658
            if (*lib_version != *hdr_version) {
15659
              /* If this happens, your zlib header doesn't match your zlib */
15660
              /* library.  That is really bad. */
15661
              return 1;
15662
            }
15663
            if (*lib_version == '\0') {
15664
              break;
15665
            }
15666
            lib_version++;
15667
            hdr_version++;
15668
          }
15669
          return 0;
15670
 
15671
  ;
15672
  return 0;
15673
}
15674
_ACEOF
15675
if ac_fn_c_try_run "$LINENO"; then :
15676
 
15677
          success=yes
15678
 
15679
fi
15680
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15681
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15682
fi
15683
 
15684
          ac_ext=cpp
15685
ac_cpp='$CXXCPP $CPPFLAGS'
15686
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15687
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15688
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15689
 
15690
 
15691
          # Restore flags.
15692
          CPPFLAGS="$CPPFLAGS_SAVED"
15693
          LDFLAGS="$LDFLAGS_SAVED"
15694
          LIBS="$LIBS_SAVED"
15695
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
15696
 
15697
            else
15698
              for ax_zlib_path in "" /usr /usr/local /opt /opt/zlib "$ZLIB_ROOT" ; do
15699
 
15700
          # Save our flags.
15701
          CPPFLAGS_SAVED="$CPPFLAGS"
15702
          LDFLAGS_SAVED="$LDFLAGS"
15703
          LIBS_SAVED="$LIBS"
15704
          LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
15705
 
15706
          # Set our flags if we are checking a specific directory.
15707
          if test -n "$ax_zlib_path" ; then
15708
            ZLIB_CPPFLAGS="-I$ax_zlib_path/include"
15709
            ZLIB_LDFLAGS="-L$ax_zlib_path/lib"
15710
            LD_LIBRARY_PATH="$ax_zlib_path/lib:$LD_LIBRARY_PATH"
15711
          else
15712
            ZLIB_CPPFLAGS=""
15713
            ZLIB_LDFLAGS=""
15714
          fi
15715
 
15716
          # Required flag for zlib.
15717
          ZLIB_LIBS="-lz"
15718
 
15719
          # Prepare the environment for compilation.
15720
          CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
15721
          LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
15722
          LIBS="$LIBS $ZLIB_LIBS"
15723
          export CPPFLAGS
15724
          export LDFLAGS
15725
          export LIBS
15726
          export LD_LIBRARY_PATH
15727
 
15728
          success=no
15729
 
15730
          # Compile, link, and run the program.  This checks:
15731
          # - zlib.h is available for including.
15732
          # - zlibVersion() is available for linking.
15733
          # - ZLIB_VERNUM is greater than or equal to the desired version.
15734
          # - ZLIB_VERSION (defined in zlib.h) matches zlibVersion()
15735
          #   (defined in the library).
15736
          ac_ext=c
15737
ac_cpp='$CPP $CPPFLAGS'
15738
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15739
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15740
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15741
 
15742
                    if test "$cross_compiling" = yes; then :
15743
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15744
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15745
as_fn_error "cannot run test program while cross compiling
15746
See \`config.log' for more details." "$LINENO" 5; }
15747
else
15748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749
/* end confdefs.h.  */
15750
 
15751
          #include <zlib.h>
15752
          #if ZLIB_VERNUM >= 0x$WANT_ZLIB_VERSION
15753
          #else
15754
          # error zlib is too old
15755
          #endif
15756
 
15757
int
15758
main ()
15759
{
15760
 
15761
          const char* lib_version = zlibVersion();
15762
          const char* hdr_version = ZLIB_VERSION;
15763
          for (;;) {
15764
            if (*lib_version != *hdr_version) {
15765
              /* If this happens, your zlib header doesn't match your zlib */
15766
              /* library.  That is really bad. */
15767
              return 1;
15768
            }
15769
            if (*lib_version == '\0') {
15770
              break;
15771
            }
15772
            lib_version++;
15773
            hdr_version++;
15774
          }
15775
          return 0;
15776
 
15777
  ;
15778
  return 0;
15779
}
15780
_ACEOF
15781
if ac_fn_c_try_run "$LINENO"; then :
15782
 
15783
          success=yes
15784
 
15785
fi
15786
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15787
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15788
fi
15789
 
15790
          ac_ext=cpp
15791
ac_cpp='$CXXCPP $CPPFLAGS'
15792
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15793
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15794
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15795
 
15796
 
15797
          # Restore flags.
15798
          CPPFLAGS="$CPPFLAGS_SAVED"
15799
          LDFLAGS="$LDFLAGS_SAVED"
15800
          LIBS="$LIBS_SAVED"
15801
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
15802
 
15803
                if test "$success" = "yes"; then
15804
                  break;
15805
                fi
15806
              done
15807
            fi
15808
 
15809
            if test "$success" != "yes" ; then
15810
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811
$as_echo "no" >&6; }
15812
              ZLIB_CPPFLAGS=""
15813
              ZLIB_LDFLAGS=""
15814
              ZLIB_LIBS=""
15815
            else
15816
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15817
$as_echo "yes" >&6; }
15818
 
15819
$as_echo "@%:@define HAVE_ZLIB /**/" >>confdefs.h
15820
 
15821
            fi
15822
 
15823
            ax_have_zlib="$success"
15824
 
15825
 
15826
 
15827
 
15828
          fi
15829
 
15830
 
15831
 if test "$success" = "yes"; then
15832
  AMX_HAVE_ZLIB_TRUE=
15833
  AMX_HAVE_ZLIB_FALSE='#'
15834
else
15835
  AMX_HAVE_ZLIB_TRUE='#'
15836
  AMX_HAVE_ZLIB_FALSE=
15837
fi
15838
 
15839
 
15840
 
15841
 
15842
@%:@ Check whether --with-csharp was given.
15843
if test "${with_csharp+set}" = set; then :
15844
  withval=$with_csharp; with_csharp="$withval"
15845
else
15846
  with_csharp=yes
15847
 
15848
fi
15849
 
15850
 
15851
if test "$with_csharp" = "yes";  then
15852
 
15853
 
15854
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15855
	if test -n "$ac_tool_prefix"; then
15856
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15857
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15859
$as_echo_n "checking for $ac_word... " >&6; }
15860
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15861
  $as_echo_n "(cached) " >&6
15862
else
15863
  case $PKG_CONFIG in
15864
  [\\/]* | ?:[\\/]*)
15865
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15866
  ;;
15867
  *)
15868
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15869
for as_dir in $PATH
15870
do
15871
  IFS=$as_save_IFS
15872
  test -z "$as_dir" && as_dir=.
15873
    for ac_exec_ext in '' $ac_executable_extensions; do
15874
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15875
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15876
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15877
    break 2
15878
  fi
15879
done
15880
  done
15881
IFS=$as_save_IFS
15882
 
15883
  ;;
15884
esac
15885
fi
15886
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15887
if test -n "$PKG_CONFIG"; then
15888
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15889
$as_echo "$PKG_CONFIG" >&6; }
15890
else
15891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15892
$as_echo "no" >&6; }
15893
fi
15894
 
15895
 
15896
fi
15897
if test -z "$ac_cv_path_PKG_CONFIG"; then
15898
  ac_pt_PKG_CONFIG=$PKG_CONFIG
15899
  # Extract the first word of "pkg-config", so it can be a program name with args.
15900
set dummy pkg-config; ac_word=$2
15901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15902
$as_echo_n "checking for $ac_word... " >&6; }
15903
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15904
  $as_echo_n "(cached) " >&6
15905
else
15906
  case $ac_pt_PKG_CONFIG in
15907
  [\\/]* | ?:[\\/]*)
15908
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15909
  ;;
15910
  *)
15911
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912
for as_dir in $PATH
15913
do
15914
  IFS=$as_save_IFS
15915
  test -z "$as_dir" && as_dir=.
15916
    for ac_exec_ext in '' $ac_executable_extensions; do
15917
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15918
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15919
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15920
    break 2
15921
  fi
15922
done
15923
  done
15924
IFS=$as_save_IFS
15925
 
15926
  ;;
15927
esac
15928
fi
15929
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15930
if test -n "$ac_pt_PKG_CONFIG"; then
15931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15932
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15933
else
15934
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935
$as_echo "no" >&6; }
15936
fi
15937
 
15938
  if test "x$ac_pt_PKG_CONFIG" = x; then
15939
    PKG_CONFIG=""
15940
  else
15941
    case $cross_compiling:$ac_tool_warned in
15942
yes:)
15943
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15944
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15945
ac_tool_warned=yes ;;
15946
esac
15947
    PKG_CONFIG=$ac_pt_PKG_CONFIG
15948
  fi
15949
else
15950
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15951
fi
15952
 
15953
fi
15954
if test -n "$PKG_CONFIG"; then
15955
	_pkg_min_version=0.9.0
15956
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15957
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15958
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15959
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15960
$as_echo "yes" >&6; }
15961
	else
15962
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15963
$as_echo "no" >&6; }
15964
		PKG_CONFIG=""
15965
	fi
15966
 
15967
fi
15968
 
15969
pkg_failed=no
15970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONO" >&5
15971
$as_echo_n "checking for MONO... " >&6; }
15972
 
15973
if test -n "$PKG_CONFIG"; then
15974
    if test -n "$MONO_CFLAGS"; then
15975
        pkg_cv_MONO_CFLAGS="$MONO_CFLAGS"
15976
    else
15977
        if test -n "$PKG_CONFIG" && \
15978
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= 2.0.0\""; } >&5
15979
  ($PKG_CONFIG --exists --print-errors "mono >= 2.0.0") 2>&5
15980
  ac_status=$?
15981
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15982
  test $ac_status = 0; }; then
15983
  pkg_cv_MONO_CFLAGS=`$PKG_CONFIG --cflags "mono >= 2.0.0" 2>/dev/null`
15984
else
15985
  pkg_failed=yes
15986
fi
15987
    fi
15988
else
15989
	pkg_failed=untried
15990
fi
15991
if test -n "$PKG_CONFIG"; then
15992
    if test -n "$MONO_LIBS"; then
15993
        pkg_cv_MONO_LIBS="$MONO_LIBS"
15994
    else
15995
        if test -n "$PKG_CONFIG" && \
15996
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= 2.0.0\""; } >&5
15997
  ($PKG_CONFIG --exists --print-errors "mono >= 2.0.0") 2>&5
15998
  ac_status=$?
15999
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16000
  test $ac_status = 0; }; then
16001
  pkg_cv_MONO_LIBS=`$PKG_CONFIG --libs "mono >= 2.0.0" 2>/dev/null`
16002
else
16003
  pkg_failed=yes
16004
fi
16005
    fi
16006
else
16007
	pkg_failed=untried
16008
fi
16009
 
16010
 
16011
 
16012
if test $pkg_failed = yes; then
16013
 
16014
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16015
        _pkg_short_errors_supported=yes
16016
else
16017
        _pkg_short_errors_supported=no
16018
fi
16019
        if test $_pkg_short_errors_supported = yes; then
16020
	        MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mono >= 2.0.0"`
16021
        else 
16022
	        MONO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mono >= 2.0.0"`
16023
        fi
16024
	# Put the nasty error message in config.log where it belongs
16025
	echo "$MONO_PKG_ERRORS" >&5
16026
 
16027
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16028
$as_echo "no" >&6; }
16029
                net_3_5=no
16030
elif test $pkg_failed = untried; then
16031
	net_3_5=no
16032
else
16033
	MONO_CFLAGS=$pkg_cv_MONO_CFLAGS
16034
	MONO_LIBS=$pkg_cv_MONO_LIBS
16035
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036
$as_echo "yes" >&6; }
16037
	net_3_5=yes
16038
fi
16039
 
16040
pkg_failed=no
16041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONO" >&5
16042
$as_echo_n "checking for MONO... " >&6; }
16043
 
16044
if test -n "$PKG_CONFIG"; then
16045
    if test -n "$MONO_CFLAGS"; then
16046
        pkg_cv_MONO_CFLAGS="$MONO_CFLAGS"
16047
    else
16048
        if test -n "$PKG_CONFIG" && \
16049
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= 1.2.4\""; } >&5
16050
  ($PKG_CONFIG --exists --print-errors "mono >= 1.2.4") 2>&5
16051
  ac_status=$?
16052
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16053
  test $ac_status = 0; }; then
16054
  pkg_cv_MONO_CFLAGS=`$PKG_CONFIG --cflags "mono >= 1.2.4" 2>/dev/null`
16055
else
16056
  pkg_failed=yes
16057
fi
16058
    fi
16059
else
16060
	pkg_failed=untried
16061
fi
16062
if test -n "$PKG_CONFIG"; then
16063
    if test -n "$MONO_LIBS"; then
16064
        pkg_cv_MONO_LIBS="$MONO_LIBS"
16065
    else
16066
        if test -n "$PKG_CONFIG" && \
16067
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= 1.2.4\""; } >&5
16068
  ($PKG_CONFIG --exists --print-errors "mono >= 1.2.4") 2>&5
16069
  ac_status=$?
16070
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16071
  test $ac_status = 0; }; then
16072
  pkg_cv_MONO_LIBS=`$PKG_CONFIG --libs "mono >= 1.2.4" 2>/dev/null`
16073
else
16074
  pkg_failed=yes
16075
fi
16076
    fi
16077
else
16078
	pkg_failed=untried
16079
fi
16080
 
16081
 
16082
 
16083
if test $pkg_failed = yes; then
16084
 
16085
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16086
        _pkg_short_errors_supported=yes
16087
else
16088
        _pkg_short_errors_supported=no
16089
fi
16090
        if test $_pkg_short_errors_supported = yes; then
16091
	        MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mono >= 1.2.4"`
16092
        else 
16093
	        MONO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mono >= 1.2.4"`
16094
        fi
16095
	# Put the nasty error message in config.log where it belongs
16096
	echo "$MONO_PKG_ERRORS" >&5
16097
 
16098
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16099
$as_echo "no" >&6; }
16100
                have_mono=no
16101
elif test $pkg_failed = untried; then
16102
	have_mono=no
16103
else
16104
	MONO_CFLAGS=$pkg_cv_MONO_CFLAGS
16105
	MONO_LIBS=$pkg_cv_MONO_LIBS
16106
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16107
$as_echo "yes" >&6; }
16108
	have_mono=yes
16109
fi
16110
fi
16111
 if test "$have_mono" = "yes"; then
16112
  WITH_MONO_TRUE=
16113
  WITH_MONO_FALSE='#'
16114
else
16115
  WITH_MONO_TRUE='#'
16116
  WITH_MONO_FALSE=
16117
fi
16118
 
16119
 if test "$net_3_5" = "no"; then
16120
  NET_2_0_TRUE=
16121
  NET_2_0_FALSE='#'
16122
else
16123
  NET_2_0_TRUE='#'
16124
  NET_2_0_FALSE=
16125
fi
16126
 
16127
 
16128
 
16129
 
16130
@%:@ Check whether --with-java was given.
16131
if test "${with_java+set}" = set; then :
16132
  withval=$with_java; with_java="$withval"
16133
else
16134
  with_java=yes
16135
 
16136
fi
16137
 
16138
 
16139
if test "$with_java" = "yes";  then
16140
 
16141
 
16142
                    JAVAC_PROGS="javac,jikes,gcj -C"
16143
          JAVA_PROGS="java,kaffe"
16144
 
16145
                    if test -n "$JAVAC" ; then
16146
            JAVAC_PROGS="$JAVAC"
16147
          fi
16148
          if test -n "$JAVA" ; then
16149
            JAVA_PROGS="$JAVA"
16150
          fi
16151
 
16152
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac and java" >&5
16153
$as_echo_n "checking for javac and java... " >&6; }
16154
 
16155
          echo "public class configtest_ax_javac_and_java { public static void main(String args@<:@@:>@) { } }" > configtest_ax_javac_and_java.java
16156
          success=no
16157
          oIFS="$IFS"
16158
 
16159
          IFS=","
16160
          for JAVAC in $JAVAC_PROGS ; do
16161
            IFS="$oIFS"
16162
 
16163
            echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
16164
            if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
16165
 
16166
              IFS=","
16167
              for JAVA in $JAVA_PROGS ; do
16168
                IFS="$oIFS"
16169
 
16170
                echo "Running \"$JAVA configtest_ax_javac_and_java\"" >&5
16171
                if $JAVA configtest_ax_javac_and_java >&5 2>&1 ; then
16172
                  success=yes
16173
                  break 2
16174
                fi
16175
 
16176
              done
16177
 
16178
            fi
16179
 
16180
          done
16181
 
16182
          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
16183
 
16184
          if test "$success" != "yes" ; then
16185
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16186
$as_echo "no" >&6; }
16187
            JAVAC=""
16188
            JAVA=""
16189
          else
16190
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16191
$as_echo "yes" >&6; }
16192
          fi
16193
 
16194
          ax_javac_and_java="$success"
16195
 
16196
 
16197
  # Extract the first word of "ant", so it can be a program name with args.
16198
set dummy ant; ac_word=$2
16199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16200
$as_echo_n "checking for $ac_word... " >&6; }
16201
if test "${ac_cv_path_ANT+set}" = set; then :
16202
  $as_echo_n "(cached) " >&6
16203
else
16204
  case $ANT in
16205
  [\\/]* | ?:[\\/]*)
16206
  ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
16207
  ;;
16208
  *)
16209
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16210
for as_dir in $PATH
16211
do
16212
  IFS=$as_save_IFS
16213
  test -z "$as_dir" && as_dir=.
16214
    for ac_exec_ext in '' $ac_executable_extensions; do
16215
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16216
    ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
16217
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16218
    break 2
16219
  fi
16220
done
16221
  done
16222
IFS=$as_save_IFS
16223
 
16224
  ;;
16225
esac
16226
fi
16227
ANT=$ac_cv_path_ANT
16228
if test -n "$ANT"; then
16229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
16230
$as_echo "$ANT" >&6; }
16231
else
16232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16233
$as_echo "no" >&6; }
16234
fi
16235
 
16236
 
16237
 
16238
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java class org.slf4j.Logger" >&5
16239
$as_echo_n "checking for Java class org.slf4j.Logger... " >&6; }
16240
 
16241
          echo "import org.slf4j.Logger; public class configtest_ax_javac_and_java { public static void main(String args@<:@@:>@) { } }" > configtest_ax_javac_and_java.java
16242
 
16243
          echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
16244
          if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
16245
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16246
$as_echo "yes" >&6; }
16247
            success=yes
16248
          else
16249
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250
$as_echo "no" >&6; }
16251
            success=no
16252
          fi
16253
 
16254
          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
16255
 
16256
  have_slf4j="$success"
16257
 
16258
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java class org.slf4j.impl.SimpleLogger" >&5
16259
$as_echo_n "checking for Java class org.slf4j.impl.SimpleLogger... " >&6; }
16260
 
16261
          echo "import org.slf4j.impl.SimpleLogger; public class configtest_ax_javac_and_java { public static void main(String args@<:@@:>@) { } }" > configtest_ax_javac_and_java.java
16262
 
16263
          echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
16264
          if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
16265
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16266
$as_echo "yes" >&6; }
16267
            success=yes
16268
          else
16269
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16270
$as_echo "no" >&6; }
16271
            success=no
16272
          fi
16273
 
16274
          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
16275
 
16276
  have_slf4j_simple="$success"
16277
 
16278
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java class org.apache.commons.lang.builder.HashCodeBuilder" >&5
16279
$as_echo_n "checking for Java class org.apache.commons.lang.builder.HashCodeBuilder... " >&6; }
16280
 
16281
          echo "import org.apache.commons.lang.builder.HashCodeBuilder; public class configtest_ax_javac_and_java { public static void main(String args@<:@@:>@) { } }" > configtest_ax_javac_and_java.java
16282
 
16283
          echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&5
16284
          if $JAVAC configtest_ax_javac_and_java.java >&5 2>&1 ; then
16285
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16286
$as_echo "yes" >&6; }
16287
            success=yes
16288
          else
16289
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290
$as_echo "no" >&6; }
16291
            success=no
16292
          fi
16293
 
16294
          rm -f configtest_ax_javac_and_java.java configtest_ax_javac_and_java.class
16295
 
16296
  have_hashcode="$success"
16297
  if test "x$have_slf4j_simple" = "xyes" && test "x$have_slf4j" = "xyes" && test "x$have_hashcode" = "xyes" ; then
16298
    ANT_FLAGS="$ANT_FLAGS -Dnoivy="
16299
  fi
16300
 
16301
 
16302
fi
16303
 if test -n "$ANT" -a -n "$JAVA" -a -n "$JAVAC"; then
16304
  WITH_JAVA_TRUE=
16305
  WITH_JAVA_FALSE='#'
16306
else
16307
  WITH_JAVA_TRUE='#'
16308
  WITH_JAVA_FALSE=
16309
fi
16310
 
16311
 
16312
 
16313
 
16314
@%:@ Check whether --with-erlang was given.
16315
if test "${with_erlang+set}" = set; then :
16316
  withval=$with_erlang; with_erlang="$withval"
16317
else
16318
  with_erlang=yes
16319
 
16320
fi
16321
 
16322
 
16323
if test "$with_erlang" = "yes";  then
16324
  # Extract the first word of "erlc", so it can be a program name with args.
16325
set dummy erlc; ac_word=$2
16326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16327
$as_echo_n "checking for $ac_word... " >&6; }
16328
if test "${ac_cv_path_ERLC+set}" = set; then :
16329
  $as_echo_n "(cached) " >&6
16330
else
16331
  case $ERLC in
16332
  [\\/]* | ?:[\\/]*)
16333
  ac_cv_path_ERLC="$ERLC" # Let the user override the test with a path.
16334
  ;;
16335
  *)
16336
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16337
for as_dir in $PATH
16338
do
16339
  IFS=$as_save_IFS
16340
  test -z "$as_dir" && as_dir=.
16341
    for ac_exec_ext in '' $ac_executable_extensions; do
16342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16343
    ac_cv_path_ERLC="$as_dir/$ac_word$ac_exec_ext"
16344
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16345
    break 2
16346
  fi
16347
done
16348
  done
16349
IFS=$as_save_IFS
16350
 
16351
  ;;
16352
esac
16353
fi
16354
ERLC=$ac_cv_path_ERLC
16355
if test -n "$ERLC"; then
16356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLC" >&5
16357
$as_echo "$ERLC" >&6; }
16358
else
16359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16360
$as_echo "no" >&6; }
16361
fi
16362
 
16363
 
16364
fi
16365
 if test -n "$ERLC"; then
16366
  WITH_ERLANG_TRUE=
16367
  WITH_ERLANG_FALSE='#'
16368
else
16369
  WITH_ERLANG_TRUE='#'
16370
  WITH_ERLANG_FALSE=
16371
fi
16372
 
16373
 
16374
 
16375
 
16376
@%:@ Check whether --with-py was given.
16377
if test "${with_py+set}" = set; then :
16378
  withval=$with_py; with_py="$withval"
16379
else
16380
  with_py=yes
16381
 
16382
fi
16383
 
16384
 
16385
if test "$with_py" = "yes";  then
16386
 
16387
 
16388
 
16389
 
16390
        if test -n "$PYTHON"; then
16391
      # If the user set $PYTHON, use it and don't search something else.
16392
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
16393
$as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
16394
      prog="import sys
16395
# split strings by '.' and convert to numeric.  Append some zeros
16396
# because we need at least 4 digits for the hex conversion.
16397
# map returns an iterator in Python 3.0 and a list in 2.x
16398
minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
16399
minverhex = 0
16400
# xrange is not present in Python 3.0 and range returns an iterator
16401
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16402
sys.exit(sys.hexversion < minverhex)"
16403
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16404
   ($PYTHON -c "$prog") >&5 2>&5
16405
   ac_status=$?
16406
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407
   (exit $ac_status); }; then :
16408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16409
$as_echo "yes" >&6; }
16410
else
16411
  as_fn_error "too old" "$LINENO" 5
16412
fi
16413
      am_display_PYTHON=$PYTHON
16414
    else
16415
      # Otherwise, try each interpreter until we find one that satisfies
16416
      # VERSION.
16417
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
16418
$as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
16419
if test "${am_cv_pathless_PYTHON+set}" = set; then :
16420
  $as_echo_n "(cached) " >&6
16421
else
16422
 
16423
	for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
16424
	  test "$am_cv_pathless_PYTHON" = none && break
16425
	  prog="import sys
16426
# split strings by '.' and convert to numeric.  Append some zeros
16427
# because we need at least 4 digits for the hex conversion.
16428
# map returns an iterator in Python 3.0 and a list in 2.x
16429
minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
16430
minverhex = 0
16431
# xrange is not present in Python 3.0 and range returns an iterator
16432
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16433
sys.exit(sys.hexversion < minverhex)"
16434
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16435
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16436
   ac_status=$?
16437
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438
   (exit $ac_status); }; then :
16439
  break
16440
fi
16441
	done
16442
fi
16443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16444
$as_echo "$am_cv_pathless_PYTHON" >&6; }
16445
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16446
      if test "$am_cv_pathless_PYTHON" = none; then
16447
	PYTHON=:
16448
      else
16449
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16450
set dummy $am_cv_pathless_PYTHON; ac_word=$2
16451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16452
$as_echo_n "checking for $ac_word... " >&6; }
16453
if test "${ac_cv_path_PYTHON+set}" = set; then :
16454
  $as_echo_n "(cached) " >&6
16455
else
16456
  case $PYTHON in
16457
  [\\/]* | ?:[\\/]*)
16458
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16459
  ;;
16460
  *)
16461
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16462
for as_dir in $PATH
16463
do
16464
  IFS=$as_save_IFS
16465
  test -z "$as_dir" && as_dir=.
16466
    for ac_exec_ext in '' $ac_executable_extensions; do
16467
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16468
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16469
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16470
    break 2
16471
  fi
16472
done
16473
  done
16474
IFS=$as_save_IFS
16475
 
16476
  ;;
16477
esac
16478
fi
16479
PYTHON=$ac_cv_path_PYTHON
16480
if test -n "$PYTHON"; then
16481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16482
$as_echo "$PYTHON" >&6; }
16483
else
16484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16485
$as_echo "no" >&6; }
16486
fi
16487
 
16488
 
16489
      fi
16490
      am_display_PYTHON=$am_cv_pathless_PYTHON
16491
    fi
16492
 
16493
 
16494
  if test "$PYTHON" = :; then
16495
      :
16496
  else
16497
 
16498
 
16499
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16500
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16501
if test "${am_cv_python_version+set}" = set; then :
16502
  $as_echo_n "(cached) " >&6
16503
else
16504
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16505
fi
16506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16507
$as_echo "$am_cv_python_version" >&6; }
16508
  PYTHON_VERSION=$am_cv_python_version
16509
 
16510
 
16511
 
16512
  PYTHON_PREFIX='${prefix}'
16513
 
16514
  PYTHON_EXEC_PREFIX='${exec_prefix}'
16515
 
16516
 
16517
 
16518
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16519
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16520
if test "${am_cv_python_platform+set}" = set; then :
16521
  $as_echo_n "(cached) " >&6
16522
else
16523
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16524
fi
16525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16526
$as_echo "$am_cv_python_platform" >&6; }
16527
  PYTHON_PLATFORM=$am_cv_python_platform
16528
 
16529
 
16530
 
16531
 
16532
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16533
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16534
if test "${am_cv_python_pythondir+set}" = set; then :
16535
  $as_echo_n "(cached) " >&6
16536
else
16537
  if test "x$prefix" = xNONE
16538
     then
16539
       am_py_prefix=$ac_default_prefix
16540
     else
16541
       am_py_prefix=$prefix
16542
     fi
16543
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
16544
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
16545
     case $am_cv_python_pythondir in
16546
     $am_py_prefix*)
16547
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16548
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16549
       ;;
16550
     esac
16551
 
16552
fi
16553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16554
$as_echo "$am_cv_python_pythondir" >&6; }
16555
  pythondir=$am_cv_python_pythondir
16556
 
16557
 
16558
 
16559
  pkgpythondir=\${pythondir}/$PACKAGE
16560
 
16561
 
16562
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16563
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16564
if test "${am_cv_python_pyexecdir+set}" = set; then :
16565
  $as_echo_n "(cached) " >&6
16566
else
16567
  if test "x$exec_prefix" = xNONE
16568
     then
16569
       am_py_exec_prefix=$am_py_prefix
16570
     else
16571
       am_py_exec_prefix=$exec_prefix
16572
     fi
16573
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
16574
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
16575
     case $am_cv_python_pyexecdir in
16576
     $am_py_exec_prefix*)
16577
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16578
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16579
       ;;
16580
     esac
16581
 
16582
fi
16583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16584
$as_echo "$am_cv_python_pyexecdir" >&6; }
16585
  pyexecdir=$am_cv_python_pyexecdir
16586
 
16587
 
16588
 
16589
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
16590
 
16591
 
16592
 
16593
  fi
16594
 
16595
 
16596
fi
16597
 if test -n "$PYTHON" -a "$PYTHON" != ":"; then
16598
  WITH_PYTHON_TRUE=
16599
  WITH_PYTHON_FALSE='#'
16600
else
16601
  WITH_PYTHON_TRUE='#'
16602
  WITH_PYTHON_FALSE=
16603
fi
16604
 
16605
 
16606
 
16607
 
16608
@%:@ Check whether --with-perl was given.
16609
if test "${with_perl+set}" = set; then :
16610
  withval=$with_perl; with_perl="$withval"
16611
else
16612
  with_perl=yes
16613
 
16614
fi
16615
 
16616
 
16617
if test "$with_perl" = "yes"; then
16618
  # Extract the first word of "perl", so it can be a program name with args.
16619
set dummy perl; ac_word=$2
16620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621
$as_echo_n "checking for $ac_word... " >&6; }
16622
if test "${ac_cv_path_PERL+set}" = set; then :
16623
  $as_echo_n "(cached) " >&6
16624
else
16625
  case $PERL in
16626
  [\\/]* | ?:[\\/]*)
16627
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16628
  ;;
16629
  *)
16630
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16631
for as_dir in $PATH
16632
do
16633
  IFS=$as_save_IFS
16634
  test -z "$as_dir" && as_dir=.
16635
    for ac_exec_ext in '' $ac_executable_extensions; do
16636
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16637
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16638
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16639
    break 2
16640
  fi
16641
done
16642
  done
16643
IFS=$as_save_IFS
16644
 
16645
  ;;
16646
esac
16647
fi
16648
PERL=$ac_cv_path_PERL
16649
if test -n "$PERL"; then
16650
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16651
$as_echo "$PERL" >&6; }
16652
else
16653
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654
$as_echo "no" >&6; }
16655
fi
16656
 
16657
 
16658
fi
16659
 if test -n "$PERL"; then
16660
  WITH_PERL_TRUE=
16661
  WITH_PERL_FALSE='#'
16662
else
16663
  WITH_PERL_TRUE='#'
16664
  WITH_PERL_FALSE=
16665
fi
16666
 
16667
 
16668
 
16669
 
16670
@%:@ Check whether --with-ruby was given.
16671
if test "${with_ruby+set}" = set; then :
16672
  withval=$with_ruby; with_ruby="$withval"
16673
else
16674
  with_ruby=yes
16675
 
16676
fi
16677
 
16678
 
16679
if test "$with_ruby" = "yes"; then
16680
  # Extract the first word of "ruby", so it can be a program name with args.
16681
set dummy ruby; ac_word=$2
16682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16683
$as_echo_n "checking for $ac_word... " >&6; }
16684
if test "${ac_cv_path_RUBY+set}" = set; then :
16685
  $as_echo_n "(cached) " >&6
16686
else
16687
  case $RUBY in
16688
  [\\/]* | ?:[\\/]*)
16689
  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
16690
  ;;
16691
  *)
16692
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693
for as_dir in $PATH
16694
do
16695
  IFS=$as_save_IFS
16696
  test -z "$as_dir" && as_dir=.
16697
    for ac_exec_ext in '' $ac_executable_extensions; do
16698
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16699
    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
16700
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16701
    break 2
16702
  fi
16703
done
16704
  done
16705
IFS=$as_save_IFS
16706
 
16707
  ;;
16708
esac
16709
fi
16710
RUBY=$ac_cv_path_RUBY
16711
if test -n "$RUBY"; then
16712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
16713
$as_echo "$RUBY" >&6; }
16714
else
16715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716
$as_echo "no" >&6; }
16717
fi
16718
 
16719
 
16720
  # Extract the first word of "spec", so it can be a program name with args.
16721
set dummy spec; ac_word=$2
16722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16723
$as_echo_n "checking for $ac_word... " >&6; }
16724
if test "${ac_cv_path_RSPEC+set}" = set; then :
16725
  $as_echo_n "(cached) " >&6
16726
else
16727
  case $RSPEC in
16728
  [\\/]* | ?:[\\/]*)
16729
  ac_cv_path_RSPEC="$RSPEC" # Let the user override the test with a path.
16730
  ;;
16731
  *)
16732
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16733
for as_dir in $PATH
16734
do
16735
  IFS=$as_save_IFS
16736
  test -z "$as_dir" && as_dir=.
16737
    for ac_exec_ext in '' $ac_executable_extensions; do
16738
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16739
    ac_cv_path_RSPEC="$as_dir/$ac_word$ac_exec_ext"
16740
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16741
    break 2
16742
  fi
16743
done
16744
  done
16745
IFS=$as_save_IFS
16746
 
16747
  ;;
16748
esac
16749
fi
16750
RSPEC=$ac_cv_path_RSPEC
16751
if test -n "$RSPEC"; then
16752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSPEC" >&5
16753
$as_echo "$RSPEC" >&6; }
16754
else
16755
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16756
$as_echo "no" >&6; }
16757
fi
16758
 
16759
 
16760
fi
16761
 if test -n "$RUBY"; then
16762
  WITH_RUBY_TRUE=
16763
  WITH_RUBY_FALSE='#'
16764
else
16765
  WITH_RUBY_TRUE='#'
16766
  WITH_RUBY_FALSE=
16767
fi
16768
 
16769
 if test -n "$RSPEC"; then
16770
  HAVE_RSPEC_TRUE=
16771
  HAVE_RSPEC_FALSE='#'
16772
else
16773
  HAVE_RSPEC_TRUE='#'
16774
  HAVE_RSPEC_FALSE=
16775
fi
16776
 
16777
 
16778
 
16779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16780
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16781
if test "${ac_cv_c_const+set}" = set; then :
16782
  $as_echo_n "(cached) " >&6
16783
else
16784
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785
/* end confdefs.h.  */
16786
 
16787
int
16788
main ()
16789
{
16790
/* FIXME: Include the comments suggested by Paul. */
16791
#ifndef __cplusplus
16792
  /* Ultrix mips cc rejects this.  */
16793
  typedef int charset[2];
16794
  const charset cs;
16795
  /* SunOS 4.1.1 cc rejects this.  */
16796
  char const *const *pcpcc;
16797
  char **ppc;
16798
  /* NEC SVR4.0.2 mips cc rejects this.  */
16799
  struct point {int x, y;};
16800
  static struct point const zero = {0,0};
16801
  /* AIX XL C 1.02.0.0 rejects this.
16802
     It does not let you subtract one const X* pointer from another in
16803
     an arm of an if-expression whose if-part is not a constant
16804
     expression */
16805
  const char *g = "string";
16806
  pcpcc = &g + (g ? g-g : 0);
16807
  /* HPUX 7.0 cc rejects these. */
16808
  ++pcpcc;
16809
  ppc = (char**) pcpcc;
16810
  pcpcc = (char const *const *) ppc;
16811
  { /* SCO 3.2v4 cc rejects this.  */
16812
    char *t;
16813
    char const *s = 0 ? (char *) 0 : (char const *) 0;
16814
 
16815
    *t++ = 0;
16816
    if (s) return 0;
16817
  }
16818
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16819
    int x[] = {25, 17};
16820
    const int *foo = &x[0];
16821
    ++foo;
16822
  }
16823
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16824
    typedef const int *iptr;
16825
    iptr p = 0;
16826
    ++p;
16827
  }
16828
  { /* AIX XL C 1.02.0.0 rejects this saying
16829
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16830
    struct s { int j; const int *ap[3]; };
16831
    struct s *b; b->j = 5;
16832
  }
16833
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16834
    const int foo = 10;
16835
    if (!foo) return 0;
16836
  }
16837
  return !cs[0] && !zero.x;
16838
#endif
16839
 
16840
  ;
16841
  return 0;
16842
}
16843
_ACEOF
16844
if ac_fn_cxx_try_compile "$LINENO"; then :
16845
  ac_cv_c_const=yes
16846
else
16847
  ac_cv_c_const=no
16848
fi
16849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850
fi
16851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16852
$as_echo "$ac_cv_c_const" >&6; }
16853
if test $ac_cv_c_const = no; then
16854
 
16855
$as_echo "@%:@define const /**/" >>confdefs.h
16856
 
16857
fi
16858
 
16859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16860
$as_echo_n "checking for inline... " >&6; }
16861
if test "${ac_cv_c_inline+set}" = set; then :
16862
  $as_echo_n "(cached) " >&6
16863
else
16864
  ac_cv_c_inline=no
16865
for ac_kw in inline __inline__ __inline; do
16866
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867
/* end confdefs.h.  */
16868
#ifndef __cplusplus
16869
typedef int foo_t;
16870
static $ac_kw foo_t static_foo () {return 0; }
16871
$ac_kw foo_t foo () {return 0; }
16872
#endif
16873
 
16874
_ACEOF
16875
if ac_fn_cxx_try_compile "$LINENO"; then :
16876
  ac_cv_c_inline=$ac_kw
16877
fi
16878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879
  test "$ac_cv_c_inline" != no && break
16880
done
16881
 
16882
fi
16883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16884
$as_echo "$ac_cv_c_inline" >&6; }
16885
 
16886
case $ac_cv_c_inline in
16887
  inline | yes) ;;
16888
  *)
16889
    case $ac_cv_c_inline in
16890
      no) ac_val=;;
16891
      *) ac_val=$ac_cv_c_inline;;
16892
    esac
16893
    cat >>confdefs.h <<_ACEOF
16894
#ifndef __cplusplus
16895
#define inline $ac_val
16896
#endif
16897
_ACEOF
16898
    ;;
16899
esac
16900
 
16901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16902
$as_echo_n "checking for working volatile... " >&6; }
16903
if test "${ac_cv_c_volatile+set}" = set; then :
16904
  $as_echo_n "(cached) " >&6
16905
else
16906
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907
/* end confdefs.h.  */
16908
 
16909
int
16910
main ()
16911
{
16912
 
16913
volatile int x;
16914
int * volatile y = (int *) 0;
16915
return !x && !y;
16916
  ;
16917
  return 0;
16918
}
16919
_ACEOF
16920
if ac_fn_cxx_try_compile "$LINENO"; then :
16921
  ac_cv_c_volatile=yes
16922
else
16923
  ac_cv_c_volatile=no
16924
fi
16925
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926
fi
16927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16928
$as_echo "$ac_cv_c_volatile" >&6; }
16929
if test $ac_cv_c_volatile = no; then
16930
 
16931
$as_echo "@%:@define volatile /**/" >>confdefs.h
16932
 
16933
fi
16934
 
16935
 
16936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16937
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16938
if test "${ac_cv_header_stdbool_h+set}" = set; then :
16939
  $as_echo_n "(cached) " >&6
16940
else
16941
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942
/* end confdefs.h.  */
16943
 
16944
#include <stdbool.h>
16945
#ifndef bool
16946
 "error: bool is not defined"
16947
#endif
16948
#ifndef false
16949
 "error: false is not defined"
16950
#endif
16951
#if false
16952
 "error: false is not 0"
16953
#endif
16954
#ifndef true
16955
 "error: true is not defined"
16956
#endif
16957
#if true != 1
16958
 "error: true is not 1"
16959
#endif
16960
#ifndef __bool_true_false_are_defined
16961
 "error: __bool_true_false_are_defined is not defined"
16962
#endif
16963
 
16964
	struct s { _Bool s: 1; _Bool t; } s;
16965
 
16966
	char a[true == 1 ? 1 : -1];
16967
	char b[false == 0 ? 1 : -1];
16968
	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16969
	char d[(bool) 0.5 == true ? 1 : -1];
16970
	bool e = &s;
16971
	char f[(_Bool) 0.0 == false ? 1 : -1];
16972
	char g[true];
16973
	char h[sizeof (_Bool)];
16974
	char i[sizeof s.t];
16975
	enum { j = false, k = true, l = false * true, m = true * 256 };
16976
	/* The following fails for
16977
	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16978
	_Bool n[m];
16979
	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16980
	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16981
#	if defined __xlc__ || defined __GNUC__
16982
	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16983
	    reported by James Lemley on 2005-10-05; see
16984
	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16985
	    This test is not quite right, since xlc is allowed to
16986
	    reject this program, as the initializer for xlcbug is
16987
	    not one of the forms that C requires support for.
16988
	    However, doing the test right would require a runtime
16989
	    test, and that would make cross-compilation harder.
16990
	    Let us hope that IBM fixes the xlc bug, and also adds
16991
	    support for this kind of constant expression.  In the
16992
	    meantime, this test will reject xlc, which is OK, since
16993
	    our stdbool.h substitute should suffice.  We also test
16994
	    this with GCC, where it should work, to detect more
16995
	    quickly whether someone messes up the test in the
16996
	    future.  */
16997
	 char digs[] = "0123456789";
16998
	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16999
#	endif
17000
	/* Catch a bug in an HP-UX C compiler.  See
17001
	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17002
	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17003
	 */
17004
	_Bool q = true;
17005
	_Bool *pq = &q;
17006
 
17007
int
17008
main ()
17009
{
17010
 
17011
	*pq |= q;
17012
	*pq |= ! q;
17013
	/* Refer to every declared value, to avoid compiler optimizations.  */
17014
	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17015
		+ !m + !n + !o + !p + !q + !pq);
17016
 
17017
  ;
17018
  return 0;
17019
}
17020
_ACEOF
17021
if ac_fn_cxx_try_compile "$LINENO"; then :
17022
  ac_cv_header_stdbool_h=yes
17023
else
17024
  ac_cv_header_stdbool_h=no
17025
fi
17026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17027
fi
17028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17029
$as_echo "$ac_cv_header_stdbool_h" >&6; }
17030
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17031
if test "x$ac_cv_type__Bool" = x""yes; then :
17032
 
17033
cat >>confdefs.h <<_ACEOF
17034
@%:@define HAVE__BOOL 1
17035
_ACEOF
17036
 
17037
 
17038
fi
17039
 
17040
if test $ac_cv_header_stdbool_h = yes; then
17041
 
17042
$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
17043
 
17044
fi
17045
 
17046
 
17047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17048
$as_echo_n "checking for ANSI C header files... " >&6; }
17049
if test "${ac_cv_header_stdc+set}" = set; then :
17050
  $as_echo_n "(cached) " >&6
17051
else
17052
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053
/* end confdefs.h.  */
17054
#include <stdlib.h>
17055
#include <stdarg.h>
17056
#include <string.h>
17057
#include <float.h>
17058
 
17059
int
17060
main ()
17061
{
17062
 
17063
  ;
17064
  return 0;
17065
}
17066
_ACEOF
17067
if ac_fn_cxx_try_compile "$LINENO"; then :
17068
  ac_cv_header_stdc=yes
17069
else
17070
  ac_cv_header_stdc=no
17071
fi
17072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073
 
17074
if test $ac_cv_header_stdc = yes; then
17075
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17076
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077
/* end confdefs.h.  */
17078
#include <string.h>
17079
 
17080
_ACEOF
17081
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17082
  $EGREP "memchr" >/dev/null 2>&1; then :
17083
 
17084
else
17085
  ac_cv_header_stdc=no
17086
fi
17087
rm -f conftest*
17088
 
17089
fi
17090
 
17091
if test $ac_cv_header_stdc = yes; then
17092
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17093
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094
/* end confdefs.h.  */
17095
#include <stdlib.h>
17096
 
17097
_ACEOF
17098
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17099
  $EGREP "free" >/dev/null 2>&1; then :
17100
 
17101
else
17102
  ac_cv_header_stdc=no
17103
fi
17104
rm -f conftest*
17105
 
17106
fi
17107
 
17108
if test $ac_cv_header_stdc = yes; then
17109
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17110
  if test "$cross_compiling" = yes; then :
17111
  :
17112
else
17113
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114
/* end confdefs.h.  */
17115
#include <ctype.h>
17116
#include <stdlib.h>
17117
#if ((' ' & 0x0FF) == 0x020)
17118
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17119
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17120
#else
17121
# define ISLOWER(c) \
17122
		   (('a' <= (c) && (c) <= 'i') \
17123
		     || ('j' <= (c) && (c) <= 'r') \
17124
		     || ('s' <= (c) && (c) <= 'z'))
17125
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17126
#endif
17127
 
17128
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17129
int
17130
main ()
17131
{
17132
  int i;
17133
  for (i = 0; i < 256; i++)
17134
    if (XOR (islower (i), ISLOWER (i))
17135
	|| toupper (i) != TOUPPER (i))
17136
      return 2;
17137
  return 0;
17138
}
17139
_ACEOF
17140
if ac_fn_cxx_try_run "$LINENO"; then :
17141
 
17142
else
17143
  ac_cv_header_stdc=no
17144
fi
17145
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17146
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17147
fi
17148
 
17149
fi
17150
fi
17151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17152
$as_echo "$ac_cv_header_stdc" >&6; }
17153
if test $ac_cv_header_stdc = yes; then
17154
 
17155
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
17156
 
17157
fi
17158
 
17159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17160
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17161
if test "${ac_cv_header_time+set}" = set; then :
17162
  $as_echo_n "(cached) " >&6
17163
else
17164
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165
/* end confdefs.h.  */
17166
#include <sys/types.h>
17167
#include <sys/time.h>
17168
#include <time.h>
17169
 
17170
int
17171
main ()
17172
{
17173
if ((struct tm *) 0)
17174
return 0;
17175
  ;
17176
  return 0;
17177
}
17178
_ACEOF
17179
if ac_fn_cxx_try_compile "$LINENO"; then :
17180
  ac_cv_header_time=yes
17181
else
17182
  ac_cv_header_time=no
17183
fi
17184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185
fi
17186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17187
$as_echo "$ac_cv_header_time" >&6; }
17188
if test $ac_cv_header_time = yes; then
17189
 
17190
$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
17191
 
17192
fi
17193
 
17194
for ac_header in arpa/inet.h
17195
do :
17196
  ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
17197
if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
17198
  cat >>confdefs.h <<_ACEOF
17199
@%:@define HAVE_ARPA_INET_H 1
17200
_ACEOF
17201
 
17202
fi
17203
 
17204
done
17205
 
17206
for ac_header in endian.h
17207
do :
17208
  ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
17209
if test "x$ac_cv_header_endian_h" = x""yes; then :
17210
  cat >>confdefs.h <<_ACEOF
17211
@%:@define HAVE_ENDIAN_H 1
17212
_ACEOF
17213
 
17214
fi
17215
 
17216
done
17217
 
17218
for ac_header in fcntl.h
17219
do :
17220
  ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17221
if test "x$ac_cv_header_fcntl_h" = x""yes; then :
17222
  cat >>confdefs.h <<_ACEOF
17223
@%:@define HAVE_FCNTL_H 1
17224
_ACEOF
17225
 
17226
fi
17227
 
17228
done
17229
 
17230
for ac_header in inttypes.h
17231
do :
17232
  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
17233
if test "x$ac_cv_header_inttypes_h" = x""yes; then :
17234
  cat >>confdefs.h <<_ACEOF
17235
@%:@define HAVE_INTTYPES_H 1
17236
_ACEOF
17237
 
17238
fi
17239
 
17240
done
17241
 
17242
for ac_header in limits.h
17243
do :
17244
  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
17245
if test "x$ac_cv_header_limits_h" = x""yes; then :
17246
  cat >>confdefs.h <<_ACEOF
17247
@%:@define HAVE_LIMITS_H 1
17248
_ACEOF
17249
 
17250
fi
17251
 
17252
done
17253
 
17254
for ac_header in netdb.h
17255
do :
17256
  ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
17257
if test "x$ac_cv_header_netdb_h" = x""yes; then :
17258
  cat >>confdefs.h <<_ACEOF
17259
@%:@define HAVE_NETDB_H 1
17260
_ACEOF
17261
 
17262
fi
17263
 
17264
done
17265
 
17266
for ac_header in netinet/in.h
17267
do :
17268
  ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
17269
if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
17270
  cat >>confdefs.h <<_ACEOF
17271
@%:@define HAVE_NETINET_IN_H 1
17272
_ACEOF
17273
 
17274
fi
17275
 
17276
done
17277
 
17278
for ac_header in pthread.h
17279
do :
17280
  ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17281
if test "x$ac_cv_header_pthread_h" = x""yes; then :
17282
  cat >>confdefs.h <<_ACEOF
17283
@%:@define HAVE_PTHREAD_H 1
17284
_ACEOF
17285
 
17286
fi
17287
 
17288
done
17289
 
17290
for ac_header in stddef.h
17291
do :
17292
  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
17293
if test "x$ac_cv_header_stddef_h" = x""yes; then :
17294
  cat >>confdefs.h <<_ACEOF
17295
@%:@define HAVE_STDDEF_H 1
17296
_ACEOF
17297
 
17298
fi
17299
 
17300
done
17301
 
17302
for ac_header in stdlib.h
17303
do :
17304
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17305
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
17306
  cat >>confdefs.h <<_ACEOF
17307
@%:@define HAVE_STDLIB_H 1
17308
_ACEOF
17309
 
17310
fi
17311
 
17312
done
17313
 
17314
for ac_header in sys/socket.h
17315
do :
17316
  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
17317
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
17318
  cat >>confdefs.h <<_ACEOF
17319
@%:@define HAVE_SYS_SOCKET_H 1
17320
_ACEOF
17321
 
17322
fi
17323
 
17324
done
17325
 
17326
for ac_header in sys/time.h
17327
do :
17328
  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
17329
if test "x$ac_cv_header_sys_time_h" = x""yes; then :
17330
  cat >>confdefs.h <<_ACEOF
17331
@%:@define HAVE_SYS_TIME_H 1
17332
_ACEOF
17333
 
17334
fi
17335
 
17336
done
17337
 
17338
for ac_header in unistd.h
17339
do :
17340
  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17341
if test "x$ac_cv_header_unistd_h" = x""yes; then :
17342
  cat >>confdefs.h <<_ACEOF
17343
@%:@define HAVE_UNISTD_H 1
17344
_ACEOF
17345
 
17346
fi
17347
 
17348
done
17349
 
17350
for ac_header in libintl.h
17351
do :
17352
  ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17353
if test "x$ac_cv_header_libintl_h" = x""yes; then :
17354
  cat >>confdefs.h <<_ACEOF
17355
@%:@define HAVE_LIBINTL_H 1
17356
_ACEOF
17357
 
17358
fi
17359
 
17360
done
17361
 
17362
for ac_header in malloc.h
17363
do :
17364
  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
17365
if test "x$ac_cv_header_malloc_h" = x""yes; then :
17366
  cat >>confdefs.h <<_ACEOF
17367
@%:@define HAVE_MALLOC_H 1
17368
_ACEOF
17369
 
17370
fi
17371
 
17372
done
17373
 
17374
 
17375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17376
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17377
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
17378
  $as_echo_n "(cached) " >&6
17379
else
17380
  ac_check_lib_save_LIBS=$LIBS
17381
LIBS="-lpthread  $LIBS"
17382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383
/* end confdefs.h.  */
17384
 
17385
/* Override any GCC internal prototype to avoid an error.
17386
   Use char because int might match the return type of a GCC
17387
   builtin and then its argument prototype would still apply.  */
17388
#ifdef __cplusplus
17389
extern "C"
17390
#endif
17391
char pthread_create ();
17392
int
17393
main ()
17394
{
17395
return pthread_create ();
17396
  ;
17397
  return 0;
17398
}
17399
_ACEOF
17400
if ac_fn_cxx_try_link "$LINENO"; then :
17401
  ac_cv_lib_pthread_pthread_create=yes
17402
else
17403
  ac_cv_lib_pthread_pthread_create=no
17404
fi
17405
rm -f core conftest.err conftest.$ac_objext \
17406
    conftest$ac_exeext conftest.$ac_ext
17407
LIBS=$ac_check_lib_save_LIBS
17408
fi
17409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17410
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17411
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
17412
  cat >>confdefs.h <<_ACEOF
17413
@%:@define HAVE_LIBPTHREAD 1
17414
_ACEOF
17415
 
17416
  LIBS="-lpthread $LIBS"
17417
 
17418
fi
17419
 
17420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17421
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17422
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
17423
  $as_echo_n "(cached) " >&6
17424
else
17425
  ac_check_lib_save_LIBS=$LIBS
17426
LIBS="-lrt  $LIBS"
17427
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428
/* end confdefs.h.  */
17429
 
17430
/* Override any GCC internal prototype to avoid an error.
17431
   Use char because int might match the return type of a GCC
17432
   builtin and then its argument prototype would still apply.  */
17433
#ifdef __cplusplus
17434
extern "C"
17435
#endif
17436
char clock_gettime ();
17437
int
17438
main ()
17439
{
17440
return clock_gettime ();
17441
  ;
17442
  return 0;
17443
}
17444
_ACEOF
17445
if ac_fn_cxx_try_link "$LINENO"; then :
17446
  ac_cv_lib_rt_clock_gettime=yes
17447
else
17448
  ac_cv_lib_rt_clock_gettime=no
17449
fi
17450
rm -f core conftest.err conftest.$ac_objext \
17451
    conftest$ac_exeext conftest.$ac_ext
17452
LIBS=$ac_check_lib_save_LIBS
17453
fi
17454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17455
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17456
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
17457
  cat >>confdefs.h <<_ACEOF
17458
@%:@define HAVE_LIBRT 1
17459
_ACEOF
17460
 
17461
  LIBS="-lrt $LIBS"
17462
 
17463
fi
17464
 
17465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
17466
$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
17467
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
17468
  $as_echo_n "(cached) " >&6
17469
else
17470
  ac_check_lib_save_LIBS=$LIBS
17471
LIBS="-lsocket  $LIBS"
17472
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473
/* end confdefs.h.  */
17474
 
17475
/* Override any GCC internal prototype to avoid an error.
17476
   Use char because int might match the return type of a GCC
17477
   builtin and then its argument prototype would still apply.  */
17478
#ifdef __cplusplus
17479
extern "C"
17480
#endif
17481
char setsockopt ();
17482
int
17483
main ()
17484
{
17485
return setsockopt ();
17486
  ;
17487
  return 0;
17488
}
17489
_ACEOF
17490
if ac_fn_cxx_try_link "$LINENO"; then :
17491
  ac_cv_lib_socket_setsockopt=yes
17492
else
17493
  ac_cv_lib_socket_setsockopt=no
17494
fi
17495
rm -f core conftest.err conftest.$ac_objext \
17496
    conftest$ac_exeext conftest.$ac_ext
17497
LIBS=$ac_check_lib_save_LIBS
17498
fi
17499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
17500
$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
17501
if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
17502
  cat >>confdefs.h <<_ACEOF
17503
@%:@define HAVE_LIBSOCKET 1
17504
_ACEOF
17505
 
17506
  LIBS="-lsocket $LIBS"
17507
 
17508
fi
17509
 
17510
 
17511
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
17512
case $ac_cv_c_int16_t in #(
17513
  no|yes) ;; #(
17514
  *)
17515
 
17516
cat >>confdefs.h <<_ACEOF
17517
@%:@define int16_t $ac_cv_c_int16_t
17518
_ACEOF
17519
;;
17520
esac
17521
 
17522
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
17523
case $ac_cv_c_int32_t in #(
17524
  no|yes) ;; #(
17525
  *)
17526
 
17527
cat >>confdefs.h <<_ACEOF
17528
@%:@define int32_t $ac_cv_c_int32_t
17529
_ACEOF
17530
;;
17531
esac
17532
 
17533
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
17534
case $ac_cv_c_int64_t in #(
17535
  no|yes) ;; #(
17536
  *)
17537
 
17538
cat >>confdefs.h <<_ACEOF
17539
@%:@define int64_t $ac_cv_c_int64_t
17540
_ACEOF
17541
;;
17542
esac
17543
 
17544
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
17545
case $ac_cv_c_int8_t in #(
17546
  no|yes) ;; #(
17547
  *)
17548
 
17549
cat >>confdefs.h <<_ACEOF
17550
@%:@define int8_t $ac_cv_c_int8_t
17551
_ACEOF
17552
;;
17553
esac
17554
 
17555
ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17556
if test "x$ac_cv_type_mode_t" = x""yes; then :
17557
 
17558
else
17559
 
17560
cat >>confdefs.h <<_ACEOF
17561
@%:@define mode_t int
17562
_ACEOF
17563
 
17564
fi
17565
 
17566
ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17567
if test "x$ac_cv_type_off_t" = x""yes; then :
17568
 
17569
else
17570
 
17571
cat >>confdefs.h <<_ACEOF
17572
@%:@define off_t long int
17573
_ACEOF
17574
 
17575
fi
17576
 
17577
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17578
if test "x$ac_cv_type_size_t" = x""yes; then :
17579
 
17580
else
17581
 
17582
cat >>confdefs.h <<_ACEOF
17583
@%:@define size_t unsigned int
17584
_ACEOF
17585
 
17586
fi
17587
 
17588
ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17589
if test "x$ac_cv_type_ssize_t" = x""yes; then :
17590
 
17591
else
17592
 
17593
cat >>confdefs.h <<_ACEOF
17594
@%:@define ssize_t int
17595
_ACEOF
17596
 
17597
fi
17598
 
17599
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17600
case $ac_cv_c_uint16_t in #(
17601
  no|yes) ;; #(
17602
  *)
17603
 
17604
 
17605
cat >>confdefs.h <<_ACEOF
17606
@%:@define uint16_t $ac_cv_c_uint16_t
17607
_ACEOF
17608
;;
17609
  esac
17610
 
17611
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17612
case $ac_cv_c_uint32_t in #(
17613
  no|yes) ;; #(
17614
  *)
17615
 
17616
$as_echo "@%:@define _UINT32_T 1" >>confdefs.h
17617
 
17618
 
17619
cat >>confdefs.h <<_ACEOF
17620
@%:@define uint32_t $ac_cv_c_uint32_t
17621
_ACEOF
17622
;;
17623
  esac
17624
 
17625
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17626
case $ac_cv_c_uint64_t in #(
17627
  no|yes) ;; #(
17628
  *)
17629
 
17630
$as_echo "@%:@define _UINT64_T 1" >>confdefs.h
17631
 
17632
 
17633
cat >>confdefs.h <<_ACEOF
17634
@%:@define uint64_t $ac_cv_c_uint64_t
17635
_ACEOF
17636
;;
17637
  esac
17638
 
17639
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17640
case $ac_cv_c_uint8_t in #(
17641
  no|yes) ;; #(
17642
  *)
17643
 
17644
$as_echo "@%:@define _UINT8_T 1" >>confdefs.h
17645
 
17646
 
17647
cat >>confdefs.h <<_ACEOF
17648
@%:@define uint8_t $ac_cv_c_uint8_t
17649
_ACEOF
17650
;;
17651
  esac
17652
 
17653
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17654
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
17655
 
17656
cat >>confdefs.h <<_ACEOF
17657
@%:@define HAVE_PTRDIFF_T 1
17658
_ACEOF
17659
 
17660
 
17661
else
17662
  exit 1
17663
fi
17664
 
17665
 
17666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17667
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17668
if test "${ac_cv_struct_tm+set}" = set; then :
17669
  $as_echo_n "(cached) " >&6
17670
else
17671
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672
/* end confdefs.h.  */
17673
#include <sys/types.h>
17674
#include <time.h>
17675
 
17676
int
17677
main ()
17678
{
17679
struct tm tm;
17680
				     int *p = &tm.tm_sec;
17681
				     return !p;
17682
  ;
17683
  return 0;
17684
}
17685
_ACEOF
17686
if ac_fn_cxx_try_compile "$LINENO"; then :
17687
  ac_cv_struct_tm=time.h
17688
else
17689
  ac_cv_struct_tm=sys/time.h
17690
fi
17691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692
fi
17693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17694
$as_echo "$ac_cv_struct_tm" >&6; }
17695
if test $ac_cv_struct_tm = sys/time.h; then
17696
 
17697
$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
17698
 
17699
fi
17700
 
17701
 
17702
ac_fn_cxx_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" "
17703
  #include <sys/types.h>
17704
  #include <sys/socket.h>
17705
  #include <netdb.h>
17706
 
17707
"
17708
if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then :
17709
 
17710
else
17711
 
17712
$as_echo "@%:@define AI_ADDRCONFIG 0" >>confdefs.h
17713
 
17714
fi
17715
 
17716
 
17717
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17718
# for constant arguments.  Useless!
17719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17720
$as_echo_n "checking for working alloca.h... " >&6; }
17721
if test "${ac_cv_working_alloca_h+set}" = set; then :
17722
  $as_echo_n "(cached) " >&6
17723
else
17724
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725
/* end confdefs.h.  */
17726
@%:@include <alloca.h>
17727
int
17728
main ()
17729
{
17730
char *p = (char *) alloca (2 * sizeof (int));
17731
			  if (p) return 0;
17732
  ;
17733
  return 0;
17734
}
17735
_ACEOF
17736
if ac_fn_cxx_try_link "$LINENO"; then :
17737
  ac_cv_working_alloca_h=yes
17738
else
17739
  ac_cv_working_alloca_h=no
17740
fi
17741
rm -f core conftest.err conftest.$ac_objext \
17742
    conftest$ac_exeext conftest.$ac_ext
17743
fi
17744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17745
$as_echo "$ac_cv_working_alloca_h" >&6; }
17746
if test $ac_cv_working_alloca_h = yes; then
17747
 
17748
$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
17749
 
17750
fi
17751
 
17752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17753
$as_echo_n "checking for alloca... " >&6; }
17754
if test "${ac_cv_func_alloca_works+set}" = set; then :
17755
  $as_echo_n "(cached) " >&6
17756
else
17757
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758
/* end confdefs.h.  */
17759
#ifdef __GNUC__
17760
# define alloca __builtin_alloca
17761
#else
17762
# ifdef _MSC_VER
17763
#  include <malloc.h>
17764
#  define alloca _alloca
17765
# else
17766
#  ifdef HAVE_ALLOCA_H
17767
#   include <alloca.h>
17768
#  else
17769
#   ifdef _AIX
17770
 #pragma alloca
17771
#   else
17772
#    ifndef alloca /* predefined by HP cc +Olibcalls */
17773
char *alloca ();
17774
#    endif
17775
#   endif
17776
#  endif
17777
# endif
17778
#endif
17779
 
17780
int
17781
main ()
17782
{
17783
char *p = (char *) alloca (1);
17784
				    if (p) return 0;
17785
  ;
17786
  return 0;
17787
}
17788
_ACEOF
17789
if ac_fn_cxx_try_link "$LINENO"; then :
17790
  ac_cv_func_alloca_works=yes
17791
else
17792
  ac_cv_func_alloca_works=no
17793
fi
17794
rm -f core conftest.err conftest.$ac_objext \
17795
    conftest$ac_exeext conftest.$ac_ext
17796
fi
17797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17798
$as_echo "$ac_cv_func_alloca_works" >&6; }
17799
 
17800
if test $ac_cv_func_alloca_works = yes; then
17801
 
17802
$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
17803
 
17804
else
17805
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17806
# that cause trouble.  Some versions do not even contain alloca or
17807
# contain a buggy version.  If you still want to use their alloca,
17808
# use ar to extract alloca.o from them instead of compiling alloca.c.
17809
 
17810
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17811
 
17812
$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
17813
 
17814
 
17815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17816
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17817
if test "${ac_cv_os_cray+set}" = set; then :
17818
  $as_echo_n "(cached) " >&6
17819
else
17820
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821
/* end confdefs.h.  */
17822
#if defined CRAY && ! defined CRAY2
17823
webecray
17824
#else
17825
wenotbecray
17826
#endif
17827
 
17828
_ACEOF
17829
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17830
  $EGREP "webecray" >/dev/null 2>&1; then :
17831
  ac_cv_os_cray=yes
17832
else
17833
  ac_cv_os_cray=no
17834
fi
17835
rm -f conftest*
17836
 
17837
fi
17838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17839
$as_echo "$ac_cv_os_cray" >&6; }
17840
if test $ac_cv_os_cray = yes; then
17841
  for ac_func in _getb67 GETB67 getb67; do
17842
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17843
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
17844
eval as_val=\$$as_ac_var
17845
   if test "x$as_val" = x""yes; then :
17846
 
17847
cat >>confdefs.h <<_ACEOF
17848
@%:@define CRAY_STACKSEG_END $ac_func
17849
_ACEOF
17850
 
17851
    break
17852
fi
17853
 
17854
  done
17855
fi
17856
 
17857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17858
$as_echo_n "checking stack direction for C alloca... " >&6; }
17859
if test "${ac_cv_c_stack_direction+set}" = set; then :
17860
  $as_echo_n "(cached) " >&6
17861
else
17862
  if test "$cross_compiling" = yes; then :
17863
  ac_cv_c_stack_direction=0
17864
else
17865
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866
/* end confdefs.h.  */
17867
$ac_includes_default
17868
int
17869
find_stack_direction ()
17870
{
17871
  static char *addr = 0;
17872
  auto char dummy;
17873
  if (addr == 0)
17874
    {
17875
      addr = &dummy;
17876
      return find_stack_direction ();
17877
    }
17878
  else
17879
    return (&dummy > addr) ? 1 : -1;
17880
}
17881
 
17882
int
17883
main ()
17884
{
17885
  return find_stack_direction () < 0;
17886
}
17887
_ACEOF
17888
if ac_fn_cxx_try_run "$LINENO"; then :
17889
  ac_cv_c_stack_direction=1
17890
else
17891
  ac_cv_c_stack_direction=-1
17892
fi
17893
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17894
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17895
fi
17896
 
17897
fi
17898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17899
$as_echo "$ac_cv_c_stack_direction" >&6; }
17900
cat >>confdefs.h <<_ACEOF
17901
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
17902
_ACEOF
17903
 
17904
 
17905
fi
17906
 
17907
for ac_header in stdlib.h
17908
do :
17909
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17910
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
17911
  cat >>confdefs.h <<_ACEOF
17912
@%:@define HAVE_STDLIB_H 1
17913
_ACEOF
17914
 
17915
fi
17916
 
17917
done
17918
 
17919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17920
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17921
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
17922
  $as_echo_n "(cached) " >&6
17923
else
17924
  if test "$cross_compiling" = yes; then :
17925
  ac_cv_func_malloc_0_nonnull=no
17926
else
17927
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928
/* end confdefs.h.  */
17929
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
17930
# include <stdlib.h>
17931
#else
17932
char *malloc ();
17933
#endif
17934
 
17935
int
17936
main ()
17937
{
17938
return ! malloc (0);
17939
  ;
17940
  return 0;
17941
}
17942
_ACEOF
17943
if ac_fn_cxx_try_run "$LINENO"; then :
17944
  ac_cv_func_malloc_0_nonnull=yes
17945
else
17946
  ac_cv_func_malloc_0_nonnull=no
17947
fi
17948
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17949
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17950
fi
17951
 
17952
fi
17953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17954
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17955
if test $ac_cv_func_malloc_0_nonnull = yes; then :
17956
 
17957
$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
17958
 
17959
else
17960
  $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
17961
 
17962
   case " $LIB@&t@OBJS " in
17963
  *" malloc.$ac_objext "* ) ;;
17964
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
17965
 ;;
17966
esac
17967
 
17968
 
17969
$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
17970
 
17971
fi
17972
 
17973
 
17974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
17975
$as_echo_n "checking for working memcmp... " >&6; }
17976
if test "${ac_cv_func_memcmp_working+set}" = set; then :
17977
  $as_echo_n "(cached) " >&6
17978
else
17979
  if test "$cross_compiling" = yes; then :
17980
  ac_cv_func_memcmp_working=no
17981
else
17982
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983
/* end confdefs.h.  */
17984
$ac_includes_default
17985
int
17986
main ()
17987
{
17988
 
17989
  /* Some versions of memcmp are not 8-bit clean.  */
17990
  char c0 = '\100', c1 = '\200', c2 = '\201';
17991
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
17992
    return 1;
17993
 
17994
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17995
     or more and with at least one buffer not starting on a 4-byte boundary.
17996
     William Lewis provided this test program.   */
17997
  {
17998
    char foo[21];
17999
    char bar[21];
18000
    int i;
18001
    for (i = 0; i < 4; i++)
18002
      {
18003
	char *a = foo + i;
18004
	char *b = bar + i;
18005
	strcpy (a, "--------01111111");
18006
	strcpy (b, "--------10000000");
18007
	if (memcmp (a, b, 16) >= 0)
18008
	  return 1;
18009
      }
18010
    return 0;
18011
  }
18012
 
18013
  ;
18014
  return 0;
18015
}
18016
_ACEOF
18017
if ac_fn_cxx_try_run "$LINENO"; then :
18018
  ac_cv_func_memcmp_working=yes
18019
else
18020
  ac_cv_func_memcmp_working=no
18021
fi
18022
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18023
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18024
fi
18025
 
18026
fi
18027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
18028
$as_echo "$ac_cv_func_memcmp_working" >&6; }
18029
test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
18030
  *" memcmp.$ac_objext "* ) ;;
18031
  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
18032
 ;;
18033
esac
18034
 
18035
 
18036
for ac_header in stdlib.h
18037
do :
18038
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18039
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
18040
  cat >>confdefs.h <<_ACEOF
18041
@%:@define HAVE_STDLIB_H 1
18042
_ACEOF
18043
 
18044
fi
18045
 
18046
done
18047
 
18048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
18049
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
18050
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
18051
  $as_echo_n "(cached) " >&6
18052
else
18053
  if test "$cross_compiling" = yes; then :
18054
  ac_cv_func_realloc_0_nonnull=no
18055
else
18056
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057
/* end confdefs.h.  */
18058
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
18059
# include <stdlib.h>
18060
#else
18061
char *realloc ();
18062
#endif
18063
 
18064
int
18065
main ()
18066
{
18067
return ! realloc (0, 0);
18068
  ;
18069
  return 0;
18070
}
18071
_ACEOF
18072
if ac_fn_cxx_try_run "$LINENO"; then :
18073
  ac_cv_func_realloc_0_nonnull=yes
18074
else
18075
  ac_cv_func_realloc_0_nonnull=no
18076
fi
18077
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18078
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18079
fi
18080
 
18081
fi
18082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
18083
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
18084
if test $ac_cv_func_realloc_0_nonnull = yes; then :
18085
 
18086
$as_echo "@%:@define HAVE_REALLOC 1" >>confdefs.h
18087
 
18088
else
18089
  $as_echo "@%:@define HAVE_REALLOC 0" >>confdefs.h
18090
 
18091
   case " $LIB@&t@OBJS " in
18092
  *" realloc.$ac_objext "* ) ;;
18093
  *) LIB@&t@OBJS="$LIB@&t@OBJS realloc.$ac_objext"
18094
 ;;
18095
esac
18096
 
18097
 
18098
$as_echo "@%:@define realloc rpl_realloc" >>confdefs.h
18099
 
18100
fi
18101
 
18102
 
18103
for ac_header in sys/select.h sys/socket.h
18104
do :
18105
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18106
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18107
eval as_val=\$$as_ac_Header
18108
   if test "x$as_val" = x""yes; then :
18109
  cat >>confdefs.h <<_ACEOF
18110
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18111
_ACEOF
18112
 
18113
fi
18114
 
18115
done
18116
 
18117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
18118
$as_echo_n "checking types of arguments for select... " >&6; }
18119
if test "${ac_cv_func_select_args+set}" = set; then :
18120
  $as_echo_n "(cached) " >&6
18121
else
18122
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
18123
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
18124
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
18125
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18126
/* end confdefs.h.  */
18127
$ac_includes_default
18128
#ifdef HAVE_SYS_SELECT_H
18129
# include <sys/select.h>
18130
#endif
18131
#ifdef HAVE_SYS_SOCKET_H
18132
# include <sys/socket.h>
18133
#endif
18134
 
18135
int
18136
main ()
18137
{
18138
extern int select ($ac_arg1,
18139
					    $ac_arg234, $ac_arg234, $ac_arg234,
18140
					    $ac_arg5);
18141
  ;
18142
  return 0;
18143
}
18144
_ACEOF
18145
if ac_fn_cxx_try_compile "$LINENO"; then :
18146
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
18147
fi
18148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149
  done
18150
 done
18151
done
18152
# Provide a safe default value.
18153
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
18154
 
18155
fi
18156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
18157
$as_echo "$ac_cv_func_select_args" >&6; }
18158
ac_save_IFS=$IFS; IFS=','
18159
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
18160
IFS=$ac_save_IFS
18161
shift
18162
 
18163
cat >>confdefs.h <<_ACEOF
18164
@%:@define SELECT_TYPE_ARG1 $1
18165
_ACEOF
18166
 
18167
 
18168
cat >>confdefs.h <<_ACEOF
18169
@%:@define SELECT_TYPE_ARG234 ($2)
18170
_ACEOF
18171
 
18172
 
18173
cat >>confdefs.h <<_ACEOF
18174
@%:@define SELECT_TYPE_ARG5 ($3)
18175
_ACEOF
18176
 
18177
rm -f conftest*
18178
 
18179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
18180
$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
18181
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18182
  $as_echo_n "(cached) " >&6
18183
else
18184
  rm -f conftest.sym conftest.file
18185
echo >conftest.file
18186
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18187
  if test "$cross_compiling" = yes; then :
18188
  ac_cv_func_lstat_dereferences_slashed_symlink=no
18189
else
18190
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191
/* end confdefs.h.  */
18192
$ac_includes_default
18193
int
18194
main ()
18195
{
18196
struct stat sbuf;
18197
     /* Linux will dereference the symlink and fail.
18198
	That is better in the sense that it means we will not
18199
	have to compile and use the lstat wrapper.  */
18200
     return lstat ("conftest.sym/", &sbuf) == 0;
18201
  ;
18202
  return 0;
18203
}
18204
_ACEOF
18205
if ac_fn_cxx_try_run "$LINENO"; then :
18206
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
18207
else
18208
  ac_cv_func_lstat_dereferences_slashed_symlink=no
18209
fi
18210
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18211
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18212
fi
18213
 
18214
else
18215
  # If the `ln -s' command failed, then we probably don't even
18216
  # have an lstat function.
18217
  ac_cv_func_lstat_dereferences_slashed_symlink=no
18218
fi
18219
rm -f conftest.sym conftest.file
18220
 
18221
fi
18222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18223
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18224
 
18225
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18226
 
18227
cat >>confdefs.h <<_ACEOF
18228
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18229
_ACEOF
18230
 
18231
 
18232
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
18233
  case " $LIB@&t@OBJS " in
18234
  *" lstat.$ac_objext "* ) ;;
18235
  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
18236
 ;;
18237
esac
18238
 
18239
fi
18240
 
18241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
18242
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
18243
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
18244
  $as_echo_n "(cached) " >&6
18245
else
18246
  if test "$cross_compiling" = yes; then :
18247
  ac_cv_func_stat_empty_string_bug=yes
18248
else
18249
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250
/* end confdefs.h.  */
18251
$ac_includes_default
18252
int
18253
main ()
18254
{
18255
struct stat sbuf;
18256
  return stat ("", &sbuf) == 0;
18257
  ;
18258
  return 0;
18259
}
18260
_ACEOF
18261
if ac_fn_cxx_try_run "$LINENO"; then :
18262
  ac_cv_func_stat_empty_string_bug=no
18263
else
18264
  ac_cv_func_stat_empty_string_bug=yes
18265
fi
18266
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18267
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18268
fi
18269
 
18270
fi
18271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
18272
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
18273
if test $ac_cv_func_stat_empty_string_bug = yes; then
18274
  case " $LIB@&t@OBJS " in
18275
  *" stat.$ac_objext "* ) ;;
18276
  *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
18277
 ;;
18278
esac
18279
 
18280
 
18281
cat >>confdefs.h <<_ACEOF
18282
@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
18283
_ACEOF
18284
 
18285
fi
18286
 
18287
ac_fn_cxx_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
18288
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
18289
  ac_have_decl=1
18290
else
18291
  ac_have_decl=0
18292
fi
18293
 
18294
cat >>confdefs.h <<_ACEOF
18295
@%:@define HAVE_DECL_STRERROR_R $ac_have_decl
18296
_ACEOF
18297
 
18298
for ac_func in strerror_r
18299
do :
18300
  ac_fn_cxx_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
18301
if test "x$ac_cv_func_strerror_r" = x""yes; then :
18302
  cat >>confdefs.h <<_ACEOF
18303
@%:@define HAVE_STRERROR_R 1
18304
_ACEOF
18305
 
18306
fi
18307
done
18308
 
18309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
18310
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
18311
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
18312
  $as_echo_n "(cached) " >&6
18313
else
18314
 
18315
    ac_cv_func_strerror_r_char_p=no
18316
    if test $ac_cv_have_decl_strerror_r = yes; then
18317
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318
/* end confdefs.h.  */
18319
$ac_includes_default
18320
int
18321
main ()
18322
{
18323
 
18324
	  char buf[100];
18325
	  char x = *strerror_r (0, buf, sizeof buf);
18326
	  char *p = strerror_r (0, buf, sizeof buf);
18327
	  return !p || x;
18328
 
18329
  ;
18330
  return 0;
18331
}
18332
_ACEOF
18333
if ac_fn_cxx_try_compile "$LINENO"; then :
18334
  ac_cv_func_strerror_r_char_p=yes
18335
fi
18336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337
    else
18338
      # strerror_r is not declared.  Choose between
18339
      # systems that have relatively inaccessible declarations for the
18340
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
18341
      # former has a strerror_r that returns char*, while the latter
18342
      # has a strerror_r that returns `int'.
18343
      # This test should segfault on the DEC system.
18344
      if test "$cross_compiling" = yes; then :
18345
  :
18346
else
18347
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348
/* end confdefs.h.  */
18349
$ac_includes_default
18350
	extern char *strerror_r ();
18351
int
18352
main ()
18353
{
18354
char buf[100];
18355
	  char x = *strerror_r (0, buf, sizeof buf);
18356
	  return ! isalpha (x);
18357
  ;
18358
  return 0;
18359
}
18360
_ACEOF
18361
if ac_fn_cxx_try_run "$LINENO"; then :
18362
  ac_cv_func_strerror_r_char_p=yes
18363
fi
18364
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18365
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18366
fi
18367
 
18368
    fi
18369
 
18370
fi
18371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
18372
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
18373
if test $ac_cv_func_strerror_r_char_p = yes; then
18374
 
18375
$as_echo "@%:@define STRERROR_R_CHAR_P 1" >>confdefs.h
18376
 
18377
fi
18378
 
18379
for ac_func in strftime
18380
do :
18381
  ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
18382
if test "x$ac_cv_func_strftime" = x""yes; then :
18383
  cat >>confdefs.h <<_ACEOF
18384
@%:@define HAVE_STRFTIME 1
18385
_ACEOF
18386
 
18387
else
18388
  # strftime is in -lintl on SCO UNIX.
18389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
18390
$as_echo_n "checking for strftime in -lintl... " >&6; }
18391
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
18392
  $as_echo_n "(cached) " >&6
18393
else
18394
  ac_check_lib_save_LIBS=$LIBS
18395
LIBS="-lintl  $LIBS"
18396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397
/* end confdefs.h.  */
18398
 
18399
/* Override any GCC internal prototype to avoid an error.
18400
   Use char because int might match the return type of a GCC
18401
   builtin and then its argument prototype would still apply.  */
18402
#ifdef __cplusplus
18403
extern "C"
18404
#endif
18405
char strftime ();
18406
int
18407
main ()
18408
{
18409
return strftime ();
18410
  ;
18411
  return 0;
18412
}
18413
_ACEOF
18414
if ac_fn_cxx_try_link "$LINENO"; then :
18415
  ac_cv_lib_intl_strftime=yes
18416
else
18417
  ac_cv_lib_intl_strftime=no
18418
fi
18419
rm -f core conftest.err conftest.$ac_objext \
18420
    conftest$ac_exeext conftest.$ac_ext
18421
LIBS=$ac_check_lib_save_LIBS
18422
fi
18423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
18424
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
18425
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
18426
  $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
18427
 
18428
LIBS="-lintl $LIBS"
18429
fi
18430
 
18431
fi
18432
done
18433
 
18434
for ac_func in vprintf
18435
do :
18436
  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
18437
if test "x$ac_cv_func_vprintf" = x""yes; then :
18438
  cat >>confdefs.h <<_ACEOF
18439
@%:@define HAVE_VPRINTF 1
18440
_ACEOF
18441
 
18442
ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18443
if test "x$ac_cv_func__doprnt" = x""yes; then :
18444
 
18445
$as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
18446
 
18447
fi
18448
 
18449
fi
18450
done
18451
 
18452
 
18453
for ac_func in strtoul
18454
do :
18455
  ac_fn_cxx_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
18456
if test "x$ac_cv_func_strtoul" = x""yes; then :
18457
  cat >>confdefs.h <<_ACEOF
18458
@%:@define HAVE_STRTOUL 1
18459
_ACEOF
18460
 
18461
fi
18462
done
18463
 
18464
for ac_func in bzero
18465
do :
18466
  ac_fn_cxx_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
18467
if test "x$ac_cv_func_bzero" = x""yes; then :
18468
  cat >>confdefs.h <<_ACEOF
18469
@%:@define HAVE_BZERO 1
18470
_ACEOF
18471
 
18472
fi
18473
done
18474
 
18475
for ac_func in ftruncate
18476
do :
18477
  ac_fn_cxx_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
18478
if test "x$ac_cv_func_ftruncate" = x""yes; then :
18479
  cat >>confdefs.h <<_ACEOF
18480
@%:@define HAVE_FTRUNCATE 1
18481
_ACEOF
18482
 
18483
fi
18484
done
18485
 
18486
for ac_func in gethostbyname
18487
do :
18488
  ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18489
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
18490
  cat >>confdefs.h <<_ACEOF
18491
@%:@define HAVE_GETHOSTBYNAME 1
18492
_ACEOF
18493
 
18494
fi
18495
done
18496
 
18497
for ac_func in gettimeofday
18498
do :
18499
  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18500
if test "x$ac_cv_func_gettimeofday" = x""yes; then :
18501
  cat >>confdefs.h <<_ACEOF
18502
@%:@define HAVE_GETTIMEOFDAY 1
18503
_ACEOF
18504
 
18505
fi
18506
done
18507
 
18508
for ac_func in memmove
18509
do :
18510
  ac_fn_cxx_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18511
if test "x$ac_cv_func_memmove" = x""yes; then :
18512
  cat >>confdefs.h <<_ACEOF
18513
@%:@define HAVE_MEMMOVE 1
18514
_ACEOF
18515
 
18516
fi
18517
done
18518
 
18519
for ac_func in memset
18520
do :
18521
  ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset"
18522
if test "x$ac_cv_func_memset" = x""yes; then :
18523
  cat >>confdefs.h <<_ACEOF
18524
@%:@define HAVE_MEMSET 1
18525
_ACEOF
18526
 
18527
fi
18528
done
18529
 
18530
for ac_func in mkdir
18531
do :
18532
  ac_fn_cxx_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
18533
if test "x$ac_cv_func_mkdir" = x""yes; then :
18534
  cat >>confdefs.h <<_ACEOF
18535
@%:@define HAVE_MKDIR 1
18536
_ACEOF
18537
 
18538
fi
18539
done
18540
 
18541
for ac_func in realpath
18542
do :
18543
  ac_fn_cxx_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
18544
if test "x$ac_cv_func_realpath" = x""yes; then :
18545
  cat >>confdefs.h <<_ACEOF
18546
@%:@define HAVE_REALPATH 1
18547
_ACEOF
18548
 
18549
fi
18550
done
18551
 
18552
for ac_func in select
18553
do :
18554
  ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select"
18555
if test "x$ac_cv_func_select" = x""yes; then :
18556
  cat >>confdefs.h <<_ACEOF
18557
@%:@define HAVE_SELECT 1
18558
_ACEOF
18559
 
18560
fi
18561
done
18562
 
18563
for ac_func in socket
18564
do :
18565
  ac_fn_cxx_check_func "$LINENO" "socket" "ac_cv_func_socket"
18566
if test "x$ac_cv_func_socket" = x""yes; then :
18567
  cat >>confdefs.h <<_ACEOF
18568
@%:@define HAVE_SOCKET 1
18569
_ACEOF
18570
 
18571
fi
18572
done
18573
 
18574
for ac_func in strchr
18575
do :
18576
  ac_fn_cxx_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
18577
if test "x$ac_cv_func_strchr" = x""yes; then :
18578
  cat >>confdefs.h <<_ACEOF
18579
@%:@define HAVE_STRCHR 1
18580
_ACEOF
18581
 
18582
fi
18583
done
18584
 
18585
for ac_func in strdup
18586
do :
18587
  ac_fn_cxx_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
18588
if test "x$ac_cv_func_strdup" = x""yes; then :
18589
  cat >>confdefs.h <<_ACEOF
18590
@%:@define HAVE_STRDUP 1
18591
_ACEOF
18592
 
18593
fi
18594
done
18595
 
18596
for ac_func in strerror
18597
do :
18598
  ac_fn_cxx_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18599
if test "x$ac_cv_func_strerror" = x""yes; then :
18600
  cat >>confdefs.h <<_ACEOF
18601
@%:@define HAVE_STRERROR 1
18602
_ACEOF
18603
 
18604
fi
18605
done
18606
 
18607
for ac_func in strstr
18608
do :
18609
  ac_fn_cxx_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
18610
if test "x$ac_cv_func_strstr" = x""yes; then :
18611
  cat >>confdefs.h <<_ACEOF
18612
@%:@define HAVE_STRSTR 1
18613
_ACEOF
18614
 
18615
fi
18616
done
18617
 
18618
for ac_func in strtol
18619
do :
18620
  ac_fn_cxx_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
18621
if test "x$ac_cv_func_strtol" = x""yes; then :
18622
  cat >>confdefs.h <<_ACEOF
18623
@%:@define HAVE_STRTOL 1
18624
_ACEOF
18625
 
18626
fi
18627
done
18628
 
18629
for ac_func in sqrt
18630
do :
18631
  ac_fn_cxx_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
18632
if test "x$ac_cv_func_sqrt" = x""yes; then :
18633
  cat >>confdefs.h <<_ACEOF
18634
@%:@define HAVE_SQRT 1
18635
_ACEOF
18636
 
18637
fi
18638
done
18639
 
18640
for ac_func in clock_gettime
18641
do :
18642
  ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
18643
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
18644
  cat >>confdefs.h <<_ACEOF
18645
@%:@define HAVE_CLOCK_GETTIME 1
18646
_ACEOF
18647
 
18648
fi
18649
done
18650
 
18651
for ac_func in sched_get_priority_min
18652
do :
18653
  ac_fn_cxx_check_func "$LINENO" "sched_get_priority_min" "ac_cv_func_sched_get_priority_min"
18654
if test "x$ac_cv_func_sched_get_priority_min" = x""yes; then :
18655
  cat >>confdefs.h <<_ACEOF
18656
@%:@define HAVE_SCHED_GET_PRIORITY_MIN 1
18657
_ACEOF
18658
 
18659
fi
18660
done
18661
 
18662
for ac_func in sched_get_priority_max
18663
do :
18664
  ac_fn_cxx_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
18665
if test "x$ac_cv_func_sched_get_priority_max" = x""yes; then :
18666
  cat >>confdefs.h <<_ACEOF
18667
@%:@define HAVE_SCHED_GET_PRIORITY_MAX 1
18668
_ACEOF
18669
 
18670
fi
18671
done
18672
 
18673
 
18674
 
18675
 
18676
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking the behavior of a signed right shift" >&5
18677
$as_echo_n "checking the behavior of a signed right shift... " >&6; }
18678
 
18679
          success_arithmetic=no
18680
          if test "$cross_compiling" = yes; then :
18681
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18682
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18683
as_fn_error "cannot run test program while cross compiling
18684
See \`config.log' for more details." "$LINENO" 5; }
18685
else
18686
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687
/* end confdefs.h.  */
18688
 
18689
int
18690
main ()
18691
{
18692
 
18693
          return
18694
            /* 0xffffffff */
18695
            -1 >>  1 != -1 ||
18696
            -1 >>  2 != -1 ||
18697
            -1 >>  3 != -1 ||
18698
            -1 >>  4 != -1 ||
18699
            -1 >>  8 != -1 ||
18700
            -1 >> 16 != -1 ||
18701
            -1 >> 24 != -1 ||
18702
            -1 >> 31 != -1 ||
18703
            /* 0x80000000 */
18704
            (-2147483647 - 1) >>  1 != -1073741824 ||
18705
            (-2147483647 - 1) >>  2 != -536870912  ||
18706
            (-2147483647 - 1) >>  3 != -268435456  ||
18707
            (-2147483647 - 1) >>  4 != -134217728  ||
18708
            (-2147483647 - 1) >>  8 != -8388608    ||
18709
            (-2147483647 - 1) >> 16 != -32768      ||
18710
            (-2147483647 - 1) >> 24 != -128        ||
18711
            (-2147483647 - 1) >> 31 != -1          ||
18712
            /* 0x90800000 */
18713
            -1870659584 >>  1 != -935329792 ||
18714
            -1870659584 >>  2 != -467664896 ||
18715
            -1870659584 >>  3 != -233832448 ||
18716
            -1870659584 >>  4 != -116916224 ||
18717
            -1870659584 >>  8 != -7307264   ||
18718
            -1870659584 >> 16 != -28544     ||
18719
            -1870659584 >> 24 != -112       ||
18720
            -1870659584 >> 31 != -1         ||
18721
            0;
18722
 
18723
  ;
18724
  return 0;
18725
}
18726
_ACEOF
18727
if ac_fn_cxx_try_run "$LINENO"; then :
18728
 
18729
          success_arithmetic=yes
18730
 
18731
fi
18732
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18733
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18734
fi
18735
 
18736
 
18737
 
18738
          success_logical=no
18739
          if test "$cross_compiling" = yes; then :
18740
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18741
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18742
as_fn_error "cannot run test program while cross compiling
18743
See \`config.log' for more details." "$LINENO" 5; }
18744
else
18745
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746
/* end confdefs.h.  */
18747
 
18748
int
18749
main ()
18750
{
18751
 
18752
          return
18753
            /* 0xffffffff */
18754
            -1 >>  1 != (signed)((unsigned)-1 >>  1) ||
18755
            -1 >>  2 != (signed)((unsigned)-1 >>  2) ||
18756
            -1 >>  3 != (signed)((unsigned)-1 >>  3) ||
18757
            -1 >>  4 != (signed)((unsigned)-1 >>  4) ||
18758
            -1 >>  8 != (signed)((unsigned)-1 >>  8) ||
18759
            -1 >> 16 != (signed)((unsigned)-1 >> 16) ||
18760
            -1 >> 24 != (signed)((unsigned)-1 >> 24) ||
18761
            -1 >> 31 != (signed)((unsigned)-1 >> 31) ||
18762
            /* 0x80000000 */
18763
            (-2147483647 - 1) >>  1 != (signed)((unsigned)(-2147483647 - 1) >>  1) ||
18764
            (-2147483647 - 1) >>  2 != (signed)((unsigned)(-2147483647 - 1) >>  2) ||
18765
            (-2147483647 - 1) >>  3 != (signed)((unsigned)(-2147483647 - 1) >>  3) ||
18766
            (-2147483647 - 1) >>  4 != (signed)((unsigned)(-2147483647 - 1) >>  4) ||
18767
            (-2147483647 - 1) >>  8 != (signed)((unsigned)(-2147483647 - 1) >>  8) ||
18768
            (-2147483647 - 1) >> 16 != (signed)((unsigned)(-2147483647 - 1) >> 16) ||
18769
            (-2147483647 - 1) >> 24 != (signed)((unsigned)(-2147483647 - 1) >> 24) ||
18770
            (-2147483647 - 1) >> 31 != (signed)((unsigned)(-2147483647 - 1) >> 31) ||
18771
            /* 0x90800000 */
18772
            -1870659584 >>  1 != (signed)((unsigned)-1870659584 >>  1) ||
18773
            -1870659584 >>  2 != (signed)((unsigned)-1870659584 >>  2) ||
18774
            -1870659584 >>  3 != (signed)((unsigned)-1870659584 >>  3) ||
18775
            -1870659584 >>  4 != (signed)((unsigned)-1870659584 >>  4) ||
18776
            -1870659584 >>  8 != (signed)((unsigned)-1870659584 >>  8) ||
18777
            -1870659584 >> 16 != (signed)((unsigned)-1870659584 >> 16) ||
18778
            -1870659584 >> 24 != (signed)((unsigned)-1870659584 >> 24) ||
18779
            -1870659584 >> 31 != (signed)((unsigned)-1870659584 >> 31) ||
18780
            0;
18781
 
18782
  ;
18783
  return 0;
18784
}
18785
_ACEOF
18786
if ac_fn_cxx_try_run "$LINENO"; then :
18787
 
18788
          success_logical=yes
18789
 
18790
fi
18791
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18792
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18793
fi
18794
 
18795
 
18796
 
18797
 
18798
$as_echo "@%:@define ARITHMETIC_RIGHT_SHIFT 1" >>confdefs.h
18799
 
18800
 
18801
$as_echo "@%:@define LOGICAL_RIGHT_SHIFT 2" >>confdefs.h
18802
 
18803
 
18804
$as_echo "@%:@define UNKNOWN_RIGHT_SHIFT 3" >>confdefs.h
18805
 
18806
 
18807
          if test "$success_arithmetic" = "yes" && test "$success_logica" = "yes" ; then
18808
            as_fn_error "\"Right shift appears to be both arithmetic and logical!\"" "$LINENO" 5
18809
          elif test "$success_arithmetic" = "yes" ; then
18810
            ax_signed_right_shift=arithmetic
18811
 
18812
$as_echo "@%:@define SIGNED_RIGHT_SHIFT_IS 1" >>confdefs.h
18813
 
18814
          elif test "$success_logical" = "yes" ; then
18815
            ax_signed_right_shift=logical
18816
 
18817
$as_echo "@%:@define SIGNED_RIGHT_SHIFT_IS 2" >>confdefs.h
18818
 
18819
          else
18820
            ax_signed_right_shift=unknown
18821
 
18822
$as_echo "@%:@define SIGNED_RIGHT_SHIFT_IS 3" >>confdefs.h
18823
 
18824
          fi
18825
 
18826
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_signed_right_shift" >&5
18827
$as_echo "$ax_signed_right_shift" >&6; }
18828
 
18829
 
18830
 
18831
          @%:@ Check whether --enable-gen-cpp was given.
18832
if test "${enable_gen_cpp+set}" = set; then :
18833
  enableval=$enable_gen_cpp; ax_thrift_gen_cpp="$enableval"
18834
else
18835
  ax_thrift_gen_cpp=yes
18836
 
18837
fi
18838
 
18839
 
18840
 if test "$ax_thrift_gen_cpp" = "yes"; then
18841
  THRIFT_GEN_cpp_TRUE=
18842
  THRIFT_GEN_cpp_FALSE='#'
18843
else
18844
  THRIFT_GEN_cpp_TRUE='#'
18845
  THRIFT_GEN_cpp_FALSE=
18846
fi
18847
 
18848
 
18849
          @%:@ Check whether --enable-gen-java was given.
18850
if test "${enable_gen_java+set}" = set; then :
18851
  enableval=$enable_gen_java; ax_thrift_gen_java="$enableval"
18852
else
18853
  ax_thrift_gen_java=yes
18854
 
18855
fi
18856
 
18857
 
18858
 if test "$ax_thrift_gen_java" = "yes"; then
18859
  THRIFT_GEN_java_TRUE=
18860
  THRIFT_GEN_java_FALSE='#'
18861
else
18862
  THRIFT_GEN_java_TRUE='#'
18863
  THRIFT_GEN_java_FALSE=
18864
fi
18865
 
18866
 
18867
          @%:@ Check whether --enable-gen-csharp was given.
18868
if test "${enable_gen_csharp+set}" = set; then :
18869
  enableval=$enable_gen_csharp; ax_thrift_gen_csharp="$enableval"
18870
else
18871
  ax_thrift_gen_csharp=yes
18872
 
18873
fi
18874
 
18875
 
18876
 if test "$ax_thrift_gen_csharp" = "yes"; then
18877
  THRIFT_GEN_csharp_TRUE=
18878
  THRIFT_GEN_csharp_FALSE='#'
18879
else
18880
  THRIFT_GEN_csharp_TRUE='#'
18881
  THRIFT_GEN_csharp_FALSE=
18882
fi
18883
 
18884
 
18885
          @%:@ Check whether --enable-gen-py was given.
18886
if test "${enable_gen_py+set}" = set; then :
18887
  enableval=$enable_gen_py; ax_thrift_gen_py="$enableval"
18888
else
18889
  ax_thrift_gen_py=yes
18890
 
18891
fi
18892
 
18893
 
18894
 if test "$ax_thrift_gen_py" = "yes"; then
18895
  THRIFT_GEN_py_TRUE=
18896
  THRIFT_GEN_py_FALSE='#'
18897
else
18898
  THRIFT_GEN_py_TRUE='#'
18899
  THRIFT_GEN_py_FALSE=
18900
fi
18901
 
18902
 
18903
          @%:@ Check whether --enable-gen-rb was given.
18904
if test "${enable_gen_rb+set}" = set; then :
18905
  enableval=$enable_gen_rb; ax_thrift_gen_rb="$enableval"
18906
else
18907
  ax_thrift_gen_rb=yes
18908
 
18909
fi
18910
 
18911
 
18912
 if test "$ax_thrift_gen_rb" = "yes"; then
18913
  THRIFT_GEN_rb_TRUE=
18914
  THRIFT_GEN_rb_FALSE='#'
18915
else
18916
  THRIFT_GEN_rb_TRUE='#'
18917
  THRIFT_GEN_rb_FALSE=
18918
fi
18919
 
18920
 
18921
          @%:@ Check whether --enable-gen-perl was given.
18922
if test "${enable_gen_perl+set}" = set; then :
18923
  enableval=$enable_gen_perl; ax_thrift_gen_perl="$enableval"
18924
else
18925
  ax_thrift_gen_perl=yes
18926
 
18927
fi
18928
 
18929
 
18930
 if test "$ax_thrift_gen_perl" = "yes"; then
18931
  THRIFT_GEN_perl_TRUE=
18932
  THRIFT_GEN_perl_FALSE='#'
18933
else
18934
  THRIFT_GEN_perl_TRUE='#'
18935
  THRIFT_GEN_perl_FALSE=
18936
fi
18937
 
18938
 
18939
          @%:@ Check whether --enable-gen-php was given.
18940
if test "${enable_gen_php+set}" = set; then :
18941
  enableval=$enable_gen_php; ax_thrift_gen_php="$enableval"
18942
else
18943
  ax_thrift_gen_php=yes
18944
 
18945
fi
18946
 
18947
 
18948
 if test "$ax_thrift_gen_php" = "yes"; then
18949
  THRIFT_GEN_php_TRUE=
18950
  THRIFT_GEN_php_FALSE='#'
18951
else
18952
  THRIFT_GEN_php_TRUE='#'
18953
  THRIFT_GEN_php_FALSE=
18954
fi
18955
 
18956
 
18957
          @%:@ Check whether --enable-gen-erl was given.
18958
if test "${enable_gen_erl+set}" = set; then :
18959
  enableval=$enable_gen_erl; ax_thrift_gen_erl="$enableval"
18960
else
18961
  ax_thrift_gen_erl=yes
18962
 
18963
fi
18964
 
18965
 
18966
 if test "$ax_thrift_gen_erl" = "yes"; then
18967
  THRIFT_GEN_erl_TRUE=
18968
  THRIFT_GEN_erl_FALSE='#'
18969
else
18970
  THRIFT_GEN_erl_TRUE='#'
18971
  THRIFT_GEN_erl_FALSE=
18972
fi
18973
 
18974
 
18975
          @%:@ Check whether --enable-gen-cocoa was given.
18976
if test "${enable_gen_cocoa+set}" = set; then :
18977
  enableval=$enable_gen_cocoa; ax_thrift_gen_cocoa="$enableval"
18978
else
18979
  ax_thrift_gen_cocoa=yes
18980
 
18981
fi
18982
 
18983
 
18984
 if test "$ax_thrift_gen_cocoa" = "yes"; then
18985
  THRIFT_GEN_cocoa_TRUE=
18986
  THRIFT_GEN_cocoa_FALSE='#'
18987
else
18988
  THRIFT_GEN_cocoa_TRUE='#'
18989
  THRIFT_GEN_cocoa_FALSE=
18990
fi
18991
 
18992
 
18993
          @%:@ Check whether --enable-gen-st was given.
18994
if test "${enable_gen_st+set}" = set; then :
18995
  enableval=$enable_gen_st; ax_thrift_gen_st="$enableval"
18996
else
18997
  ax_thrift_gen_st=yes
18998
 
18999
fi
19000
 
19001
 
19002
 if test "$ax_thrift_gen_st" = "yes"; then
19003
  THRIFT_GEN_st_TRUE=
19004
  THRIFT_GEN_st_FALSE='#'
19005
else
19006
  THRIFT_GEN_st_TRUE='#'
19007
  THRIFT_GEN_st_FALSE=
19008
fi
19009
 
19010
 
19011
          @%:@ Check whether --enable-gen-ocaml was given.
19012
if test "${enable_gen_ocaml+set}" = set; then :
19013
  enableval=$enable_gen_ocaml; ax_thrift_gen_ocaml="$enableval"
19014
else
19015
  ax_thrift_gen_ocaml=yes
19016
 
19017
fi
19018
 
19019
 
19020
 if test "$ax_thrift_gen_ocaml" = "yes"; then
19021
  THRIFT_GEN_ocaml_TRUE=
19022
  THRIFT_GEN_ocaml_FALSE='#'
19023
else
19024
  THRIFT_GEN_ocaml_TRUE='#'
19025
  THRIFT_GEN_ocaml_FALSE=
19026
fi
19027
 
19028
 
19029
          @%:@ Check whether --enable-gen-hs was given.
19030
if test "${enable_gen_hs+set}" = set; then :
19031
  enableval=$enable_gen_hs; ax_thrift_gen_hs="$enableval"
19032
else
19033
  ax_thrift_gen_hs=yes
19034
 
19035
fi
19036
 
19037
 
19038
 if test "$ax_thrift_gen_hs" = "yes"; then
19039
  THRIFT_GEN_hs_TRUE=
19040
  THRIFT_GEN_hs_FALSE='#'
19041
else
19042
  THRIFT_GEN_hs_TRUE='#'
19043
  THRIFT_GEN_hs_FALSE=
19044
fi
19045
 
19046
 
19047
          @%:@ Check whether --enable-gen-xsd was given.
19048
if test "${enable_gen_xsd+set}" = set; then :
19049
  enableval=$enable_gen_xsd; ax_thrift_gen_xsd="$enableval"
19050
else
19051
  ax_thrift_gen_xsd=yes
19052
 
19053
fi
19054
 
19055
 
19056
 if test "$ax_thrift_gen_xsd" = "yes"; then
19057
  THRIFT_GEN_xsd_TRUE=
19058
  THRIFT_GEN_xsd_FALSE='#'
19059
else
19060
  THRIFT_GEN_xsd_TRUE='#'
19061
  THRIFT_GEN_xsd_FALSE=
19062
fi
19063
 
19064
 
19065
          @%:@ Check whether --enable-gen-html was given.
19066
if test "${enable_gen_html+set}" = set; then :
19067
  enableval=$enable_gen_html; ax_thrift_gen_html="$enableval"
19068
else
19069
  ax_thrift_gen_html=yes
19070
 
19071
fi
19072
 
19073
 
19074
 if test "$ax_thrift_gen_html" = "yes"; then
19075
  THRIFT_GEN_html_TRUE=
19076
  THRIFT_GEN_html_FALSE='#'
19077
else
19078
  THRIFT_GEN_html_TRUE='#'
19079
  THRIFT_GEN_html_FALSE=
19080
fi
19081
 
19082
 
19083
ac_config_headers="$ac_config_headers config.h:config.hin"
19084
 
19085
 
19086
ac_config_files="$ac_config_files Makefile compiler/cpp/Makefile lib/Makefile lib/cpp/Makefile lib/cpp/thrift.pc lib/cpp/thrift-nb.pc lib/cpp/thrift-z.pc lib/csharp/Makefile lib/java/Makefile lib/perl/Makefile lib/perl/test/Makefile lib/py/Makefile lib/rb/Makefile test/Makefile test/py/Makefile test/rb/Makefile"
19087
 
19088
 
19089
cat >confcache <<\_ACEOF
19090
# This file is a shell script that caches the results of configure
19091
# tests run on this system so they can be shared between configure
19092
# scripts and configure runs, see configure's option --config-cache.
19093
# It is not useful on other systems.  If it contains results you don't
19094
# want to keep, you may remove or edit it.
19095
#
19096
# config.status only pays attention to the cache file if you give it
19097
# the --recheck option to rerun configure.
19098
#
19099
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19100
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19101
# following values.
19102
 
19103
_ACEOF
19104
 
19105
# The following way of writing the cache mishandles newlines in values,
19106
# but we know of no workaround that is simple, portable, and efficient.
19107
# So, we kill variables containing newlines.
19108
# Ultrix sh set writes to stderr and can't be redirected directly,
19109
# and sets the high bit in the cache file unless we assign to the vars.
19110
(
19111
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19112
    eval ac_val=\$$ac_var
19113
    case $ac_val in #(
19114
    *${as_nl}*)
19115
      case $ac_var in #(
19116
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19117
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19118
      esac
19119
      case $ac_var in #(
19120
      _ | IFS | as_nl) ;; #(
19121
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19122
      *) { eval $ac_var=; unset $ac_var;} ;;
19123
      esac ;;
19124
    esac
19125
  done
19126
 
19127
  (set) 2>&1 |
19128
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19129
    *${as_nl}ac_space=\ *)
19130
      # `set' does not quote correctly, so add quotes: double-quote
19131
      # substitution turns \\\\ into \\, and sed turns \\ into \.
19132
      sed -n \
19133
	"s/'/'\\\\''/g;
19134
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19135
      ;; #(
19136
    *)
19137
      # `set' quotes correctly as required by POSIX, so do not add quotes.
19138
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19139
      ;;
19140
    esac |
19141
    sort
19142
) |
19143
  sed '
19144
     /^ac_cv_env_/b end
19145
     t clear
19146
     :clear
19147
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19148
     t end
19149
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19150
     :end' >>confcache
19151
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19152
  if test -w "$cache_file"; then
19153
    test "x$cache_file" != "x/dev/null" &&
19154
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19155
$as_echo "$as_me: updating cache $cache_file" >&6;}
19156
    cat confcache >$cache_file
19157
  else
19158
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19159
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19160
  fi
19161
fi
19162
rm -f confcache
19163
 
19164
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19165
# Let make expand exec_prefix.
19166
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19167
 
19168
DEFS=-DHAVE_CONFIG_H
19169
 
19170
ac_libobjs=
19171
ac_ltlibobjs=
19172
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19173
  # 1. Remove the extension, and $U if already installed.
19174
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19175
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19176
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19177
  #    will be set to the directory where LIBOBJS objects are built.
19178
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19179
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19180
done
19181
LIB@&t@OBJS=$ac_libobjs
19182
 
19183
LTLIBOBJS=$ac_ltlibobjs
19184
 
19185
 
19186
 if test -n "$EXEEXT"; then
19187
  am__EXEEXT_TRUE=
19188
  am__EXEEXT_FALSE='#'
19189
else
19190
  am__EXEEXT_TRUE='#'
19191
  am__EXEEXT_FALSE=
19192
fi
19193
 
19194
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19195
  as_fn_error "conditional \"AMDEP\" was never defined.
19196
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19197
fi
19198
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19199
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
19200
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19201
fi
19202
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19203
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19204
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19205
fi
19206
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19207
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19208
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19209
fi
19210
if test -z "${AMX_HAVE_LIBEVENT_TRUE}" && test -z "${AMX_HAVE_LIBEVENT_FALSE}"; then
19211
  as_fn_error "conditional \"AMX_HAVE_LIBEVENT\" was never defined.
19212
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19213
fi
19214
if test -z "${AMX_HAVE_ZLIB_TRUE}" && test -z "${AMX_HAVE_ZLIB_FALSE}"; then
19215
  as_fn_error "conditional \"AMX_HAVE_ZLIB\" was never defined.
19216
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19217
fi
19218
if test -z "${WITH_MONO_TRUE}" && test -z "${WITH_MONO_FALSE}"; then
19219
  as_fn_error "conditional \"WITH_MONO\" was never defined.
19220
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19221
fi
19222
if test -z "${NET_2_0_TRUE}" && test -z "${NET_2_0_FALSE}"; then
19223
  as_fn_error "conditional \"NET_2_0\" was never defined.
19224
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19225
fi
19226
if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
19227
  as_fn_error "conditional \"WITH_JAVA\" was never defined.
19228
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19229
fi
19230
if test -z "${WITH_ERLANG_TRUE}" && test -z "${WITH_ERLANG_FALSE}"; then
19231
  as_fn_error "conditional \"WITH_ERLANG\" was never defined.
19232
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19233
fi
19234
if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
19235
  as_fn_error "conditional \"WITH_PYTHON\" was never defined.
19236
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19237
fi
19238
if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
19239
  as_fn_error "conditional \"WITH_PERL\" was never defined.
19240
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19241
fi
19242
if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
19243
  as_fn_error "conditional \"WITH_RUBY\" was never defined.
19244
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19245
fi
19246
if test -z "${HAVE_RSPEC_TRUE}" && test -z "${HAVE_RSPEC_FALSE}"; then
19247
  as_fn_error "conditional \"HAVE_RSPEC\" was never defined.
19248
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19249
fi
19250
if test -z "${THRIFT_GEN_cpp_TRUE}" && test -z "${THRIFT_GEN_cpp_FALSE}"; then
19251
  as_fn_error "conditional \"THRIFT_GEN_cpp\" was never defined.
19252
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19253
fi
19254
if test -z "${THRIFT_GEN_java_TRUE}" && test -z "${THRIFT_GEN_java_FALSE}"; then
19255
  as_fn_error "conditional \"THRIFT_GEN_java\" was never defined.
19256
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19257
fi
19258
if test -z "${THRIFT_GEN_csharp_TRUE}" && test -z "${THRIFT_GEN_csharp_FALSE}"; then
19259
  as_fn_error "conditional \"THRIFT_GEN_csharp\" was never defined.
19260
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19261
fi
19262
if test -z "${THRIFT_GEN_py_TRUE}" && test -z "${THRIFT_GEN_py_FALSE}"; then
19263
  as_fn_error "conditional \"THRIFT_GEN_py\" was never defined.
19264
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19265
fi
19266
if test -z "${THRIFT_GEN_rb_TRUE}" && test -z "${THRIFT_GEN_rb_FALSE}"; then
19267
  as_fn_error "conditional \"THRIFT_GEN_rb\" was never defined.
19268
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19269
fi
19270
if test -z "${THRIFT_GEN_perl_TRUE}" && test -z "${THRIFT_GEN_perl_FALSE}"; then
19271
  as_fn_error "conditional \"THRIFT_GEN_perl\" was never defined.
19272
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19273
fi
19274
if test -z "${THRIFT_GEN_php_TRUE}" && test -z "${THRIFT_GEN_php_FALSE}"; then
19275
  as_fn_error "conditional \"THRIFT_GEN_php\" was never defined.
19276
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19277
fi
19278
if test -z "${THRIFT_GEN_erl_TRUE}" && test -z "${THRIFT_GEN_erl_FALSE}"; then
19279
  as_fn_error "conditional \"THRIFT_GEN_erl\" was never defined.
19280
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19281
fi
19282
if test -z "${THRIFT_GEN_cocoa_TRUE}" && test -z "${THRIFT_GEN_cocoa_FALSE}"; then
19283
  as_fn_error "conditional \"THRIFT_GEN_cocoa\" was never defined.
19284
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19285
fi
19286
if test -z "${THRIFT_GEN_st_TRUE}" && test -z "${THRIFT_GEN_st_FALSE}"; then
19287
  as_fn_error "conditional \"THRIFT_GEN_st\" was never defined.
19288
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19289
fi
19290
if test -z "${THRIFT_GEN_ocaml_TRUE}" && test -z "${THRIFT_GEN_ocaml_FALSE}"; then
19291
  as_fn_error "conditional \"THRIFT_GEN_ocaml\" was never defined.
19292
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19293
fi
19294
if test -z "${THRIFT_GEN_hs_TRUE}" && test -z "${THRIFT_GEN_hs_FALSE}"; then
19295
  as_fn_error "conditional \"THRIFT_GEN_hs\" was never defined.
19296
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19297
fi
19298
if test -z "${THRIFT_GEN_xsd_TRUE}" && test -z "${THRIFT_GEN_xsd_FALSE}"; then
19299
  as_fn_error "conditional \"THRIFT_GEN_xsd\" was never defined.
19300
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19301
fi
19302
if test -z "${THRIFT_GEN_html_TRUE}" && test -z "${THRIFT_GEN_html_FALSE}"; then
19303
  as_fn_error "conditional \"THRIFT_GEN_html\" was never defined.
19304
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19305
fi
19306
 
19307
: ${CONFIG_STATUS=./config.status}
19308
ac_write_fail=0
19309
ac_clean_files_save=$ac_clean_files
19310
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19311
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19312
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19313
as_write_fail=0
19314
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19315
#! $SHELL
19316
# Generated by $as_me.
19317
# Run this file to recreate the current configuration.
19318
# Compiler output produced by configure, useful for debugging
19319
# configure, is in config.log if it exists.
19320
 
19321
debug=false
19322
ac_cs_recheck=false
19323
ac_cs_silent=false
19324
 
19325
SHELL=\${CONFIG_SHELL-$SHELL}
19326
export SHELL
19327
_ASEOF
19328
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19329
## -------------------- ##
19330
## M4sh Initialization. ##
19331
## -------------------- ##
19332
 
19333
# Be more Bourne compatible
19334
DUALCASE=1; export DUALCASE # for MKS sh
19335
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19336
  emulate sh
19337
  NULLCMD=:
19338
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19339
  # is contrary to our usage.  Disable this feature.
19340
  alias -g '${1+"$@"}'='"$@"'
19341
  setopt NO_GLOB_SUBST
19342
else
19343
  case `(set -o) 2>/dev/null` in @%:@(
19344
  *posix*) :
19345
    set -o posix ;; @%:@(
19346
  *) :
19347
     ;;
19348
esac
19349
fi
19350
 
19351
 
19352
as_nl='
19353
'
19354
export as_nl
19355
# Printing a long string crashes Solaris 7 /usr/bin/printf.
19356
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19357
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19358
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19359
# Prefer a ksh shell builtin over an external printf program on Solaris,
19360
# but without wasting forks for bash or zsh.
19361
if test -z "$BASH_VERSION$ZSH_VERSION" \
19362
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19363
  as_echo='print -r --'
19364
  as_echo_n='print -rn --'
19365
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19366
  as_echo='printf %s\n'
19367
  as_echo_n='printf %s'
19368
else
19369
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19370
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19371
    as_echo_n='/usr/ucb/echo -n'
19372
  else
19373
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19374
    as_echo_n_body='eval
19375
      arg=$1;
19376
      case $arg in @%:@(
19377
      *"$as_nl"*)
19378
	expr "X$arg" : "X\\(.*\\)$as_nl";
19379
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19380
      esac;
19381
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19382
    '
19383
    export as_echo_n_body
19384
    as_echo_n='sh -c $as_echo_n_body as_echo'
19385
  fi
19386
  export as_echo_body
19387
  as_echo='sh -c $as_echo_body as_echo'
19388
fi
19389
 
19390
# The user is always right.
19391
if test "${PATH_SEPARATOR+set}" != set; then
19392
  PATH_SEPARATOR=:
19393
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19394
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19395
      PATH_SEPARATOR=';'
19396
  }
19397
fi
19398
 
19399
 
19400
# IFS
19401
# We need space, tab and new line, in precisely that order.  Quoting is
19402
# there to prevent editors from complaining about space-tab.
19403
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19404
# splitting by setting IFS to empty value.)
19405
IFS=" ""	$as_nl"
19406
 
19407
# Find who we are.  Look in the path if we contain no directory separator.
19408
case $0 in @%:@((
19409
  *[\\/]* ) as_myself=$0 ;;
19410
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19411
for as_dir in $PATH
19412
do
19413
  IFS=$as_save_IFS
19414
  test -z "$as_dir" && as_dir=.
19415
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19416
  done
19417
IFS=$as_save_IFS
19418
 
19419
     ;;
19420
esac
19421
# We did not find ourselves, most probably we were run as `sh COMMAND'
19422
# in which case we are not to be found in the path.
19423
if test "x$as_myself" = x; then
19424
  as_myself=$0
19425
fi
19426
if test ! -f "$as_myself"; then
19427
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19428
  exit 1
19429
fi
19430
 
19431
# Unset variables that we do not need and which cause bugs (e.g. in
19432
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19433
# suppresses any "Segmentation fault" message there.  '((' could
19434
# trigger a bug in pdksh 5.2.14.
19435
for as_var in BASH_ENV ENV MAIL MAILPATH
19436
do eval test x\${$as_var+set} = xset \
19437
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19438
done
19439
PS1='$ '
19440
PS2='> '
19441
PS4='+ '
19442
 
19443
# NLS nuisances.
19444
LC_ALL=C
19445
export LC_ALL
19446
LANGUAGE=C
19447
export LANGUAGE
19448
 
19449
# CDPATH.
19450
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19451
 
19452
 
19453
@%:@ as_fn_error ERROR [LINENO LOG_FD]
19454
@%:@ ---------------------------------
19455
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19456
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19457
@%:@ script with status $?, using 1 if that was 0.
19458
as_fn_error ()
19459
{
19460
  as_status=$?; test $as_status -eq 0 && as_status=1
19461
  if test "$3"; then
19462
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19463
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19464
  fi
19465
  $as_echo "$as_me: error: $1" >&2
19466
  as_fn_exit $as_status
19467
} @%:@ as_fn_error
19468
 
19469
 
19470
@%:@ as_fn_set_status STATUS
19471
@%:@ -----------------------
19472
@%:@ Set $? to STATUS, without forking.
19473
as_fn_set_status ()
19474
{
19475
  return $1
19476
} @%:@ as_fn_set_status
19477
 
19478
@%:@ as_fn_exit STATUS
19479
@%:@ -----------------
19480
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19481
as_fn_exit ()
19482
{
19483
  set +e
19484
  as_fn_set_status $1
19485
  exit $1
19486
} @%:@ as_fn_exit
19487
 
19488
@%:@ as_fn_unset VAR
19489
@%:@ ---------------
19490
@%:@ Portably unset VAR.
19491
as_fn_unset ()
19492
{
19493
  { eval $1=; unset $1;}
19494
}
19495
as_unset=as_fn_unset
19496
@%:@ as_fn_append VAR VALUE
19497
@%:@ ----------------------
19498
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
19499
@%:@ advantage of any shell optimizations that allow amortized linear growth over
19500
@%:@ repeated appends, instead of the typical quadratic growth present in naive
19501
@%:@ implementations.
19502
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19503
  eval 'as_fn_append ()
19504
  {
19505
    eval $1+=\$2
19506
  }'
19507
else
19508
  as_fn_append ()
19509
  {
19510
    eval $1=\$$1\$2
19511
  }
19512
fi # as_fn_append
19513
 
19514
@%:@ as_fn_arith ARG...
19515
@%:@ ------------------
19516
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
19517
@%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
19518
@%:@ must be portable across $(()) and expr.
19519
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19520
  eval 'as_fn_arith ()
19521
  {
19522
    as_val=$(( $* ))
19523
  }'
19524
else
19525
  as_fn_arith ()
19526
  {
19527
    as_val=`expr "$@" || test $? -eq 1`
19528
  }
19529
fi # as_fn_arith
19530
 
19531
 
19532
if expr a : '\(a\)' >/dev/null 2>&1 &&
19533
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19534
  as_expr=expr
19535
else
19536
  as_expr=false
19537
fi
19538
 
19539
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19540
  as_basename=basename
19541
else
19542
  as_basename=false
19543
fi
19544
 
19545
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19546
  as_dirname=dirname
19547
else
19548
  as_dirname=false
19549
fi
19550
 
19551
as_me=`$as_basename -- "$0" ||
19552
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19553
	 X"$0" : 'X\(//\)$' \| \
19554
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19555
$as_echo X/"$0" |
19556
    sed '/^.*\/\([^/][^/]*\)\/*$/{
19557
	    s//\1/
19558
	    q
19559
	  }
19560
	  /^X\/\(\/\/\)$/{
19561
	    s//\1/
19562
	    q
19563
	  }
19564
	  /^X\/\(\/\).*/{
19565
	    s//\1/
19566
	    q
19567
	  }
19568
	  s/.*/./; q'`
19569
 
19570
# Avoid depending upon Character Ranges.
19571
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19572
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19573
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19574
as_cr_digits='0123456789'
19575
as_cr_alnum=$as_cr_Letters$as_cr_digits
19576
 
19577
ECHO_C= ECHO_N= ECHO_T=
19578
case `echo -n x` in @%:@(((((
19579
-n*)
19580
  case `echo 'xy\c'` in
19581
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19582
  xy)  ECHO_C='\c';;
19583
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19584
       ECHO_T='	';;
19585
  esac;;
19586
*)
19587
  ECHO_N='-n';;
19588
esac
19589
 
19590
rm -f conf$$ conf$$.exe conf$$.file
19591
if test -d conf$$.dir; then
19592
  rm -f conf$$.dir/conf$$.file
19593
else
19594
  rm -f conf$$.dir
19595
  mkdir conf$$.dir 2>/dev/null
19596
fi
19597
if (echo >conf$$.file) 2>/dev/null; then
19598
  if ln -s conf$$.file conf$$ 2>/dev/null; then
19599
    as_ln_s='ln -s'
19600
    # ... but there are two gotchas:
19601
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19602
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19603
    # In both cases, we have to default to `cp -p'.
19604
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19605
      as_ln_s='cp -p'
19606
  elif ln conf$$.file conf$$ 2>/dev/null; then
19607
    as_ln_s=ln
19608
  else
19609
    as_ln_s='cp -p'
19610
  fi
19611
else
19612
  as_ln_s='cp -p'
19613
fi
19614
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19615
rmdir conf$$.dir 2>/dev/null
19616
 
19617
 
19618
@%:@ as_fn_mkdir_p
19619
@%:@ -------------
19620
@%:@ Create "$as_dir" as a directory, including parents if necessary.
19621
as_fn_mkdir_p ()
19622
{
19623
 
19624
  case $as_dir in #(
19625
  -*) as_dir=./$as_dir;;
19626
  esac
19627
  test -d "$as_dir" || eval $as_mkdir_p || {
19628
    as_dirs=
19629
    while :; do
19630
      case $as_dir in #(
19631
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19632
      *) as_qdir=$as_dir;;
19633
      esac
19634
      as_dirs="'$as_qdir' $as_dirs"
19635
      as_dir=`$as_dirname -- "$as_dir" ||
19636
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637
	 X"$as_dir" : 'X\(//\)[^/]' \| \
19638
	 X"$as_dir" : 'X\(//\)$' \| \
19639
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19640
$as_echo X"$as_dir" |
19641
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19642
	    s//\1/
19643
	    q
19644
	  }
19645
	  /^X\(\/\/\)[^/].*/{
19646
	    s//\1/
19647
	    q
19648
	  }
19649
	  /^X\(\/\/\)$/{
19650
	    s//\1/
19651
	    q
19652
	  }
19653
	  /^X\(\/\).*/{
19654
	    s//\1/
19655
	    q
19656
	  }
19657
	  s/.*/./; q'`
19658
      test -d "$as_dir" && break
19659
    done
19660
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19661
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19662
 
19663
 
19664
} @%:@ as_fn_mkdir_p
19665
if mkdir -p . 2>/dev/null; then
19666
  as_mkdir_p='mkdir -p "$as_dir"'
19667
else
19668
  test -d ./-p && rmdir ./-p
19669
  as_mkdir_p=false
19670
fi
19671
 
19672
if test -x / >/dev/null 2>&1; then
19673
  as_test_x='test -x'
19674
else
19675
  if ls -dL / >/dev/null 2>&1; then
19676
    as_ls_L_option=L
19677
  else
19678
    as_ls_L_option=
19679
  fi
19680
  as_test_x='
19681
    eval sh -c '\''
19682
      if test -d "$1"; then
19683
	test -d "$1/.";
19684
      else
19685
	case $1 in @%:@(
19686
	-*)set "./$1";;
19687
	esac;
19688
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
19689
	???[sx]*):;;*)false;;esac;fi
19690
    '\'' sh
19691
  '
19692
fi
19693
as_executable_p=$as_test_x
19694
 
19695
# Sed expression to map a string onto a valid CPP name.
19696
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19697
 
19698
# Sed expression to map a string onto a valid variable name.
19699
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19700
 
19701
 
19702
exec 6>&1
19703
## ----------------------------------- ##
19704
## Main body of $CONFIG_STATUS script. ##
19705
## ----------------------------------- ##
19706
_ASEOF
19707
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19708
 
19709
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19710
# Save the log message, to keep $0 and so on meaningful, and to
19711
# report actual input values of CONFIG_FILES etc. instead of their
19712
# values after options handling.
19713
ac_log="
19714
This file was extended by thrift $as_me 0.2.0, which was
19715
generated by GNU Autoconf 2.64.  Invocation command line was
19716
 
19717
  CONFIG_FILES    = $CONFIG_FILES
19718
  CONFIG_HEADERS  = $CONFIG_HEADERS
19719
  CONFIG_LINKS    = $CONFIG_LINKS
19720
  CONFIG_COMMANDS = $CONFIG_COMMANDS
19721
  $ $0 $@
19722
 
19723
on `(hostname || uname -n) 2>/dev/null | sed 1q`
19724
"
19725
 
19726
_ACEOF
19727
 
19728
case $ac_config_files in *"
19729
"*) set x $ac_config_files; shift; ac_config_files=$*;;
19730
esac
19731
 
19732
case $ac_config_headers in *"
19733
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19734
esac
19735
 
19736
 
19737
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19738
# Files that config.status was made for.
19739
config_files="$ac_config_files"
19740
config_headers="$ac_config_headers"
19741
config_commands="$ac_config_commands"
19742
 
19743
_ACEOF
19744
 
19745
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19746
ac_cs_usage="\
19747
\`$as_me' instantiates files and other configuration actions
19748
from templates according to the current configuration.  Unless the files
19749
and actions are specified as TAGs, all are instantiated by default.
19750
 
19751
Usage: $0 [OPTION]... [TAG]...
19752
 
19753
  -h, --help       print this help, then exit
19754
  -V, --version    print version number and configuration settings, then exit
19755
  -q, --quiet, --silent
19756
                   do not print progress messages
19757
  -d, --debug      don't remove temporary files
19758
      --recheck    update $as_me by reconfiguring in the same conditions
19759
      --file=FILE[:TEMPLATE] 
19760
                   instantiate the configuration file FILE
19761
      --header=FILE[:TEMPLATE] 
19762
                   instantiate the configuration header FILE
19763
 
19764
Configuration files:
19765
$config_files
19766
 
19767
Configuration headers:
19768
$config_headers
19769
 
19770
Configuration commands:
19771
$config_commands
19772
 
19773
Report bugs to the package provider."
19774
 
19775
_ACEOF
19776
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19777
ac_cs_version="\\
19778
thrift config.status 0.2.0
19779
configured by $0, generated by GNU Autoconf 2.64,
19780
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19781
 
19782
Copyright (C) 2009 Free Software Foundation, Inc.
19783
This config.status script is free software; the Free Software Foundation
19784
gives unlimited permission to copy, distribute and modify it."
19785
 
19786
ac_pwd='$ac_pwd'
19787
srcdir='$srcdir'
19788
INSTALL='$INSTALL'
19789
MKDIR_P='$MKDIR_P'
19790
AWK='$AWK'
19791
test -n "\$AWK" || AWK=awk
19792
_ACEOF
19793
 
19794
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19795
# The default lists apply if the user does not specify any file.
19796
ac_need_defaults=:
19797
while test $# != 0
19798
do
19799
  case $1 in
19800
  --*=*)
19801
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19802
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19803
    ac_shift=:
19804
    ;;
19805
  *)
19806
    ac_option=$1
19807
    ac_optarg=$2
19808
    ac_shift=shift
19809
    ;;
19810
  esac
19811
 
19812
  case $ac_option in
19813
  # Handling of the options.
19814
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19815
    ac_cs_recheck=: ;;
19816
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19817
    $as_echo "$ac_cs_version"; exit ;;
19818
  --debug | --debu | --deb | --de | --d | -d )
19819
    debug=: ;;
19820
  --file | --fil | --fi | --f )
19821
    $ac_shift
19822
    case $ac_optarg in
19823
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19824
    esac
19825
    as_fn_append CONFIG_FILES " '$ac_optarg'"
19826
    ac_need_defaults=false;;
19827
  --header | --heade | --head | --hea )
19828
    $ac_shift
19829
    case $ac_optarg in
19830
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19831
    esac
19832
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19833
    ac_need_defaults=false;;
19834
  --he | --h)
19835
    # Conflict between --help and --header
19836
    as_fn_error "ambiguous option: \`$1'
19837
Try \`$0 --help' for more information.";;
19838
  --help | --hel | -h )
19839
    $as_echo "$ac_cs_usage"; exit ;;
19840
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19841
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19842
    ac_cs_silent=: ;;
19843
 
19844
  # This is an error.
19845
  -*) as_fn_error "unrecognized option: \`$1'
19846
Try \`$0 --help' for more information." ;;
19847
 
19848
  *) as_fn_append ac_config_targets " $1"
19849
     ac_need_defaults=false ;;
19850
 
19851
  esac
19852
  shift
19853
done
19854
 
19855
ac_configure_extra_args=
19856
 
19857
if $ac_cs_silent; then
19858
  exec 6>/dev/null
19859
  ac_configure_extra_args="$ac_configure_extra_args --silent"
19860
fi
19861
 
19862
_ACEOF
19863
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19864
if \$ac_cs_recheck; then
19865
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19866
  shift
19867
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19868
  CONFIG_SHELL='$SHELL'
19869
  export CONFIG_SHELL
19870
  exec "\$@"
19871
fi
19872
 
19873
_ACEOF
19874
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19875
exec 5>>config.log
19876
{
19877
  echo
19878
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
19879
@%:@@%:@ Running $as_me. @%:@@%:@
19880
_ASBOX
19881
  $as_echo "$ac_log"
19882
} >&5
19883
 
19884
_ACEOF
19885
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19886
#
19887
# INIT-COMMANDS
19888
#
19889
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19890
 
19891
 
19892
# The HP-UX ksh and POSIX shell print the target directory to stdout
19893
# if CDPATH is set.
19894
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19895
 
19896
sed_quote_subst='$sed_quote_subst'
19897
double_quote_subst='$double_quote_subst'
19898
delay_variable_subst='$delay_variable_subst'
19899
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19900
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19901
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19902
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19903
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19904
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19905
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19906
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19907
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19908
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19909
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19910
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19911
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19912
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19913
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19914
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19915
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19916
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19917
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19918
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19919
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19920
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19921
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19922
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19923
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19924
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19925
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19926
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19927
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19928
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19929
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19930
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19931
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19932
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19933
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19934
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19935
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19936
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19937
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19938
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19939
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19940
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19941
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19942
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19943
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19944
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19945
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19946
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19947
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19948
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19949
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19950
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19951
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19952
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19953
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19954
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19955
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19956
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19957
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19958
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19959
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19960
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19961
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19962
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19963
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19964
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19965
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19966
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19967
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19968
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19969
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19970
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19971
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19972
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19973
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19974
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19975
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19976
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19977
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19978
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19979
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19980
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19981
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19982
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19983
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19984
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19985
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19986
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19987
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19988
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19989
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19990
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19991
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19992
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19993
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19994
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19995
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19996
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19997
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19998
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19999
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20000
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20001
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20002
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20003
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20004
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20005
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20006
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20007
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20008
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20009
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20010
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20011
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20012
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20013
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20014
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20015
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20016
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20017
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20018
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20019
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20020
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20021
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20022
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20023
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20024
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20025
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20026
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20027
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20028
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20029
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20030
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20031
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20032
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20033
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20034
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20035
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20036
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20037
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20038
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20039
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20040
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20041
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20042
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20043
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20044
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20045
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20046
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20047
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20048
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20049
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20050
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20051
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20052
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20053
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20054
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20055
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20056
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20057
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20058
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20059
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20060
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20061
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20062
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20063
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20064
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20065
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20066
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20067
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20068
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20069
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20070
 
20071
LTCC='$LTCC'
20072
LTCFLAGS='$LTCFLAGS'
20073
compiler='$compiler_DEFAULT'
20074
 
20075
# Quote evaled strings.
20076
for var in SED \
20077
GREP \
20078
EGREP \
20079
FGREP \
20080
LD \
20081
NM \
20082
LN_S \
20083
lt_SP2NL \
20084
lt_NL2SP \
20085
reload_flag \
20086
OBJDUMP \
20087
deplibs_check_method \
20088
file_magic_cmd \
20089
AR \
20090
AR_FLAGS \
20091
STRIP \
20092
RANLIB \
20093
CC \
20094
CFLAGS \
20095
compiler \
20096
lt_cv_sys_global_symbol_pipe \
20097
lt_cv_sys_global_symbol_to_cdecl \
20098
lt_cv_sys_global_symbol_to_c_name_address \
20099
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20100
SHELL \
20101
ECHO \
20102
lt_prog_compiler_no_builtin_flag \
20103
lt_prog_compiler_wl \
20104
lt_prog_compiler_pic \
20105
lt_prog_compiler_static \
20106
lt_cv_prog_compiler_c_o \
20107
need_locks \
20108
DSYMUTIL \
20109
NMEDIT \
20110
LIPO \
20111
OTOOL \
20112
OTOOL64 \
20113
shrext_cmds \
20114
export_dynamic_flag_spec \
20115
whole_archive_flag_spec \
20116
compiler_needs_object \
20117
with_gnu_ld \
20118
allow_undefined_flag \
20119
no_undefined_flag \
20120
hardcode_libdir_flag_spec \
20121
hardcode_libdir_flag_spec_ld \
20122
hardcode_libdir_separator \
20123
fix_srcfile_path \
20124
exclude_expsyms \
20125
include_expsyms \
20126
file_list_spec \
20127
variables_saved_for_relink \
20128
libname_spec \
20129
library_names_spec \
20130
soname_spec \
20131
finish_eval \
20132
old_striplib \
20133
striplib \
20134
compiler_lib_search_dirs \
20135
predep_objects \
20136
postdep_objects \
20137
predeps \
20138
postdeps \
20139
compiler_lib_search_path \
20140
LD_CXX \
20141
compiler_CXX \
20142
lt_prog_compiler_no_builtin_flag_CXX \
20143
lt_prog_compiler_wl_CXX \
20144
lt_prog_compiler_pic_CXX \
20145
lt_prog_compiler_static_CXX \
20146
lt_cv_prog_compiler_c_o_CXX \
20147
export_dynamic_flag_spec_CXX \
20148
whole_archive_flag_spec_CXX \
20149
compiler_needs_object_CXX \
20150
with_gnu_ld_CXX \
20151
allow_undefined_flag_CXX \
20152
no_undefined_flag_CXX \
20153
hardcode_libdir_flag_spec_CXX \
20154
hardcode_libdir_flag_spec_ld_CXX \
20155
hardcode_libdir_separator_CXX \
20156
fix_srcfile_path_CXX \
20157
exclude_expsyms_CXX \
20158
include_expsyms_CXX \
20159
file_list_spec_CXX \
20160
compiler_lib_search_dirs_CXX \
20161
predep_objects_CXX \
20162
postdep_objects_CXX \
20163
predeps_CXX \
20164
postdeps_CXX \
20165
compiler_lib_search_path_CXX; do
20166
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20167
    *[\\\\\\\`\\"\\\$]*)
20168
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20169
      ;;
20170
    *)
20171
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20172
      ;;
20173
    esac
20174
done
20175
 
20176
# Double-quote double-evaled strings.
20177
for var in reload_cmds \
20178
old_postinstall_cmds \
20179
old_postuninstall_cmds \
20180
old_archive_cmds \
20181
extract_expsyms_cmds \
20182
old_archive_from_new_cmds \
20183
old_archive_from_expsyms_cmds \
20184
archive_cmds \
20185
archive_expsym_cmds \
20186
module_cmds \
20187
module_expsym_cmds \
20188
export_symbols_cmds \
20189
prelink_cmds \
20190
postinstall_cmds \
20191
postuninstall_cmds \
20192
finish_cmds \
20193
sys_lib_search_path_spec \
20194
sys_lib_dlsearch_path_spec \
20195
old_archive_cmds_CXX \
20196
old_archive_from_new_cmds_CXX \
20197
old_archive_from_expsyms_cmds_CXX \
20198
archive_cmds_CXX \
20199
archive_expsym_cmds_CXX \
20200
module_cmds_CXX \
20201
module_expsym_cmds_CXX \
20202
export_symbols_cmds_CXX \
20203
prelink_cmds_CXX; do
20204
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20205
    *[\\\\\\\`\\"\\\$]*)
20206
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20207
      ;;
20208
    *)
20209
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20210
      ;;
20211
    esac
20212
done
20213
 
20214
# Fix-up fallback echo if it was mangled by the above quoting rules.
20215
case \$lt_ECHO in
20216
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20217
  ;;
20218
esac
20219
 
20220
ac_aux_dir='$ac_aux_dir'
20221
xsi_shell='$xsi_shell'
20222
lt_shell_append='$lt_shell_append'
20223
 
20224
# See if we are running on zsh, and set the options which allow our
20225
# commands through without removal of \ escapes INIT.
20226
if test -n "\${ZSH_VERSION+set}" ; then
20227
   setopt NO_GLOB_SUBST
20228
fi
20229
 
20230
 
20231
    PACKAGE='$PACKAGE'
20232
    VERSION='$VERSION'
20233
    TIMESTAMP='$TIMESTAMP'
20234
    RM='$RM'
20235
    ofile='$ofile'
20236
 
20237
 
20238
 
20239
 
20240
 
20241
 
20242
_ACEOF
20243
 
20244
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20245
 
20246
# Handling of arguments.
20247
for ac_config_target in $ac_config_targets
20248
do
20249
  case $ac_config_target in
20250
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20251
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20252
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
20253
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20254
    "compiler/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES compiler/cpp/Makefile" ;;
20255
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20256
    "lib/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/Makefile" ;;
20257
    "lib/cpp/thrift.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift.pc" ;;
20258
    "lib/cpp/thrift-nb.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-nb.pc" ;;
20259
    "lib/cpp/thrift-z.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-z.pc" ;;
20260
    "lib/csharp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/csharp/Makefile" ;;
20261
    "lib/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/Makefile" ;;
20262
    "lib/perl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/perl/Makefile" ;;
20263
    "lib/perl/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/perl/test/Makefile" ;;
20264
    "lib/py/Makefile") CONFIG_FILES="$CONFIG_FILES lib/py/Makefile" ;;
20265
    "lib/rb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rb/Makefile" ;;
20266
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20267
    "test/py/Makefile") CONFIG_FILES="$CONFIG_FILES test/py/Makefile" ;;
20268
    "test/rb/Makefile") CONFIG_FILES="$CONFIG_FILES test/rb/Makefile" ;;
20269
 
20270
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20271
  esac
20272
done
20273
 
20274
 
20275
# If the user did not use the arguments to specify the items to instantiate,
20276
# then the envvar interface is used.  Set only those that are not.
20277
# We use the long form for the default assignment because of an extremely
20278
# bizarre bug on SunOS 4.1.3.
20279
if $ac_need_defaults; then
20280
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20281
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20282
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20283
fi
20284
 
20285
# Have a temporary directory for convenience.  Make it in the build tree
20286
# simply because there is no reason against having it here, and in addition,
20287
# creating and moving files from /tmp can sometimes cause problems.
20288
# Hook for its removal unless debugging.
20289
# Note that there is a small window in which the directory will not be cleaned:
20290
# after its creation but before its name has been assigned to `$tmp'.
20291
$debug ||
20292
{
20293
  tmp=
20294
  trap 'exit_status=$?
20295
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20296
' 0
20297
  trap 'as_fn_exit 1' 1 2 13 15
20298
}
20299
# Create a (secure) tmp directory for tmp files.
20300
 
20301
{
20302
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20303
  test -n "$tmp" && test -d "$tmp"
20304
}  ||
20305
{
20306
  tmp=./conf$$-$RANDOM
20307
  (umask 077 && mkdir "$tmp")
20308
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20309
 
20310
# Set up the scripts for CONFIG_FILES section.
20311
# No need to generate them if there are no CONFIG_FILES.
20312
# This happens for instance with `./config.status config.h'.
20313
if test -n "$CONFIG_FILES"; then
20314
 
20315
 
20316
ac_cr=`echo X | tr X '\015'`
20317
# On cygwin, bash can eat \r inside `` if the user requested igncr.
20318
# But we know of no other shell where ac_cr would be empty at this
20319
# point, so we can use a bashism as a fallback.
20320
if test "x$ac_cr" = x; then
20321
  eval ac_cr=\$\'\\r\'
20322
fi
20323
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20324
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20325
  ac_cs_awk_cr='\r'
20326
else
20327
  ac_cs_awk_cr=$ac_cr
20328
fi
20329
 
20330
echo 'BEGIN {' >"$tmp/subs1.awk" &&
20331
_ACEOF
20332
 
20333
 
20334
{
20335
  echo "cat >conf$$subs.awk <<_ACEOF" &&
20336
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20337
  echo "_ACEOF"
20338
} >conf$$subs.sh ||
20339
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20340
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20341
ac_delim='%!_!# '
20342
for ac_last_try in false false false false false :; do
20343
  . ./conf$$subs.sh ||
20344
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20345
 
20346
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20347
  if test $ac_delim_n = $ac_delim_num; then
20348
    break
20349
  elif $ac_last_try; then
20350
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20351
  else
20352
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20353
  fi
20354
done
20355
rm -f conf$$subs.sh
20356
 
20357
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20358
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20359
_ACEOF
20360
sed -n '
20361
h
20362
s/^/S["/; s/!.*/"]=/
20363
p
20364
g
20365
s/^[^!]*!//
20366
:repl
20367
t repl
20368
s/'"$ac_delim"'$//
20369
t delim
20370
:nl
20371
h
20372
s/\(.\{148\}\).*/\1/
20373
t more1
20374
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20375
p
20376
n
20377
b repl
20378
:more1
20379
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20380
p
20381
g
20382
s/.\{148\}//
20383
t nl
20384
:delim
20385
h
20386
s/\(.\{148\}\).*/\1/
20387
t more2
20388
s/["\\]/\\&/g; s/^/"/; s/$/"/
20389
p
20390
b
20391
:more2
20392
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20393
p
20394
g
20395
s/.\{148\}//
20396
t delim
20397
' <conf$$subs.awk | sed '
20398
/^[^""]/{
20399
  N
20400
  s/\n//
20401
}
20402
' >>$CONFIG_STATUS || ac_write_fail=1
20403
rm -f conf$$subs.awk
20404
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20405
_ACAWK
20406
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20407
  for (key in S) S_is_set[key] = 1
20408
  FS = ""
20409
 
20410
}
20411
{
20412
  line = $ 0
20413
  nfields = split(line, field, "@")
20414
  substed = 0
20415
  len = length(field[1])
20416
  for (i = 2; i < nfields; i++) {
20417
    key = field[i]
20418
    keylen = length(key)
20419
    if (S_is_set[key]) {
20420
      value = S[key]
20421
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20422
      len += length(value) + length(field[++i])
20423
      substed = 1
20424
    } else
20425
      len += 1 + keylen
20426
  }
20427
 
20428
  print line
20429
}
20430
 
20431
_ACAWK
20432
_ACEOF
20433
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20434
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20435
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20436
else
20437
  cat
20438
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20439
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
20440
_ACEOF
20441
 
20442
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20443
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20444
# trailing colons and then remove the whole line if VPATH becomes empty
20445
# (actually we leave an empty line to preserve line numbers).
20446
if test "x$srcdir" = x.; then
20447
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20448
s/:*\$(srcdir):*/:/
20449
s/:*\${srcdir}:*/:/
20450
s/:*@srcdir@:*/:/
20451
s/^\([^=]*=[	 ]*\):*/\1/
20452
s/:*$//
20453
s/^[^=]*=[	 ]*$//
20454
}'
20455
fi
20456
 
20457
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20458
fi # test -n "$CONFIG_FILES"
20459
 
20460
# Set up the scripts for CONFIG_HEADERS section.
20461
# No need to generate them if there are no CONFIG_HEADERS.
20462
# This happens for instance with `./config.status Makefile'.
20463
if test -n "$CONFIG_HEADERS"; then
20464
cat >"$tmp/defines.awk" <<\_ACAWK ||
20465
BEGIN {
20466
_ACEOF
20467
 
20468
# Transform confdefs.h into an awk script `defines.awk', embedded as
20469
# here-document in config.status, that substitutes the proper values into
20470
# config.h.in to produce config.h.
20471
 
20472
# Create a delimiter string that does not exist in confdefs.h, to ease
20473
# handling of long lines.
20474
ac_delim='%!_!# '
20475
for ac_last_try in false false :; do
20476
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20477
  if test -z "$ac_t"; then
20478
    break
20479
  elif $ac_last_try; then
20480
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20481
  else
20482
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20483
  fi
20484
done
20485
 
20486
# For the awk script, D is an array of macro values keyed by name,
20487
# likewise P contains macro parameters if any.  Preserve backslash
20488
# newline sequences.
20489
 
20490
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20491
sed -n '
20492
s/.\{148\}/&'"$ac_delim"'/g
20493
t rset
20494
:rset
20495
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20496
t def
20497
d
20498
:def
20499
s/\\$//
20500
t bsnl
20501
s/["\\]/\\&/g
20502
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20503
D["\1"]=" \3"/p
20504
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20505
d
20506
:bsnl
20507
s/["\\]/\\&/g
20508
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20509
D["\1"]=" \3\\\\\\n"\\/p
20510
t cont
20511
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20512
t cont
20513
d
20514
:cont
20515
n
20516
s/.\{148\}/&'"$ac_delim"'/g
20517
t clear
20518
:clear
20519
s/\\$//
20520
t bsnlc
20521
s/["\\]/\\&/g; s/^/"/; s/$/"/p
20522
d
20523
:bsnlc
20524
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20525
b cont
20526
' <confdefs.h | sed '
20527
s/'"$ac_delim"'/"\\\
20528
"/g' >>$CONFIG_STATUS || ac_write_fail=1
20529
 
20530
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20531
  for (key in D) D_is_set[key] = 1
20532
  FS = ""
20533
}
20534
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20535
  line = \$ 0
20536
  split(line, arg, " ")
20537
  if (arg[1] == "#") {
20538
    defundef = arg[2]
20539
    mac1 = arg[3]
20540
  } else {
20541
    defundef = substr(arg[1], 2)
20542
    mac1 = arg[2]
20543
  }
20544
  split(mac1, mac2, "(") #)
20545
  macro = mac2[1]
20546
  prefix = substr(line, 1, index(line, defundef) - 1)
20547
  if (D_is_set[macro]) {
20548
    # Preserve the white space surrounding the "#".
20549
    print prefix "define", macro P[macro] D[macro]
20550
    next
20551
  } else {
20552
    # Replace #undef with comments.  This is necessary, for example,
20553
    # in the case of _POSIX_SOURCE, which is predefined and required
20554
    # on some systems where configure will not decide to define it.
20555
    if (defundef == "undef") {
20556
      print "/*", prefix defundef, macro, "*/"
20557
      next
20558
    }
20559
  }
20560
}
20561
{ print }
20562
_ACAWK
20563
_ACEOF
20564
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20565
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
20566
fi # test -n "$CONFIG_HEADERS"
20567
 
20568
 
20569
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20570
shift
20571
for ac_tag
20572
do
20573
  case $ac_tag in
20574
  :[FHLC]) ac_mode=$ac_tag; continue;;
20575
  esac
20576
  case $ac_mode$ac_tag in
20577
  :[FHL]*:*);;
20578
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20579
  :[FH]-) ac_tag=-:-;;
20580
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20581
  esac
20582
  ac_save_IFS=$IFS
20583
  IFS=:
20584
  set x $ac_tag
20585
  IFS=$ac_save_IFS
20586
  shift
20587
  ac_file=$1
20588
  shift
20589
 
20590
  case $ac_mode in
20591
  :L) ac_source=$1;;
20592
  :[FH])
20593
    ac_file_inputs=
20594
    for ac_f
20595
    do
20596
      case $ac_f in
20597
      -) ac_f="$tmp/stdin";;
20598
      *) # Look for the file first in the build tree, then in the source tree
20599
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20600
	 # because $ac_f cannot contain `:'.
20601
	 test -f "$ac_f" ||
20602
	   case $ac_f in
20603
	   [\\/$]*) false;;
20604
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20605
	   esac ||
20606
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20607
      esac
20608
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20609
      as_fn_append ac_file_inputs " '$ac_f'"
20610
    done
20611
 
20612
    # Let's still pretend it is `configure' which instantiates (i.e., don't
20613
    # use $as_me), people would be surprised to read:
20614
    #    /* config.h.  Generated by config.status.  */
20615
    configure_input='Generated from '`
20616
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20617
	`' by configure.'
20618
    if test x"$ac_file" != x-; then
20619
      configure_input="$ac_file.  $configure_input"
20620
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20621
$as_echo "$as_me: creating $ac_file" >&6;}
20622
    fi
20623
    # Neutralize special characters interpreted by sed in replacement strings.
20624
    case $configure_input in #(
20625
    *\&* | *\|* | *\\* )
20626
       ac_sed_conf_input=`$as_echo "$configure_input" |
20627
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20628
    *) ac_sed_conf_input=$configure_input;;
20629
    esac
20630
 
20631
    case $ac_tag in
20632
    *:-:* | *:-) cat >"$tmp/stdin" \
20633
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20634
    esac
20635
    ;;
20636
  esac
20637
 
20638
  ac_dir=`$as_dirname -- "$ac_file" ||
20639
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20640
	 X"$ac_file" : 'X\(//\)[^/]' \| \
20641
	 X"$ac_file" : 'X\(//\)$' \| \
20642
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20643
$as_echo X"$ac_file" |
20644
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20645
	    s//\1/
20646
	    q
20647
	  }
20648
	  /^X\(\/\/\)[^/].*/{
20649
	    s//\1/
20650
	    q
20651
	  }
20652
	  /^X\(\/\/\)$/{
20653
	    s//\1/
20654
	    q
20655
	  }
20656
	  /^X\(\/\).*/{
20657
	    s//\1/
20658
	    q
20659
	  }
20660
	  s/.*/./; q'`
20661
  as_dir="$ac_dir"; as_fn_mkdir_p
20662
  ac_builddir=.
20663
 
20664
case "$ac_dir" in
20665
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20666
*)
20667
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20668
  # A ".." for each directory in $ac_dir_suffix.
20669
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20670
  case $ac_top_builddir_sub in
20671
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20672
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20673
  esac ;;
20674
esac
20675
ac_abs_top_builddir=$ac_pwd
20676
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20677
# for backward compatibility:
20678
ac_top_builddir=$ac_top_build_prefix
20679
 
20680
case $srcdir in
20681
  .)  # We are building in place.
20682
    ac_srcdir=.
20683
    ac_top_srcdir=$ac_top_builddir_sub
20684
    ac_abs_top_srcdir=$ac_pwd ;;
20685
  [\\/]* | ?:[\\/]* )  # Absolute name.
20686
    ac_srcdir=$srcdir$ac_dir_suffix;
20687
    ac_top_srcdir=$srcdir
20688
    ac_abs_top_srcdir=$srcdir ;;
20689
  *) # Relative name.
20690
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20691
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20692
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20693
esac
20694
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20695
 
20696
 
20697
  case $ac_mode in
20698
  :F)
20699
  #
20700
  # CONFIG_FILE
20701
  #
20702
 
20703
  case $INSTALL in
20704
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20705
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20706
  esac
20707
  ac_MKDIR_P=$MKDIR_P
20708
  case $MKDIR_P in
20709
  [\\/$]* | ?:[\\/]* ) ;;
20710
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20711
  esac
20712
_ACEOF
20713
 
20714
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20715
# If the template does not know about datarootdir, expand it.
20716
# FIXME: This hack should be removed a few years after 2.60.
20717
ac_datarootdir_hack=; ac_datarootdir_seen=
20718
ac_sed_dataroot='
20719
/datarootdir/ {
20720
  p
20721
  q
20722
}
20723
/@datadir@/p
20724
/@docdir@/p
20725
/@infodir@/p
20726
/@localedir@/p
20727
/@mandir@/p'
20728
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20729
*datarootdir*) ac_datarootdir_seen=yes;;
20730
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20731
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20732
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20733
_ACEOF
20734
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20735
  ac_datarootdir_hack='
20736
  s&@datadir@&$datadir&g
20737
  s&@docdir@&$docdir&g
20738
  s&@infodir@&$infodir&g
20739
  s&@localedir@&$localedir&g
20740
  s&@mandir@&$mandir&g
20741
  s&\\\${datarootdir}&$datarootdir&g' ;;
20742
esac
20743
_ACEOF
20744
 
20745
# Neutralize VPATH when `$srcdir' = `.'.
20746
# Shell code in configure.ac might set extrasub.
20747
# FIXME: do we really want to maintain this feature?
20748
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20749
ac_sed_extra="$ac_vpsub
20750
$extrasub
20751
_ACEOF
20752
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20753
:t
20754
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20755
s|@configure_input@|$ac_sed_conf_input|;t t
20756
s&@top_builddir@&$ac_top_builddir_sub&;t t
20757
s&@top_build_prefix@&$ac_top_build_prefix&;t t
20758
s&@srcdir@&$ac_srcdir&;t t
20759
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20760
s&@top_srcdir@&$ac_top_srcdir&;t t
20761
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20762
s&@builddir@&$ac_builddir&;t t
20763
s&@abs_builddir@&$ac_abs_builddir&;t t
20764
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20765
s&@INSTALL@&$ac_INSTALL&;t t
20766
s&@MKDIR_P@&$ac_MKDIR_P&;t t
20767
$ac_datarootdir_hack
20768
"
20769
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20770
  || as_fn_error "could not create $ac_file" "$LINENO" 5
20771
 
20772
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20773
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20774
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20775
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20776
which seems to be undefined.  Please make sure it is defined." >&5
20777
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20778
which seems to be undefined.  Please make sure it is defined." >&2;}
20779
 
20780
  rm -f "$tmp/stdin"
20781
  case $ac_file in
20782
  -) cat "$tmp/out" && rm -f "$tmp/out";;
20783
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20784
  esac \
20785
  || as_fn_error "could not create $ac_file" "$LINENO" 5
20786
 ;;
20787
  :H)
20788
  #
20789
  # CONFIG_HEADER
20790
  #
20791
  if test x"$ac_file" != x-; then
20792
    {
20793
      $as_echo "/* $configure_input  */" \
20794
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20795
    } >"$tmp/config.h" \
20796
      || as_fn_error "could not create $ac_file" "$LINENO" 5
20797
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20798
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20799
$as_echo "$as_me: $ac_file is unchanged" >&6;}
20800
    else
20801
      rm -f "$ac_file"
20802
      mv "$tmp/config.h" "$ac_file" \
20803
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
20804
    fi
20805
  else
20806
    $as_echo "/* $configure_input  */" \
20807
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20808
      || as_fn_error "could not create -" "$LINENO" 5
20809
  fi
20810
# Compute "$ac_file"'s index in $config_headers.
20811
_am_arg="$ac_file"
20812
_am_stamp_count=1
20813
for _am_header in $config_headers :; do
20814
  case $_am_header in
20815
    $_am_arg | $_am_arg:* )
20816
      break ;;
20817
    * )
20818
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20819
  esac
20820
done
20821
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20822
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20823
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20824
	 X"$_am_arg" : 'X\(//\)$' \| \
20825
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20826
$as_echo X"$_am_arg" |
20827
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20828
	    s//\1/
20829
	    q
20830
	  }
20831
	  /^X\(\/\/\)[^/].*/{
20832
	    s//\1/
20833
	    q
20834
	  }
20835
	  /^X\(\/\/\)$/{
20836
	    s//\1/
20837
	    q
20838
	  }
20839
	  /^X\(\/\).*/{
20840
	    s//\1/
20841
	    q
20842
	  }
20843
	  s/.*/./; q'`/stamp-h$_am_stamp_count
20844
 ;;
20845
 
20846
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20847
$as_echo "$as_me: executing $ac_file commands" >&6;}
20848
 ;;
20849
  esac
20850
 
20851
 
20852
  case $ac_file$ac_mode in
20853
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20854
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20855
  # are listed without --file.  Let's play safe and only enable the eval
20856
  # if we detect the quoting.
20857
  case $CONFIG_FILES in
20858
  *\'*) eval set x "$CONFIG_FILES" ;;
20859
  *)   set x $CONFIG_FILES ;;
20860
  esac
20861
  shift
20862
  for mf
20863
  do
20864
    # Strip MF so we end up with the name of the file.
20865
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20866
    # Check whether this is an Automake generated Makefile or not.
20867
    # We used to match only the files named `Makefile.in', but
20868
    # some people rename them; so instead we look at the file content.
20869
    # Grep'ing the first line is not enough: some people post-process
20870
    # each Makefile.in and add a new line on top of each file to say so.
20871
    # Grep'ing the whole file is not good either: AIX grep has a line
20872
    # limit of 2048, but all sed's we know have understand at least 4000.
20873
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20874
      dirpart=`$as_dirname -- "$mf" ||
20875
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20876
	 X"$mf" : 'X\(//\)[^/]' \| \
20877
	 X"$mf" : 'X\(//\)$' \| \
20878
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20879
$as_echo X"$mf" |
20880
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20881
	    s//\1/
20882
	    q
20883
	  }
20884
	  /^X\(\/\/\)[^/].*/{
20885
	    s//\1/
20886
	    q
20887
	  }
20888
	  /^X\(\/\/\)$/{
20889
	    s//\1/
20890
	    q
20891
	  }
20892
	  /^X\(\/\).*/{
20893
	    s//\1/
20894
	    q
20895
	  }
20896
	  s/.*/./; q'`
20897
    else
20898
      continue
20899
    fi
20900
    # Extract the definition of DEPDIR, am__include, and am__quote
20901
    # from the Makefile without running `make'.
20902
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20903
    test -z "$DEPDIR" && continue
20904
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20905
    test -z "am__include" && continue
20906
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20907
    # When using ansi2knr, U may be empty or an underscore; expand it
20908
    U=`sed -n 's/^U = //p' < "$mf"`
20909
    # Find all dependency output files, they are included files with
20910
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20911
    # simplest approach to changing $(DEPDIR) to its actual value in the
20912
    # expansion.
20913
    for file in `sed -n "
20914
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20915
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20916
      # Make sure the directory exists.
20917
      test -f "$dirpart/$file" && continue
20918
      fdir=`$as_dirname -- "$file" ||
20919
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20920
	 X"$file" : 'X\(//\)[^/]' \| \
20921
	 X"$file" : 'X\(//\)$' \| \
20922
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20923
$as_echo X"$file" |
20924
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20925
	    s//\1/
20926
	    q
20927
	  }
20928
	  /^X\(\/\/\)[^/].*/{
20929
	    s//\1/
20930
	    q
20931
	  }
20932
	  /^X\(\/\/\)$/{
20933
	    s//\1/
20934
	    q
20935
	  }
20936
	  /^X\(\/\).*/{
20937
	    s//\1/
20938
	    q
20939
	  }
20940
	  s/.*/./; q'`
20941
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20942
      # echo "creating $dirpart/$file"
20943
      echo '# dummy' > "$dirpart/$file"
20944
    done
20945
  done
20946
}
20947
 ;;
20948
    "libtool":C) 
20949
 
20950
    # See if we are running on zsh, and set the options which allow our
20951
    # commands through without removal of \ escapes.
20952
    if test -n "${ZSH_VERSION+set}" ; then
20953
      setopt NO_GLOB_SUBST
20954
    fi
20955
 
20956
    cfgfile="${ofile}T"
20957
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20958
    $RM "$cfgfile"
20959
 
20960
    cat <<_LT_EOF >> "$cfgfile"
20961
#! $SHELL
20962
 
20963
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20964
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20965
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20966
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20967
#
20968
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20969
#                 2006, 2007, 2008 Free Software Foundation, Inc.
20970
#   Written by Gordon Matzigkeit, 1996
20971
#
20972
#   This file is part of GNU Libtool.
20973
#
20974
# GNU Libtool is free software; you can redistribute it and/or
20975
# modify it under the terms of the GNU General Public License as
20976
# published by the Free Software Foundation; either version 2 of
20977
# the License, or (at your option) any later version.
20978
#
20979
# As a special exception to the GNU General Public License,
20980
# if you distribute this file as part of a program or library that
20981
# is built using GNU Libtool, you may include this file under the
20982
# same distribution terms that you use for the rest of that program.
20983
#
20984
# GNU Libtool is distributed in the hope that it will be useful,
20985
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20986
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20987
# GNU General Public License for more details.
20988
#
20989
# You should have received a copy of the GNU General Public License
20990
# along with GNU Libtool; see the file COPYING.  If not, a copy
20991
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20992
# obtained by writing to the Free Software Foundation, Inc.,
20993
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20994
 
20995
 
20996
# The names of the tagged configurations supported by this script.
20997
available_tags="CXX "
20998
 
20999
# ### BEGIN LIBTOOL CONFIG
21000
 
21001
# Which release of libtool.m4 was used?
21002
macro_version=$macro_version
21003
macro_revision=$macro_revision
21004
 
21005
# Whether or not to build shared libraries.
21006
build_libtool_libs=$enable_shared
21007
 
21008
# Whether or not to build static libraries.
21009
build_old_libs=$enable_static
21010
 
21011
# What type of objects to build.
21012
pic_mode=$pic_mode
21013
 
21014
# Whether or not to optimize for fast installation.
21015
fast_install=$enable_fast_install
21016
 
21017
# The host system.
21018
host_alias=$host_alias
21019
host=$host
21020
host_os=$host_os
21021
 
21022
# The build system.
21023
build_alias=$build_alias
21024
build=$build
21025
build_os=$build_os
21026
 
21027
# A sed program that does not truncate output.
21028
SED=$lt_SED
21029
 
21030
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21031
Xsed="\$SED -e 1s/^X//"
21032
 
21033
# A grep program that handles long lines.
21034
GREP=$lt_GREP
21035
 
21036
# An ERE matcher.
21037
EGREP=$lt_EGREP
21038
 
21039
# A literal string matcher.
21040
FGREP=$lt_FGREP
21041
 
21042
# A BSD- or MS-compatible name lister.
21043
NM=$lt_NM
21044
 
21045
# Whether we need soft or hard links.
21046
LN_S=$lt_LN_S
21047
 
21048
# What is the maximum length of a command?
21049
max_cmd_len=$max_cmd_len
21050
 
21051
# Object file suffix (normally "o").
21052
objext=$ac_objext
21053
 
21054
# Executable file suffix (normally "").
21055
exeext=$exeext
21056
 
21057
# whether the shell understands "unset".
21058
lt_unset=$lt_unset
21059
 
21060
# turn spaces into newlines.
21061
SP2NL=$lt_lt_SP2NL
21062
 
21063
# turn newlines into spaces.
21064
NL2SP=$lt_lt_NL2SP
21065
 
21066
# How to create reloadable object files.
21067
reload_flag=$lt_reload_flag
21068
reload_cmds=$lt_reload_cmds
21069
 
21070
# An object symbol dumper.
21071
OBJDUMP=$lt_OBJDUMP
21072
 
21073
# Method to check whether dependent libraries are shared objects.
21074
deplibs_check_method=$lt_deplibs_check_method
21075
 
21076
# Command to use when deplibs_check_method == "file_magic".
21077
file_magic_cmd=$lt_file_magic_cmd
21078
 
21079
# The archiver.
21080
AR=$lt_AR
21081
AR_FLAGS=$lt_AR_FLAGS
21082
 
21083
# A symbol stripping program.
21084
STRIP=$lt_STRIP
21085
 
21086
# Commands used to install an old-style archive.
21087
RANLIB=$lt_RANLIB
21088
old_postinstall_cmds=$lt_old_postinstall_cmds
21089
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21090
 
21091
# A C compiler.
21092
LTCC=$lt_CC
21093
 
21094
# LTCC compiler flags.
21095
LTCFLAGS=$lt_CFLAGS
21096
 
21097
# Take the output of nm and produce a listing of raw symbols and C names.
21098
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21099
 
21100
# Transform the output of nm in a proper C declaration.
21101
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21102
 
21103
# Transform the output of nm in a C name address pair.
21104
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21105
 
21106
# Transform the output of nm in a C name address pair when lib prefix is needed.
21107
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21108
 
21109
# The name of the directory that contains temporary libtool files.
21110
objdir=$objdir
21111
 
21112
# Shell to use when invoking shell scripts.
21113
SHELL=$lt_SHELL
21114
 
21115
# An echo program that does not interpret backslashes.
21116
ECHO=$lt_ECHO
21117
 
21118
# Used to examine libraries when file_magic_cmd begins with "file".
21119
MAGIC_CMD=$MAGIC_CMD
21120
 
21121
# Must we lock files when doing compilation?
21122
need_locks=$lt_need_locks
21123
 
21124
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21125
DSYMUTIL=$lt_DSYMUTIL
21126
 
21127
# Tool to change global to local symbols on Mac OS X.
21128
NMEDIT=$lt_NMEDIT
21129
 
21130
# Tool to manipulate fat objects and archives on Mac OS X.
21131
LIPO=$lt_LIPO
21132
 
21133
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21134
OTOOL=$lt_OTOOL
21135
 
21136
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21137
OTOOL64=$lt_OTOOL64
21138
 
21139
# Old archive suffix (normally "a").
21140
libext=$libext
21141
 
21142
# Shared library suffix (normally ".so").
21143
shrext_cmds=$lt_shrext_cmds
21144
 
21145
# The commands to extract the exported symbol list from a shared archive.
21146
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21147
 
21148
# Variables whose values should be saved in libtool wrapper scripts and
21149
# restored at link time.
21150
variables_saved_for_relink=$lt_variables_saved_for_relink
21151
 
21152
# Do we need the "lib" prefix for modules?
21153
need_lib_prefix=$need_lib_prefix
21154
 
21155
# Do we need a version for libraries?
21156
need_version=$need_version
21157
 
21158
# Library versioning type.
21159
version_type=$version_type
21160
 
21161
# Shared library runtime path variable.
21162
runpath_var=$runpath_var
21163
 
21164
# Shared library path variable.
21165
shlibpath_var=$shlibpath_var
21166
 
21167
# Is shlibpath searched before the hard-coded library search path?
21168
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21169
 
21170
# Format of library name prefix.
21171
libname_spec=$lt_libname_spec
21172
 
21173
# List of archive names.  First name is the real one, the rest are links.
21174
# The last name is the one that the linker finds with -lNAME
21175
library_names_spec=$lt_library_names_spec
21176
 
21177
# The coded name of the library, if different from the real name.
21178
soname_spec=$lt_soname_spec
21179
 
21180
# Command to use after installation of a shared archive.
21181
postinstall_cmds=$lt_postinstall_cmds
21182
 
21183
# Command to use after uninstallation of a shared archive.
21184
postuninstall_cmds=$lt_postuninstall_cmds
21185
 
21186
# Commands used to finish a libtool library installation in a directory.
21187
finish_cmds=$lt_finish_cmds
21188
 
21189
# As "finish_cmds", except a single script fragment to be evaled but
21190
# not shown.
21191
finish_eval=$lt_finish_eval
21192
 
21193
# Whether we should hardcode library paths into libraries.
21194
hardcode_into_libs=$hardcode_into_libs
21195
 
21196
# Compile-time system search path for libraries.
21197
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21198
 
21199
# Run-time system search path for libraries.
21200
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21201
 
21202
# Whether dlopen is supported.
21203
dlopen_support=$enable_dlopen
21204
 
21205
# Whether dlopen of programs is supported.
21206
dlopen_self=$enable_dlopen_self
21207
 
21208
# Whether dlopen of statically linked programs is supported.
21209
dlopen_self_static=$enable_dlopen_self_static
21210
 
21211
# Commands to strip libraries.
21212
old_striplib=$lt_old_striplib
21213
striplib=$lt_striplib
21214
 
21215
 
21216
# The linker used to build libraries.
21217
LD=$lt_LD
21218
 
21219
# Commands used to build an old-style archive.
21220
old_archive_cmds=$lt_old_archive_cmds
21221
 
21222
# A language specific compiler.
21223
CC=$lt_compiler
21224
 
21225
# Is the compiler the GNU compiler?
21226
with_gcc=$GCC
21227
 
21228
# Compiler flag to turn off builtin functions.
21229
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21230
 
21231
# How to pass a linker flag through the compiler.
21232
wl=$lt_lt_prog_compiler_wl
21233
 
21234
# Additional compiler flags for building library objects.
21235
pic_flag=$lt_lt_prog_compiler_pic
21236
 
21237
# Compiler flag to prevent dynamic linking.
21238
link_static_flag=$lt_lt_prog_compiler_static
21239
 
21240
# Does compiler simultaneously support -c and -o options?
21241
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21242
 
21243
# Whether or not to add -lc for building shared libraries.
21244
build_libtool_need_lc=$archive_cmds_need_lc
21245
 
21246
# Whether or not to disallow shared libs when runtime libs are static.
21247
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21248
 
21249
# Compiler flag to allow reflexive dlopens.
21250
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21251
 
21252
# Compiler flag to generate shared objects directly from archives.
21253
whole_archive_flag_spec=$lt_whole_archive_flag_spec
21254
 
21255
# Whether the compiler copes with passing no objects directly.
21256
compiler_needs_object=$lt_compiler_needs_object
21257
 
21258
# Create an old-style archive from a shared archive.
21259
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21260
 
21261
# Create a temporary old-style archive to link instead of a shared archive.
21262
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21263
 
21264
# Commands used to build a shared archive.
21265
archive_cmds=$lt_archive_cmds
21266
archive_expsym_cmds=$lt_archive_expsym_cmds
21267
 
21268
# Commands used to build a loadable module if different from building
21269
# a shared archive.
21270
module_cmds=$lt_module_cmds
21271
module_expsym_cmds=$lt_module_expsym_cmds
21272
 
21273
# Whether we are building with GNU ld or not.
21274
with_gnu_ld=$lt_with_gnu_ld
21275
 
21276
# Flag that allows shared libraries with undefined symbols to be built.
21277
allow_undefined_flag=$lt_allow_undefined_flag
21278
 
21279
# Flag that enforces no undefined symbols.
21280
no_undefined_flag=$lt_no_undefined_flag
21281
 
21282
# Flag to hardcode \$libdir into a binary during linking.
21283
# This must work even if \$libdir does not exist
21284
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21285
 
21286
# If ld is used when linking, flag to hardcode \$libdir into a binary
21287
# during linking.  This must work even if \$libdir does not exist.
21288
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21289
 
21290
# Whether we need a single "-rpath" flag with a separated argument.
21291
hardcode_libdir_separator=$lt_hardcode_libdir_separator
21292
 
21293
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21294
# DIR into the resulting binary.
21295
hardcode_direct=$hardcode_direct
21296
 
21297
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21298
# DIR into the resulting binary and the resulting library dependency is
21299
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21300
# library is relocated.
21301
hardcode_direct_absolute=$hardcode_direct_absolute
21302
 
21303
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21304
# into the resulting binary.
21305
hardcode_minus_L=$hardcode_minus_L
21306
 
21307
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21308
# into the resulting binary.
21309
hardcode_shlibpath_var=$hardcode_shlibpath_var
21310
 
21311
# Set to "yes" if building a shared library automatically hardcodes DIR
21312
# into the library and all subsequent libraries and executables linked
21313
# against it.
21314
hardcode_automatic=$hardcode_automatic
21315
 
21316
# Set to yes if linker adds runtime paths of dependent libraries
21317
# to runtime path list.
21318
inherit_rpath=$inherit_rpath
21319
 
21320
# Whether libtool must link a program against all its dependency libraries.
21321
link_all_deplibs=$link_all_deplibs
21322
 
21323
# Fix the shell variable \$srcfile for the compiler.
21324
fix_srcfile_path=$lt_fix_srcfile_path
21325
 
21326
# Set to "yes" if exported symbols are required.
21327
always_export_symbols=$always_export_symbols
21328
 
21329
# The commands to list exported symbols.
21330
export_symbols_cmds=$lt_export_symbols_cmds
21331
 
21332
# Symbols that should not be listed in the preloaded symbols.
21333
exclude_expsyms=$lt_exclude_expsyms
21334
 
21335
# Symbols that must always be exported.
21336
include_expsyms=$lt_include_expsyms
21337
 
21338
# Commands necessary for linking programs (against libraries) with templates.
21339
prelink_cmds=$lt_prelink_cmds
21340
 
21341
# Specify filename containing input files.
21342
file_list_spec=$lt_file_list_spec
21343
 
21344
# How to hardcode a shared library path into an executable.
21345
hardcode_action=$hardcode_action
21346
 
21347
# The directories searched by this compiler when creating a shared library.
21348
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21349
 
21350
# Dependencies to place before and after the objects being linked to
21351
# create a shared library.
21352
predep_objects=$lt_predep_objects
21353
postdep_objects=$lt_postdep_objects
21354
predeps=$lt_predeps
21355
postdeps=$lt_postdeps
21356
 
21357
# The library search path used internally by the compiler when linking
21358
# a shared library.
21359
compiler_lib_search_path=$lt_compiler_lib_search_path
21360
 
21361
# ### END LIBTOOL CONFIG
21362
 
21363
_LT_EOF
21364
 
21365
  case $host_os in
21366
  aix3*)
21367
    cat <<\_LT_EOF >> "$cfgfile"
21368
# AIX sometimes has problems with the GCC collect2 program.  For some
21369
# reason, if we set the COLLECT_NAMES environment variable, the problems
21370
# vanish in a puff of smoke.
21371
if test "X${COLLECT_NAMES+set}" != Xset; then
21372
  COLLECT_NAMES=
21373
  export COLLECT_NAMES
21374
fi
21375
_LT_EOF
21376
    ;;
21377
  esac
21378
 
21379
 
21380
ltmain="$ac_aux_dir/ltmain.sh"
21381
 
21382
 
21383
  # We use sed instead of cat because bash on DJGPP gets confused if
21384
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21385
  # text mode, it properly converts lines to CR/LF.  This bash problem
21386
  # is reportedly fixed, but why not run on old versions too?
21387
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21388
    || (rm -f "$cfgfile"; exit 1)
21389
 
21390
  case $xsi_shell in
21391
  yes)
21392
    cat << \_LT_EOF >> "$cfgfile"
21393
 
21394
# func_dirname file append nondir_replacement
21395
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21396
# otherwise set result to NONDIR_REPLACEMENT.
21397
func_dirname ()
21398
{
21399
  case ${1} in
21400
    */*) func_dirname_result="${1%/*}${2}" ;;
21401
    *  ) func_dirname_result="${3}" ;;
21402
  esac
21403
}
21404
 
21405
# func_basename file
21406
func_basename ()
21407
{
21408
  func_basename_result="${1##*/}"
21409
}
21410
 
21411
# func_dirname_and_basename file append nondir_replacement
21412
# perform func_basename and func_dirname in a single function
21413
# call:
21414
#   dirname:  Compute the dirname of FILE.  If nonempty,
21415
#             add APPEND to the result, otherwise set result
21416
#             to NONDIR_REPLACEMENT.
21417
#             value returned in "$func_dirname_result"
21418
#   basename: Compute filename of FILE.
21419
#             value retuned in "$func_basename_result"
21420
# Implementation must be kept synchronized with func_dirname
21421
# and func_basename. For efficiency, we do not delegate to
21422
# those functions but instead duplicate the functionality here.
21423
func_dirname_and_basename ()
21424
{
21425
  case ${1} in
21426
    */*) func_dirname_result="${1%/*}${2}" ;;
21427
    *  ) func_dirname_result="${3}" ;;
21428
  esac
21429
  func_basename_result="${1##*/}"
21430
}
21431
 
21432
# func_stripname prefix suffix name
21433
# strip PREFIX and SUFFIX off of NAME.
21434
# PREFIX and SUFFIX must not contain globbing or regex special
21435
# characters, hashes, percent signs, but SUFFIX may contain a leading
21436
# dot (in which case that matches only a dot).
21437
func_stripname ()
21438
{
21439
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21440
  # positional parameters, so assign one to ordinary parameter first.
21441
  func_stripname_result=${3}
21442
  func_stripname_result=${func_stripname_result#"${1}"}
21443
  func_stripname_result=${func_stripname_result%"${2}"}
21444
}
21445
 
21446
# func_opt_split
21447
func_opt_split ()
21448
{
21449
  func_opt_split_opt=${1%%=*}
21450
  func_opt_split_arg=${1#*=}
21451
}
21452
 
21453
# func_lo2o object
21454
func_lo2o ()
21455
{
21456
  case ${1} in
21457
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21458
    *)    func_lo2o_result=${1} ;;
21459
  esac
21460
}
21461
 
21462
# func_xform libobj-or-source
21463
func_xform ()
21464
{
21465
  func_xform_result=${1%.*}.lo
21466
}
21467
 
21468
# func_arith arithmetic-term...
21469
func_arith ()
21470
{
21471
  func_arith_result=$(( $* ))
21472
}
21473
 
21474
# func_len string
21475
# STRING may not start with a hyphen.
21476
func_len ()
21477
{
21478
  func_len_result=${#1}
21479
}
21480
 
21481
_LT_EOF
21482
    ;;
21483
  *) # Bourne compatible functions.
21484
    cat << \_LT_EOF >> "$cfgfile"
21485
 
21486
# func_dirname file append nondir_replacement
21487
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21488
# otherwise set result to NONDIR_REPLACEMENT.
21489
func_dirname ()
21490
{
21491
  # Extract subdirectory from the argument.
21492
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21493
  if test "X$func_dirname_result" = "X${1}"; then
21494
    func_dirname_result="${3}"
21495
  else
21496
    func_dirname_result="$func_dirname_result${2}"
21497
  fi
21498
}
21499
 
21500
# func_basename file
21501
func_basename ()
21502
{
21503
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21504
}
21505
 
21506
 
21507
# func_stripname prefix suffix name
21508
# strip PREFIX and SUFFIX off of NAME.
21509
# PREFIX and SUFFIX must not contain globbing or regex special
21510
# characters, hashes, percent signs, but SUFFIX may contain a leading
21511
# dot (in which case that matches only a dot).
21512
# func_strip_suffix prefix name
21513
func_stripname ()
21514
{
21515
  case ${2} in
21516
    .*) func_stripname_result=`$ECHO "X${3}" \
21517
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21518
    *)  func_stripname_result=`$ECHO "X${3}" \
21519
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21520
  esac
21521
}
21522
 
21523
# sed scripts:
21524
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21525
my_sed_long_arg='1s/^-[^=]*=//'
21526
 
21527
# func_opt_split
21528
func_opt_split ()
21529
{
21530
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21531
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21532
}
21533
 
21534
# func_lo2o object
21535
func_lo2o ()
21536
{
21537
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21538
}
21539
 
21540
# func_xform libobj-or-source
21541
func_xform ()
21542
{
21543
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21544
}
21545
 
21546
# func_arith arithmetic-term...
21547
func_arith ()
21548
{
21549
  func_arith_result=`expr "$@"`
21550
}
21551
 
21552
# func_len string
21553
# STRING may not start with a hyphen.
21554
func_len ()
21555
{
21556
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21557
}
21558
 
21559
_LT_EOF
21560
esac
21561
 
21562
case $lt_shell_append in
21563
  yes)
21564
    cat << \_LT_EOF >> "$cfgfile"
21565
 
21566
# func_append var value
21567
# Append VALUE to the end of shell variable VAR.
21568
func_append ()
21569
{
21570
  eval "$1+=\$2"
21571
}
21572
_LT_EOF
21573
    ;;
21574
  *)
21575
    cat << \_LT_EOF >> "$cfgfile"
21576
 
21577
# func_append var value
21578
# Append VALUE to the end of shell variable VAR.
21579
func_append ()
21580
{
21581
  eval "$1=\$$1\$2"
21582
}
21583
 
21584
_LT_EOF
21585
    ;;
21586
  esac
21587
 
21588
 
21589
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21590
    || (rm -f "$cfgfile"; exit 1)
21591
 
21592
  mv -f "$cfgfile" "$ofile" ||
21593
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21594
  chmod +x "$ofile"
21595
 
21596
 
21597
    cat <<_LT_EOF >> "$ofile"
21598
 
21599
# ### BEGIN LIBTOOL TAG CONFIG: CXX
21600
 
21601
# The linker used to build libraries.
21602
LD=$lt_LD_CXX
21603
 
21604
# Commands used to build an old-style archive.
21605
old_archive_cmds=$lt_old_archive_cmds_CXX
21606
 
21607
# A language specific compiler.
21608
CC=$lt_compiler_CXX
21609
 
21610
# Is the compiler the GNU compiler?
21611
with_gcc=$GCC_CXX
21612
 
21613
# Compiler flag to turn off builtin functions.
21614
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21615
 
21616
# How to pass a linker flag through the compiler.
21617
wl=$lt_lt_prog_compiler_wl_CXX
21618
 
21619
# Additional compiler flags for building library objects.
21620
pic_flag=$lt_lt_prog_compiler_pic_CXX
21621
 
21622
# Compiler flag to prevent dynamic linking.
21623
link_static_flag=$lt_lt_prog_compiler_static_CXX
21624
 
21625
# Does compiler simultaneously support -c and -o options?
21626
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21627
 
21628
# Whether or not to add -lc for building shared libraries.
21629
build_libtool_need_lc=$archive_cmds_need_lc_CXX
21630
 
21631
# Whether or not to disallow shared libs when runtime libs are static.
21632
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21633
 
21634
# Compiler flag to allow reflexive dlopens.
21635
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21636
 
21637
# Compiler flag to generate shared objects directly from archives.
21638
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21639
 
21640
# Whether the compiler copes with passing no objects directly.
21641
compiler_needs_object=$lt_compiler_needs_object_CXX
21642
 
21643
# Create an old-style archive from a shared archive.
21644
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21645
 
21646
# Create a temporary old-style archive to link instead of a shared archive.
21647
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21648
 
21649
# Commands used to build a shared archive.
21650
archive_cmds=$lt_archive_cmds_CXX
21651
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21652
 
21653
# Commands used to build a loadable module if different from building
21654
# a shared archive.
21655
module_cmds=$lt_module_cmds_CXX
21656
module_expsym_cmds=$lt_module_expsym_cmds_CXX
21657
 
21658
# Whether we are building with GNU ld or not.
21659
with_gnu_ld=$lt_with_gnu_ld_CXX
21660
 
21661
# Flag that allows shared libraries with undefined symbols to be built.
21662
allow_undefined_flag=$lt_allow_undefined_flag_CXX
21663
 
21664
# Flag that enforces no undefined symbols.
21665
no_undefined_flag=$lt_no_undefined_flag_CXX
21666
 
21667
# Flag to hardcode \$libdir into a binary during linking.
21668
# This must work even if \$libdir does not exist
21669
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21670
 
21671
# If ld is used when linking, flag to hardcode \$libdir into a binary
21672
# during linking.  This must work even if \$libdir does not exist.
21673
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21674
 
21675
# Whether we need a single "-rpath" flag with a separated argument.
21676
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21677
 
21678
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21679
# DIR into the resulting binary.
21680
hardcode_direct=$hardcode_direct_CXX
21681
 
21682
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21683
# DIR into the resulting binary and the resulting library dependency is
21684
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21685
# library is relocated.
21686
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21687
 
21688
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21689
# into the resulting binary.
21690
hardcode_minus_L=$hardcode_minus_L_CXX
21691
 
21692
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21693
# into the resulting binary.
21694
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21695
 
21696
# Set to "yes" if building a shared library automatically hardcodes DIR
21697
# into the library and all subsequent libraries and executables linked
21698
# against it.
21699
hardcode_automatic=$hardcode_automatic_CXX
21700
 
21701
# Set to yes if linker adds runtime paths of dependent libraries
21702
# to runtime path list.
21703
inherit_rpath=$inherit_rpath_CXX
21704
 
21705
# Whether libtool must link a program against all its dependency libraries.
21706
link_all_deplibs=$link_all_deplibs_CXX
21707
 
21708
# Fix the shell variable \$srcfile for the compiler.
21709
fix_srcfile_path=$lt_fix_srcfile_path_CXX
21710
 
21711
# Set to "yes" if exported symbols are required.
21712
always_export_symbols=$always_export_symbols_CXX
21713
 
21714
# The commands to list exported symbols.
21715
export_symbols_cmds=$lt_export_symbols_cmds_CXX
21716
 
21717
# Symbols that should not be listed in the preloaded symbols.
21718
exclude_expsyms=$lt_exclude_expsyms_CXX
21719
 
21720
# Symbols that must always be exported.
21721
include_expsyms=$lt_include_expsyms_CXX
21722
 
21723
# Commands necessary for linking programs (against libraries) with templates.
21724
prelink_cmds=$lt_prelink_cmds_CXX
21725
 
21726
# Specify filename containing input files.
21727
file_list_spec=$lt_file_list_spec_CXX
21728
 
21729
# How to hardcode a shared library path into an executable.
21730
hardcode_action=$hardcode_action_CXX
21731
 
21732
# The directories searched by this compiler when creating a shared library.
21733
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21734
 
21735
# Dependencies to place before and after the objects being linked to
21736
# create a shared library.
21737
predep_objects=$lt_predep_objects_CXX
21738
postdep_objects=$lt_postdep_objects_CXX
21739
predeps=$lt_predeps_CXX
21740
postdeps=$lt_postdeps_CXX
21741
 
21742
# The library search path used internally by the compiler when linking
21743
# a shared library.
21744
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21745
 
21746
# ### END LIBTOOL TAG CONFIG: CXX
21747
_LT_EOF
21748
 
21749
 ;;
21750
 
21751
  esac
21752
done # for ac_tag
21753
 
21754
 
21755
as_fn_exit 0
21756
_ACEOF
21757
ac_clean_files=$ac_clean_files_save
21758
 
21759
test $ac_write_fail = 0 ||
21760
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21761
 
21762
 
21763
# configure is writing to config.log, and then calls config.status.
21764
# config.status does its own redirection, appending to config.log.
21765
# Unfortunately, on DOS this fails, as config.log is still kept open
21766
# by configure, so config.status won't be able to write to it; its
21767
# output is simply discarded.  So we exec the FD to /dev/null,
21768
# effectively closing config.log, so it can be properly (re)opened and
21769
# appended to by config.status.  When coming back to configure, we
21770
# need to make the FD available again.
21771
if test "$no_create" != yes; then
21772
  ac_cs_success=:
21773
  ac_config_status_args=
21774
  test "$silent" = yes &&
21775
    ac_config_status_args="$ac_config_status_args --quiet"
21776
  exec 5>/dev/null
21777
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21778
  exec 5>>config.log
21779
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21780
  # would make configure fail if this is the last instruction.
21781
  $ac_cs_success || as_fn_exit $?
21782
fi
21783
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21784
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21785
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21786
fi
21787