~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to sflphone-common/configure

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2011-11-25 13:24:12 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20111125132412-dc4qvhyosk74cd42
Tags: 1.0.1-4
Don't assume that arch:all packages will get built (closes: #649726)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# From configure.ac Revision.
3
 
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by GNU Autoconf 2.67 for sflphone 0.9.13.
5
 
#
6
 
# Report bugs to <sflphoneteam@savoirfairelinux.com>.
7
 
#
8
 
#
9
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11
 
# Foundation, Inc.
12
 
#
13
 
#
14
 
# This configure script is free software; the Free Software Foundation
15
 
# gives unlimited permission to copy, distribute and modify it.
16
 
#
17
 
# Copyright (c) Savoir-Faire Linux 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
18
 
## -------------------- ##
19
 
## M4sh Initialization. ##
20
 
## -------------------- ##
21
 
 
22
 
# Be more Bourne compatible
23
 
DUALCASE=1; export DUALCASE # for MKS sh
24
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25
 
  emulate sh
26
 
  NULLCMD=:
27
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28
 
  # is contrary to our usage.  Disable this feature.
29
 
  alias -g '${1+"$@"}'='"$@"'
30
 
  setopt NO_GLOB_SUBST
31
 
else
32
 
  case `(set -o) 2>/dev/null` in #(
33
 
  *posix*) :
34
 
    set -o posix ;; #(
35
 
  *) :
36
 
     ;;
37
 
esac
38
 
fi
39
 
 
40
 
 
41
 
as_nl='
42
 
'
43
 
export as_nl
44
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
45
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
49
 
# but without wasting forks for bash or zsh.
50
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
51
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52
 
  as_echo='print -r --'
53
 
  as_echo_n='print -rn --'
54
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
 
  as_echo='printf %s\n'
56
 
  as_echo_n='printf %s'
57
 
else
58
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60
 
    as_echo_n='/usr/ucb/echo -n'
61
 
  else
62
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63
 
    as_echo_n_body='eval
64
 
      arg=$1;
65
 
      case $arg in #(
66
 
      *"$as_nl"*)
67
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
68
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69
 
      esac;
70
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71
 
    '
72
 
    export as_echo_n_body
73
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
74
 
  fi
75
 
  export as_echo_body
76
 
  as_echo='sh -c $as_echo_body as_echo'
77
 
fi
78
 
 
79
 
# The user is always right.
80
 
if test "${PATH_SEPARATOR+set}" != set; then
81
 
  PATH_SEPARATOR=:
82
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84
 
      PATH_SEPARATOR=';'
85
 
  }
86
 
fi
87
 
 
88
 
 
89
 
# IFS
90
 
# We need space, tab and new line, in precisely that order.  Quoting is
91
 
# there to prevent editors from complaining about space-tab.
92
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
 
# splitting by setting IFS to empty value.)
94
 
IFS=" ""        $as_nl"
95
 
 
96
 
# Find who we are.  Look in the path if we contain no directory separator.
97
 
case $0 in #((
98
 
  *[\\/]* ) as_myself=$0 ;;
99
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
 
for as_dir in $PATH
101
 
do
102
 
  IFS=$as_save_IFS
103
 
  test -z "$as_dir" && as_dir=.
104
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
 
  done
106
 
IFS=$as_save_IFS
107
 
 
108
 
     ;;
109
 
esac
110
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
 
# in which case we are not to be found in the path.
112
 
if test "x$as_myself" = x; then
113
 
  as_myself=$0
114
 
fi
115
 
if test ! -f "$as_myself"; then
116
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
 
  exit 1
118
 
fi
119
 
 
120
 
# Unset variables that we do not need and which cause bugs (e.g. in
121
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
122
 
# suppresses any "Segmentation fault" message there.  '((' could
123
 
# trigger a bug in pdksh 5.2.14.
124
 
for as_var in BASH_ENV ENV MAIL MAILPATH
125
 
do eval test x\${$as_var+set} = xset \
126
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
127
 
done
128
 
PS1='$ '
129
 
PS2='> '
130
 
PS4='+ '
131
 
 
132
 
# NLS nuisances.
133
 
LC_ALL=C
134
 
export LC_ALL
135
 
LANGUAGE=C
136
 
export LANGUAGE
137
 
 
138
 
# CDPATH.
139
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140
 
 
141
 
if test "x$CONFIG_SHELL" = x; then
142
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
 
  emulate sh
144
 
  NULLCMD=:
145
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146
 
  # is contrary to our usage.  Disable this feature.
147
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
 
  setopt NO_GLOB_SUBST
149
 
else
150
 
  case \`(set -o) 2>/dev/null\` in #(
151
 
  *posix*) :
152
 
    set -o posix ;; #(
153
 
  *) :
154
 
     ;;
155
 
esac
156
 
fi
157
 
"
158
 
  as_required="as_fn_return () { (exit \$1); }
159
 
as_fn_success () { as_fn_return 0; }
160
 
as_fn_failure () { as_fn_return 1; }
161
 
as_fn_ret_success () { return 0; }
162
 
as_fn_ret_failure () { return 1; }
163
 
 
164
 
exitcode=0
165
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
 
 
171
 
else
172
 
  exitcode=1; echo positional parameters were not saved.
173
 
fi
174
 
test x\$exitcode = x0 || exit 1"
175
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179
 
test \$(( 1 + 1 )) = 2 || exit 1"
180
 
  if (eval "$as_required") 2>/dev/null; then :
181
 
  as_have_required=yes
182
 
else
183
 
  as_have_required=no
184
 
fi
185
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186
 
 
187
 
else
188
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189
 
as_found=false
190
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191
 
do
192
 
  IFS=$as_save_IFS
193
 
  test -z "$as_dir" && as_dir=.
194
 
  as_found=:
195
 
  case $as_dir in #(
196
 
         /*)
197
 
           for as_base in sh bash ksh sh5; do
198
 
             # Try only shells that exist, to save several forks.
199
 
             as_shell=$as_dir/$as_base
200
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202
 
  CONFIG_SHELL=$as_shell as_have_required=yes
203
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204
 
  break 2
205
 
fi
206
 
fi
207
 
           done;;
208
 
       esac
209
 
  as_found=false
210
 
done
211
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213
 
  CONFIG_SHELL=$SHELL as_have_required=yes
214
 
fi; }
215
 
IFS=$as_save_IFS
216
 
 
217
 
 
218
 
      if test "x$CONFIG_SHELL" != x; then :
219
 
  # We cannot yet assume a decent shell, so we have to provide a
220
 
        # neutralization value for shells without unset; and this also
221
 
        # works around shells that cannot unset nonexistent variables.
222
 
        BASH_ENV=/dev/null
223
 
        ENV=/dev/null
224
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225
 
        export CONFIG_SHELL
226
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227
 
fi
228
 
 
229
 
    if test x$as_have_required = xno; then :
230
 
  $as_echo "$0: This script requires a shell more modern than all"
231
 
  $as_echo "$0: the shells that I found on your system."
232
 
  if test x${ZSH_VERSION+set} = xset ; then
233
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
234
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
235
 
  else
236
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
237
 
$0: sflphoneteam@savoirfairelinux.com about your system,
238
 
$0: including any error possibly output before this
239
 
$0: message. Then install a modern shell, or manually run
240
 
$0: the script under such a shell if you do have one."
241
 
  fi
242
 
  exit 1
243
 
fi
244
 
fi
245
 
fi
246
 
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
export SHELL
248
 
# Unset more variables known to interfere with behavior of common tools.
249
 
CLICOLOR_FORCE= GREP_OPTIONS=
250
 
unset CLICOLOR_FORCE GREP_OPTIONS
251
 
 
252
 
## --------------------- ##
253
 
## M4sh Shell Functions. ##
254
 
## --------------------- ##
255
 
# as_fn_unset VAR
256
 
# ---------------
257
 
# Portably unset VAR.
258
 
as_fn_unset ()
259
 
{
260
 
  { eval $1=; unset $1;}
261
 
}
262
 
as_unset=as_fn_unset
263
 
 
264
 
# as_fn_set_status STATUS
265
 
# -----------------------
266
 
# Set $? to STATUS, without forking.
267
 
as_fn_set_status ()
268
 
{
269
 
  return $1
270
 
} # as_fn_set_status
271
 
 
272
 
# as_fn_exit STATUS
273
 
# -----------------
274
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275
 
as_fn_exit ()
276
 
{
277
 
  set +e
278
 
  as_fn_set_status $1
279
 
  exit $1
280
 
} # as_fn_exit
281
 
 
282
 
# as_fn_mkdir_p
283
 
# -------------
284
 
# Create "$as_dir" as a directory, including parents if necessary.
285
 
as_fn_mkdir_p ()
286
 
{
287
 
 
288
 
  case $as_dir in #(
289
 
  -*) as_dir=./$as_dir;;
290
 
  esac
291
 
  test -d "$as_dir" || eval $as_mkdir_p || {
292
 
    as_dirs=
293
 
    while :; do
294
 
      case $as_dir in #(
295
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296
 
      *) as_qdir=$as_dir;;
297
 
      esac
298
 
      as_dirs="'$as_qdir' $as_dirs"
299
 
      as_dir=`$as_dirname -- "$as_dir" ||
300
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
302
 
         X"$as_dir" : 'X\(//\)$' \| \
303
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304
 
$as_echo X"$as_dir" |
305
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306
 
            s//\1/
307
 
            q
308
 
          }
309
 
          /^X\(\/\/\)[^/].*/{
310
 
            s//\1/
311
 
            q
312
 
          }
313
 
          /^X\(\/\/\)$/{
314
 
            s//\1/
315
 
            q
316
 
          }
317
 
          /^X\(\/\).*/{
318
 
            s//\1/
319
 
            q
320
 
          }
321
 
          s/.*/./; q'`
322
 
      test -d "$as_dir" && break
323
 
    done
324
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
325
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
 
 
327
 
 
328
 
} # as_fn_mkdir_p
329
 
# as_fn_append VAR VALUE
330
 
# ----------------------
331
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
332
 
# advantage of any shell optimizations that allow amortized linear growth over
333
 
# repeated appends, instead of the typical quadratic growth present in naive
334
 
# implementations.
335
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336
 
  eval 'as_fn_append ()
337
 
  {
338
 
    eval $1+=\$2
339
 
  }'
340
 
else
341
 
  as_fn_append ()
342
 
  {
343
 
    eval $1=\$$1\$2
344
 
  }
345
 
fi # as_fn_append
346
 
 
347
 
# as_fn_arith ARG...
348
 
# ------------------
349
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
350
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
351
 
# must be portable across $(()) and expr.
352
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353
 
  eval 'as_fn_arith ()
354
 
  {
355
 
    as_val=$(( $* ))
356
 
  }'
357
 
else
358
 
  as_fn_arith ()
359
 
  {
360
 
    as_val=`expr "$@" || test $? -eq 1`
361
 
  }
362
 
fi # as_fn_arith
363
 
 
364
 
 
365
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
366
 
# ----------------------------------------
367
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369
 
# script with STATUS, using 1 if that was 0.
370
 
as_fn_error ()
371
 
{
372
 
  as_status=$1; test $as_status -eq 0 && as_status=1
373
 
  if test "$4"; then
374
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
376
 
  fi
377
 
  $as_echo "$as_me: error: $2" >&2
378
 
  as_fn_exit $as_status
379
 
} # as_fn_error
380
 
 
381
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
382
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
 
  as_expr=expr
384
 
else
385
 
  as_expr=false
386
 
fi
387
 
 
388
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
 
  as_basename=basename
390
 
else
391
 
  as_basename=false
392
 
fi
393
 
 
394
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
 
  as_dirname=dirname
396
 
else
397
 
  as_dirname=false
398
 
fi
399
 
 
400
 
as_me=`$as_basename -- "$0" ||
401
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402
 
         X"$0" : 'X\(//\)$' \| \
403
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404
 
$as_echo X/"$0" |
405
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
406
 
            s//\1/
407
 
            q
408
 
          }
409
 
          /^X\/\(\/\/\)$/{
410
 
            s//\1/
411
 
            q
412
 
          }
413
 
          /^X\/\(\/\).*/{
414
 
            s//\1/
415
 
            q
416
 
          }
417
 
          s/.*/./; q'`
418
 
 
419
 
# Avoid depending upon Character Ranges.
420
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423
 
as_cr_digits='0123456789'
424
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
425
 
 
426
 
 
427
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432
 
  sed -n '
433
 
    p
434
 
    /[$]LINENO/=
435
 
  ' <$as_myself |
436
 
    sed '
437
 
      s/[$]LINENO.*/&-/
438
 
      t lineno
439
 
      b
440
 
      :lineno
441
 
      N
442
 
      :loop
443
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
 
      t loop
445
 
      s/-\n.*//
446
 
    ' >$as_me.lineno &&
447
 
  chmod +x "$as_me.lineno" ||
448
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
 
 
450
 
  # Don't try to exec as it changes $[0], causing all sort of problems
451
 
  # (the dirname of $[0] is not the place where we might find the
452
 
  # original and so on.  Autoconf is especially sensitive to this).
453
 
  . "./$as_me.lineno"
454
 
  # Exit status is that of the last command.
455
 
  exit
456
 
}
457
 
 
458
 
ECHO_C= ECHO_N= ECHO_T=
459
 
case `echo -n x` in #(((((
460
 
-n*)
461
 
  case `echo 'xy\c'` in
462
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463
 
  xy)  ECHO_C='\c';;
464
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
 
       ECHO_T=' ';;
466
 
  esac;;
467
 
*)
468
 
  ECHO_N='-n';;
469
 
esac
470
 
 
471
 
rm -f conf$$ conf$$.exe conf$$.file
472
 
if test -d conf$$.dir; then
473
 
  rm -f conf$$.dir/conf$$.file
474
 
else
475
 
  rm -f conf$$.dir
476
 
  mkdir conf$$.dir 2>/dev/null
477
 
fi
478
 
if (echo >conf$$.file) 2>/dev/null; then
479
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
480
 
    as_ln_s='ln -s'
481
 
    # ... but there are two gotchas:
482
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484
 
    # In both cases, we have to default to `cp -p'.
485
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486
 
      as_ln_s='cp -p'
487
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
488
 
    as_ln_s=ln
489
 
  else
490
 
    as_ln_s='cp -p'
491
 
  fi
492
 
else
493
 
  as_ln_s='cp -p'
494
 
fi
495
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496
 
rmdir conf$$.dir 2>/dev/null
497
 
 
498
 
if mkdir -p . 2>/dev/null; then
499
 
  as_mkdir_p='mkdir -p "$as_dir"'
500
 
else
501
 
  test -d ./-p && rmdir ./-p
502
 
  as_mkdir_p=false
503
 
fi
504
 
 
505
 
if test -x / >/dev/null 2>&1; then
506
 
  as_test_x='test -x'
507
 
else
508
 
  if ls -dL / >/dev/null 2>&1; then
509
 
    as_ls_L_option=L
510
 
  else
511
 
    as_ls_L_option=
512
 
  fi
513
 
  as_test_x='
514
 
    eval sh -c '\''
515
 
      if test -d "$1"; then
516
 
        test -d "$1/.";
517
 
      else
518
 
        case $1 in #(
519
 
        -*)set "./$1";;
520
 
        esac;
521
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522
 
        ???[sx]*):;;*)false;;esac;fi
523
 
    '\'' sh
524
 
  '
525
 
fi
526
 
as_executable_p=$as_test_x
527
 
 
528
 
# Sed expression to map a string onto a valid CPP name.
529
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
 
 
531
 
# Sed expression to map a string onto a valid variable name.
532
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
 
 
534
 
 
535
 
 
536
 
# Check that we are running under the correct shell.
537
 
SHELL=${CONFIG_SHELL-/bin/sh}
538
 
 
539
 
case X$lt_ECHO in
540
 
X*--fallback-echo)
541
 
  # Remove one level of quotation (which was required for Make).
542
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
543
 
  ;;
544
 
esac
545
 
 
546
 
ECHO=${lt_ECHO-echo}
547
 
if test "X$1" = X--no-reexec; then
548
 
  # Discard the --no-reexec flag, and continue.
549
 
  shift
550
 
elif test "X$1" = X--fallback-echo; then
551
 
  # Avoid inline document here, it may be left over
552
 
  :
553
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
554
 
  # Yippee, $ECHO works!
555
 
  :
556
 
else
557
 
  # Restart under the correct shell.
558
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
559
 
fi
560
 
 
561
 
if test "X$1" = X--fallback-echo; then
562
 
  # used as fallback echo
563
 
  shift
564
 
  cat <<_LT_EOF
565
 
$*
566
 
_LT_EOF
567
 
  exit 0
568
 
fi
569
 
 
570
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
571
 
# if CDPATH is set.
572
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
573
 
 
574
 
if test -z "$lt_ECHO"; then
575
 
  if test "X${echo_test_string+set}" != Xset; then
576
 
    # find a string as large as possible, as long as the shell can cope with it
577
 
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
578
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
579
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
580
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581
 
      then
582
 
        break
583
 
      fi
584
 
    done
585
 
  fi
586
 
 
587
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
588
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
589
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
590
 
    :
591
 
  else
592
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
593
 
    # backslashes.  This makes it impossible to quote backslashes using
594
 
    #   echo "$something" | sed 's/\\/\\\\/g'
595
 
    #
596
 
    # So, first we look for a working echo in the user's PATH.
597
 
 
598
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
599
 
    for dir in $PATH /usr/ucb; do
600
 
      IFS="$lt_save_ifs"
601
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
602
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
603
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
604
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
605
 
        ECHO="$dir/echo"
606
 
        break
607
 
      fi
608
 
    done
609
 
    IFS="$lt_save_ifs"
610
 
 
611
 
    if test "X$ECHO" = Xecho; then
612
 
      # We didn't find a better echo, so look for alternatives.
613
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
614
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
615
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
616
 
        # This shell has a builtin print -r that does the trick.
617
 
        ECHO='print -r'
618
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
619
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
620
 
        # If we have ksh, try running configure again with it.
621
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
622
 
        export ORIGINAL_CONFIG_SHELL
623
 
        CONFIG_SHELL=/bin/ksh
624
 
        export CONFIG_SHELL
625
 
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626
 
      else
627
 
        # Try using printf.
628
 
        ECHO='printf %s\n'
629
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
630
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
631
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
632
 
          # Cool, printf works
633
 
          :
634
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
635
 
             test "X$echo_testing_string" = 'X\t' &&
636
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
637
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
638
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
639
 
          export CONFIG_SHELL
640
 
          SHELL="$CONFIG_SHELL"
641
 
          export SHELL
642
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
643
 
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
644
 
             test "X$echo_testing_string" = 'X\t' &&
645
 
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
646
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
647
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
648
 
        else
649
 
          # maybe with a smaller string...
650
 
          prev=:
651
 
 
652
 
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
653
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654
 
            then
655
 
              break
656
 
            fi
657
 
            prev="$cmd"
658
 
          done
659
 
 
660
 
          if test "$prev" != 'sed 50q "$0"'; then
661
 
            echo_test_string=`eval $prev`
662
 
            export echo_test_string
663
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
664
 
          else
665
 
            # Oops.  We lost completely, so just stick with echo.
666
 
            ECHO=echo
667
 
          fi
668
 
        fi
669
 
      fi
670
 
    fi
671
 
  fi
672
 
fi
673
 
 
674
 
# Copy echo and quote the copy suitably for passing to libtool from
675
 
# the Makefile, instead of quoting the original, which is used later.
676
 
lt_ECHO=$ECHO
677
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
678
 
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679
 
fi
680
 
 
681
 
 
682
 
 
683
 
 
684
 
test -n "$DJDIR" || exec 7<&0 </dev/null
685
 
exec 6>&1
686
 
 
687
 
# Name of the host.
688
 
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
689
 
# so uname gets run too.
690
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
691
 
 
692
 
#
693
 
# Initializations.
694
 
#
695
 
ac_default_prefix=/usr/local
696
 
ac_clean_files=
697
 
ac_config_libobj_dir=.
698
 
LIBOBJS=
699
 
cross_compiling=no
700
 
subdirs=
701
 
MFLAGS=
702
 
MAKEFLAGS=
703
 
 
704
 
# Identity of this package.
705
 
PACKAGE_NAME='sflphone'
706
 
PACKAGE_TARNAME='sflphone'
707
 
PACKAGE_VERSION='0.9.13'
708
 
PACKAGE_STRING='sflphone 0.9.13'
709
 
PACKAGE_BUGREPORT='sflphoneteam@savoirfairelinux.com'
710
 
PACKAGE_URL=''
711
 
 
712
 
# Factoring default headers for most tests.
713
 
ac_includes_default="\
714
 
#include <stdio.h>
715
 
#ifdef HAVE_SYS_TYPES_H
716
 
# include <sys/types.h>
717
 
#endif
718
 
#ifdef HAVE_SYS_STAT_H
719
 
# include <sys/stat.h>
720
 
#endif
721
 
#ifdef STDC_HEADERS
722
 
# include <stdlib.h>
723
 
# include <stddef.h>
724
 
#else
725
 
# ifdef HAVE_STDLIB_H
726
 
#  include <stdlib.h>
727
 
# endif
728
 
#endif
729
 
#ifdef HAVE_STRING_H
730
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731
 
#  include <memory.h>
732
 
# endif
733
 
# include <string.h>
734
 
#endif
735
 
#ifdef HAVE_STRINGS_H
736
 
# include <strings.h>
737
 
#endif
738
 
#ifdef HAVE_INTTYPES_H
739
 
# include <inttypes.h>
740
 
#endif
741
 
#ifdef HAVE_STDINT_H
742
 
# include <stdint.h>
743
 
#endif
744
 
#ifdef HAVE_UNISTD_H
745
 
# include <unistd.h>
746
 
#endif"
747
 
 
748
 
ac_header_list=
749
 
ac_subst_vars='am__EXEEXT_FALSE
750
 
am__EXEEXT_TRUE
751
 
LTLIBOBJS
752
 
SFLPHONE_LIBS
753
 
SFLPHONE_CFLAGS
754
 
DBUS_SERVICES_DIR
755
 
sflphone_datadir
756
 
enable_latex_docs
757
 
enable_html_docs
758
 
enable_dot
759
 
ENABLE_DOXYGEN_FALSE
760
 
ENABLE_DOXYGEN_TRUE
761
 
DOC_FALSE
762
 
DOC_TRUE
763
 
DOT
764
 
DOXYGEN
765
 
USE_NETWORKMANAGER_FALSE
766
 
USE_NETWORKMANAGER_TRUE
767
 
USE_IAX_FALSE
768
 
USE_IAX_TRUE
769
 
BUILD_CELT_71_FALSE
770
 
BUILD_CELT_71_TRUE
771
 
BUILD_CELT_91_FALSE
772
 
BUILD_CELT_91_TRUE
773
 
BUILD_CELT_91
774
 
BUILD_CELT_71
775
 
CELT_LIBS
776
 
CELT_CFLAGS
777
 
ENABLE_SPEEXDSP_FALSE
778
 
ENABLE_SPEEXDSP_TRUE
779
 
BUILD_SPEEX_FALSE
780
 
BUILD_SPEEX_TRUE
781
 
BUILD_GSM_FALSE
782
 
BUILD_GSM_TRUE
783
 
CPPUNIT_LIBS
784
 
CPPUNIT_CFLAGS
785
 
BUILD_TEST_FALSE
786
 
BUILD_TEST_TRUE
787
 
BUILD_LIBDBUS_CXX_DIR
788
 
CROSS_COMPILING_FALSE
789
 
CROSS_COMPILING_TRUE
790
 
PCRE_CFLAGS
791
 
PCRE_LIBS
792
 
yaml_LIBS
793
 
yaml_CFLAGS
794
 
xml_LIBS
795
 
xml_CFLAGS
796
 
dbus_LIBS
797
 
dbus_CFLAGS
798
 
ZRTPCPP_LIBS
799
 
ZRTPCPP_CFLAGS
800
 
libssl_LIBS
801
 
libssl_CFLAGS
802
 
CCRTP_LIBS
803
 
CCRTP_CFLAGS
804
 
CCEXT2_LIBS
805
 
CCEXT2_CFLAGS
806
 
CCGNU2_FLAGS
807
 
CCGNU2_LIBS
808
 
CCGNU2_CFLAGS
809
 
SAMPLERATE_LIBS
810
 
SAMPLERATE_CFLAGS
811
 
PULSEAUDIO_LIBS
812
 
PULSEAUDIO_CFLAGS
813
 
ALSA_LIBS
814
 
ALSA_CFLAGS
815
 
UUID_LIBS
816
 
UUID_CFLAGS
817
 
PKG_CONFIG_LIBDIR
818
 
PKG_CONFIG_PATH
819
 
PKG_CONFIG
820
 
LIBOBJS
821
 
ALLOCA
822
 
CXXCPP
823
 
OTOOL64
824
 
OTOOL
825
 
LIPO
826
 
NMEDIT
827
 
DSYMUTIL
828
 
lt_ECHO
829
 
RANLIB
830
 
AR
831
 
OBJDUMP
832
 
NM
833
 
ac_ct_DUMPBIN
834
 
DUMPBIN
835
 
LD
836
 
FGREP
837
 
EGREP
838
 
GREP
839
 
SED
840
 
LIBTOOL
841
 
LN_S
842
 
CPP
843
 
am__fastdepCXX_FALSE
844
 
am__fastdepCXX_TRUE
845
 
CXXDEPMODE
846
 
ac_ct_CXX
847
 
CXXFLAGS
848
 
CXX
849
 
am__fastdepCC_FALSE
850
 
am__fastdepCC_TRUE
851
 
CCDEPMODE
852
 
AMDEPBACKSLASH
853
 
AMDEP_FALSE
854
 
AMDEP_TRUE
855
 
am__quote
856
 
am__include
857
 
DEPDIR
858
 
OBJEXT
859
 
EXEEXT
860
 
ac_ct_CC
861
 
CPPFLAGS
862
 
LDFLAGS
863
 
CFLAGS
864
 
CC
865
 
PKGADD_VENDOR
866
 
PKGADD_NAME
867
 
PKGADD_PKG
868
 
AM_BACKSLASH
869
 
AM_DEFAULT_VERBOSITY
870
 
am__untar
871
 
am__tar
872
 
AMTAR
873
 
am__leading_dot
874
 
SET_MAKE
875
 
AWK
876
 
mkdir_p
877
 
MKDIR_P
878
 
INSTALL_STRIP_PROGRAM
879
 
STRIP
880
 
install_sh
881
 
MAKEINFO
882
 
AUTOHEADER
883
 
AUTOMAKE
884
 
AUTOCONF
885
 
ACLOCAL
886
 
VERSION
887
 
PACKAGE
888
 
CYGPATH_W
889
 
am__isrc
890
 
INSTALL_DATA
891
 
INSTALL_SCRIPT
892
 
INSTALL_PROGRAM
893
 
target_os
894
 
target_vendor
895
 
target_cpu
896
 
target
897
 
host_os
898
 
host_vendor
899
 
host_cpu
900
 
host
901
 
build_os
902
 
build_vendor
903
 
build_cpu
904
 
build
905
 
target_alias
906
 
host_alias
907
 
build_alias
908
 
LIBS
909
 
ECHO_T
910
 
ECHO_N
911
 
ECHO_C
912
 
DEFS
913
 
mandir
914
 
localedir
915
 
libdir
916
 
psdir
917
 
pdfdir
918
 
dvidir
919
 
htmldir
920
 
infodir
921
 
docdir
922
 
oldincludedir
923
 
includedir
924
 
localstatedir
925
 
sharedstatedir
926
 
sysconfdir
927
 
datadir
928
 
datarootdir
929
 
libexecdir
930
 
sbindir
931
 
bindir
932
 
program_transform_name
933
 
prefix
934
 
exec_prefix
935
 
PACKAGE_URL
936
 
PACKAGE_BUGREPORT
937
 
PACKAGE_STRING
938
 
PACKAGE_VERSION
939
 
PACKAGE_TARNAME
940
 
PACKAGE_NAME
941
 
PATH_SEPARATOR
942
 
SHELL'
943
 
ac_subst_files=''
944
 
ac_user_opts='
945
 
enable_option_checking
946
 
enable_silent_rules
947
 
enable_dependency_tracking
948
 
enable_shared
949
 
enable_static
950
 
with_pic
951
 
enable_fast_install
952
 
with_gnu_ld
953
 
enable_libtool_lock
954
 
with_debug
955
 
with_build_libdbus_cxx
956
 
with_gsm
957
 
with_speex
958
 
with_celt
959
 
with_iax2
960
 
with_networkmanager
961
 
enable_doxygen
962
 
enable_dot
963
 
enable_html_docs
964
 
enable_latex_docs
965
 
'
966
 
      ac_precious_vars='build_alias
967
 
host_alias
968
 
target_alias
969
 
CC
970
 
CFLAGS
971
 
LDFLAGS
972
 
LIBS
973
 
CPPFLAGS
974
 
CXX
975
 
CXXFLAGS
976
 
CCC
977
 
CPP
978
 
CXXCPP
979
 
PKG_CONFIG
980
 
PKG_CONFIG_PATH
981
 
PKG_CONFIG_LIBDIR
982
 
UUID_CFLAGS
983
 
UUID_LIBS
984
 
ALSA_CFLAGS
985
 
ALSA_LIBS
986
 
PULSEAUDIO_CFLAGS
987
 
PULSEAUDIO_LIBS
988
 
SAMPLERATE_CFLAGS
989
 
SAMPLERATE_LIBS
990
 
CCGNU2_CFLAGS
991
 
CCGNU2_LIBS
992
 
CCEXT2_CFLAGS
993
 
CCEXT2_LIBS
994
 
CCRTP_CFLAGS
995
 
CCRTP_LIBS
996
 
libssl_CFLAGS
997
 
libssl_LIBS
998
 
ZRTPCPP_CFLAGS
999
 
ZRTPCPP_LIBS
1000
 
dbus_CFLAGS
1001
 
dbus_LIBS
1002
 
CPPUNIT_CFLAGS
1003
 
CPPUNIT_LIBS
1004
 
CELT_CFLAGS
1005
 
CELT_LIBS'
1006
 
 
1007
 
 
1008
 
# Initialize some variables set by options.
1009
 
ac_init_help=
1010
 
ac_init_version=false
1011
 
ac_unrecognized_opts=
1012
 
ac_unrecognized_sep=
1013
 
# The variables have the same names as the options, with
1014
 
# dashes changed to underlines.
1015
 
cache_file=/dev/null
1016
 
exec_prefix=NONE
1017
 
no_create=
1018
 
no_recursion=
1019
 
prefix=NONE
1020
 
program_prefix=NONE
1021
 
program_suffix=NONE
1022
 
program_transform_name=s,x,x,
1023
 
silent=
1024
 
site=
1025
 
srcdir=
1026
 
verbose=
1027
 
x_includes=NONE
1028
 
x_libraries=NONE
1029
 
 
1030
 
# Installation directory options.
1031
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
1032
 
# and all the variables that are supposed to be based on exec_prefix
1033
 
# by default will actually change.
1034
 
# Use braces instead of parens because sh, perl, etc. also accept them.
1035
 
# (The list follows the same order as the GNU Coding Standards.)
1036
 
bindir='${exec_prefix}/bin'
1037
 
sbindir='${exec_prefix}/sbin'
1038
 
libexecdir='${exec_prefix}/libexec'
1039
 
datarootdir='${prefix}/share'
1040
 
datadir='${datarootdir}'
1041
 
sysconfdir='${prefix}/etc'
1042
 
sharedstatedir='${prefix}/com'
1043
 
localstatedir='${prefix}/var'
1044
 
includedir='${prefix}/include'
1045
 
oldincludedir='/usr/include'
1046
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1047
 
infodir='${datarootdir}/info'
1048
 
htmldir='${docdir}'
1049
 
dvidir='${docdir}'
1050
 
pdfdir='${docdir}'
1051
 
psdir='${docdir}'
1052
 
libdir='${exec_prefix}/lib'
1053
 
localedir='${datarootdir}/locale'
1054
 
mandir='${datarootdir}/man'
1055
 
 
1056
 
ac_prev=
1057
 
ac_dashdash=
1058
 
for ac_option
1059
 
do
1060
 
  # If the previous option needs an argument, assign it.
1061
 
  if test -n "$ac_prev"; then
1062
 
    eval $ac_prev=\$ac_option
1063
 
    ac_prev=
1064
 
    continue
1065
 
  fi
1066
 
 
1067
 
  case $ac_option in
1068
 
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069
 
  *=)   ac_optarg= ;;
1070
 
  *)    ac_optarg=yes ;;
1071
 
  esac
1072
 
 
1073
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
1074
 
 
1075
 
  case $ac_dashdash$ac_option in
1076
 
  --)
1077
 
    ac_dashdash=yes ;;
1078
 
 
1079
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080
 
    ac_prev=bindir ;;
1081
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082
 
    bindir=$ac_optarg ;;
1083
 
 
1084
 
  -build | --build | --buil | --bui | --bu)
1085
 
    ac_prev=build_alias ;;
1086
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087
 
    build_alias=$ac_optarg ;;
1088
 
 
1089
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1090
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091
 
    ac_prev=cache_file ;;
1092
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094
 
    cache_file=$ac_optarg ;;
1095
 
 
1096
 
  --config-cache | -C)
1097
 
    cache_file=config.cache ;;
1098
 
 
1099
 
  -datadir | --datadir | --datadi | --datad)
1100
 
    ac_prev=datadir ;;
1101
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1102
 
    datadir=$ac_optarg ;;
1103
 
 
1104
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105
 
  | --dataroo | --dataro | --datar)
1106
 
    ac_prev=datarootdir ;;
1107
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109
 
    datarootdir=$ac_optarg ;;
1110
 
 
1111
 
  -disable-* | --disable-*)
1112
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113
 
    # Reject names that are not valid shell variable names.
1114
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115
 
      as_fn_error $? "invalid feature name: $ac_useropt"
1116
 
    ac_useropt_orig=$ac_useropt
1117
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118
 
    case $ac_user_opts in
1119
 
      *"
1120
 
"enable_$ac_useropt"
1121
 
"*) ;;
1122
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123
 
         ac_unrecognized_sep=', ';;
1124
 
    esac
1125
 
    eval enable_$ac_useropt=no ;;
1126
 
 
1127
 
  -docdir | --docdir | --docdi | --doc | --do)
1128
 
    ac_prev=docdir ;;
1129
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130
 
    docdir=$ac_optarg ;;
1131
 
 
1132
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133
 
    ac_prev=dvidir ;;
1134
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135
 
    dvidir=$ac_optarg ;;
1136
 
 
1137
 
  -enable-* | --enable-*)
1138
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139
 
    # Reject names that are not valid shell variable names.
1140
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141
 
      as_fn_error $? "invalid feature name: $ac_useropt"
1142
 
    ac_useropt_orig=$ac_useropt
1143
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144
 
    case $ac_user_opts in
1145
 
      *"
1146
 
"enable_$ac_useropt"
1147
 
"*) ;;
1148
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149
 
         ac_unrecognized_sep=', ';;
1150
 
    esac
1151
 
    eval enable_$ac_useropt=\$ac_optarg ;;
1152
 
 
1153
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1154
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1155
 
  | --exec | --exe | --ex)
1156
 
    ac_prev=exec_prefix ;;
1157
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1158
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1159
 
  | --exec=* | --exe=* | --ex=*)
1160
 
    exec_prefix=$ac_optarg ;;
1161
 
 
1162
 
  -gas | --gas | --ga | --g)
1163
 
    # Obsolete; use --with-gas.
1164
 
    with_gas=yes ;;
1165
 
 
1166
 
  -help | --help | --hel | --he | -h)
1167
 
    ac_init_help=long ;;
1168
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1169
 
    ac_init_help=recursive ;;
1170
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1171
 
    ac_init_help=short ;;
1172
 
 
1173
 
  -host | --host | --hos | --ho)
1174
 
    ac_prev=host_alias ;;
1175
 
  -host=* | --host=* | --hos=* | --ho=*)
1176
 
    host_alias=$ac_optarg ;;
1177
 
 
1178
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179
 
    ac_prev=htmldir ;;
1180
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181
 
  | --ht=*)
1182
 
    htmldir=$ac_optarg ;;
1183
 
 
1184
 
  -includedir | --includedir | --includedi | --included | --include \
1185
 
  | --includ | --inclu | --incl | --inc)
1186
 
    ac_prev=includedir ;;
1187
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1188
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1189
 
    includedir=$ac_optarg ;;
1190
 
 
1191
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1192
 
    ac_prev=infodir ;;
1193
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1194
 
    infodir=$ac_optarg ;;
1195
 
 
1196
 
  -libdir | --libdir | --libdi | --libd)
1197
 
    ac_prev=libdir ;;
1198
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1199
 
    libdir=$ac_optarg ;;
1200
 
 
1201
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1202
 
  | --libexe | --libex | --libe)
1203
 
    ac_prev=libexecdir ;;
1204
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1205
 
  | --libexe=* | --libex=* | --libe=*)
1206
 
    libexecdir=$ac_optarg ;;
1207
 
 
1208
 
  -localedir | --localedir | --localedi | --localed | --locale)
1209
 
    ac_prev=localedir ;;
1210
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1211
 
    localedir=$ac_optarg ;;
1212
 
 
1213
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1214
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1215
 
    ac_prev=localstatedir ;;
1216
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1217
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1218
 
    localstatedir=$ac_optarg ;;
1219
 
 
1220
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221
 
    ac_prev=mandir ;;
1222
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1223
 
    mandir=$ac_optarg ;;
1224
 
 
1225
 
  -nfp | --nfp | --nf)
1226
 
    # Obsolete; use --without-fp.
1227
 
    with_fp=no ;;
1228
 
 
1229
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1230
 
  | --no-cr | --no-c | -n)
1231
 
    no_create=yes ;;
1232
 
 
1233
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1234
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1235
 
    no_recursion=yes ;;
1236
 
 
1237
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1238
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1239
 
  | --oldin | --oldi | --old | --ol | --o)
1240
 
    ac_prev=oldincludedir ;;
1241
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1242
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1243
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1244
 
    oldincludedir=$ac_optarg ;;
1245
 
 
1246
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247
 
    ac_prev=prefix ;;
1248
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1249
 
    prefix=$ac_optarg ;;
1250
 
 
1251
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1252
 
  | --program-pre | --program-pr | --program-p)
1253
 
    ac_prev=program_prefix ;;
1254
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1255
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1256
 
    program_prefix=$ac_optarg ;;
1257
 
 
1258
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1259
 
  | --program-suf | --program-su | --program-s)
1260
 
    ac_prev=program_suffix ;;
1261
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1262
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1263
 
    program_suffix=$ac_optarg ;;
1264
 
 
1265
 
  -program-transform-name | --program-transform-name \
1266
 
  | --program-transform-nam | --program-transform-na \
1267
 
  | --program-transform-n | --program-transform- \
1268
 
  | --program-transform | --program-transfor \
1269
 
  | --program-transfo | --program-transf \
1270
 
  | --program-trans | --program-tran \
1271
 
  | --progr-tra | --program-tr | --program-t)
1272
 
    ac_prev=program_transform_name ;;
1273
 
  -program-transform-name=* | --program-transform-name=* \
1274
 
  | --program-transform-nam=* | --program-transform-na=* \
1275
 
  | --program-transform-n=* | --program-transform-=* \
1276
 
  | --program-transform=* | --program-transfor=* \
1277
 
  | --program-transfo=* | --program-transf=* \
1278
 
  | --program-trans=* | --program-tran=* \
1279
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1280
 
    program_transform_name=$ac_optarg ;;
1281
 
 
1282
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283
 
    ac_prev=pdfdir ;;
1284
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1285
 
    pdfdir=$ac_optarg ;;
1286
 
 
1287
 
  -psdir | --psdir | --psdi | --psd | --ps)
1288
 
    ac_prev=psdir ;;
1289
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1290
 
    psdir=$ac_optarg ;;
1291
 
 
1292
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293
 
  | -silent | --silent | --silen | --sile | --sil)
1294
 
    silent=yes ;;
1295
 
 
1296
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1297
 
    ac_prev=sbindir ;;
1298
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1299
 
  | --sbi=* | --sb=*)
1300
 
    sbindir=$ac_optarg ;;
1301
 
 
1302
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1303
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1304
 
  | --sharedst | --shareds | --shared | --share | --shar \
1305
 
  | --sha | --sh)
1306
 
    ac_prev=sharedstatedir ;;
1307
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1308
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1309
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1310
 
  | --sha=* | --sh=*)
1311
 
    sharedstatedir=$ac_optarg ;;
1312
 
 
1313
 
  -site | --site | --sit)
1314
 
    ac_prev=site ;;
1315
 
  -site=* | --site=* | --sit=*)
1316
 
    site=$ac_optarg ;;
1317
 
 
1318
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1319
 
    ac_prev=srcdir ;;
1320
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1321
 
    srcdir=$ac_optarg ;;
1322
 
 
1323
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1324
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1325
 
    ac_prev=sysconfdir ;;
1326
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1327
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1328
 
    sysconfdir=$ac_optarg ;;
1329
 
 
1330
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1331
 
    ac_prev=target_alias ;;
1332
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1333
 
    target_alias=$ac_optarg ;;
1334
 
 
1335
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1336
 
    verbose=yes ;;
1337
 
 
1338
 
  -version | --version | --versio | --versi | --vers | -V)
1339
 
    ac_init_version=: ;;
1340
 
 
1341
 
  -with-* | --with-*)
1342
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1343
 
    # Reject names that are not valid shell variable names.
1344
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345
 
      as_fn_error $? "invalid package name: $ac_useropt"
1346
 
    ac_useropt_orig=$ac_useropt
1347
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348
 
    case $ac_user_opts in
1349
 
      *"
1350
 
"with_$ac_useropt"
1351
 
"*) ;;
1352
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1353
 
         ac_unrecognized_sep=', ';;
1354
 
    esac
1355
 
    eval with_$ac_useropt=\$ac_optarg ;;
1356
 
 
1357
 
  -without-* | --without-*)
1358
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1359
 
    # Reject names that are not valid shell variable names.
1360
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361
 
      as_fn_error $? "invalid package name: $ac_useropt"
1362
 
    ac_useropt_orig=$ac_useropt
1363
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364
 
    case $ac_user_opts in
1365
 
      *"
1366
 
"with_$ac_useropt"
1367
 
"*) ;;
1368
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369
 
         ac_unrecognized_sep=', ';;
1370
 
    esac
1371
 
    eval with_$ac_useropt=no ;;
1372
 
 
1373
 
  --x)
1374
 
    # Obsolete; use --with-x.
1375
 
    with_x=yes ;;
1376
 
 
1377
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378
 
  | --x-incl | --x-inc | --x-in | --x-i)
1379
 
    ac_prev=x_includes ;;
1380
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382
 
    x_includes=$ac_optarg ;;
1383
 
 
1384
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386
 
    ac_prev=x_libraries ;;
1387
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389
 
    x_libraries=$ac_optarg ;;
1390
 
 
1391
 
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1392
 
Try \`$0 --help' for more information"
1393
 
    ;;
1394
 
 
1395
 
  *=*)
1396
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1397
 
    # Reject names that are not valid shell variable names.
1398
 
    case $ac_envvar in #(
1399
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1400
 
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1401
 
    esac
1402
 
    eval $ac_envvar=\$ac_optarg
1403
 
    export $ac_envvar ;;
1404
 
 
1405
 
  *)
1406
 
    # FIXME: should be removed in autoconf 3.0.
1407
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411
 
    ;;
1412
 
 
1413
 
  esac
1414
 
done
1415
 
 
1416
 
if test -n "$ac_prev"; then
1417
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418
 
  as_fn_error $? "missing argument to $ac_option"
1419
 
fi
1420
 
 
1421
 
if test -n "$ac_unrecognized_opts"; then
1422
 
  case $enable_option_checking in
1423
 
    no) ;;
1424
 
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1425
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426
 
  esac
1427
 
fi
1428
 
 
1429
 
# Check all directory arguments for consistency.
1430
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1432
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433
 
                libdir localedir mandir
1434
 
do
1435
 
  eval ac_val=\$$ac_var
1436
 
  # Remove trailing slashes.
1437
 
  case $ac_val in
1438
 
    */ )
1439
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440
 
      eval $ac_var=\$ac_val;;
1441
 
  esac
1442
 
  # Be sure to have absolute directory names.
1443
 
  case $ac_val in
1444
 
    [\\/$]* | ?:[\\/]* )  continue;;
1445
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446
 
  esac
1447
 
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1448
 
done
1449
 
 
1450
 
# There might be people who depend on the old broken behavior: `$host'
1451
 
# used to hold the argument of --host etc.
1452
 
# FIXME: To remove some day.
1453
 
build=$build_alias
1454
 
host=$host_alias
1455
 
target=$target_alias
1456
 
 
1457
 
# FIXME: To remove some day.
1458
 
if test "x$host_alias" != x; then
1459
 
  if test "x$build_alias" = x; then
1460
 
    cross_compiling=maybe
1461
 
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1462
 
    If a cross compiler is detected then cross compile mode will be used" >&2
1463
 
  elif test "x$build_alias" != "x$host_alias"; then
1464
 
    cross_compiling=yes
1465
 
  fi
1466
 
fi
1467
 
 
1468
 
ac_tool_prefix=
1469
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1470
 
 
1471
 
test "$silent" = yes && exec 6>/dev/null
1472
 
 
1473
 
 
1474
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1475
 
ac_ls_di=`ls -di .` &&
1476
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1477
 
  as_fn_error $? "working directory cannot be determined"
1478
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479
 
  as_fn_error $? "pwd does not report name of working directory"
1480
 
 
1481
 
 
1482
 
# Find the source files, if location was not specified.
1483
 
if test -z "$srcdir"; then
1484
 
  ac_srcdir_defaulted=yes
1485
 
  # Try the directory containing this script, then the parent directory.
1486
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1487
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1489
 
         X"$as_myself" : 'X\(//\)$' \| \
1490
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1491
 
$as_echo X"$as_myself" |
1492
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1493
 
            s//\1/
1494
 
            q
1495
 
          }
1496
 
          /^X\(\/\/\)[^/].*/{
1497
 
            s//\1/
1498
 
            q
1499
 
          }
1500
 
          /^X\(\/\/\)$/{
1501
 
            s//\1/
1502
 
            q
1503
 
          }
1504
 
          /^X\(\/\).*/{
1505
 
            s//\1/
1506
 
            q
1507
 
          }
1508
 
          s/.*/./; q'`
1509
 
  srcdir=$ac_confdir
1510
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1511
 
    srcdir=..
1512
 
  fi
1513
 
else
1514
 
  ac_srcdir_defaulted=no
1515
 
fi
1516
 
if test ! -r "$srcdir/$ac_unique_file"; then
1517
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518
 
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1519
 
fi
1520
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521
 
ac_abs_confdir=`(
1522
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1523
 
        pwd)`
1524
 
# When building in place, set srcdir=.
1525
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1526
 
  srcdir=.
1527
 
fi
1528
 
# Remove unnecessary trailing slashes from srcdir.
1529
 
# Double slashes in file names in object file debugging info
1530
 
# mess up M-x gdb in Emacs.
1531
 
case $srcdir in
1532
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1533
 
esac
1534
 
for ac_var in $ac_precious_vars; do
1535
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1537
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1539
 
done
1540
 
 
1541
 
#
1542
 
# Report the --help message.
1543
 
#
1544
 
if test "$ac_init_help" = "long"; then
1545
 
  # Omit some internal or obsolete options to make the list less imposing.
1546
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1547
 
  cat <<_ACEOF
1548
 
\`configure' configures sflphone 0.9.13 to adapt to many kinds of systems.
1549
 
 
1550
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1551
 
 
1552
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1554
 
 
1555
 
Defaults for the options are specified in brackets.
1556
 
 
1557
 
Configuration:
1558
 
  -h, --help              display this help and exit
1559
 
      --help=short        display options specific to this package
1560
 
      --help=recursive    display the short help of all the included packages
1561
 
  -V, --version           display version information and exit
1562
 
  -q, --quiet, --silent   do not print \`checking ...' messages
1563
 
      --cache-file=FILE   cache test results in FILE [disabled]
1564
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1565
 
  -n, --no-create         do not create output files
1566
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1567
 
 
1568
 
Installation directories:
1569
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1570
 
                          [$ac_default_prefix]
1571
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1572
 
                          [PREFIX]
1573
 
 
1574
 
By default, \`make install' will install all the files in
1575
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1576
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577
 
for instance \`--prefix=\$HOME'.
1578
 
 
1579
 
For better control, use the options below.
1580
 
 
1581
 
Fine tuning of the installation directories:
1582
 
  --bindir=DIR            user executables [EPREFIX/bin]
1583
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1584
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1585
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1586
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1587
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1588
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1589
 
  --includedir=DIR        C header files [PREFIX/include]
1590
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1591
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1592
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1593
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1594
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1595
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1596
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/sflphone]
1597
 
  --htmldir=DIR           html documentation [DOCDIR]
1598
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1599
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1600
 
  --psdir=DIR             ps documentation [DOCDIR]
1601
 
_ACEOF
1602
 
 
1603
 
  cat <<\_ACEOF
1604
 
 
1605
 
Program names:
1606
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1607
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1608
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1609
 
 
1610
 
System types:
1611
 
  --build=BUILD     configure for building on BUILD [guessed]
1612
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1613
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1614
 
_ACEOF
1615
 
fi
1616
 
 
1617
 
if test -n "$ac_init_help"; then
1618
 
  case $ac_init_help in
1619
 
     short | recursive ) echo "Configuration of sflphone 0.9.13:";;
1620
 
   esac
1621
 
  cat <<\_ACEOF
1622
 
 
1623
 
Optional Features:
1624
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1625
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1626
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1627
 
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1628
 
  --disable-silent-rules         verbose build output (undo: `make V=0')
1629
 
  --disable-dependency-tracking  speeds up one-time build
1630
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1631
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1632
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1633
 
  --enable-fast-install[=PKGS]
1634
 
                          optimize for fast installation [default=yes]
1635
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1636
 
  --enable-doxygen        enable documentation generation with doxygen (auto)
1637
 
  --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1638
 
  --enable-html-docs      enable HTML generation with doxygen (yes)
1639
 
  --enable-latex-docs     enable LaTeX documentation generation with doxygen (no)
1640
 
 
1641
 
Optional Packages:
1642
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1643
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1644
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1645
 
                          both]
1646
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1647
 
  --with-debug            Set 'full' to enable debugging information
1648
 
                          [default=no]
1649
 
  --with-build-libdbus-cxx
1650
 
                          For cross compilation: path to libdbus-cxx which was
1651
 
                          compiled for the 'build' system.
1652
 
  --without-gsm           disable support for gsm codec
1653
 
  --without-speex         disable support for speex codec
1654
 
  --without-celt          disable support for celt codec
1655
 
  --without-iax2          disable support for the iax2 protocol
1656
 
  --without-networkmanager
1657
 
                          disable support for network-manager events
1658
 
 
1659
 
Some influential environment variables:
1660
 
  CC          C compiler command
1661
 
  CFLAGS      C compiler flags
1662
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1663
 
              nonstandard directory <lib dir>
1664
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1665
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666
 
              you have headers in a nonstandard directory <include dir>
1667
 
  CXX         C++ compiler command
1668
 
  CXXFLAGS    C++ compiler flags
1669
 
  CPP         C preprocessor
1670
 
  CXXCPP      C++ preprocessor
1671
 
  PKG_CONFIG  path to pkg-config utility
1672
 
  PKG_CONFIG_PATH
1673
 
              directories to add to pkg-config's search path
1674
 
  PKG_CONFIG_LIBDIR
1675
 
              path overriding pkg-config's built-in search path
1676
 
  UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1677
 
  UUID_LIBS   linker flags for UUID, overriding pkg-config
1678
 
  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1679
 
  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1680
 
  PULSEAUDIO_CFLAGS
1681
 
              C compiler flags for PULSEAUDIO, overriding pkg-config
1682
 
  PULSEAUDIO_LIBS
1683
 
              linker flags for PULSEAUDIO, overriding pkg-config
1684
 
  SAMPLERATE_CFLAGS
1685
 
              C compiler flags for SAMPLERATE, overriding pkg-config
1686
 
  SAMPLERATE_LIBS
1687
 
              linker flags for SAMPLERATE, overriding pkg-config
1688
 
  CCGNU2_CFLAGS
1689
 
              C compiler flags for CCGNU2, overriding pkg-config
1690
 
  CCGNU2_LIBS linker flags for CCGNU2, overriding pkg-config
1691
 
  CCEXT2_CFLAGS
1692
 
              C compiler flags for CCEXT2, overriding pkg-config
1693
 
  CCEXT2_LIBS linker flags for CCEXT2, overriding pkg-config
1694
 
  CCRTP_CFLAGS
1695
 
              C compiler flags for CCRTP, overriding pkg-config
1696
 
  CCRTP_LIBS  linker flags for CCRTP, overriding pkg-config
1697
 
  libssl_CFLAGS
1698
 
              C compiler flags for libssl, overriding pkg-config
1699
 
  libssl_LIBS linker flags for libssl, overriding pkg-config
1700
 
  ZRTPCPP_CFLAGS
1701
 
              C compiler flags for ZRTPCPP, overriding pkg-config
1702
 
  ZRTPCPP_LIBS
1703
 
              linker flags for ZRTPCPP, overriding pkg-config
1704
 
  dbus_CFLAGS C compiler flags for dbus, overriding pkg-config
1705
 
  dbus_LIBS   linker flags for dbus, overriding pkg-config
1706
 
  CPPUNIT_CFLAGS
1707
 
              C compiler flags for CPPUNIT, overriding pkg-config
1708
 
  CPPUNIT_LIBS
1709
 
              linker flags for CPPUNIT, overriding pkg-config
1710
 
 
1711
 
Use these variables to override the choices made by `configure' or to help
1712
 
it to find libraries and programs with nonstandard names/locations.
1713
 
 
1714
 
Report bugs to <sflphoneteam@savoirfairelinux.com>.
1715
 
_ACEOF
1716
 
ac_status=$?
1717
 
fi
1718
 
 
1719
 
if test "$ac_init_help" = "recursive"; then
1720
 
  # If there are subdirs, report their specific --help.
1721
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722
 
    test -d "$ac_dir" ||
1723
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724
 
      continue
1725
 
    ac_builddir=.
1726
 
 
1727
 
case "$ac_dir" in
1728
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729
 
*)
1730
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731
 
  # A ".." for each directory in $ac_dir_suffix.
1732
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733
 
  case $ac_top_builddir_sub in
1734
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736
 
  esac ;;
1737
 
esac
1738
 
ac_abs_top_builddir=$ac_pwd
1739
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740
 
# for backward compatibility:
1741
 
ac_top_builddir=$ac_top_build_prefix
1742
 
 
1743
 
case $srcdir in
1744
 
  .)  # We are building in place.
1745
 
    ac_srcdir=.
1746
 
    ac_top_srcdir=$ac_top_builddir_sub
1747
 
    ac_abs_top_srcdir=$ac_pwd ;;
1748
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1749
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1750
 
    ac_top_srcdir=$srcdir
1751
 
    ac_abs_top_srcdir=$srcdir ;;
1752
 
  *) # Relative name.
1753
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1755
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756
 
esac
1757
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758
 
 
1759
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1760
 
    # Check for guested configure.
1761
 
    if test -f "$ac_srcdir/configure.gnu"; then
1762
 
      echo &&
1763
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764
 
    elif test -f "$ac_srcdir/configure"; then
1765
 
      echo &&
1766
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1767
 
    else
1768
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769
 
    fi || ac_status=$?
1770
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1771
 
  done
1772
 
fi
1773
 
 
1774
 
test -n "$ac_init_help" && exit $ac_status
1775
 
if $ac_init_version; then
1776
 
  cat <<\_ACEOF
1777
 
sflphone configure 0.9.13
1778
 
generated by GNU Autoconf 2.67
1779
 
 
1780
 
Copyright (C) 2010 Free Software Foundation, Inc.
1781
 
This configure script is free software; the Free Software Foundation
1782
 
gives unlimited permission to copy, distribute and modify it.
1783
 
 
1784
 
Copyright (c) Savoir-Faire Linux 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
1785
 
_ACEOF
1786
 
  exit
1787
 
fi
1788
 
 
1789
 
## ------------------------ ##
1790
 
## Autoconf initialization. ##
1791
 
## ------------------------ ##
1792
 
 
1793
 
# ac_fn_c_try_compile LINENO
1794
 
# --------------------------
1795
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1796
 
ac_fn_c_try_compile ()
1797
 
{
1798
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799
 
  rm -f conftest.$ac_objext
1800
 
  if { { ac_try="$ac_compile"
1801
 
case "(($ac_try" in
1802
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803
 
  *) ac_try_echo=$ac_try;;
1804
 
esac
1805
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806
 
$as_echo "$ac_try_echo"; } >&5
1807
 
  (eval "$ac_compile") 2>conftest.err
1808
 
  ac_status=$?
1809
 
  if test -s conftest.err; then
1810
 
    grep -v '^ *+' conftest.err >conftest.er1
1811
 
    cat conftest.er1 >&5
1812
 
    mv -f conftest.er1 conftest.err
1813
 
  fi
1814
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815
 
  test $ac_status = 0; } && {
1816
 
         test -z "$ac_c_werror_flag" ||
1817
 
         test ! -s conftest.err
1818
 
       } && test -s conftest.$ac_objext; then :
1819
 
  ac_retval=0
1820
 
else
1821
 
  $as_echo "$as_me: failed program was:" >&5
1822
 
sed 's/^/| /' conftest.$ac_ext >&5
1823
 
 
1824
 
        ac_retval=1
1825
 
fi
1826
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
 
  as_fn_set_status $ac_retval
1828
 
 
1829
 
} # ac_fn_c_try_compile
1830
 
 
1831
 
# ac_fn_cxx_try_compile LINENO
1832
 
# ----------------------------
1833
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1834
 
ac_fn_cxx_try_compile ()
1835
 
{
1836
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837
 
  rm -f conftest.$ac_objext
1838
 
  if { { ac_try="$ac_compile"
1839
 
case "(($ac_try" in
1840
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841
 
  *) ac_try_echo=$ac_try;;
1842
 
esac
1843
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844
 
$as_echo "$ac_try_echo"; } >&5
1845
 
  (eval "$ac_compile") 2>conftest.err
1846
 
  ac_status=$?
1847
 
  if test -s conftest.err; then
1848
 
    grep -v '^ *+' conftest.err >conftest.er1
1849
 
    cat conftest.er1 >&5
1850
 
    mv -f conftest.er1 conftest.err
1851
 
  fi
1852
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853
 
  test $ac_status = 0; } && {
1854
 
         test -z "$ac_cxx_werror_flag" ||
1855
 
         test ! -s conftest.err
1856
 
       } && test -s conftest.$ac_objext; then :
1857
 
  ac_retval=0
1858
 
else
1859
 
  $as_echo "$as_me: failed program was:" >&5
1860
 
sed 's/^/| /' conftest.$ac_ext >&5
1861
 
 
1862
 
        ac_retval=1
1863
 
fi
1864
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865
 
  as_fn_set_status $ac_retval
1866
 
 
1867
 
} # ac_fn_cxx_try_compile
1868
 
 
1869
 
# ac_fn_c_try_cpp LINENO
1870
 
# ----------------------
1871
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872
 
ac_fn_c_try_cpp ()
1873
 
{
1874
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1876
 
case "(($ac_try" in
1877
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878
 
  *) ac_try_echo=$ac_try;;
1879
 
esac
1880
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881
 
$as_echo "$ac_try_echo"; } >&5
1882
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883
 
  ac_status=$?
1884
 
  if test -s conftest.err; then
1885
 
    grep -v '^ *+' conftest.err >conftest.er1
1886
 
    cat conftest.er1 >&5
1887
 
    mv -f conftest.er1 conftest.err
1888
 
  fi
1889
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890
 
  test $ac_status = 0; } > conftest.i && {
1891
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892
 
         test ! -s conftest.err
1893
 
       }; then :
1894
 
  ac_retval=0
1895
 
else
1896
 
  $as_echo "$as_me: failed program was:" >&5
1897
 
sed 's/^/| /' conftest.$ac_ext >&5
1898
 
 
1899
 
    ac_retval=1
1900
 
fi
1901
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
 
  as_fn_set_status $ac_retval
1903
 
 
1904
 
} # ac_fn_c_try_cpp
1905
 
 
1906
 
# ac_fn_c_try_link LINENO
1907
 
# -----------------------
1908
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1909
 
ac_fn_c_try_link ()
1910
 
{
1911
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1913
 
  if { { ac_try="$ac_link"
1914
 
case "(($ac_try" in
1915
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916
 
  *) ac_try_echo=$ac_try;;
1917
 
esac
1918
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919
 
$as_echo "$ac_try_echo"; } >&5
1920
 
  (eval "$ac_link") 2>conftest.err
1921
 
  ac_status=$?
1922
 
  if test -s conftest.err; then
1923
 
    grep -v '^ *+' conftest.err >conftest.er1
1924
 
    cat conftest.er1 >&5
1925
 
    mv -f conftest.er1 conftest.err
1926
 
  fi
1927
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928
 
  test $ac_status = 0; } && {
1929
 
         test -z "$ac_c_werror_flag" ||
1930
 
         test ! -s conftest.err
1931
 
       } && test -s conftest$ac_exeext && {
1932
 
         test "$cross_compiling" = yes ||
1933
 
         $as_test_x conftest$ac_exeext
1934
 
       }; then :
1935
 
  ac_retval=0
1936
 
else
1937
 
  $as_echo "$as_me: failed program was:" >&5
1938
 
sed 's/^/| /' conftest.$ac_ext >&5
1939
 
 
1940
 
        ac_retval=1
1941
 
fi
1942
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944
 
  # interfere with the next link command; also delete a directory that is
1945
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1946
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948
 
  as_fn_set_status $ac_retval
1949
 
 
1950
 
} # ac_fn_c_try_link
1951
 
 
1952
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1953
 
# -------------------------------------------------------
1954
 
# Tests whether HEADER exists and can be compiled using the include files in
1955
 
# INCLUDES, setting the cache variable VAR accordingly.
1956
 
ac_fn_c_check_header_compile ()
1957
 
{
1958
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960
 
$as_echo_n "checking for $2... " >&6; }
1961
 
if eval "test \"\${$3+set}\"" = set; then :
1962
 
  $as_echo_n "(cached) " >&6
1963
 
else
1964
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965
 
/* end confdefs.h.  */
1966
 
$4
1967
 
#include <$2>
1968
 
_ACEOF
1969
 
if ac_fn_c_try_compile "$LINENO"; then :
1970
 
  eval "$3=yes"
1971
 
else
1972
 
  eval "$3=no"
1973
 
fi
1974
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975
 
fi
1976
 
eval ac_res=\$$3
1977
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978
 
$as_echo "$ac_res" >&6; }
1979
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980
 
 
1981
 
} # ac_fn_c_check_header_compile
1982
 
 
1983
 
# ac_fn_c_try_run LINENO
1984
 
# ----------------------
1985
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986
 
# that executables *can* be run.
1987
 
ac_fn_c_try_run ()
1988
 
{
1989
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990
 
  if { { ac_try="$ac_link"
1991
 
case "(($ac_try" in
1992
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993
 
  *) ac_try_echo=$ac_try;;
1994
 
esac
1995
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996
 
$as_echo "$ac_try_echo"; } >&5
1997
 
  (eval "$ac_link") 2>&5
1998
 
  ac_status=$?
1999
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001
 
  { { case "(($ac_try" in
2002
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003
 
  *) ac_try_echo=$ac_try;;
2004
 
esac
2005
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006
 
$as_echo "$ac_try_echo"; } >&5
2007
 
  (eval "$ac_try") 2>&5
2008
 
  ac_status=$?
2009
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010
 
  test $ac_status = 0; }; }; then :
2011
 
  ac_retval=0
2012
 
else
2013
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
2014
 
       $as_echo "$as_me: failed program was:" >&5
2015
 
sed 's/^/| /' conftest.$ac_ext >&5
2016
 
 
2017
 
       ac_retval=$ac_status
2018
 
fi
2019
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021
 
  as_fn_set_status $ac_retval
2022
 
 
2023
 
} # ac_fn_c_try_run
2024
 
 
2025
 
# ac_fn_c_check_func LINENO FUNC VAR
2026
 
# ----------------------------------
2027
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2028
 
ac_fn_c_check_func ()
2029
 
{
2030
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032
 
$as_echo_n "checking for $2... " >&6; }
2033
 
if eval "test \"\${$3+set}\"" = set; then :
2034
 
  $as_echo_n "(cached) " >&6
2035
 
else
2036
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037
 
/* end confdefs.h.  */
2038
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2039
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2040
 
#define $2 innocuous_$2
2041
 
 
2042
 
/* System header to define __stub macros and hopefully few prototypes,
2043
 
    which can conflict with char $2 (); below.
2044
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2045
 
    <limits.h> exists even on freestanding compilers.  */
2046
 
 
2047
 
#ifdef __STDC__
2048
 
# include <limits.h>
2049
 
#else
2050
 
# include <assert.h>
2051
 
#endif
2052
 
 
2053
 
#undef $2
2054
 
 
2055
 
/* Override any GCC internal prototype to avoid an error.
2056
 
   Use char because int might match the return type of a GCC
2057
 
   builtin and then its argument prototype would still apply.  */
2058
 
#ifdef __cplusplus
2059
 
extern "C"
2060
 
#endif
2061
 
char $2 ();
2062
 
/* The GNU C library defines this for functions which it implements
2063
 
    to always fail with ENOSYS.  Some functions are actually named
2064
 
    something starting with __ and the normal name is an alias.  */
2065
 
#if defined __stub_$2 || defined __stub___$2
2066
 
choke me
2067
 
#endif
2068
 
 
2069
 
int
2070
 
main ()
2071
 
{
2072
 
return $2 ();
2073
 
  ;
2074
 
  return 0;
2075
 
}
2076
 
_ACEOF
2077
 
if ac_fn_c_try_link "$LINENO"; then :
2078
 
  eval "$3=yes"
2079
 
else
2080
 
  eval "$3=no"
2081
 
fi
2082
 
rm -f core conftest.err conftest.$ac_objext \
2083
 
    conftest$ac_exeext conftest.$ac_ext
2084
 
fi
2085
 
eval ac_res=\$$3
2086
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087
 
$as_echo "$ac_res" >&6; }
2088
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089
 
 
2090
 
} # ac_fn_c_check_func
2091
 
 
2092
 
# ac_fn_cxx_try_cpp LINENO
2093
 
# ------------------------
2094
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2095
 
ac_fn_cxx_try_cpp ()
2096
 
{
2097
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2099
 
case "(($ac_try" in
2100
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101
 
  *) ac_try_echo=$ac_try;;
2102
 
esac
2103
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104
 
$as_echo "$ac_try_echo"; } >&5
2105
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2106
 
  ac_status=$?
2107
 
  if test -s conftest.err; then
2108
 
    grep -v '^ *+' conftest.err >conftest.er1
2109
 
    cat conftest.er1 >&5
2110
 
    mv -f conftest.er1 conftest.err
2111
 
  fi
2112
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113
 
  test $ac_status = 0; } > conftest.i && {
2114
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2115
 
         test ! -s conftest.err
2116
 
       }; then :
2117
 
  ac_retval=0
2118
 
else
2119
 
  $as_echo "$as_me: failed program was:" >&5
2120
 
sed 's/^/| /' conftest.$ac_ext >&5
2121
 
 
2122
 
    ac_retval=1
2123
 
fi
2124
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125
 
  as_fn_set_status $ac_retval
2126
 
 
2127
 
} # ac_fn_cxx_try_cpp
2128
 
 
2129
 
# ac_fn_cxx_try_link LINENO
2130
 
# -------------------------
2131
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
2132
 
ac_fn_cxx_try_link ()
2133
 
{
2134
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135
 
  rm -f conftest.$ac_objext conftest$ac_exeext
2136
 
  if { { ac_try="$ac_link"
2137
 
case "(($ac_try" in
2138
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139
 
  *) ac_try_echo=$ac_try;;
2140
 
esac
2141
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142
 
$as_echo "$ac_try_echo"; } >&5
2143
 
  (eval "$ac_link") 2>conftest.err
2144
 
  ac_status=$?
2145
 
  if test -s conftest.err; then
2146
 
    grep -v '^ *+' conftest.err >conftest.er1
2147
 
    cat conftest.er1 >&5
2148
 
    mv -f conftest.er1 conftest.err
2149
 
  fi
2150
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151
 
  test $ac_status = 0; } && {
2152
 
         test -z "$ac_cxx_werror_flag" ||
2153
 
         test ! -s conftest.err
2154
 
       } && test -s conftest$ac_exeext && {
2155
 
         test "$cross_compiling" = yes ||
2156
 
         $as_test_x conftest$ac_exeext
2157
 
       }; then :
2158
 
  ac_retval=0
2159
 
else
2160
 
  $as_echo "$as_me: failed program was:" >&5
2161
 
sed 's/^/| /' conftest.$ac_ext >&5
2162
 
 
2163
 
        ac_retval=1
2164
 
fi
2165
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2166
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2167
 
  # interfere with the next link command; also delete a directory that is
2168
 
  # left behind by Apple's compiler.  We do this before executing the actions.
2169
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2170
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171
 
  as_fn_set_status $ac_retval
2172
 
 
2173
 
} # ac_fn_cxx_try_link
2174
 
 
2175
 
# ac_fn_cxx_check_func LINENO FUNC VAR
2176
 
# ------------------------------------
2177
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2178
 
ac_fn_cxx_check_func ()
2179
 
{
2180
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182
 
$as_echo_n "checking for $2... " >&6; }
2183
 
if eval "test \"\${$3+set}\"" = set; then :
2184
 
  $as_echo_n "(cached) " >&6
2185
 
else
2186
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187
 
/* end confdefs.h.  */
2188
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2189
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2190
 
#define $2 innocuous_$2
2191
 
 
2192
 
/* System header to define __stub macros and hopefully few prototypes,
2193
 
    which can conflict with char $2 (); below.
2194
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2195
 
    <limits.h> exists even on freestanding compilers.  */
2196
 
 
2197
 
#ifdef __STDC__
2198
 
# include <limits.h>
2199
 
#else
2200
 
# include <assert.h>
2201
 
#endif
2202
 
 
2203
 
#undef $2
2204
 
 
2205
 
/* Override any GCC internal prototype to avoid an error.
2206
 
   Use char because int might match the return type of a GCC
2207
 
   builtin and then its argument prototype would still apply.  */
2208
 
#ifdef __cplusplus
2209
 
extern "C"
2210
 
#endif
2211
 
char $2 ();
2212
 
/* The GNU C library defines this for functions which it implements
2213
 
    to always fail with ENOSYS.  Some functions are actually named
2214
 
    something starting with __ and the normal name is an alias.  */
2215
 
#if defined __stub_$2 || defined __stub___$2
2216
 
choke me
2217
 
#endif
2218
 
 
2219
 
int
2220
 
main ()
2221
 
{
2222
 
return $2 ();
2223
 
  ;
2224
 
  return 0;
2225
 
}
2226
 
_ACEOF
2227
 
if ac_fn_cxx_try_link "$LINENO"; then :
2228
 
  eval "$3=yes"
2229
 
else
2230
 
  eval "$3=no"
2231
 
fi
2232
 
rm -f core conftest.err conftest.$ac_objext \
2233
 
    conftest$ac_exeext conftest.$ac_ext
2234
 
fi
2235
 
eval ac_res=\$$3
2236
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237
 
$as_echo "$ac_res" >&6; }
2238
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239
 
 
2240
 
} # ac_fn_cxx_check_func
2241
 
 
2242
 
# ac_fn_cxx_try_run LINENO
2243
 
# ------------------------
2244
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2245
 
# that executables *can* be run.
2246
 
ac_fn_cxx_try_run ()
2247
 
{
2248
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249
 
  if { { ac_try="$ac_link"
2250
 
case "(($ac_try" in
2251
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252
 
  *) ac_try_echo=$ac_try;;
2253
 
esac
2254
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255
 
$as_echo "$ac_try_echo"; } >&5
2256
 
  (eval "$ac_link") 2>&5
2257
 
  ac_status=$?
2258
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2260
 
  { { case "(($ac_try" in
2261
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262
 
  *) ac_try_echo=$ac_try;;
2263
 
esac
2264
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265
 
$as_echo "$ac_try_echo"; } >&5
2266
 
  (eval "$ac_try") 2>&5
2267
 
  ac_status=$?
2268
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269
 
  test $ac_status = 0; }; }; then :
2270
 
  ac_retval=0
2271
 
else
2272
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
2273
 
       $as_echo "$as_me: failed program was:" >&5
2274
 
sed 's/^/| /' conftest.$ac_ext >&5
2275
 
 
2276
 
       ac_retval=$ac_status
2277
 
fi
2278
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2279
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280
 
  as_fn_set_status $ac_retval
2281
 
 
2282
 
} # ac_fn_cxx_try_run
2283
 
 
2284
 
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2285
 
# ---------------------------------------------------------
2286
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2287
 
# the include files in INCLUDES and setting the cache variable VAR
2288
 
# accordingly.
2289
 
ac_fn_cxx_check_header_mongrel ()
2290
 
{
2291
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292
 
  if eval "test \"\${$3+set}\"" = set; then :
2293
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294
 
$as_echo_n "checking for $2... " >&6; }
2295
 
if eval "test \"\${$3+set}\"" = set; then :
2296
 
  $as_echo_n "(cached) " >&6
2297
 
fi
2298
 
eval ac_res=\$$3
2299
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300
 
$as_echo "$ac_res" >&6; }
2301
 
else
2302
 
  # Is the header compilable?
2303
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2304
 
$as_echo_n "checking $2 usability... " >&6; }
2305
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306
 
/* end confdefs.h.  */
2307
 
$4
2308
 
#include <$2>
2309
 
_ACEOF
2310
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2311
 
  ac_header_compiler=yes
2312
 
else
2313
 
  ac_header_compiler=no
2314
 
fi
2315
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2317
 
$as_echo "$ac_header_compiler" >&6; }
2318
 
 
2319
 
# Is the header present?
2320
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2321
 
$as_echo_n "checking $2 presence... " >&6; }
2322
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323
 
/* end confdefs.h.  */
2324
 
#include <$2>
2325
 
_ACEOF
2326
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
2327
 
  ac_header_preproc=yes
2328
 
else
2329
 
  ac_header_preproc=no
2330
 
fi
2331
 
rm -f conftest.err conftest.i conftest.$ac_ext
2332
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2333
 
$as_echo "$ac_header_preproc" >&6; }
2334
 
 
2335
 
# So?  What about this header?
2336
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2337
 
  yes:no: )
2338
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2339
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2340
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2341
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2342
 
    ;;
2343
 
  no:yes:* )
2344
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2345
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2346
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2347
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2348
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2349
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2350
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2351
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2352
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2353
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354
 
( $as_echo "## ------------------------------------------------ ##
2355
 
## Report this to sflphoneteam@savoirfairelinux.com ##
2356
 
## ------------------------------------------------ ##"
2357
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2358
 
    ;;
2359
 
esac
2360
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2361
 
$as_echo_n "checking for $2... " >&6; }
2362
 
if eval "test \"\${$3+set}\"" = set; then :
2363
 
  $as_echo_n "(cached) " >&6
2364
 
else
2365
 
  eval "$3=\$ac_header_compiler"
2366
 
fi
2367
 
eval ac_res=\$$3
2368
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369
 
$as_echo "$ac_res" >&6; }
2370
 
fi
2371
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372
 
 
2373
 
} # ac_fn_cxx_check_header_mongrel
2374
 
 
2375
 
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2376
 
# ---------------------------------------------
2377
 
# Tests whether TYPE exists after having included INCLUDES, setting cache
2378
 
# variable VAR accordingly.
2379
 
ac_fn_cxx_check_type ()
2380
 
{
2381
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2383
 
$as_echo_n "checking for $2... " >&6; }
2384
 
if eval "test \"\${$3+set}\"" = set; then :
2385
 
  $as_echo_n "(cached) " >&6
2386
 
else
2387
 
  eval "$3=no"
2388
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389
 
/* end confdefs.h.  */
2390
 
$4
2391
 
int
2392
 
main ()
2393
 
{
2394
 
if (sizeof ($2))
2395
 
         return 0;
2396
 
  ;
2397
 
  return 0;
2398
 
}
2399
 
_ACEOF
2400
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2401
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402
 
/* end confdefs.h.  */
2403
 
$4
2404
 
int
2405
 
main ()
2406
 
{
2407
 
if (sizeof (($2)))
2408
 
            return 0;
2409
 
  ;
2410
 
  return 0;
2411
 
}
2412
 
_ACEOF
2413
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2414
 
 
2415
 
else
2416
 
  eval "$3=yes"
2417
 
fi
2418
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419
 
fi
2420
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421
 
fi
2422
 
eval ac_res=\$$3
2423
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424
 
$as_echo "$ac_res" >&6; }
2425
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426
 
 
2427
 
} # ac_fn_cxx_check_type
2428
 
 
2429
 
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2430
 
# ---------------------------------------------------------
2431
 
# Tests whether HEADER exists and can be compiled using the include files in
2432
 
# INCLUDES, setting the cache variable VAR accordingly.
2433
 
ac_fn_cxx_check_header_compile ()
2434
 
{
2435
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437
 
$as_echo_n "checking for $2... " >&6; }
2438
 
if eval "test \"\${$3+set}\"" = set; then :
2439
 
  $as_echo_n "(cached) " >&6
2440
 
else
2441
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442
 
/* end confdefs.h.  */
2443
 
$4
2444
 
#include <$2>
2445
 
_ACEOF
2446
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2447
 
  eval "$3=yes"
2448
 
else
2449
 
  eval "$3=no"
2450
 
fi
2451
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452
 
fi
2453
 
eval ac_res=\$$3
2454
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455
 
$as_echo "$ac_res" >&6; }
2456
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457
 
 
2458
 
} # ac_fn_cxx_check_header_compile
2459
 
cat >config.log <<_ACEOF
2460
 
This file contains any messages produced by compilers while
2461
 
running configure, to aid debugging if configure makes a mistake.
2462
 
 
2463
 
It was created by sflphone $as_me 0.9.13, which was
2464
 
generated by GNU Autoconf 2.67.  Invocation command line was
2465
 
 
2466
 
  $ $0 $@
2467
 
 
2468
 
_ACEOF
2469
 
exec 5>>config.log
2470
 
{
2471
 
cat <<_ASUNAME
2472
 
## --------- ##
2473
 
## Platform. ##
2474
 
## --------- ##
2475
 
 
2476
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2477
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2478
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2479
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2480
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2481
 
 
2482
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2483
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2484
 
 
2485
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2486
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2487
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2488
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2489
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2490
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2491
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2492
 
 
2493
 
_ASUNAME
2494
 
 
2495
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496
 
for as_dir in $PATH
2497
 
do
2498
 
  IFS=$as_save_IFS
2499
 
  test -z "$as_dir" && as_dir=.
2500
 
    $as_echo "PATH: $as_dir"
2501
 
  done
2502
 
IFS=$as_save_IFS
2503
 
 
2504
 
} >&5
2505
 
 
2506
 
cat >&5 <<_ACEOF
2507
 
 
2508
 
 
2509
 
## ----------- ##
2510
 
## Core tests. ##
2511
 
## ----------- ##
2512
 
 
2513
 
_ACEOF
2514
 
 
2515
 
 
2516
 
# Keep a trace of the command line.
2517
 
# Strip out --no-create and --no-recursion so they do not pile up.
2518
 
# Strip out --silent because we don't want to record it for future runs.
2519
 
# Also quote any args containing shell meta-characters.
2520
 
# Make two passes to allow for proper duplicate-argument suppression.
2521
 
ac_configure_args=
2522
 
ac_configure_args0=
2523
 
ac_configure_args1=
2524
 
ac_must_keep_next=false
2525
 
for ac_pass in 1 2
2526
 
do
2527
 
  for ac_arg
2528
 
  do
2529
 
    case $ac_arg in
2530
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2531
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2532
 
    | -silent | --silent | --silen | --sile | --sil)
2533
 
      continue ;;
2534
 
    *\'*)
2535
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2536
 
    esac
2537
 
    case $ac_pass in
2538
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2539
 
    2)
2540
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
2541
 
      if test $ac_must_keep_next = true; then
2542
 
        ac_must_keep_next=false # Got value, back to normal.
2543
 
      else
2544
 
        case $ac_arg in
2545
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2546
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2547
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2548
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2549
 
            case "$ac_configure_args0 " in
2550
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2551
 
            esac
2552
 
            ;;
2553
 
          -* ) ac_must_keep_next=true ;;
2554
 
        esac
2555
 
      fi
2556
 
      as_fn_append ac_configure_args " '$ac_arg'"
2557
 
      ;;
2558
 
    esac
2559
 
  done
2560
 
done
2561
 
{ ac_configure_args0=; unset ac_configure_args0;}
2562
 
{ ac_configure_args1=; unset ac_configure_args1;}
2563
 
 
2564
 
# When interrupted or exit'd, cleanup temporary files, and complete
2565
 
# config.log.  We remove comments because anyway the quotes in there
2566
 
# would cause problems or look ugly.
2567
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2568
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2569
 
trap 'exit_status=$?
2570
 
  # Save into config.log some information that might help in debugging.
2571
 
  {
2572
 
    echo
2573
 
 
2574
 
    $as_echo "## ---------------- ##
2575
 
## Cache variables. ##
2576
 
## ---------------- ##"
2577
 
    echo
2578
 
    # The following way of writing the cache mishandles newlines in values,
2579
 
(
2580
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2581
 
    eval ac_val=\$$ac_var
2582
 
    case $ac_val in #(
2583
 
    *${as_nl}*)
2584
 
      case $ac_var in #(
2585
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2586
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2587
 
      esac
2588
 
      case $ac_var in #(
2589
 
      _ | IFS | as_nl) ;; #(
2590
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2591
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2592
 
      esac ;;
2593
 
    esac
2594
 
  done
2595
 
  (set) 2>&1 |
2596
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2597
 
    *${as_nl}ac_space=\ *)
2598
 
      sed -n \
2599
 
        "s/'\''/'\''\\\\'\'''\''/g;
2600
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2601
 
      ;; #(
2602
 
    *)
2603
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2604
 
      ;;
2605
 
    esac |
2606
 
    sort
2607
 
)
2608
 
    echo
2609
 
 
2610
 
    $as_echo "## ----------------- ##
2611
 
## Output variables. ##
2612
 
## ----------------- ##"
2613
 
    echo
2614
 
    for ac_var in $ac_subst_vars
2615
 
    do
2616
 
      eval ac_val=\$$ac_var
2617
 
      case $ac_val in
2618
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619
 
      esac
2620
 
      $as_echo "$ac_var='\''$ac_val'\''"
2621
 
    done | sort
2622
 
    echo
2623
 
 
2624
 
    if test -n "$ac_subst_files"; then
2625
 
      $as_echo "## ------------------- ##
2626
 
## File substitutions. ##
2627
 
## ------------------- ##"
2628
 
      echo
2629
 
      for ac_var in $ac_subst_files
2630
 
      do
2631
 
        eval ac_val=\$$ac_var
2632
 
        case $ac_val in
2633
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2634
 
        esac
2635
 
        $as_echo "$ac_var='\''$ac_val'\''"
2636
 
      done | sort
2637
 
      echo
2638
 
    fi
2639
 
 
2640
 
    if test -s confdefs.h; then
2641
 
      $as_echo "## ----------- ##
2642
 
## confdefs.h. ##
2643
 
## ----------- ##"
2644
 
      echo
2645
 
      cat confdefs.h
2646
 
      echo
2647
 
    fi
2648
 
    test "$ac_signal" != 0 &&
2649
 
      $as_echo "$as_me: caught signal $ac_signal"
2650
 
    $as_echo "$as_me: exit $exit_status"
2651
 
  } >&5
2652
 
  rm -f core *.core core.conftest.* &&
2653
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2654
 
    exit $exit_status
2655
 
' 0
2656
 
for ac_signal in 1 2 13 15; do
2657
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2658
 
done
2659
 
ac_signal=0
2660
 
 
2661
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2662
 
rm -f -r conftest* confdefs.h
2663
 
 
2664
 
$as_echo "/* confdefs.h */" > confdefs.h
2665
 
 
2666
 
# Predefined preprocessor variables.
2667
 
 
2668
 
cat >>confdefs.h <<_ACEOF
2669
 
#define PACKAGE_NAME "$PACKAGE_NAME"
2670
 
_ACEOF
2671
 
 
2672
 
cat >>confdefs.h <<_ACEOF
2673
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2674
 
_ACEOF
2675
 
 
2676
 
cat >>confdefs.h <<_ACEOF
2677
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2678
 
_ACEOF
2679
 
 
2680
 
cat >>confdefs.h <<_ACEOF
2681
 
#define PACKAGE_STRING "$PACKAGE_STRING"
2682
 
_ACEOF
2683
 
 
2684
 
cat >>confdefs.h <<_ACEOF
2685
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2686
 
_ACEOF
2687
 
 
2688
 
cat >>confdefs.h <<_ACEOF
2689
 
#define PACKAGE_URL "$PACKAGE_URL"
2690
 
_ACEOF
2691
 
 
2692
 
 
2693
 
# Let the site file select an alternate cache file if it wants to.
2694
 
# Prefer an explicitly selected file to automatically selected ones.
2695
 
ac_site_file1=NONE
2696
 
ac_site_file2=NONE
2697
 
if test -n "$CONFIG_SITE"; then
2698
 
  # We do not want a PATH search for config.site.
2699
 
  case $CONFIG_SITE in #((
2700
 
    -*)  ac_site_file1=./$CONFIG_SITE;;
2701
 
    */*) ac_site_file1=$CONFIG_SITE;;
2702
 
    *)   ac_site_file1=./$CONFIG_SITE;;
2703
 
  esac
2704
 
elif test "x$prefix" != xNONE; then
2705
 
  ac_site_file1=$prefix/share/config.site
2706
 
  ac_site_file2=$prefix/etc/config.site
2707
 
else
2708
 
  ac_site_file1=$ac_default_prefix/share/config.site
2709
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2710
 
fi
2711
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2712
 
do
2713
 
  test "x$ac_site_file" = xNONE && continue
2714
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2715
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2716
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2717
 
    sed 's/^/| /' "$ac_site_file" >&5
2718
 
    . "$ac_site_file" \
2719
 
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721
 
as_fn_error $? "failed to load site script $ac_site_file
2722
 
See \`config.log' for more details" "$LINENO" 5 ; }
2723
 
  fi
2724
 
done
2725
 
 
2726
 
if test -r "$cache_file"; then
2727
 
  # Some versions of bash will fail to source /dev/null (special files
2728
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2729
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2730
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2731
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2732
 
    case $cache_file in
2733
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2734
 
      *)                      . "./$cache_file";;
2735
 
    esac
2736
 
  fi
2737
 
else
2738
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2739
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2740
 
  >$cache_file
2741
 
fi
2742
 
 
2743
 
as_fn_append ac_header_list " utime.h"
2744
 
# Check that the precious variables saved in the cache have kept the same
2745
 
# value.
2746
 
ac_cache_corrupted=false
2747
 
for ac_var in $ac_precious_vars; do
2748
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2749
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2750
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2751
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2752
 
  case $ac_old_set,$ac_new_set in
2753
 
    set,)
2754
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2755
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2756
 
      ac_cache_corrupted=: ;;
2757
 
    ,set)
2758
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2759
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2760
 
      ac_cache_corrupted=: ;;
2761
 
    ,);;
2762
 
    *)
2763
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2764
 
        # differences in whitespace do not lead to failure.
2765
 
        ac_old_val_w=`echo x $ac_old_val`
2766
 
        ac_new_val_w=`echo x $ac_new_val`
2767
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2768
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2769
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2770
 
          ac_cache_corrupted=:
2771
 
        else
2772
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2773
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2774
 
          eval $ac_var=\$ac_old_val
2775
 
        fi
2776
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2777
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2778
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2779
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2780
 
      fi;;
2781
 
  esac
2782
 
  # Pass precious variables to config.status.
2783
 
  if test "$ac_new_set" = set; then
2784
 
    case $ac_new_val in
2785
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2786
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2787
 
    esac
2788
 
    case " $ac_configure_args " in
2789
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2790
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2791
 
    esac
2792
 
  fi
2793
 
done
2794
 
if $ac_cache_corrupted; then
2795
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2798
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2799
 
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2800
 
fi
2801
 
## -------------------- ##
2802
 
## Main body of script. ##
2803
 
## -------------------- ##
2804
 
 
2805
 
ac_ext=c
2806
 
ac_cpp='$CPP $CPPFLAGS'
2807
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810
 
 
2811
 
 
2812
 
 
2813
 
 
2814
 
 
2815
 
ac_aux_dir=
2816
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2817
 
  if test -f "$ac_dir/install-sh"; then
2818
 
    ac_aux_dir=$ac_dir
2819
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2820
 
    break
2821
 
  elif test -f "$ac_dir/install.sh"; then
2822
 
    ac_aux_dir=$ac_dir
2823
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2824
 
    break
2825
 
  elif test -f "$ac_dir/shtool"; then
2826
 
    ac_aux_dir=$ac_dir
2827
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2828
 
    break
2829
 
  fi
2830
 
done
2831
 
if test -z "$ac_aux_dir"; then
2832
 
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2833
 
fi
2834
 
 
2835
 
# These three variables are undocumented and unsupported,
2836
 
# and are intended to be withdrawn in a future Autoconf release.
2837
 
# They can cause serious problems if a builder's source tree is in a directory
2838
 
# whose full name contains unusual characters.
2839
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2840
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2841
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2842
 
 
2843
 
 
2844
 
# Make sure we can run config.sub.
2845
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2846
 
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2847
 
 
2848
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2849
 
$as_echo_n "checking build system type... " >&6; }
2850
 
if test "${ac_cv_build+set}" = set; then :
2851
 
  $as_echo_n "(cached) " >&6
2852
 
else
2853
 
  ac_build_alias=$build_alias
2854
 
test "x$ac_build_alias" = x &&
2855
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2856
 
test "x$ac_build_alias" = x &&
2857
 
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2858
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2859
 
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2860
 
 
2861
 
fi
2862
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2863
 
$as_echo "$ac_cv_build" >&6; }
2864
 
case $ac_cv_build in
2865
 
*-*-*) ;;
2866
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2867
 
esac
2868
 
build=$ac_cv_build
2869
 
ac_save_IFS=$IFS; IFS='-'
2870
 
set x $ac_cv_build
2871
 
shift
2872
 
build_cpu=$1
2873
 
build_vendor=$2
2874
 
shift; shift
2875
 
# Remember, the first character of IFS is used to create $*,
2876
 
# except with old shells:
2877
 
build_os=$*
2878
 
IFS=$ac_save_IFS
2879
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2880
 
 
2881
 
 
2882
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2883
 
$as_echo_n "checking host system type... " >&6; }
2884
 
if test "${ac_cv_host+set}" = set; then :
2885
 
  $as_echo_n "(cached) " >&6
2886
 
else
2887
 
  if test "x$host_alias" = x; then
2888
 
  ac_cv_host=$ac_cv_build
2889
 
else
2890
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2891
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2892
 
fi
2893
 
 
2894
 
fi
2895
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2896
 
$as_echo "$ac_cv_host" >&6; }
2897
 
case $ac_cv_host in
2898
 
*-*-*) ;;
2899
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2900
 
esac
2901
 
host=$ac_cv_host
2902
 
ac_save_IFS=$IFS; IFS='-'
2903
 
set x $ac_cv_host
2904
 
shift
2905
 
host_cpu=$1
2906
 
host_vendor=$2
2907
 
shift; shift
2908
 
# Remember, the first character of IFS is used to create $*,
2909
 
# except with old shells:
2910
 
host_os=$*
2911
 
IFS=$ac_save_IFS
2912
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2913
 
 
2914
 
 
2915
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2916
 
$as_echo_n "checking target system type... " >&6; }
2917
 
if test "${ac_cv_target+set}" = set; then :
2918
 
  $as_echo_n "(cached) " >&6
2919
 
else
2920
 
  if test "x$target_alias" = x; then
2921
 
  ac_cv_target=$ac_cv_host
2922
 
else
2923
 
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2924
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2925
 
fi
2926
 
 
2927
 
fi
2928
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2929
 
$as_echo "$ac_cv_target" >&6; }
2930
 
case $ac_cv_target in
2931
 
*-*-*) ;;
2932
 
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2933
 
esac
2934
 
target=$ac_cv_target
2935
 
ac_save_IFS=$IFS; IFS='-'
2936
 
set x $ac_cv_target
2937
 
shift
2938
 
target_cpu=$1
2939
 
target_vendor=$2
2940
 
shift; shift
2941
 
# Remember, the first character of IFS is used to create $*,
2942
 
# except with old shells:
2943
 
target_os=$*
2944
 
IFS=$ac_save_IFS
2945
 
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2946
 
 
2947
 
 
2948
 
# The aliases save the names the user supplied, while $host etc.
2949
 
# will get canonicalized.
2950
 
test -n "$target_alias" &&
2951
 
  test "$program_prefix$program_suffix$program_transform_name" = \
2952
 
    NONENONEs,x,x, &&
2953
 
  program_prefix=${target_alias}-
2954
 
 
2955
 
PACKAGE=SFLphone
2956
 
VERSION=`cat VERSION`
2957
 
 
2958
 
am__api_version='1.11'
2959
 
 
2960
 
# Find a good install program.  We prefer a C program (faster),
2961
 
# so one script is as good as another.  But avoid the broken or
2962
 
# incompatible versions:
2963
 
# SysV /etc/install, /usr/sbin/install
2964
 
# SunOS /usr/etc/install
2965
 
# IRIX /sbin/install
2966
 
# AIX /bin/install
2967
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2968
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2969
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2970
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2971
 
# OS/2's system install, which has a completely different semantic
2972
 
# ./install, which can be erroneously created by make from ./install.sh.
2973
 
# Reject install programs that cannot install multiple files.
2974
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2975
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2976
 
if test -z "$INSTALL"; then
2977
 
if test "${ac_cv_path_install+set}" = set; then :
2978
 
  $as_echo_n "(cached) " >&6
2979
 
else
2980
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981
 
for as_dir in $PATH
2982
 
do
2983
 
  IFS=$as_save_IFS
2984
 
  test -z "$as_dir" && as_dir=.
2985
 
    # Account for people who put trailing slashes in PATH elements.
2986
 
case $as_dir/ in #((
2987
 
  ./ | .// | /[cC]/* | \
2988
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2989
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2990
 
  /usr/ucb/* ) ;;
2991
 
  *)
2992
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2993
 
    # Don't use installbsd from OSF since it installs stuff as root
2994
 
    # by default.
2995
 
    for ac_prog in ginstall scoinst install; do
2996
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2997
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2998
 
          if test $ac_prog = install &&
2999
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3000
 
            # AIX install.  It has an incompatible calling convention.
3001
 
            :
3002
 
          elif test $ac_prog = install &&
3003
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3004
 
            # program-specific install script used by HP pwplus--don't use.
3005
 
            :
3006
 
          else
3007
 
            rm -rf conftest.one conftest.two conftest.dir
3008
 
            echo one > conftest.one
3009
 
            echo two > conftest.two
3010
 
            mkdir conftest.dir
3011
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3012
 
              test -s conftest.one && test -s conftest.two &&
3013
 
              test -s conftest.dir/conftest.one &&
3014
 
              test -s conftest.dir/conftest.two
3015
 
            then
3016
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3017
 
              break 3
3018
 
            fi
3019
 
          fi
3020
 
        fi
3021
 
      done
3022
 
    done
3023
 
    ;;
3024
 
esac
3025
 
 
3026
 
  done
3027
 
IFS=$as_save_IFS
3028
 
 
3029
 
rm -rf conftest.one conftest.two conftest.dir
3030
 
 
3031
 
fi
3032
 
  if test "${ac_cv_path_install+set}" = set; then
3033
 
    INSTALL=$ac_cv_path_install
3034
 
  else
3035
 
    # As a last resort, use the slow shell script.  Don't cache a
3036
 
    # value for INSTALL within a source directory, because that will
3037
 
    # break other packages using the cache if that directory is
3038
 
    # removed, or if the value is a relative name.
3039
 
    INSTALL=$ac_install_sh
3040
 
  fi
3041
 
fi
3042
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3043
 
$as_echo "$INSTALL" >&6; }
3044
 
 
3045
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3046
 
# It thinks the first close brace ends the variable substitution.
3047
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3048
 
 
3049
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3050
 
 
3051
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3052
 
 
3053
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3054
 
$as_echo_n "checking whether build environment is sane... " >&6; }
3055
 
# Just in case
3056
 
sleep 1
3057
 
echo timestamp > conftest.file
3058
 
# Reject unsafe characters in $srcdir or the absolute working directory
3059
 
# name.  Accept space and tab only in the latter.
3060
 
am_lf='
3061
 
'
3062
 
case `pwd` in
3063
 
  *[\\\"\#\$\&\'\`$am_lf]*)
3064
 
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3065
 
esac
3066
 
case $srcdir in
3067
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3068
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3069
 
esac
3070
 
 
3071
 
# Do `set' in a subshell so we don't clobber the current shell's
3072
 
# arguments.  Must try -L first in case configure is actually a
3073
 
# symlink; some systems play weird games with the mod time of symlinks
3074
 
# (eg FreeBSD returns the mod time of the symlink's containing
3075
 
# directory).
3076
 
if (
3077
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3078
 
   if test "$*" = "X"; then
3079
 
      # -L didn't work.
3080
 
      set X `ls -t "$srcdir/configure" conftest.file`
3081
 
   fi
3082
 
   rm -f conftest.file
3083
 
   if test "$*" != "X $srcdir/configure conftest.file" \
3084
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
3085
 
 
3086
 
      # If neither matched, then we have a broken ls.  This can happen
3087
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3088
 
      # broken ls alias from the environment.  This has actually
3089
 
      # happened.  Such a system could not be considered "sane".
3090
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3091
 
alias in your environment" "$LINENO" 5
3092
 
   fi
3093
 
 
3094
 
   test "$2" = conftest.file
3095
 
   )
3096
 
then
3097
 
   # Ok.
3098
 
   :
3099
 
else
3100
 
   as_fn_error $? "newly created file is older than distributed files!
3101
 
Check your system clock" "$LINENO" 5
3102
 
fi
3103
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3104
 
$as_echo "yes" >&6; }
3105
 
test "$program_prefix" != NONE &&
3106
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3107
 
# Use a double $ so make ignores it.
3108
 
test "$program_suffix" != NONE &&
3109
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3110
 
# Double any \ or $.
3111
 
# By default was `s,x,x', remove it if useless.
3112
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3113
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3114
 
 
3115
 
# expand $ac_aux_dir to an absolute path
3116
 
am_aux_dir=`cd $ac_aux_dir && pwd`
3117
 
 
3118
 
if test x"${MISSING+set}" != xset; then
3119
 
  case $am_aux_dir in
3120
 
  *\ * | *\     *)
3121
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3122
 
  *)
3123
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3124
 
  esac
3125
 
fi
3126
 
# Use eval to expand $SHELL
3127
 
if eval "$MISSING --run true"; then
3128
 
  am_missing_run="$MISSING --run "
3129
 
else
3130
 
  am_missing_run=
3131
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3132
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3133
 
fi
3134
 
 
3135
 
if test x"${install_sh}" != xset; then
3136
 
  case $am_aux_dir in
3137
 
  *\ * | *\     *)
3138
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3139
 
  *)
3140
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3141
 
  esac
3142
 
fi
3143
 
 
3144
 
# Installed binaries are usually stripped using `strip' when the user
3145
 
# run `make install-strip'.  However `strip' might not be the right
3146
 
# tool to use in cross-compilation environments, therefore Automake
3147
 
# will honor the `STRIP' environment variable to overrule this program.
3148
 
if test "$cross_compiling" != no; then
3149
 
  if test -n "$ac_tool_prefix"; then
3150
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3151
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
3152
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153
 
$as_echo_n "checking for $ac_word... " >&6; }
3154
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
3155
 
  $as_echo_n "(cached) " >&6
3156
 
else
3157
 
  if test -n "$STRIP"; then
3158
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3159
 
else
3160
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161
 
for as_dir in $PATH
3162
 
do
3163
 
  IFS=$as_save_IFS
3164
 
  test -z "$as_dir" && as_dir=.
3165
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3166
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3168
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169
 
    break 2
3170
 
  fi
3171
 
done
3172
 
  done
3173
 
IFS=$as_save_IFS
3174
 
 
3175
 
fi
3176
 
fi
3177
 
STRIP=$ac_cv_prog_STRIP
3178
 
if test -n "$STRIP"; then
3179
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3180
 
$as_echo "$STRIP" >&6; }
3181
 
else
3182
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183
 
$as_echo "no" >&6; }
3184
 
fi
3185
 
 
3186
 
 
3187
 
fi
3188
 
if test -z "$ac_cv_prog_STRIP"; then
3189
 
  ac_ct_STRIP=$STRIP
3190
 
  # Extract the first word of "strip", so it can be a program name with args.
3191
 
set dummy strip; ac_word=$2
3192
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193
 
$as_echo_n "checking for $ac_word... " >&6; }
3194
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3195
 
  $as_echo_n "(cached) " >&6
3196
 
else
3197
 
  if test -n "$ac_ct_STRIP"; then
3198
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3199
 
else
3200
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201
 
for as_dir in $PATH
3202
 
do
3203
 
  IFS=$as_save_IFS
3204
 
  test -z "$as_dir" && as_dir=.
3205
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3206
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207
 
    ac_cv_prog_ac_ct_STRIP="strip"
3208
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209
 
    break 2
3210
 
  fi
3211
 
done
3212
 
  done
3213
 
IFS=$as_save_IFS
3214
 
 
3215
 
fi
3216
 
fi
3217
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3218
 
if test -n "$ac_ct_STRIP"; then
3219
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3220
 
$as_echo "$ac_ct_STRIP" >&6; }
3221
 
else
3222
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223
 
$as_echo "no" >&6; }
3224
 
fi
3225
 
 
3226
 
  if test "x$ac_ct_STRIP" = x; then
3227
 
    STRIP=":"
3228
 
  else
3229
 
    case $cross_compiling:$ac_tool_warned in
3230
 
yes:)
3231
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233
 
ac_tool_warned=yes ;;
3234
 
esac
3235
 
    STRIP=$ac_ct_STRIP
3236
 
  fi
3237
 
else
3238
 
  STRIP="$ac_cv_prog_STRIP"
3239
 
fi
3240
 
 
3241
 
fi
3242
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3243
 
 
3244
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3245
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3246
 
if test -z "$MKDIR_P"; then
3247
 
  if test "${ac_cv_path_mkdir+set}" = set; then :
3248
 
  $as_echo_n "(cached) " >&6
3249
 
else
3250
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3252
 
do
3253
 
  IFS=$as_save_IFS
3254
 
  test -z "$as_dir" && as_dir=.
3255
 
    for ac_prog in mkdir gmkdir; do
3256
 
         for ac_exec_ext in '' $ac_executable_extensions; do
3257
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3258
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3259
 
             'mkdir (GNU coreutils) '* | \
3260
 
             'mkdir (coreutils) '* | \
3261
 
             'mkdir (fileutils) '4.1*)
3262
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3263
 
               break 3;;
3264
 
           esac
3265
 
         done
3266
 
       done
3267
 
  done
3268
 
IFS=$as_save_IFS
3269
 
 
3270
 
fi
3271
 
 
3272
 
  test -d ./--version && rmdir ./--version
3273
 
  if test "${ac_cv_path_mkdir+set}" = set; then
3274
 
    MKDIR_P="$ac_cv_path_mkdir -p"
3275
 
  else
3276
 
    # As a last resort, use the slow shell script.  Don't cache a
3277
 
    # value for MKDIR_P within a source directory, because that will
3278
 
    # break other packages using the cache if that directory is
3279
 
    # removed, or if the value is a relative name.
3280
 
    MKDIR_P="$ac_install_sh -d"
3281
 
  fi
3282
 
fi
3283
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3284
 
$as_echo "$MKDIR_P" >&6; }
3285
 
 
3286
 
mkdir_p="$MKDIR_P"
3287
 
case $mkdir_p in
3288
 
  [\\/$]* | ?:[\\/]*) ;;
3289
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3290
 
esac
3291
 
 
3292
 
for ac_prog in gawk mawk nawk awk
3293
 
do
3294
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3295
 
set dummy $ac_prog; ac_word=$2
3296
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297
 
$as_echo_n "checking for $ac_word... " >&6; }
3298
 
if test "${ac_cv_prog_AWK+set}" = set; then :
3299
 
  $as_echo_n "(cached) " >&6
3300
 
else
3301
 
  if test -n "$AWK"; then
3302
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3303
 
else
3304
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305
 
for as_dir in $PATH
3306
 
do
3307
 
  IFS=$as_save_IFS
3308
 
  test -z "$as_dir" && as_dir=.
3309
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3310
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311
 
    ac_cv_prog_AWK="$ac_prog"
3312
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313
 
    break 2
3314
 
  fi
3315
 
done
3316
 
  done
3317
 
IFS=$as_save_IFS
3318
 
 
3319
 
fi
3320
 
fi
3321
 
AWK=$ac_cv_prog_AWK
3322
 
if test -n "$AWK"; then
3323
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3324
 
$as_echo "$AWK" >&6; }
3325
 
else
3326
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327
 
$as_echo "no" >&6; }
3328
 
fi
3329
 
 
3330
 
 
3331
 
  test -n "$AWK" && break
3332
 
done
3333
 
 
3334
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3335
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3336
 
set x ${MAKE-make}
3337
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3338
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3339
 
  $as_echo_n "(cached) " >&6
3340
 
else
3341
 
  cat >conftest.make <<\_ACEOF
3342
 
SHELL = /bin/sh
3343
 
all:
3344
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3345
 
_ACEOF
3346
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3347
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3348
 
  *@@@%%%=?*=@@@%%%*)
3349
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3350
 
  *)
3351
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
3352
 
esac
3353
 
rm -f conftest.make
3354
 
fi
3355
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3356
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3357
 
$as_echo "yes" >&6; }
3358
 
  SET_MAKE=
3359
 
else
3360
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361
 
$as_echo "no" >&6; }
3362
 
  SET_MAKE="MAKE=${MAKE-make}"
3363
 
fi
3364
 
 
3365
 
rm -rf .tst 2>/dev/null
3366
 
mkdir .tst 2>/dev/null
3367
 
if test -d .tst; then
3368
 
  am__leading_dot=.
3369
 
else
3370
 
  am__leading_dot=_
3371
 
fi
3372
 
rmdir .tst 2>/dev/null
3373
 
 
3374
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3375
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3376
 
  # is not polluted with repeated "-I."
3377
 
  am__isrc=' -I$(srcdir)'
3378
 
  # test to see if srcdir already configured
3379
 
  if test -f $srcdir/config.status; then
3380
 
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3381
 
  fi
3382
 
fi
3383
 
 
3384
 
# test whether we have cygpath
3385
 
if test -z "$CYGPATH_W"; then
3386
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
3387
 
    CYGPATH_W='cygpath -w'
3388
 
  else
3389
 
    CYGPATH_W=echo
3390
 
  fi
3391
 
fi
3392
 
 
3393
 
 
3394
 
# Define the identity of the package.
3395
 
 PACKAGE=$NAME
3396
 
 VERSION=$VERSION
3397
 
 
3398
 
 
3399
 
cat >>confdefs.h <<_ACEOF
3400
 
#define PACKAGE "$PACKAGE"
3401
 
_ACEOF
3402
 
 
3403
 
 
3404
 
cat >>confdefs.h <<_ACEOF
3405
 
#define VERSION "$VERSION"
3406
 
_ACEOF
3407
 
 
3408
 
# Some tools Automake needs.
3409
 
 
3410
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3411
 
 
3412
 
 
3413
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3414
 
 
3415
 
 
3416
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3417
 
 
3418
 
 
3419
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3420
 
 
3421
 
 
3422
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3423
 
 
3424
 
# We need awk for the "check" target.  The system "awk" is bad on
3425
 
# some platforms.
3426
 
# Always define AMTAR for backward compatibility.
3427
 
 
3428
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
3429
 
 
3430
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3431
 
 
3432
 
 
3433
 
 
3434
 
 
3435
 
 
3436
 
ac_config_headers="$ac_config_headers config.h"
3437
 
 
3438
 
 
3439
 
# Silent build by default. Use make V=1 to increase verbosity
3440
 
# Check whether --enable-silent-rules was given.
3441
 
if test "${enable_silent_rules+set}" = set; then :
3442
 
  enableval=$enable_silent_rules;
3443
 
fi
3444
 
 
3445
 
case $enable_silent_rules in
3446
 
yes) AM_DEFAULT_VERBOSITY=0;;
3447
 
no)  AM_DEFAULT_VERBOSITY=1;;
3448
 
*)   AM_DEFAULT_VERBOSITY=0;;
3449
 
esac
3450
 
AM_BACKSLASH='\'
3451
 
 
3452
 
 
3453
 
 
3454
 
 
3455
 
 
3456
 
 
3457
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3458
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3459
 
set x ${MAKE-make}
3460
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3461
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3462
 
  $as_echo_n "(cached) " >&6
3463
 
else
3464
 
  cat >conftest.make <<\_ACEOF
3465
 
SHELL = /bin/sh
3466
 
all:
3467
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3468
 
_ACEOF
3469
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3470
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3471
 
  *@@@%%%=?*=@@@%%%*)
3472
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3473
 
  *)
3474
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
3475
 
esac
3476
 
rm -f conftest.make
3477
 
fi
3478
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3479
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480
 
$as_echo "yes" >&6; }
3481
 
  SET_MAKE=
3482
 
else
3483
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484
 
$as_echo "no" >&6; }
3485
 
  SET_MAKE="MAKE=${MAKE-make}"
3486
 
fi
3487
 
 
3488
 
 
3489
 
 
3490
 
 
3491
 
ac_config_files="$ac_config_files Makefile"
3492
 
 
3493
 
ac_config_files="$ac_config_files libs/Makefile libs/utilspp/Makefile libs/utilspp/functor/Makefile libs/utilspp/singleton/Makefile libs/dbus-c++/Makefile libs/dbus-c++/src/Makefile libs/dbus-c++/tools/Makefile libs/dbus-c++/data/Makefile libs/iax2/Makefile"
3494
 
 
3495
 
 
3496
 
ac_config_files="$ac_config_files src/Makefile src/sip/Makefile src/im/Makefile src/iax/Makefile src/audio/Makefile src/audio/audiortp/Makefile src/audio/pulseaudio/Makefile src/audio/alsa/Makefile src/audio/sound/Makefile src/audio/codecs/Makefile src/config/Makefile src/dbus/Makefile src/plug-in/Makefile src/plug-in/test/Makefile src/hooks/Makefile src/history/Makefile"
3497
 
 
3498
 
 
3499
 
ac_config_files="$ac_config_files test/Makefile"
3500
 
 
3501
 
 
3502
 
ac_config_files="$ac_config_files ringtones/Makefile"
3503
 
 
3504
 
 
3505
 
ac_config_files="$ac_config_files man/Makefile"
3506
 
 
3507
 
 
3508
 
ac_config_files="$ac_config_files doc/Makefile doc/dbus-api/Makefile doc/doxygen/Makefile"
3509
 
 
3510
 
 
3511
 
 
3512
 
LIBS="$LIBS -lstdc++"
3513
 
 
3514
 
PKGADD_PKG="SFLphone"
3515
 
PKGADD_NAME="SFLphone - a SIP client and daemon"
3516
 
PKGADD_VENDOR="http://www.sflphone.org/"
3517
 
 
3518
 
 
3519
 
 
3520
 
 
3521
 
ac_ext=c
3522
 
ac_cpp='$CPP $CPPFLAGS'
3523
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
 
if test -n "$ac_tool_prefix"; then
3527
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3528
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3529
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530
 
$as_echo_n "checking for $ac_word... " >&6; }
3531
 
if test "${ac_cv_prog_CC+set}" = set; then :
3532
 
  $as_echo_n "(cached) " >&6
3533
 
else
3534
 
  if test -n "$CC"; then
3535
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3536
 
else
3537
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538
 
for as_dir in $PATH
3539
 
do
3540
 
  IFS=$as_save_IFS
3541
 
  test -z "$as_dir" && as_dir=.
3542
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3543
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3545
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546
 
    break 2
3547
 
  fi
3548
 
done
3549
 
  done
3550
 
IFS=$as_save_IFS
3551
 
 
3552
 
fi
3553
 
fi
3554
 
CC=$ac_cv_prog_CC
3555
 
if test -n "$CC"; then
3556
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557
 
$as_echo "$CC" >&6; }
3558
 
else
3559
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560
 
$as_echo "no" >&6; }
3561
 
fi
3562
 
 
3563
 
 
3564
 
fi
3565
 
if test -z "$ac_cv_prog_CC"; then
3566
 
  ac_ct_CC=$CC
3567
 
  # Extract the first word of "gcc", so it can be a program name with args.
3568
 
set dummy gcc; ac_word=$2
3569
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570
 
$as_echo_n "checking for $ac_word... " >&6; }
3571
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3572
 
  $as_echo_n "(cached) " >&6
3573
 
else
3574
 
  if test -n "$ac_ct_CC"; then
3575
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576
 
else
3577
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578
 
for as_dir in $PATH
3579
 
do
3580
 
  IFS=$as_save_IFS
3581
 
  test -z "$as_dir" && as_dir=.
3582
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3583
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584
 
    ac_cv_prog_ac_ct_CC="gcc"
3585
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586
 
    break 2
3587
 
  fi
3588
 
done
3589
 
  done
3590
 
IFS=$as_save_IFS
3591
 
 
3592
 
fi
3593
 
fi
3594
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595
 
if test -n "$ac_ct_CC"; then
3596
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597
 
$as_echo "$ac_ct_CC" >&6; }
3598
 
else
3599
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600
 
$as_echo "no" >&6; }
3601
 
fi
3602
 
 
3603
 
  if test "x$ac_ct_CC" = x; then
3604
 
    CC=""
3605
 
  else
3606
 
    case $cross_compiling:$ac_tool_warned in
3607
 
yes:)
3608
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610
 
ac_tool_warned=yes ;;
3611
 
esac
3612
 
    CC=$ac_ct_CC
3613
 
  fi
3614
 
else
3615
 
  CC="$ac_cv_prog_CC"
3616
 
fi
3617
 
 
3618
 
if test -z "$CC"; then
3619
 
          if test -n "$ac_tool_prefix"; then
3620
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3621
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3622
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623
 
$as_echo_n "checking for $ac_word... " >&6; }
3624
 
if test "${ac_cv_prog_CC+set}" = set; then :
3625
 
  $as_echo_n "(cached) " >&6
3626
 
else
3627
 
  if test -n "$CC"; then
3628
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3629
 
else
3630
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631
 
for as_dir in $PATH
3632
 
do
3633
 
  IFS=$as_save_IFS
3634
 
  test -z "$as_dir" && as_dir=.
3635
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3636
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3638
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639
 
    break 2
3640
 
  fi
3641
 
done
3642
 
  done
3643
 
IFS=$as_save_IFS
3644
 
 
3645
 
fi
3646
 
fi
3647
 
CC=$ac_cv_prog_CC
3648
 
if test -n "$CC"; then
3649
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650
 
$as_echo "$CC" >&6; }
3651
 
else
3652
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653
 
$as_echo "no" >&6; }
3654
 
fi
3655
 
 
3656
 
 
3657
 
  fi
3658
 
fi
3659
 
if test -z "$CC"; then
3660
 
  # Extract the first word of "cc", so it can be a program name with args.
3661
 
set dummy cc; ac_word=$2
3662
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663
 
$as_echo_n "checking for $ac_word... " >&6; }
3664
 
if test "${ac_cv_prog_CC+set}" = set; then :
3665
 
  $as_echo_n "(cached) " >&6
3666
 
else
3667
 
  if test -n "$CC"; then
3668
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3669
 
else
3670
 
  ac_prog_rejected=no
3671
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672
 
for as_dir in $PATH
3673
 
do
3674
 
  IFS=$as_save_IFS
3675
 
  test -z "$as_dir" && as_dir=.
3676
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3677
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3679
 
       ac_prog_rejected=yes
3680
 
       continue
3681
 
     fi
3682
 
    ac_cv_prog_CC="cc"
3683
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684
 
    break 2
3685
 
  fi
3686
 
done
3687
 
  done
3688
 
IFS=$as_save_IFS
3689
 
 
3690
 
if test $ac_prog_rejected = yes; then
3691
 
  # We found a bogon in the path, so make sure we never use it.
3692
 
  set dummy $ac_cv_prog_CC
3693
 
  shift
3694
 
  if test $# != 0; then
3695
 
    # We chose a different compiler from the bogus one.
3696
 
    # However, it has the same basename, so the bogon will be chosen
3697
 
    # first if we set CC to just the basename; use the full file name.
3698
 
    shift
3699
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3700
 
  fi
3701
 
fi
3702
 
fi
3703
 
fi
3704
 
CC=$ac_cv_prog_CC
3705
 
if test -n "$CC"; then
3706
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707
 
$as_echo "$CC" >&6; }
3708
 
else
3709
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710
 
$as_echo "no" >&6; }
3711
 
fi
3712
 
 
3713
 
 
3714
 
fi
3715
 
if test -z "$CC"; then
3716
 
  if test -n "$ac_tool_prefix"; then
3717
 
  for ac_prog in cl.exe
3718
 
  do
3719
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722
 
$as_echo_n "checking for $ac_word... " >&6; }
3723
 
if test "${ac_cv_prog_CC+set}" = set; then :
3724
 
  $as_echo_n "(cached) " >&6
3725
 
else
3726
 
  if test -n "$CC"; then
3727
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3728
 
else
3729
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730
 
for as_dir in $PATH
3731
 
do
3732
 
  IFS=$as_save_IFS
3733
 
  test -z "$as_dir" && as_dir=.
3734
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3735
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3737
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738
 
    break 2
3739
 
  fi
3740
 
done
3741
 
  done
3742
 
IFS=$as_save_IFS
3743
 
 
3744
 
fi
3745
 
fi
3746
 
CC=$ac_cv_prog_CC
3747
 
if test -n "$CC"; then
3748
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749
 
$as_echo "$CC" >&6; }
3750
 
else
3751
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752
 
$as_echo "no" >&6; }
3753
 
fi
3754
 
 
3755
 
 
3756
 
    test -n "$CC" && break
3757
 
  done
3758
 
fi
3759
 
if test -z "$CC"; then
3760
 
  ac_ct_CC=$CC
3761
 
  for ac_prog in cl.exe
3762
 
do
3763
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3764
 
set dummy $ac_prog; ac_word=$2
3765
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766
 
$as_echo_n "checking for $ac_word... " >&6; }
3767
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3768
 
  $as_echo_n "(cached) " >&6
3769
 
else
3770
 
  if test -n "$ac_ct_CC"; then
3771
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3772
 
else
3773
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774
 
for as_dir in $PATH
3775
 
do
3776
 
  IFS=$as_save_IFS
3777
 
  test -z "$as_dir" && as_dir=.
3778
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3779
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3781
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782
 
    break 2
3783
 
  fi
3784
 
done
3785
 
  done
3786
 
IFS=$as_save_IFS
3787
 
 
3788
 
fi
3789
 
fi
3790
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791
 
if test -n "$ac_ct_CC"; then
3792
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793
 
$as_echo "$ac_ct_CC" >&6; }
3794
 
else
3795
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796
 
$as_echo "no" >&6; }
3797
 
fi
3798
 
 
3799
 
 
3800
 
  test -n "$ac_ct_CC" && break
3801
 
done
3802
 
 
3803
 
  if test "x$ac_ct_CC" = x; then
3804
 
    CC=""
3805
 
  else
3806
 
    case $cross_compiling:$ac_tool_warned in
3807
 
yes:)
3808
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3809
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810
 
ac_tool_warned=yes ;;
3811
 
esac
3812
 
    CC=$ac_ct_CC
3813
 
  fi
3814
 
fi
3815
 
 
3816
 
fi
3817
 
 
3818
 
 
3819
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821
 
as_fn_error $? "no acceptable C compiler found in \$PATH
3822
 
See \`config.log' for more details" "$LINENO" 5 ; }
3823
 
 
3824
 
# Provide some information about the compiler.
3825
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3826
 
set X $ac_compile
3827
 
ac_compiler=$2
3828
 
for ac_option in --version -v -V -qversion; do
3829
 
  { { ac_try="$ac_compiler $ac_option >&5"
3830
 
case "(($ac_try" in
3831
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832
 
  *) ac_try_echo=$ac_try;;
3833
 
esac
3834
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835
 
$as_echo "$ac_try_echo"; } >&5
3836
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3837
 
  ac_status=$?
3838
 
  if test -s conftest.err; then
3839
 
    sed '10a\
3840
 
... rest of stderr output deleted ...
3841
 
         10q' conftest.err >conftest.er1
3842
 
    cat conftest.er1 >&5
3843
 
  fi
3844
 
  rm -f conftest.er1 conftest.err
3845
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846
 
  test $ac_status = 0; }
3847
 
done
3848
 
 
3849
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850
 
/* end confdefs.h.  */
3851
 
 
3852
 
int
3853
 
main ()
3854
 
{
3855
 
 
3856
 
  ;
3857
 
  return 0;
3858
 
}
3859
 
_ACEOF
3860
 
ac_clean_files_save=$ac_clean_files
3861
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3862
 
# Try to create an executable without -o first, disregard a.out.
3863
 
# It will help us diagnose broken compilers, and finding out an intuition
3864
 
# of exeext.
3865
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3866
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3867
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3868
 
 
3869
 
# The possible output files:
3870
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3871
 
 
3872
 
ac_rmfiles=
3873
 
for ac_file in $ac_files
3874
 
do
3875
 
  case $ac_file in
3876
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3877
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3878
 
  esac
3879
 
done
3880
 
rm -f $ac_rmfiles
3881
 
 
3882
 
if { { ac_try="$ac_link_default"
3883
 
case "(($ac_try" in
3884
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885
 
  *) ac_try_echo=$ac_try;;
3886
 
esac
3887
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888
 
$as_echo "$ac_try_echo"; } >&5
3889
 
  (eval "$ac_link_default") 2>&5
3890
 
  ac_status=$?
3891
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892
 
  test $ac_status = 0; }; then :
3893
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3894
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3895
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3896
 
# so that the user can short-circuit this test for compilers unknown to
3897
 
# Autoconf.
3898
 
for ac_file in $ac_files ''
3899
 
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
 
        ;;
3904
 
    [ab].out )
3905
 
        # We found the default executable, but exeext='' is most
3906
 
        # certainly right.
3907
 
        break;;
3908
 
    *.* )
3909
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3910
 
        then :; else
3911
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912
 
        fi
3913
 
        # We set ac_cv_exeext here because the later test for it is not
3914
 
        # safe: cross compilers may not add the suffix if given an `-o'
3915
 
        # argument, so we may need to know it at that point already.
3916
 
        # Even if this section looks crufty: it has the advantage of
3917
 
        # actually working.
3918
 
        break;;
3919
 
    * )
3920
 
        break;;
3921
 
  esac
3922
 
done
3923
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3924
 
 
3925
 
else
3926
 
  ac_file=''
3927
 
fi
3928
 
if test -z "$ac_file"; then :
3929
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930
 
$as_echo "no" >&6; }
3931
 
$as_echo "$as_me: failed program was:" >&5
3932
 
sed 's/^/| /' conftest.$ac_ext >&5
3933
 
 
3934
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936
 
as_fn_error 77 "C compiler cannot create executables
3937
 
See \`config.log' for more details" "$LINENO" 5 ; }
3938
 
else
3939
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940
 
$as_echo "yes" >&6; }
3941
 
fi
3942
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3943
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3944
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3945
 
$as_echo "$ac_file" >&6; }
3946
 
ac_exeext=$ac_cv_exeext
3947
 
 
3948
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3949
 
ac_clean_files=$ac_clean_files_save
3950
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951
 
$as_echo_n "checking for suffix of executables... " >&6; }
3952
 
if { { ac_try="$ac_link"
3953
 
case "(($ac_try" in
3954
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955
 
  *) ac_try_echo=$ac_try;;
3956
 
esac
3957
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958
 
$as_echo "$ac_try_echo"; } >&5
3959
 
  (eval "$ac_link") 2>&5
3960
 
  ac_status=$?
3961
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962
 
  test $ac_status = 0; }; then :
3963
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3964
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3965
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3966
 
# `rm'.
3967
 
for ac_file in conftest.exe conftest conftest.*; do
3968
 
  test -f "$ac_file" || continue
3969
 
  case $ac_file in
3970
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972
 
          break;;
3973
 
    * ) break;;
3974
 
  esac
3975
 
done
3976
 
else
3977
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979
 
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3980
 
See \`config.log' for more details" "$LINENO" 5 ; }
3981
 
fi
3982
 
rm -f conftest conftest$ac_cv_exeext
3983
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984
 
$as_echo "$ac_cv_exeext" >&6; }
3985
 
 
3986
 
rm -f conftest.$ac_ext
3987
 
EXEEXT=$ac_cv_exeext
3988
 
ac_exeext=$EXEEXT
3989
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990
 
/* end confdefs.h.  */
3991
 
#include <stdio.h>
3992
 
int
3993
 
main ()
3994
 
{
3995
 
FILE *f = fopen ("conftest.out", "w");
3996
 
 return ferror (f) || fclose (f) != 0;
3997
 
 
3998
 
  ;
3999
 
  return 0;
4000
 
}
4001
 
_ACEOF
4002
 
ac_clean_files="$ac_clean_files conftest.out"
4003
 
# Check that the compiler produces executables we can run.  If not, either
4004
 
# the compiler is broken, or we cross compile.
4005
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4006
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
4007
 
if test "$cross_compiling" != yes; then
4008
 
  { { ac_try="$ac_link"
4009
 
case "(($ac_try" in
4010
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011
 
  *) ac_try_echo=$ac_try;;
4012
 
esac
4013
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014
 
$as_echo "$ac_try_echo"; } >&5
4015
 
  (eval "$ac_link") 2>&5
4016
 
  ac_status=$?
4017
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018
 
  test $ac_status = 0; }
4019
 
  if { ac_try='./conftest$ac_cv_exeext'
4020
 
  { { case "(($ac_try" in
4021
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022
 
  *) ac_try_echo=$ac_try;;
4023
 
esac
4024
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025
 
$as_echo "$ac_try_echo"; } >&5
4026
 
  (eval "$ac_try") 2>&5
4027
 
  ac_status=$?
4028
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029
 
  test $ac_status = 0; }; }; then
4030
 
    cross_compiling=no
4031
 
  else
4032
 
    if test "$cross_compiling" = maybe; then
4033
 
        cross_compiling=yes
4034
 
    else
4035
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037
 
as_fn_error $? "cannot run C compiled programs.
4038
 
If you meant to cross compile, use \`--host'.
4039
 
See \`config.log' for more details" "$LINENO" 5 ; }
4040
 
    fi
4041
 
  fi
4042
 
fi
4043
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4044
 
$as_echo "$cross_compiling" >&6; }
4045
 
 
4046
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4047
 
ac_clean_files=$ac_clean_files_save
4048
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4049
 
$as_echo_n "checking for suffix of object files... " >&6; }
4050
 
if test "${ac_cv_objext+set}" = set; then :
4051
 
  $as_echo_n "(cached) " >&6
4052
 
else
4053
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054
 
/* end confdefs.h.  */
4055
 
 
4056
 
int
4057
 
main ()
4058
 
{
4059
 
 
4060
 
  ;
4061
 
  return 0;
4062
 
}
4063
 
_ACEOF
4064
 
rm -f conftest.o conftest.obj
4065
 
if { { ac_try="$ac_compile"
4066
 
case "(($ac_try" in
4067
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068
 
  *) ac_try_echo=$ac_try;;
4069
 
esac
4070
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071
 
$as_echo "$ac_try_echo"; } >&5
4072
 
  (eval "$ac_compile") 2>&5
4073
 
  ac_status=$?
4074
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075
 
  test $ac_status = 0; }; then :
4076
 
  for ac_file in conftest.o conftest.obj conftest.*; do
4077
 
  test -f "$ac_file" || continue;
4078
 
  case $ac_file in
4079
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4080
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4081
 
       break;;
4082
 
  esac
4083
 
done
4084
 
else
4085
 
  $as_echo "$as_me: failed program was:" >&5
4086
 
sed 's/^/| /' conftest.$ac_ext >&5
4087
 
 
4088
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090
 
as_fn_error $? "cannot compute suffix of object files: cannot compile
4091
 
See \`config.log' for more details" "$LINENO" 5 ; }
4092
 
fi
4093
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4094
 
fi
4095
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4096
 
$as_echo "$ac_cv_objext" >&6; }
4097
 
OBJEXT=$ac_cv_objext
4098
 
ac_objext=$OBJEXT
4099
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4100
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4101
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4102
 
  $as_echo_n "(cached) " >&6
4103
 
else
4104
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105
 
/* end confdefs.h.  */
4106
 
 
4107
 
int
4108
 
main ()
4109
 
{
4110
 
#ifndef __GNUC__
4111
 
       choke me
4112
 
#endif
4113
 
 
4114
 
  ;
4115
 
  return 0;
4116
 
}
4117
 
_ACEOF
4118
 
if ac_fn_c_try_compile "$LINENO"; then :
4119
 
  ac_compiler_gnu=yes
4120
 
else
4121
 
  ac_compiler_gnu=no
4122
 
fi
4123
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4125
 
 
4126
 
fi
4127
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4128
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4129
 
if test $ac_compiler_gnu = yes; then
4130
 
  GCC=yes
4131
 
else
4132
 
  GCC=
4133
 
fi
4134
 
ac_test_CFLAGS=${CFLAGS+set}
4135
 
ac_save_CFLAGS=$CFLAGS
4136
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4137
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4138
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
4139
 
  $as_echo_n "(cached) " >&6
4140
 
else
4141
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4142
 
   ac_c_werror_flag=yes
4143
 
   ac_cv_prog_cc_g=no
4144
 
   CFLAGS="-g"
4145
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146
 
/* end confdefs.h.  */
4147
 
 
4148
 
int
4149
 
main ()
4150
 
{
4151
 
 
4152
 
  ;
4153
 
  return 0;
4154
 
}
4155
 
_ACEOF
4156
 
if ac_fn_c_try_compile "$LINENO"; then :
4157
 
  ac_cv_prog_cc_g=yes
4158
 
else
4159
 
  CFLAGS=""
4160
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161
 
/* end confdefs.h.  */
4162
 
 
4163
 
int
4164
 
main ()
4165
 
{
4166
 
 
4167
 
  ;
4168
 
  return 0;
4169
 
}
4170
 
_ACEOF
4171
 
if ac_fn_c_try_compile "$LINENO"; then :
4172
 
 
4173
 
else
4174
 
  ac_c_werror_flag=$ac_save_c_werror_flag
4175
 
         CFLAGS="-g"
4176
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177
 
/* end confdefs.h.  */
4178
 
 
4179
 
int
4180
 
main ()
4181
 
{
4182
 
 
4183
 
  ;
4184
 
  return 0;
4185
 
}
4186
 
_ACEOF
4187
 
if ac_fn_c_try_compile "$LINENO"; then :
4188
 
  ac_cv_prog_cc_g=yes
4189
 
fi
4190
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191
 
fi
4192
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193
 
fi
4194
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4196
 
fi
4197
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4198
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
4199
 
if test "$ac_test_CFLAGS" = set; then
4200
 
  CFLAGS=$ac_save_CFLAGS
4201
 
elif test $ac_cv_prog_cc_g = yes; then
4202
 
  if test "$GCC" = yes; then
4203
 
    CFLAGS="-g -O2"
4204
 
  else
4205
 
    CFLAGS="-g"
4206
 
  fi
4207
 
else
4208
 
  if test "$GCC" = yes; then
4209
 
    CFLAGS="-O2"
4210
 
  else
4211
 
    CFLAGS=
4212
 
  fi
4213
 
fi
4214
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4215
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4216
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4217
 
  $as_echo_n "(cached) " >&6
4218
 
else
4219
 
  ac_cv_prog_cc_c89=no
4220
 
ac_save_CC=$CC
4221
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222
 
/* end confdefs.h.  */
4223
 
#include <stdarg.h>
4224
 
#include <stdio.h>
4225
 
#include <sys/types.h>
4226
 
#include <sys/stat.h>
4227
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4228
 
struct buf { int x; };
4229
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4230
 
static char *e (p, i)
4231
 
     char **p;
4232
 
     int i;
4233
 
{
4234
 
  return p[i];
4235
 
}
4236
 
static char *f (char * (*g) (char **, int), char **p, ...)
4237
 
{
4238
 
  char *s;
4239
 
  va_list v;
4240
 
  va_start (v,p);
4241
 
  s = g (p, va_arg (v,int));
4242
 
  va_end (v);
4243
 
  return s;
4244
 
}
4245
 
 
4246
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4247
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4248
 
   These don't provoke an error unfortunately, instead are silently treated
4249
 
   as 'x'.  The following induces an error, until -std is added to get
4250
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4251
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4252
 
   that's true only with -std.  */
4253
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4254
 
 
4255
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4256
 
   inside strings and character constants.  */
4257
 
#define FOO(x) 'x'
4258
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4259
 
 
4260
 
int test (int i, double x);
4261
 
struct s1 {int (*f) (int a);};
4262
 
struct s2 {int (*f) (double a);};
4263
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4264
 
int argc;
4265
 
char **argv;
4266
 
int
4267
 
main ()
4268
 
{
4269
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4270
 
  ;
4271
 
  return 0;
4272
 
}
4273
 
_ACEOF
4274
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4275
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4276
 
do
4277
 
  CC="$ac_save_CC $ac_arg"
4278
 
  if ac_fn_c_try_compile "$LINENO"; then :
4279
 
  ac_cv_prog_cc_c89=$ac_arg
4280
 
fi
4281
 
rm -f core conftest.err conftest.$ac_objext
4282
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4283
 
done
4284
 
rm -f conftest.$ac_ext
4285
 
CC=$ac_save_CC
4286
 
 
4287
 
fi
4288
 
# AC_CACHE_VAL
4289
 
case "x$ac_cv_prog_cc_c89" in
4290
 
  x)
4291
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292
 
$as_echo "none needed" >&6; } ;;
4293
 
  xno)
4294
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295
 
$as_echo "unsupported" >&6; } ;;
4296
 
  *)
4297
 
    CC="$CC $ac_cv_prog_cc_c89"
4298
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4299
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4300
 
esac
4301
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
4302
 
 
4303
 
fi
4304
 
 
4305
 
ac_ext=c
4306
 
ac_cpp='$CPP $CPPFLAGS'
4307
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310
 
DEPDIR="${am__leading_dot}deps"
4311
 
 
4312
 
ac_config_commands="$ac_config_commands depfiles"
4313
 
 
4314
 
 
4315
 
am_make=${MAKE-make}
4316
 
cat > confinc << 'END'
4317
 
am__doit:
4318
 
        @echo this is the am__doit target
4319
 
.PHONY: am__doit
4320
 
END
4321
 
# If we don't find an include directive, just comment out the code.
4322
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4323
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4324
 
am__include="#"
4325
 
am__quote=
4326
 
_am_result=none
4327
 
# First try GNU make style include.
4328
 
echo "include confinc" > confmf
4329
 
# Ignore all kinds of additional output from `make'.
4330
 
case `$am_make -s -f confmf 2> /dev/null` in #(
4331
 
*the\ am__doit\ target*)
4332
 
  am__include=include
4333
 
  am__quote=
4334
 
  _am_result=GNU
4335
 
  ;;
4336
 
esac
4337
 
# Now try BSD make style include.
4338
 
if test "$am__include" = "#"; then
4339
 
   echo '.include "confinc"' > confmf
4340
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
4341
 
   *the\ am__doit\ target*)
4342
 
     am__include=.include
4343
 
     am__quote="\""
4344
 
     _am_result=BSD
4345
 
     ;;
4346
 
   esac
4347
 
fi
4348
 
 
4349
 
 
4350
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4351
 
$as_echo "$_am_result" >&6; }
4352
 
rm -f confinc confmf
4353
 
 
4354
 
# Check whether --enable-dependency-tracking was given.
4355
 
if test "${enable_dependency_tracking+set}" = set; then :
4356
 
  enableval=$enable_dependency_tracking;
4357
 
fi
4358
 
 
4359
 
if test "x$enable_dependency_tracking" != xno; then
4360
 
  am_depcomp="$ac_aux_dir/depcomp"
4361
 
  AMDEPBACKSLASH='\'
4362
 
fi
4363
 
 if test "x$enable_dependency_tracking" != xno; then
4364
 
  AMDEP_TRUE=
4365
 
  AMDEP_FALSE='#'
4366
 
else
4367
 
  AMDEP_TRUE='#'
4368
 
  AMDEP_FALSE=
4369
 
fi
4370
 
 
4371
 
 
4372
 
 
4373
 
depcc="$CC"   am_compiler_list=
4374
 
 
4375
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4376
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4377
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4378
 
  $as_echo_n "(cached) " >&6
4379
 
else
4380
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4381
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4382
 
  # making bogus files that we don't know about and never remove.  For
4383
 
  # instance it was reported that on HP-UX the gcc test will end up
4384
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4385
 
  # in D'.
4386
 
  mkdir conftest.dir
4387
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4388
 
  # using a relative directory.
4389
 
  cp "$am_depcomp" conftest.dir
4390
 
  cd conftest.dir
4391
 
  # We will build objects and dependencies in a subdirectory because
4392
 
  # it helps to detect inapplicable dependency modes.  For instance
4393
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4394
 
  # side effect of compilation, but ICC will put the dependencies in
4395
 
  # the current directory while Tru64 will put them in the object
4396
 
  # directory.
4397
 
  mkdir sub
4398
 
 
4399
 
  am_cv_CC_dependencies_compiler_type=none
4400
 
  if test "$am_compiler_list" = ""; then
4401
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4402
 
  fi
4403
 
  am__universal=false
4404
 
  case " $depcc " in #(
4405
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4406
 
     esac
4407
 
 
4408
 
  for depmode in $am_compiler_list; do
4409
 
    # Setup a source with many dependencies, because some compilers
4410
 
    # like to wrap large dependency lists on column 80 (with \), and
4411
 
    # we should not choose a depcomp mode which is confused by this.
4412
 
    #
4413
 
    # We need to recreate these files for each test, as the compiler may
4414
 
    # overwrite some of them when testing with obscure command lines.
4415
 
    # This happens at least with the AIX C compiler.
4416
 
    : > sub/conftest.c
4417
 
    for i in 1 2 3 4 5 6; do
4418
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4419
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4420
 
      # Solaris 8's {/usr,}/bin/sh.
4421
 
      touch sub/conftst$i.h
4422
 
    done
4423
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4424
 
 
4425
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4426
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4427
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4428
 
    # versions had trouble with output in subdirs
4429
 
    am__obj=sub/conftest.${OBJEXT-o}
4430
 
    am__minus_obj="-o $am__obj"
4431
 
    case $depmode in
4432
 
    gcc)
4433
 
      # This depmode causes a compiler race in universal mode.
4434
 
      test "$am__universal" = false || continue
4435
 
      ;;
4436
 
    nosideeffect)
4437
 
      # after this tag, mechanisms are not by side-effect, so they'll
4438
 
      # only be used when explicitly requested
4439
 
      if test "x$enable_dependency_tracking" = xyes; then
4440
 
        continue
4441
 
      else
4442
 
        break
4443
 
      fi
4444
 
      ;;
4445
 
    msvisualcpp | msvcmsys)
4446
 
      # This compiler won't grok `-c -o', but also, the minuso test has
4447
 
      # not run yet.  These depmodes are late enough in the game, and
4448
 
      # so weak that their functioning should not be impacted.
4449
 
      am__obj=conftest.${OBJEXT-o}
4450
 
      am__minus_obj=
4451
 
      ;;
4452
 
    none) break ;;
4453
 
    esac
4454
 
    if depmode=$depmode \
4455
 
       source=sub/conftest.c object=$am__obj \
4456
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4457
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4458
 
         >/dev/null 2>conftest.err &&
4459
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4460
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4461
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4462
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4463
 
      # icc doesn't choke on unknown options, it will just issue warnings
4464
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4465
 
      # that says an option was ignored or not supported.
4466
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4467
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4468
 
      # The diagnosis changed in icc 8.0:
4469
 
      #   icc: Command line remark: option '-MP' not supported
4470
 
      if (grep 'ignoring option' conftest.err ||
4471
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4472
 
        am_cv_CC_dependencies_compiler_type=$depmode
4473
 
        break
4474
 
      fi
4475
 
    fi
4476
 
  done
4477
 
 
4478
 
  cd ..
4479
 
  rm -rf conftest.dir
4480
 
else
4481
 
  am_cv_CC_dependencies_compiler_type=none
4482
 
fi
4483
 
 
4484
 
fi
4485
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4486
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4487
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4488
 
 
4489
 
 if
4490
 
  test "x$enable_dependency_tracking" != xno \
4491
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4492
 
  am__fastdepCC_TRUE=
4493
 
  am__fastdepCC_FALSE='#'
4494
 
else
4495
 
  am__fastdepCC_TRUE='#'
4496
 
  am__fastdepCC_FALSE=
4497
 
fi
4498
 
 
4499
 
 
4500
 
ac_ext=cpp
4501
 
ac_cpp='$CXXCPP $CPPFLAGS'
4502
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4505
 
if test -z "$CXX"; then
4506
 
  if test -n "$CCC"; then
4507
 
    CXX=$CCC
4508
 
  else
4509
 
    if test -n "$ac_tool_prefix"; then
4510
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4511
 
  do
4512
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4513
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4514
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515
 
$as_echo_n "checking for $ac_word... " >&6; }
4516
 
if test "${ac_cv_prog_CXX+set}" = set; then :
4517
 
  $as_echo_n "(cached) " >&6
4518
 
else
4519
 
  if test -n "$CXX"; then
4520
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4521
 
else
4522
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523
 
for as_dir in $PATH
4524
 
do
4525
 
  IFS=$as_save_IFS
4526
 
  test -z "$as_dir" && as_dir=.
4527
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4528
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4530
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531
 
    break 2
4532
 
  fi
4533
 
done
4534
 
  done
4535
 
IFS=$as_save_IFS
4536
 
 
4537
 
fi
4538
 
fi
4539
 
CXX=$ac_cv_prog_CXX
4540
 
if test -n "$CXX"; then
4541
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4542
 
$as_echo "$CXX" >&6; }
4543
 
else
4544
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545
 
$as_echo "no" >&6; }
4546
 
fi
4547
 
 
4548
 
 
4549
 
    test -n "$CXX" && break
4550
 
  done
4551
 
fi
4552
 
if test -z "$CXX"; then
4553
 
  ac_ct_CXX=$CXX
4554
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4555
 
do
4556
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4557
 
set dummy $ac_prog; ac_word=$2
4558
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559
 
$as_echo_n "checking for $ac_word... " >&6; }
4560
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4561
 
  $as_echo_n "(cached) " >&6
4562
 
else
4563
 
  if test -n "$ac_ct_CXX"; then
4564
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4565
 
else
4566
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567
 
for as_dir in $PATH
4568
 
do
4569
 
  IFS=$as_save_IFS
4570
 
  test -z "$as_dir" && as_dir=.
4571
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4572
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4574
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575
 
    break 2
4576
 
  fi
4577
 
done
4578
 
  done
4579
 
IFS=$as_save_IFS
4580
 
 
4581
 
fi
4582
 
fi
4583
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4584
 
if test -n "$ac_ct_CXX"; then
4585
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4586
 
$as_echo "$ac_ct_CXX" >&6; }
4587
 
else
4588
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589
 
$as_echo "no" >&6; }
4590
 
fi
4591
 
 
4592
 
 
4593
 
  test -n "$ac_ct_CXX" && break
4594
 
done
4595
 
 
4596
 
  if test "x$ac_ct_CXX" = x; then
4597
 
    CXX="g++"
4598
 
  else
4599
 
    case $cross_compiling:$ac_tool_warned in
4600
 
yes:)
4601
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603
 
ac_tool_warned=yes ;;
4604
 
esac
4605
 
    CXX=$ac_ct_CXX
4606
 
  fi
4607
 
fi
4608
 
 
4609
 
  fi
4610
 
fi
4611
 
# Provide some information about the compiler.
4612
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4613
 
set X $ac_compile
4614
 
ac_compiler=$2
4615
 
for ac_option in --version -v -V -qversion; do
4616
 
  { { ac_try="$ac_compiler $ac_option >&5"
4617
 
case "(($ac_try" in
4618
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619
 
  *) ac_try_echo=$ac_try;;
4620
 
esac
4621
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4622
 
$as_echo "$ac_try_echo"; } >&5
4623
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4624
 
  ac_status=$?
4625
 
  if test -s conftest.err; then
4626
 
    sed '10a\
4627
 
... rest of stderr output deleted ...
4628
 
         10q' conftest.err >conftest.er1
4629
 
    cat conftest.er1 >&5
4630
 
  fi
4631
 
  rm -f conftest.er1 conftest.err
4632
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633
 
  test $ac_status = 0; }
4634
 
done
4635
 
 
4636
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4637
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4638
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4639
 
  $as_echo_n "(cached) " >&6
4640
 
else
4641
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642
 
/* end confdefs.h.  */
4643
 
 
4644
 
int
4645
 
main ()
4646
 
{
4647
 
#ifndef __GNUC__
4648
 
       choke me
4649
 
#endif
4650
 
 
4651
 
  ;
4652
 
  return 0;
4653
 
}
4654
 
_ACEOF
4655
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4656
 
  ac_compiler_gnu=yes
4657
 
else
4658
 
  ac_compiler_gnu=no
4659
 
fi
4660
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4662
 
 
4663
 
fi
4664
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4665
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4666
 
if test $ac_compiler_gnu = yes; then
4667
 
  GXX=yes
4668
 
else
4669
 
  GXX=
4670
 
fi
4671
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4672
 
ac_save_CXXFLAGS=$CXXFLAGS
4673
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4674
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4675
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4676
 
  $as_echo_n "(cached) " >&6
4677
 
else
4678
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4679
 
   ac_cxx_werror_flag=yes
4680
 
   ac_cv_prog_cxx_g=no
4681
 
   CXXFLAGS="-g"
4682
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683
 
/* end confdefs.h.  */
4684
 
 
4685
 
int
4686
 
main ()
4687
 
{
4688
 
 
4689
 
  ;
4690
 
  return 0;
4691
 
}
4692
 
_ACEOF
4693
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4694
 
  ac_cv_prog_cxx_g=yes
4695
 
else
4696
 
  CXXFLAGS=""
4697
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698
 
/* end confdefs.h.  */
4699
 
 
4700
 
int
4701
 
main ()
4702
 
{
4703
 
 
4704
 
  ;
4705
 
  return 0;
4706
 
}
4707
 
_ACEOF
4708
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4709
 
 
4710
 
else
4711
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4712
 
         CXXFLAGS="-g"
4713
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714
 
/* end confdefs.h.  */
4715
 
 
4716
 
int
4717
 
main ()
4718
 
{
4719
 
 
4720
 
  ;
4721
 
  return 0;
4722
 
}
4723
 
_ACEOF
4724
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4725
 
  ac_cv_prog_cxx_g=yes
4726
 
fi
4727
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728
 
fi
4729
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730
 
fi
4731
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4733
 
fi
4734
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4735
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4736
 
if test "$ac_test_CXXFLAGS" = set; then
4737
 
  CXXFLAGS=$ac_save_CXXFLAGS
4738
 
elif test $ac_cv_prog_cxx_g = yes; then
4739
 
  if test "$GXX" = yes; then
4740
 
    CXXFLAGS="-g -O2"
4741
 
  else
4742
 
    CXXFLAGS="-g"
4743
 
  fi
4744
 
else
4745
 
  if test "$GXX" = yes; then
4746
 
    CXXFLAGS="-O2"
4747
 
  else
4748
 
    CXXFLAGS=
4749
 
  fi
4750
 
fi
4751
 
ac_ext=c
4752
 
ac_cpp='$CPP $CPPFLAGS'
4753
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
 
 
4757
 
depcc="$CXX"  am_compiler_list=
4758
 
 
4759
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4761
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4762
 
  $as_echo_n "(cached) " >&6
4763
 
else
4764
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4766
 
  # making bogus files that we don't know about and never remove.  For
4767
 
  # instance it was reported that on HP-UX the gcc test will end up
4768
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4769
 
  # in D'.
4770
 
  mkdir conftest.dir
4771
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4772
 
  # using a relative directory.
4773
 
  cp "$am_depcomp" conftest.dir
4774
 
  cd conftest.dir
4775
 
  # We will build objects and dependencies in a subdirectory because
4776
 
  # it helps to detect inapplicable dependency modes.  For instance
4777
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4778
 
  # side effect of compilation, but ICC will put the dependencies in
4779
 
  # the current directory while Tru64 will put them in the object
4780
 
  # directory.
4781
 
  mkdir sub
4782
 
 
4783
 
  am_cv_CXX_dependencies_compiler_type=none
4784
 
  if test "$am_compiler_list" = ""; then
4785
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4786
 
  fi
4787
 
  am__universal=false
4788
 
  case " $depcc " in #(
4789
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4790
 
     esac
4791
 
 
4792
 
  for depmode in $am_compiler_list; do
4793
 
    # Setup a source with many dependencies, because some compilers
4794
 
    # like to wrap large dependency lists on column 80 (with \), and
4795
 
    # we should not choose a depcomp mode which is confused by this.
4796
 
    #
4797
 
    # We need to recreate these files for each test, as the compiler may
4798
 
    # overwrite some of them when testing with obscure command lines.
4799
 
    # This happens at least with the AIX C compiler.
4800
 
    : > sub/conftest.c
4801
 
    for i in 1 2 3 4 5 6; do
4802
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4803
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4804
 
      # Solaris 8's {/usr,}/bin/sh.
4805
 
      touch sub/conftst$i.h
4806
 
    done
4807
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4808
 
 
4809
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4810
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4811
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4812
 
    # versions had trouble with output in subdirs
4813
 
    am__obj=sub/conftest.${OBJEXT-o}
4814
 
    am__minus_obj="-o $am__obj"
4815
 
    case $depmode in
4816
 
    gcc)
4817
 
      # This depmode causes a compiler race in universal mode.
4818
 
      test "$am__universal" = false || continue
4819
 
      ;;
4820
 
    nosideeffect)
4821
 
      # after this tag, mechanisms are not by side-effect, so they'll
4822
 
      # only be used when explicitly requested
4823
 
      if test "x$enable_dependency_tracking" = xyes; then
4824
 
        continue
4825
 
      else
4826
 
        break
4827
 
      fi
4828
 
      ;;
4829
 
    msvisualcpp | msvcmsys)
4830
 
      # This compiler won't grok `-c -o', but also, the minuso test has
4831
 
      # not run yet.  These depmodes are late enough in the game, and
4832
 
      # so weak that their functioning should not be impacted.
4833
 
      am__obj=conftest.${OBJEXT-o}
4834
 
      am__minus_obj=
4835
 
      ;;
4836
 
    none) break ;;
4837
 
    esac
4838
 
    if depmode=$depmode \
4839
 
       source=sub/conftest.c object=$am__obj \
4840
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4841
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4842
 
         >/dev/null 2>conftest.err &&
4843
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4844
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4845
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4846
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4847
 
      # icc doesn't choke on unknown options, it will just issue warnings
4848
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4849
 
      # that says an option was ignored or not supported.
4850
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4851
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4852
 
      # The diagnosis changed in icc 8.0:
4853
 
      #   icc: Command line remark: option '-MP' not supported
4854
 
      if (grep 'ignoring option' conftest.err ||
4855
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4856
 
        am_cv_CXX_dependencies_compiler_type=$depmode
4857
 
        break
4858
 
      fi
4859
 
    fi
4860
 
  done
4861
 
 
4862
 
  cd ..
4863
 
  rm -rf conftest.dir
4864
 
else
4865
 
  am_cv_CXX_dependencies_compiler_type=none
4866
 
fi
4867
 
 
4868
 
fi
4869
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4870
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4871
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4872
 
 
4873
 
 if
4874
 
  test "x$enable_dependency_tracking" != xno \
4875
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4876
 
  am__fastdepCXX_TRUE=
4877
 
  am__fastdepCXX_FALSE='#'
4878
 
else
4879
 
  am__fastdepCXX_TRUE='#'
4880
 
  am__fastdepCXX_FALSE=
4881
 
fi
4882
 
 
4883
 
 
4884
 
ac_ext=c
4885
 
ac_cpp='$CPP $CPPFLAGS'
4886
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4890
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4891
 
# On Suns, sometimes $CPP names a directory.
4892
 
if test -n "$CPP" && test -d "$CPP"; then
4893
 
  CPP=
4894
 
fi
4895
 
if test -z "$CPP"; then
4896
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
4897
 
  $as_echo_n "(cached) " >&6
4898
 
else
4899
 
      # Double quotes because CPP needs to be expanded
4900
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4901
 
    do
4902
 
      ac_preproc_ok=false
4903
 
for ac_c_preproc_warn_flag in '' yes
4904
 
do
4905
 
  # Use a header file that comes with gcc, so configuring glibc
4906
 
  # with a fresh cross-compiler works.
4907
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4908
 
  # <limits.h> exists even on freestanding compilers.
4909
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4910
 
  # not just through cpp. "Syntax error" is here to catch this case.
4911
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912
 
/* end confdefs.h.  */
4913
 
#ifdef __STDC__
4914
 
# include <limits.h>
4915
 
#else
4916
 
# include <assert.h>
4917
 
#endif
4918
 
                     Syntax error
4919
 
_ACEOF
4920
 
if ac_fn_c_try_cpp "$LINENO"; then :
4921
 
 
4922
 
else
4923
 
  # Broken: fails on valid input.
4924
 
continue
4925
 
fi
4926
 
rm -f conftest.err conftest.i conftest.$ac_ext
4927
 
 
4928
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4929
 
  # can be detected and how.
4930
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931
 
/* end confdefs.h.  */
4932
 
#include <ac_nonexistent.h>
4933
 
_ACEOF
4934
 
if ac_fn_c_try_cpp "$LINENO"; then :
4935
 
  # Broken: success on invalid input.
4936
 
continue
4937
 
else
4938
 
  # Passes both tests.
4939
 
ac_preproc_ok=:
4940
 
break
4941
 
fi
4942
 
rm -f conftest.err conftest.i conftest.$ac_ext
4943
 
 
4944
 
done
4945
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4946
 
rm -f conftest.i conftest.err conftest.$ac_ext
4947
 
if $ac_preproc_ok; then :
4948
 
  break
4949
 
fi
4950
 
 
4951
 
    done
4952
 
    ac_cv_prog_CPP=$CPP
4953
 
 
4954
 
fi
4955
 
  CPP=$ac_cv_prog_CPP
4956
 
else
4957
 
  ac_cv_prog_CPP=$CPP
4958
 
fi
4959
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4960
 
$as_echo "$CPP" >&6; }
4961
 
ac_preproc_ok=false
4962
 
for ac_c_preproc_warn_flag in '' yes
4963
 
do
4964
 
  # Use a header file that comes with gcc, so configuring glibc
4965
 
  # with a fresh cross-compiler works.
4966
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967
 
  # <limits.h> exists even on freestanding compilers.
4968
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4969
 
  # not just through cpp. "Syntax error" is here to catch this case.
4970
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971
 
/* end confdefs.h.  */
4972
 
#ifdef __STDC__
4973
 
# include <limits.h>
4974
 
#else
4975
 
# include <assert.h>
4976
 
#endif
4977
 
                     Syntax error
4978
 
_ACEOF
4979
 
if ac_fn_c_try_cpp "$LINENO"; then :
4980
 
 
4981
 
else
4982
 
  # Broken: fails on valid input.
4983
 
continue
4984
 
fi
4985
 
rm -f conftest.err conftest.i conftest.$ac_ext
4986
 
 
4987
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4988
 
  # can be detected and how.
4989
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990
 
/* end confdefs.h.  */
4991
 
#include <ac_nonexistent.h>
4992
 
_ACEOF
4993
 
if ac_fn_c_try_cpp "$LINENO"; then :
4994
 
  # Broken: success on invalid input.
4995
 
continue
4996
 
else
4997
 
  # Passes both tests.
4998
 
ac_preproc_ok=:
4999
 
break
5000
 
fi
5001
 
rm -f conftest.err conftest.i conftest.$ac_ext
5002
 
 
5003
 
done
5004
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005
 
rm -f conftest.i conftest.err conftest.$ac_ext
5006
 
if $ac_preproc_ok; then :
5007
 
 
5008
 
else
5009
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5010
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5011
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5012
 
See \`config.log' for more details" "$LINENO" 5 ; }
5013
 
fi
5014
 
 
5015
 
ac_ext=c
5016
 
ac_cpp='$CPP $CPPFLAGS'
5017
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
 
 
5021
 
 
5022
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5023
 
$as_echo_n "checking whether ln -s works... " >&6; }
5024
 
LN_S=$as_ln_s
5025
 
if test "$LN_S" = "ln -s"; then
5026
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027
 
$as_echo "yes" >&6; }
5028
 
else
5029
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5030
 
$as_echo "no, using $LN_S" >&6; }
5031
 
fi
5032
 
 
5033
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5034
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5035
 
set x ${MAKE-make}
5036
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5037
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5038
 
  $as_echo_n "(cached) " >&6
5039
 
else
5040
 
  cat >conftest.make <<\_ACEOF
5041
 
SHELL = /bin/sh
5042
 
all:
5043
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
5044
 
_ACEOF
5045
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5046
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5047
 
  *@@@%%%=?*=@@@%%%*)
5048
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
5049
 
  *)
5050
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
5051
 
esac
5052
 
rm -f conftest.make
5053
 
fi
5054
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5055
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5056
 
$as_echo "yes" >&6; }
5057
 
  SET_MAKE=
5058
 
else
5059
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060
 
$as_echo "no" >&6; }
5061
 
  SET_MAKE="MAKE=${MAKE-make}"
5062
 
fi
5063
 
 
5064
 
 
5065
 
case `pwd` in
5066
 
  *\ * | *\     *)
5067
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5068
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5069
 
esac
5070
 
 
5071
 
 
5072
 
 
5073
 
macro_version='2.2.6b'
5074
 
macro_revision='1.3017'
5075
 
 
5076
 
 
5077
 
 
5078
 
 
5079
 
 
5080
 
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
 
 
5088
 
ltmain="$ac_aux_dir/ltmain.sh"
5089
 
 
5090
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5091
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5092
 
if test "${ac_cv_path_SED+set}" = set; then :
5093
 
  $as_echo_n "(cached) " >&6
5094
 
else
5095
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5096
 
     for ac_i in 1 2 3 4 5 6 7; do
5097
 
       ac_script="$ac_script$as_nl$ac_script"
5098
 
     done
5099
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5100
 
     { ac_script=; unset ac_script;}
5101
 
     if test -z "$SED"; then
5102
 
  ac_path_SED_found=false
5103
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5104
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105
 
for as_dir in $PATH
5106
 
do
5107
 
  IFS=$as_save_IFS
5108
 
  test -z "$as_dir" && as_dir=.
5109
 
    for ac_prog in sed gsed; do
5110
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5111
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5112
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5113
 
# Check for GNU ac_path_SED and select it if it is found.
5114
 
  # Check for GNU $ac_path_SED
5115
 
case `"$ac_path_SED" --version 2>&1` in
5116
 
*GNU*)
5117
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5118
 
*)
5119
 
  ac_count=0
5120
 
  $as_echo_n 0123456789 >"conftest.in"
5121
 
  while :
5122
 
  do
5123
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5124
 
    mv "conftest.tmp" "conftest.in"
5125
 
    cp "conftest.in" "conftest.nl"
5126
 
    $as_echo '' >> "conftest.nl"
5127
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5128
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5129
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5130
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5131
 
      # Best one so far, save it but keep looking for a better one
5132
 
      ac_cv_path_SED="$ac_path_SED"
5133
 
      ac_path_SED_max=$ac_count
5134
 
    fi
5135
 
    # 10*(2^10) chars as input seems more than enough
5136
 
    test $ac_count -gt 10 && break
5137
 
  done
5138
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5139
 
esac
5140
 
 
5141
 
      $ac_path_SED_found && break 3
5142
 
    done
5143
 
  done
5144
 
  done
5145
 
IFS=$as_save_IFS
5146
 
  if test -z "$ac_cv_path_SED"; then
5147
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5148
 
  fi
5149
 
else
5150
 
  ac_cv_path_SED=$SED
5151
 
fi
5152
 
 
5153
 
fi
5154
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5155
 
$as_echo "$ac_cv_path_SED" >&6; }
5156
 
 SED="$ac_cv_path_SED"
5157
 
  rm -f conftest.sed
5158
 
 
5159
 
test -z "$SED" && SED=sed
5160
 
Xsed="$SED -e 1s/^X//"
5161
 
 
5162
 
 
5163
 
 
5164
 
 
5165
 
 
5166
 
 
5167
 
 
5168
 
 
5169
 
 
5170
 
 
5171
 
 
5172
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5173
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5174
 
if test "${ac_cv_path_GREP+set}" = set; then :
5175
 
  $as_echo_n "(cached) " >&6
5176
 
else
5177
 
  if test -z "$GREP"; then
5178
 
  ac_path_GREP_found=false
5179
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5180
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5182
 
do
5183
 
  IFS=$as_save_IFS
5184
 
  test -z "$as_dir" && as_dir=.
5185
 
    for ac_prog in grep ggrep; do
5186
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5187
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5188
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5189
 
# Check for GNU ac_path_GREP and select it if it is found.
5190
 
  # Check for GNU $ac_path_GREP
5191
 
case `"$ac_path_GREP" --version 2>&1` in
5192
 
*GNU*)
5193
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5194
 
*)
5195
 
  ac_count=0
5196
 
  $as_echo_n 0123456789 >"conftest.in"
5197
 
  while :
5198
 
  do
5199
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5200
 
    mv "conftest.tmp" "conftest.in"
5201
 
    cp "conftest.in" "conftest.nl"
5202
 
    $as_echo 'GREP' >> "conftest.nl"
5203
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5206
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5207
 
      # Best one so far, save it but keep looking for a better one
5208
 
      ac_cv_path_GREP="$ac_path_GREP"
5209
 
      ac_path_GREP_max=$ac_count
5210
 
    fi
5211
 
    # 10*(2^10) chars as input seems more than enough
5212
 
    test $ac_count -gt 10 && break
5213
 
  done
5214
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215
 
esac
5216
 
 
5217
 
      $ac_path_GREP_found && break 3
5218
 
    done
5219
 
  done
5220
 
  done
5221
 
IFS=$as_save_IFS
5222
 
  if test -z "$ac_cv_path_GREP"; then
5223
 
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5224
 
  fi
5225
 
else
5226
 
  ac_cv_path_GREP=$GREP
5227
 
fi
5228
 
 
5229
 
fi
5230
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5231
 
$as_echo "$ac_cv_path_GREP" >&6; }
5232
 
 GREP="$ac_cv_path_GREP"
5233
 
 
5234
 
 
5235
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5236
 
$as_echo_n "checking for egrep... " >&6; }
5237
 
if test "${ac_cv_path_EGREP+set}" = set; then :
5238
 
  $as_echo_n "(cached) " >&6
5239
 
else
5240
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5241
 
   then ac_cv_path_EGREP="$GREP -E"
5242
 
   else
5243
 
     if test -z "$EGREP"; then
5244
 
  ac_path_EGREP_found=false
5245
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5246
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248
 
do
5249
 
  IFS=$as_save_IFS
5250
 
  test -z "$as_dir" && as_dir=.
5251
 
    for ac_prog in egrep; do
5252
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5253
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5254
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5255
 
# Check for GNU ac_path_EGREP and select it if it is found.
5256
 
  # Check for GNU $ac_path_EGREP
5257
 
case `"$ac_path_EGREP" --version 2>&1` in
5258
 
*GNU*)
5259
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5260
 
*)
5261
 
  ac_count=0
5262
 
  $as_echo_n 0123456789 >"conftest.in"
5263
 
  while :
5264
 
  do
5265
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5266
 
    mv "conftest.tmp" "conftest.in"
5267
 
    cp "conftest.in" "conftest.nl"
5268
 
    $as_echo 'EGREP' >> "conftest.nl"
5269
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5272
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5273
 
      # Best one so far, save it but keep looking for a better one
5274
 
      ac_cv_path_EGREP="$ac_path_EGREP"
5275
 
      ac_path_EGREP_max=$ac_count
5276
 
    fi
5277
 
    # 10*(2^10) chars as input seems more than enough
5278
 
    test $ac_count -gt 10 && break
5279
 
  done
5280
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281
 
esac
5282
 
 
5283
 
      $ac_path_EGREP_found && break 3
5284
 
    done
5285
 
  done
5286
 
  done
5287
 
IFS=$as_save_IFS
5288
 
  if test -z "$ac_cv_path_EGREP"; then
5289
 
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290
 
  fi
5291
 
else
5292
 
  ac_cv_path_EGREP=$EGREP
5293
 
fi
5294
 
 
5295
 
   fi
5296
 
fi
5297
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5298
 
$as_echo "$ac_cv_path_EGREP" >&6; }
5299
 
 EGREP="$ac_cv_path_EGREP"
5300
 
 
5301
 
 
5302
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5303
 
$as_echo_n "checking for fgrep... " >&6; }
5304
 
if test "${ac_cv_path_FGREP+set}" = set; then :
5305
 
  $as_echo_n "(cached) " >&6
5306
 
else
5307
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5308
 
   then ac_cv_path_FGREP="$GREP -F"
5309
 
   else
5310
 
     if test -z "$FGREP"; then
5311
 
  ac_path_FGREP_found=false
5312
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5313
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5315
 
do
5316
 
  IFS=$as_save_IFS
5317
 
  test -z "$as_dir" && as_dir=.
5318
 
    for ac_prog in fgrep; do
5319
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5320
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5321
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5322
 
# Check for GNU ac_path_FGREP and select it if it is found.
5323
 
  # Check for GNU $ac_path_FGREP
5324
 
case `"$ac_path_FGREP" --version 2>&1` in
5325
 
*GNU*)
5326
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5327
 
*)
5328
 
  ac_count=0
5329
 
  $as_echo_n 0123456789 >"conftest.in"
5330
 
  while :
5331
 
  do
5332
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5333
 
    mv "conftest.tmp" "conftest.in"
5334
 
    cp "conftest.in" "conftest.nl"
5335
 
    $as_echo 'FGREP' >> "conftest.nl"
5336
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5337
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5338
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5339
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5340
 
      # Best one so far, save it but keep looking for a better one
5341
 
      ac_cv_path_FGREP="$ac_path_FGREP"
5342
 
      ac_path_FGREP_max=$ac_count
5343
 
    fi
5344
 
    # 10*(2^10) chars as input seems more than enough
5345
 
    test $ac_count -gt 10 && break
5346
 
  done
5347
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5348
 
esac
5349
 
 
5350
 
      $ac_path_FGREP_found && break 3
5351
 
    done
5352
 
  done
5353
 
  done
5354
 
IFS=$as_save_IFS
5355
 
  if test -z "$ac_cv_path_FGREP"; then
5356
 
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5357
 
  fi
5358
 
else
5359
 
  ac_cv_path_FGREP=$FGREP
5360
 
fi
5361
 
 
5362
 
   fi
5363
 
fi
5364
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5365
 
$as_echo "$ac_cv_path_FGREP" >&6; }
5366
 
 FGREP="$ac_cv_path_FGREP"
5367
 
 
5368
 
 
5369
 
test -z "$GREP" && GREP=grep
5370
 
 
5371
 
 
5372
 
 
5373
 
 
5374
 
 
5375
 
 
5376
 
 
5377
 
 
5378
 
 
5379
 
 
5380
 
 
5381
 
 
5382
 
 
5383
 
 
5384
 
 
5385
 
 
5386
 
 
5387
 
 
5388
 
 
5389
 
# Check whether --with-gnu-ld was given.
5390
 
if test "${with_gnu_ld+set}" = set; then :
5391
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5392
 
else
5393
 
  with_gnu_ld=no
5394
 
fi
5395
 
 
5396
 
ac_prog=ld
5397
 
if test "$GCC" = yes; then
5398
 
  # Check if gcc -print-prog-name=ld gives a path.
5399
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5400
 
$as_echo_n "checking for ld used by $CC... " >&6; }
5401
 
  case $host in
5402
 
  *-*-mingw*)
5403
 
    # gcc leaves a trailing carriage return which upsets mingw
5404
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5405
 
  *)
5406
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5407
 
  esac
5408
 
  case $ac_prog in
5409
 
    # Accept absolute paths.
5410
 
    [\\/]* | ?:[\\/]*)
5411
 
      re_direlt='/[^/][^/]*/\.\./'
5412
 
      # Canonicalize the pathname of ld
5413
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5414
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5415
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5416
 
      done
5417
 
      test -z "$LD" && LD="$ac_prog"
5418
 
      ;;
5419
 
  "")
5420
 
    # If it fails, then pretend we aren't using GCC.
5421
 
    ac_prog=ld
5422
 
    ;;
5423
 
  *)
5424
 
    # If it is relative, then search for the first ld in PATH.
5425
 
    with_gnu_ld=unknown
5426
 
    ;;
5427
 
  esac
5428
 
elif test "$with_gnu_ld" = yes; then
5429
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5430
 
$as_echo_n "checking for GNU ld... " >&6; }
5431
 
else
5432
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5433
 
$as_echo_n "checking for non-GNU ld... " >&6; }
5434
 
fi
5435
 
if test "${lt_cv_path_LD+set}" = set; then :
5436
 
  $as_echo_n "(cached) " >&6
5437
 
else
5438
 
  if test -z "$LD"; then
5439
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5440
 
  for ac_dir in $PATH; do
5441
 
    IFS="$lt_save_ifs"
5442
 
    test -z "$ac_dir" && ac_dir=.
5443
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5444
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
5445
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
5446
 
      # but apparently some variants of GNU ld only accept -v.
5447
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
5448
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5449
 
      *GNU* | *'with BFD'*)
5450
 
        test "$with_gnu_ld" != no && break
5451
 
        ;;
5452
 
      *)
5453
 
        test "$with_gnu_ld" != yes && break
5454
 
        ;;
5455
 
      esac
5456
 
    fi
5457
 
  done
5458
 
  IFS="$lt_save_ifs"
5459
 
else
5460
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5461
 
fi
5462
 
fi
5463
 
 
5464
 
LD="$lt_cv_path_LD"
5465
 
if test -n "$LD"; then
5466
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5467
 
$as_echo "$LD" >&6; }
5468
 
else
5469
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470
 
$as_echo "no" >&6; }
5471
 
fi
5472
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5473
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5474
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5475
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5476
 
  $as_echo_n "(cached) " >&6
5477
 
else
5478
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5479
 
case `$LD -v 2>&1 </dev/null` in
5480
 
*GNU* | *'with BFD'*)
5481
 
  lt_cv_prog_gnu_ld=yes
5482
 
  ;;
5483
 
*)
5484
 
  lt_cv_prog_gnu_ld=no
5485
 
  ;;
5486
 
esac
5487
 
fi
5488
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5489
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5490
 
with_gnu_ld=$lt_cv_prog_gnu_ld
5491
 
 
5492
 
 
5493
 
 
5494
 
 
5495
 
 
5496
 
 
5497
 
 
5498
 
 
5499
 
 
5500
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5501
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5502
 
if test "${lt_cv_path_NM+set}" = set; then :
5503
 
  $as_echo_n "(cached) " >&6
5504
 
else
5505
 
  if test -n "$NM"; then
5506
 
  # Let the user override the test.
5507
 
  lt_cv_path_NM="$NM"
5508
 
else
5509
 
  lt_nm_to_check="${ac_tool_prefix}nm"
5510
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5511
 
    lt_nm_to_check="$lt_nm_to_check nm"
5512
 
  fi
5513
 
  for lt_tmp_nm in $lt_nm_to_check; do
5514
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5515
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5516
 
      IFS="$lt_save_ifs"
5517
 
      test -z "$ac_dir" && ac_dir=.
5518
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
5519
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5520
 
        # Check to see if the nm accepts a BSD-compat flag.
5521
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5522
 
        #   nm: unknown option "B" ignored
5523
 
        # Tru64's nm complains that /dev/null is an invalid object file
5524
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5525
 
        */dev/null* | *'Invalid file or object type'*)
5526
 
          lt_cv_path_NM="$tmp_nm -B"
5527
 
          break
5528
 
          ;;
5529
 
        *)
5530
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5531
 
          */dev/null*)
5532
 
            lt_cv_path_NM="$tmp_nm -p"
5533
 
            break
5534
 
            ;;
5535
 
          *)
5536
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5537
 
            continue # so that we can try to find one that supports BSD flags
5538
 
            ;;
5539
 
          esac
5540
 
          ;;
5541
 
        esac
5542
 
      fi
5543
 
    done
5544
 
    IFS="$lt_save_ifs"
5545
 
  done
5546
 
  : ${lt_cv_path_NM=no}
5547
 
fi
5548
 
fi
5549
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5550
 
$as_echo "$lt_cv_path_NM" >&6; }
5551
 
if test "$lt_cv_path_NM" != "no"; then
5552
 
  NM="$lt_cv_path_NM"
5553
 
else
5554
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
5555
 
  if test -n "$ac_tool_prefix"; then
5556
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5557
 
  do
5558
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561
 
$as_echo_n "checking for $ac_word... " >&6; }
5562
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5563
 
  $as_echo_n "(cached) " >&6
5564
 
else
5565
 
  if test -n "$DUMPBIN"; then
5566
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5567
 
else
5568
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569
 
for as_dir in $PATH
5570
 
do
5571
 
  IFS=$as_save_IFS
5572
 
  test -z "$as_dir" && as_dir=.
5573
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5574
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5576
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577
 
    break 2
5578
 
  fi
5579
 
done
5580
 
  done
5581
 
IFS=$as_save_IFS
5582
 
 
5583
 
fi
5584
 
fi
5585
 
DUMPBIN=$ac_cv_prog_DUMPBIN
5586
 
if test -n "$DUMPBIN"; then
5587
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5588
 
$as_echo "$DUMPBIN" >&6; }
5589
 
else
5590
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591
 
$as_echo "no" >&6; }
5592
 
fi
5593
 
 
5594
 
 
5595
 
    test -n "$DUMPBIN" && break
5596
 
  done
5597
 
fi
5598
 
if test -z "$DUMPBIN"; then
5599
 
  ac_ct_DUMPBIN=$DUMPBIN
5600
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5601
 
do
5602
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5603
 
set dummy $ac_prog; ac_word=$2
5604
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605
 
$as_echo_n "checking for $ac_word... " >&6; }
5606
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5607
 
  $as_echo_n "(cached) " >&6
5608
 
else
5609
 
  if test -n "$ac_ct_DUMPBIN"; then
5610
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5611
 
else
5612
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613
 
for as_dir in $PATH
5614
 
do
5615
 
  IFS=$as_save_IFS
5616
 
  test -z "$as_dir" && as_dir=.
5617
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5618
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5620
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621
 
    break 2
5622
 
  fi
5623
 
done
5624
 
  done
5625
 
IFS=$as_save_IFS
5626
 
 
5627
 
fi
5628
 
fi
5629
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5630
 
if test -n "$ac_ct_DUMPBIN"; then
5631
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5632
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
5633
 
else
5634
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635
 
$as_echo "no" >&6; }
5636
 
fi
5637
 
 
5638
 
 
5639
 
  test -n "$ac_ct_DUMPBIN" && break
5640
 
done
5641
 
 
5642
 
  if test "x$ac_ct_DUMPBIN" = x; then
5643
 
    DUMPBIN=":"
5644
 
  else
5645
 
    case $cross_compiling:$ac_tool_warned in
5646
 
yes:)
5647
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649
 
ac_tool_warned=yes ;;
5650
 
esac
5651
 
    DUMPBIN=$ac_ct_DUMPBIN
5652
 
  fi
5653
 
fi
5654
 
 
5655
 
 
5656
 
  if test "$DUMPBIN" != ":"; then
5657
 
    NM="$DUMPBIN"
5658
 
  fi
5659
 
fi
5660
 
test -z "$NM" && NM=nm
5661
 
 
5662
 
 
5663
 
 
5664
 
 
5665
 
 
5666
 
 
5667
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5668
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5669
 
if test "${lt_cv_nm_interface+set}" = set; then :
5670
 
  $as_echo_n "(cached) " >&6
5671
 
else
5672
 
  lt_cv_nm_interface="BSD nm"
5673
 
  echo "int some_variable = 0;" > conftest.$ac_ext
5674
 
  (eval echo "\"\$as_me:5674: $ac_compile\"" >&5)
5675
 
  (eval "$ac_compile" 2>conftest.err)
5676
 
  cat conftest.err >&5
5677
 
  (eval echo "\"\$as_me:5677: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5678
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5679
 
  cat conftest.err >&5
5680
 
  (eval echo "\"\$as_me:5680: output\"" >&5)
5681
 
  cat conftest.out >&5
5682
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5683
 
    lt_cv_nm_interface="MS dumpbin"
5684
 
  fi
5685
 
  rm -f conftest*
5686
 
fi
5687
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5688
 
$as_echo "$lt_cv_nm_interface" >&6; }
5689
 
 
5690
 
# find the maximum length of command line arguments
5691
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5692
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5693
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5694
 
  $as_echo_n "(cached) " >&6
5695
 
else
5696
 
    i=0
5697
 
  teststring="ABCD"
5698
 
 
5699
 
  case $build_os in
5700
 
  msdosdjgpp*)
5701
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5702
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5703
 
    # during glob expansion).  Even if it were fixed, the result of this
5704
 
    # check would be larger than it should be.
5705
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5706
 
    ;;
5707
 
 
5708
 
  gnu*)
5709
 
    # Under GNU Hurd, this test is not required because there is
5710
 
    # no limit to the length of command line arguments.
5711
 
    # Libtool will interpret -1 as no limit whatsoever
5712
 
    lt_cv_sys_max_cmd_len=-1;
5713
 
    ;;
5714
 
 
5715
 
  cygwin* | mingw* | cegcc*)
5716
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5717
 
    # about 5 minutes as the teststring grows exponentially.
5718
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5719
 
    # you end up with a "frozen" computer, even though with patience
5720
 
    # the test eventually succeeds (with a max line length of 256k).
5721
 
    # Instead, let's just punt: use the minimum linelength reported by
5722
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5723
 
    lt_cv_sys_max_cmd_len=8192;
5724
 
    ;;
5725
 
 
5726
 
  amigaos*)
5727
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5728
 
    # So we just punt and use a minimum line length of 8192.
5729
 
    lt_cv_sys_max_cmd_len=8192;
5730
 
    ;;
5731
 
 
5732
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5733
 
    # This has been around since 386BSD, at least.  Likely further.
5734
 
    if test -x /sbin/sysctl; then
5735
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5736
 
    elif test -x /usr/sbin/sysctl; then
5737
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5738
 
    else
5739
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5740
 
    fi
5741
 
    # And add a safety zone
5742
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5743
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5744
 
    ;;
5745
 
 
5746
 
  interix*)
5747
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5748
 
    lt_cv_sys_max_cmd_len=196608
5749
 
    ;;
5750
 
 
5751
 
  osf*)
5752
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5753
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5754
 
    # nice to cause kernel panics so lets avoid the loop below.
5755
 
    # First set a reasonable default.
5756
 
    lt_cv_sys_max_cmd_len=16384
5757
 
    #
5758
 
    if test -x /sbin/sysconfig; then
5759
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5760
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5761
 
      esac
5762
 
    fi
5763
 
    ;;
5764
 
  sco3.2v5*)
5765
 
    lt_cv_sys_max_cmd_len=102400
5766
 
    ;;
5767
 
  sysv5* | sco5v6* | sysv4.2uw2*)
5768
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5769
 
    if test -n "$kargmax"; then
5770
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5771
 
    else
5772
 
      lt_cv_sys_max_cmd_len=32768
5773
 
    fi
5774
 
    ;;
5775
 
  *)
5776
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5777
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
5778
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5779
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5780
 
    else
5781
 
      # Make teststring a little bigger before we do anything with it.
5782
 
      # a 1K string should be a reasonable start.
5783
 
      for i in 1 2 3 4 5 6 7 8 ; do
5784
 
        teststring=$teststring$teststring
5785
 
      done
5786
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5787
 
      # If test is not a shell built-in, we'll probably end up computing a
5788
 
      # maximum length that is only half of the actual maximum length, but
5789
 
      # we can't tell.
5790
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5791
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5792
 
              test $i != 17 # 1/2 MB should be enough
5793
 
      do
5794
 
        i=`expr $i + 1`
5795
 
        teststring=$teststring$teststring
5796
 
      done
5797
 
      # Only check the string length outside the loop.
5798
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5799
 
      teststring=
5800
 
      # Add a significant safety factor because C++ compilers can tack on
5801
 
      # massive amounts of additional arguments before passing them to the
5802
 
      # linker.  It appears as though 1/2 is a usable value.
5803
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5804
 
    fi
5805
 
    ;;
5806
 
  esac
5807
 
 
5808
 
fi
5809
 
 
5810
 
if test -n $lt_cv_sys_max_cmd_len ; then
5811
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5812
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5813
 
else
5814
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5815
 
$as_echo "none" >&6; }
5816
 
fi
5817
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5818
 
 
5819
 
 
5820
 
 
5821
 
 
5822
 
 
5823
 
 
5824
 
: ${CP="cp -f"}
5825
 
: ${MV="mv -f"}
5826
 
: ${RM="rm -f"}
5827
 
 
5828
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5829
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5830
 
# Try some XSI features
5831
 
xsi_shell=no
5832
 
( _lt_dummy="a/b/c"
5833
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5834
 
      = c,a/b,, \
5835
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
5836
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5837
 
  && xsi_shell=yes
5838
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5839
 
$as_echo "$xsi_shell" >&6; }
5840
 
 
5841
 
 
5842
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5843
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5844
 
lt_shell_append=no
5845
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5846
 
    >/dev/null 2>&1 \
5847
 
  && lt_shell_append=yes
5848
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5849
 
$as_echo "$lt_shell_append" >&6; }
5850
 
 
5851
 
 
5852
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5853
 
  lt_unset=unset
5854
 
else
5855
 
  lt_unset=false
5856
 
fi
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
# test EBCDIC or ASCII
5863
 
case `echo X|tr X '\101'` in
5864
 
 A) # ASCII based system
5865
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5866
 
  lt_SP2NL='tr \040 \012'
5867
 
  lt_NL2SP='tr \015\012 \040\040'
5868
 
  ;;
5869
 
 *) # EBCDIC based system
5870
 
  lt_SP2NL='tr \100 \n'
5871
 
  lt_NL2SP='tr \r\n \100\100'
5872
 
  ;;
5873
 
esac
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
 
 
5883
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5884
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5885
 
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5886
 
  $as_echo_n "(cached) " >&6
5887
 
else
5888
 
  lt_cv_ld_reload_flag='-r'
5889
 
fi
5890
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5891
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5892
 
reload_flag=$lt_cv_ld_reload_flag
5893
 
case $reload_flag in
5894
 
"" | " "*) ;;
5895
 
*) reload_flag=" $reload_flag" ;;
5896
 
esac
5897
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5898
 
case $host_os in
5899
 
  darwin*)
5900
 
    if test "$GCC" = yes; then
5901
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5902
 
    else
5903
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5904
 
    fi
5905
 
    ;;
5906
 
esac
5907
 
 
5908
 
 
5909
 
 
5910
 
 
5911
 
 
5912
 
 
5913
 
 
5914
 
 
5915
 
 
5916
 
if test -n "$ac_tool_prefix"; then
5917
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5918
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5919
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920
 
$as_echo_n "checking for $ac_word... " >&6; }
5921
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5922
 
  $as_echo_n "(cached) " >&6
5923
 
else
5924
 
  if test -n "$OBJDUMP"; then
5925
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5926
 
else
5927
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928
 
for as_dir in $PATH
5929
 
do
5930
 
  IFS=$as_save_IFS
5931
 
  test -z "$as_dir" && as_dir=.
5932
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5933
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5935
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936
 
    break 2
5937
 
  fi
5938
 
done
5939
 
  done
5940
 
IFS=$as_save_IFS
5941
 
 
5942
 
fi
5943
 
fi
5944
 
OBJDUMP=$ac_cv_prog_OBJDUMP
5945
 
if test -n "$OBJDUMP"; then
5946
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5947
 
$as_echo "$OBJDUMP" >&6; }
5948
 
else
5949
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950
 
$as_echo "no" >&6; }
5951
 
fi
5952
 
 
5953
 
 
5954
 
fi
5955
 
if test -z "$ac_cv_prog_OBJDUMP"; then
5956
 
  ac_ct_OBJDUMP=$OBJDUMP
5957
 
  # Extract the first word of "objdump", so it can be a program name with args.
5958
 
set dummy objdump; ac_word=$2
5959
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960
 
$as_echo_n "checking for $ac_word... " >&6; }
5961
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5962
 
  $as_echo_n "(cached) " >&6
5963
 
else
5964
 
  if test -n "$ac_ct_OBJDUMP"; then
5965
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5966
 
else
5967
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968
 
for as_dir in $PATH
5969
 
do
5970
 
  IFS=$as_save_IFS
5971
 
  test -z "$as_dir" && as_dir=.
5972
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5973
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5975
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976
 
    break 2
5977
 
  fi
5978
 
done
5979
 
  done
5980
 
IFS=$as_save_IFS
5981
 
 
5982
 
fi
5983
 
fi
5984
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5985
 
if test -n "$ac_ct_OBJDUMP"; then
5986
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5987
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
5988
 
else
5989
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990
 
$as_echo "no" >&6; }
5991
 
fi
5992
 
 
5993
 
  if test "x$ac_ct_OBJDUMP" = x; then
5994
 
    OBJDUMP="false"
5995
 
  else
5996
 
    case $cross_compiling:$ac_tool_warned in
5997
 
yes:)
5998
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000
 
ac_tool_warned=yes ;;
6001
 
esac
6002
 
    OBJDUMP=$ac_ct_OBJDUMP
6003
 
  fi
6004
 
else
6005
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6006
 
fi
6007
 
 
6008
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6009
 
 
6010
 
 
6011
 
 
6012
 
 
6013
 
 
6014
 
 
6015
 
 
6016
 
 
6017
 
 
6018
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6019
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6020
 
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6021
 
  $as_echo_n "(cached) " >&6
6022
 
else
6023
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6024
 
lt_cv_file_magic_test_file=
6025
 
lt_cv_deplibs_check_method='unknown'
6026
 
# Need to set the preceding variable on all platforms that support
6027
 
# interlibrary dependencies.
6028
 
# 'none' -- dependencies not supported.
6029
 
# `unknown' -- same as none, but documents that we really don't know.
6030
 
# 'pass_all' -- all dependencies passed with no checks.
6031
 
# 'test_compile' -- check by making test program.
6032
 
# 'file_magic [[regex]]' -- check by looking for files in library path
6033
 
# which responds to the $file_magic_cmd with a given extended regex.
6034
 
# If you have `file' or equivalent on your system and you're not sure
6035
 
# whether `pass_all' will *always* work, you probably want this one.
6036
 
 
6037
 
case $host_os in
6038
 
aix[4-9]*)
6039
 
  lt_cv_deplibs_check_method=pass_all
6040
 
  ;;
6041
 
 
6042
 
beos*)
6043
 
  lt_cv_deplibs_check_method=pass_all
6044
 
  ;;
6045
 
 
6046
 
bsdi[45]*)
6047
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6048
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6049
 
  lt_cv_file_magic_test_file=/shlib/libc.so
6050
 
  ;;
6051
 
 
6052
 
cygwin*)
6053
 
  # func_win32_libid is a shell function defined in ltmain.sh
6054
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6055
 
  lt_cv_file_magic_cmd='func_win32_libid'
6056
 
  ;;
6057
 
 
6058
 
mingw* | pw32*)
6059
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
6060
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6061
 
  # unless we find 'file', for example because we are cross-compiling.
6062
 
  if ( file / ) >/dev/null 2>&1; then
6063
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6064
 
    lt_cv_file_magic_cmd='func_win32_libid'
6065
 
  else
6066
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6067
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6068
 
  fi
6069
 
  ;;
6070
 
 
6071
 
cegcc)
6072
 
  # use the weaker test based on 'objdump'. See mingw*.
6073
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6074
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6075
 
  ;;
6076
 
 
6077
 
darwin* | rhapsody*)
6078
 
  lt_cv_deplibs_check_method=pass_all
6079
 
  ;;
6080
 
 
6081
 
freebsd* | dragonfly*)
6082
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6083
 
    case $host_cpu in
6084
 
    i*86 )
6085
 
      # Not sure whether the presence of OpenBSD here was a mistake.
6086
 
      # Let's accept both of them until this is cleared up.
6087
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6088
 
      lt_cv_file_magic_cmd=/usr/bin/file
6089
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6090
 
      ;;
6091
 
    esac
6092
 
  else
6093
 
    lt_cv_deplibs_check_method=pass_all
6094
 
  fi
6095
 
  ;;
6096
 
 
6097
 
gnu*)
6098
 
  lt_cv_deplibs_check_method=pass_all
6099
 
  ;;
6100
 
 
6101
 
hpux10.20* | hpux11*)
6102
 
  lt_cv_file_magic_cmd=/usr/bin/file
6103
 
  case $host_cpu in
6104
 
  ia64*)
6105
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6106
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6107
 
    ;;
6108
 
  hppa*64*)
6109
 
    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]'
6110
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6111
 
    ;;
6112
 
  *)
6113
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6114
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6115
 
    ;;
6116
 
  esac
6117
 
  ;;
6118
 
 
6119
 
interix[3-9]*)
6120
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6121
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6122
 
  ;;
6123
 
 
6124
 
irix5* | irix6* | nonstopux*)
6125
 
  case $LD in
6126
 
  *-32|*"-32 ") libmagic=32-bit;;
6127
 
  *-n32|*"-n32 ") libmagic=N32;;
6128
 
  *-64|*"-64 ") libmagic=64-bit;;
6129
 
  *) libmagic=never-match;;
6130
 
  esac
6131
 
  lt_cv_deplibs_check_method=pass_all
6132
 
  ;;
6133
 
 
6134
 
# This must be Linux ELF.
6135
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6136
 
  lt_cv_deplibs_check_method=pass_all
6137
 
  ;;
6138
 
 
6139
 
netbsd* | netbsdelf*-gnu)
6140
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6141
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6142
 
  else
6143
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6144
 
  fi
6145
 
  ;;
6146
 
 
6147
 
newos6*)
6148
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6149
 
  lt_cv_file_magic_cmd=/usr/bin/file
6150
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6151
 
  ;;
6152
 
 
6153
 
*nto* | *qnx*)
6154
 
  lt_cv_deplibs_check_method=pass_all
6155
 
  ;;
6156
 
 
6157
 
openbsd*)
6158
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6159
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6160
 
  else
6161
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6162
 
  fi
6163
 
  ;;
6164
 
 
6165
 
osf3* | osf4* | osf5*)
6166
 
  lt_cv_deplibs_check_method=pass_all
6167
 
  ;;
6168
 
 
6169
 
rdos*)
6170
 
  lt_cv_deplibs_check_method=pass_all
6171
 
  ;;
6172
 
 
6173
 
solaris*)
6174
 
  lt_cv_deplibs_check_method=pass_all
6175
 
  ;;
6176
 
 
6177
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6178
 
  lt_cv_deplibs_check_method=pass_all
6179
 
  ;;
6180
 
 
6181
 
sysv4 | sysv4.3*)
6182
 
  case $host_vendor in
6183
 
  motorola)
6184
 
    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]'
6185
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6186
 
    ;;
6187
 
  ncr)
6188
 
    lt_cv_deplibs_check_method=pass_all
6189
 
    ;;
6190
 
  sequent)
6191
 
    lt_cv_file_magic_cmd='/bin/file'
6192
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6193
 
    ;;
6194
 
  sni)
6195
 
    lt_cv_file_magic_cmd='/bin/file'
6196
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6197
 
    lt_cv_file_magic_test_file=/lib/libc.so
6198
 
    ;;
6199
 
  siemens)
6200
 
    lt_cv_deplibs_check_method=pass_all
6201
 
    ;;
6202
 
  pc)
6203
 
    lt_cv_deplibs_check_method=pass_all
6204
 
    ;;
6205
 
  esac
6206
 
  ;;
6207
 
 
6208
 
tpf*)
6209
 
  lt_cv_deplibs_check_method=pass_all
6210
 
  ;;
6211
 
esac
6212
 
 
6213
 
fi
6214
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6215
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6216
 
file_magic_cmd=$lt_cv_file_magic_cmd
6217
 
deplibs_check_method=$lt_cv_deplibs_check_method
6218
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6219
 
 
6220
 
 
6221
 
 
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
 
if test -n "$ac_tool_prefix"; then
6232
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6233
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6234
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235
 
$as_echo_n "checking for $ac_word... " >&6; }
6236
 
if test "${ac_cv_prog_AR+set}" = set; then :
6237
 
  $as_echo_n "(cached) " >&6
6238
 
else
6239
 
  if test -n "$AR"; then
6240
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6241
 
else
6242
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243
 
for as_dir in $PATH
6244
 
do
6245
 
  IFS=$as_save_IFS
6246
 
  test -z "$as_dir" && as_dir=.
6247
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6248
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6250
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251
 
    break 2
6252
 
  fi
6253
 
done
6254
 
  done
6255
 
IFS=$as_save_IFS
6256
 
 
6257
 
fi
6258
 
fi
6259
 
AR=$ac_cv_prog_AR
6260
 
if test -n "$AR"; then
6261
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6262
 
$as_echo "$AR" >&6; }
6263
 
else
6264
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265
 
$as_echo "no" >&6; }
6266
 
fi
6267
 
 
6268
 
 
6269
 
fi
6270
 
if test -z "$ac_cv_prog_AR"; then
6271
 
  ac_ct_AR=$AR
6272
 
  # Extract the first word of "ar", so it can be a program name with args.
6273
 
set dummy ar; ac_word=$2
6274
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275
 
$as_echo_n "checking for $ac_word... " >&6; }
6276
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6277
 
  $as_echo_n "(cached) " >&6
6278
 
else
6279
 
  if test -n "$ac_ct_AR"; then
6280
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6281
 
else
6282
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283
 
for as_dir in $PATH
6284
 
do
6285
 
  IFS=$as_save_IFS
6286
 
  test -z "$as_dir" && as_dir=.
6287
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6288
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289
 
    ac_cv_prog_ac_ct_AR="ar"
6290
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291
 
    break 2
6292
 
  fi
6293
 
done
6294
 
  done
6295
 
IFS=$as_save_IFS
6296
 
 
6297
 
fi
6298
 
fi
6299
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6300
 
if test -n "$ac_ct_AR"; then
6301
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6302
 
$as_echo "$ac_ct_AR" >&6; }
6303
 
else
6304
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305
 
$as_echo "no" >&6; }
6306
 
fi
6307
 
 
6308
 
  if test "x$ac_ct_AR" = x; then
6309
 
    AR="false"
6310
 
  else
6311
 
    case $cross_compiling:$ac_tool_warned in
6312
 
yes:)
6313
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315
 
ac_tool_warned=yes ;;
6316
 
esac
6317
 
    AR=$ac_ct_AR
6318
 
  fi
6319
 
else
6320
 
  AR="$ac_cv_prog_AR"
6321
 
fi
6322
 
 
6323
 
test -z "$AR" && AR=ar
6324
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6325
 
 
6326
 
 
6327
 
 
6328
 
 
6329
 
 
6330
 
 
6331
 
 
6332
 
 
6333
 
 
6334
 
 
6335
 
 
6336
 
if test -n "$ac_tool_prefix"; then
6337
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6338
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6339
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340
 
$as_echo_n "checking for $ac_word... " >&6; }
6341
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
6342
 
  $as_echo_n "(cached) " >&6
6343
 
else
6344
 
  if test -n "$STRIP"; then
6345
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6346
 
else
6347
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348
 
for as_dir in $PATH
6349
 
do
6350
 
  IFS=$as_save_IFS
6351
 
  test -z "$as_dir" && as_dir=.
6352
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6353
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6355
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356
 
    break 2
6357
 
  fi
6358
 
done
6359
 
  done
6360
 
IFS=$as_save_IFS
6361
 
 
6362
 
fi
6363
 
fi
6364
 
STRIP=$ac_cv_prog_STRIP
6365
 
if test -n "$STRIP"; then
6366
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6367
 
$as_echo "$STRIP" >&6; }
6368
 
else
6369
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370
 
$as_echo "no" >&6; }
6371
 
fi
6372
 
 
6373
 
 
6374
 
fi
6375
 
if test -z "$ac_cv_prog_STRIP"; then
6376
 
  ac_ct_STRIP=$STRIP
6377
 
  # Extract the first word of "strip", so it can be a program name with args.
6378
 
set dummy strip; ac_word=$2
6379
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380
 
$as_echo_n "checking for $ac_word... " >&6; }
6381
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6382
 
  $as_echo_n "(cached) " >&6
6383
 
else
6384
 
  if test -n "$ac_ct_STRIP"; then
6385
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6386
 
else
6387
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388
 
for as_dir in $PATH
6389
 
do
6390
 
  IFS=$as_save_IFS
6391
 
  test -z "$as_dir" && as_dir=.
6392
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6393
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394
 
    ac_cv_prog_ac_ct_STRIP="strip"
6395
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396
 
    break 2
6397
 
  fi
6398
 
done
6399
 
  done
6400
 
IFS=$as_save_IFS
6401
 
 
6402
 
fi
6403
 
fi
6404
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6405
 
if test -n "$ac_ct_STRIP"; then
6406
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6407
 
$as_echo "$ac_ct_STRIP" >&6; }
6408
 
else
6409
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410
 
$as_echo "no" >&6; }
6411
 
fi
6412
 
 
6413
 
  if test "x$ac_ct_STRIP" = x; then
6414
 
    STRIP=":"
6415
 
  else
6416
 
    case $cross_compiling:$ac_tool_warned in
6417
 
yes:)
6418
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420
 
ac_tool_warned=yes ;;
6421
 
esac
6422
 
    STRIP=$ac_ct_STRIP
6423
 
  fi
6424
 
else
6425
 
  STRIP="$ac_cv_prog_STRIP"
6426
 
fi
6427
 
 
6428
 
test -z "$STRIP" && STRIP=:
6429
 
 
6430
 
 
6431
 
 
6432
 
 
6433
 
 
6434
 
 
6435
 
if test -n "$ac_tool_prefix"; then
6436
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6437
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6438
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439
 
$as_echo_n "checking for $ac_word... " >&6; }
6440
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6441
 
  $as_echo_n "(cached) " >&6
6442
 
else
6443
 
  if test -n "$RANLIB"; then
6444
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6445
 
else
6446
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447
 
for as_dir in $PATH
6448
 
do
6449
 
  IFS=$as_save_IFS
6450
 
  test -z "$as_dir" && as_dir=.
6451
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6452
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6454
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455
 
    break 2
6456
 
  fi
6457
 
done
6458
 
  done
6459
 
IFS=$as_save_IFS
6460
 
 
6461
 
fi
6462
 
fi
6463
 
RANLIB=$ac_cv_prog_RANLIB
6464
 
if test -n "$RANLIB"; then
6465
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6466
 
$as_echo "$RANLIB" >&6; }
6467
 
else
6468
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469
 
$as_echo "no" >&6; }
6470
 
fi
6471
 
 
6472
 
 
6473
 
fi
6474
 
if test -z "$ac_cv_prog_RANLIB"; then
6475
 
  ac_ct_RANLIB=$RANLIB
6476
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6477
 
set dummy ranlib; ac_word=$2
6478
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479
 
$as_echo_n "checking for $ac_word... " >&6; }
6480
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6481
 
  $as_echo_n "(cached) " >&6
6482
 
else
6483
 
  if test -n "$ac_ct_RANLIB"; then
6484
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6485
 
else
6486
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487
 
for as_dir in $PATH
6488
 
do
6489
 
  IFS=$as_save_IFS
6490
 
  test -z "$as_dir" && as_dir=.
6491
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6492
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6494
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495
 
    break 2
6496
 
  fi
6497
 
done
6498
 
  done
6499
 
IFS=$as_save_IFS
6500
 
 
6501
 
fi
6502
 
fi
6503
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6504
 
if test -n "$ac_ct_RANLIB"; then
6505
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6506
 
$as_echo "$ac_ct_RANLIB" >&6; }
6507
 
else
6508
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509
 
$as_echo "no" >&6; }
6510
 
fi
6511
 
 
6512
 
  if test "x$ac_ct_RANLIB" = x; then
6513
 
    RANLIB=":"
6514
 
  else
6515
 
    case $cross_compiling:$ac_tool_warned in
6516
 
yes:)
6517
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519
 
ac_tool_warned=yes ;;
6520
 
esac
6521
 
    RANLIB=$ac_ct_RANLIB
6522
 
  fi
6523
 
else
6524
 
  RANLIB="$ac_cv_prog_RANLIB"
6525
 
fi
6526
 
 
6527
 
test -z "$RANLIB" && RANLIB=:
6528
 
 
6529
 
 
6530
 
 
6531
 
 
6532
 
 
6533
 
 
6534
 
# Determine commands to create old-style static archives.
6535
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6536
 
old_postinstall_cmds='chmod 644 $oldlib'
6537
 
old_postuninstall_cmds=
6538
 
 
6539
 
if test -n "$RANLIB"; then
6540
 
  case $host_os in
6541
 
  openbsd*)
6542
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6543
 
    ;;
6544
 
  *)
6545
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6546
 
    ;;
6547
 
  esac
6548
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6549
 
fi
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
 
 
6556
 
 
6557
 
 
6558
 
 
6559
 
 
6560
 
 
6561
 
 
6562
 
 
6563
 
 
6564
 
 
6565
 
 
6566
 
 
6567
 
 
6568
 
 
6569
 
 
6570
 
 
6571
 
 
6572
 
 
6573
 
 
6574
 
 
6575
 
 
6576
 
 
6577
 
 
6578
 
 
6579
 
 
6580
 
 
6581
 
 
6582
 
 
6583
 
 
6584
 
# If no C compiler was specified, use CC.
6585
 
LTCC=${LTCC-"$CC"}
6586
 
 
6587
 
# If no C compiler flags were specified, use CFLAGS.
6588
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6589
 
 
6590
 
# Allow CC to be a program name with arguments.
6591
 
compiler=$CC
6592
 
 
6593
 
 
6594
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6595
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6596
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6597
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6598
 
  $as_echo_n "(cached) " >&6
6599
 
else
6600
 
 
6601
 
# These are sane defaults that work on at least a few old systems.
6602
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6603
 
 
6604
 
# Character class describing NM global symbol codes.
6605
 
symcode='[BCDEGRST]'
6606
 
 
6607
 
# Regexp to match symbols that can be accessed directly from C.
6608
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6609
 
 
6610
 
# Define system-specific variables.
6611
 
case $host_os in
6612
 
aix*)
6613
 
  symcode='[BCDT]'
6614
 
  ;;
6615
 
cygwin* | mingw* | pw32* | cegcc*)
6616
 
  symcode='[ABCDGISTW]'
6617
 
  ;;
6618
 
hpux*)
6619
 
  if test "$host_cpu" = ia64; then
6620
 
    symcode='[ABCDEGRST]'
6621
 
  fi
6622
 
  ;;
6623
 
irix* | nonstopux*)
6624
 
  symcode='[BCDEGRST]'
6625
 
  ;;
6626
 
osf*)
6627
 
  symcode='[BCDEGQRST]'
6628
 
  ;;
6629
 
solaris*)
6630
 
  symcode='[BDRT]'
6631
 
  ;;
6632
 
sco3.2v5*)
6633
 
  symcode='[DT]'
6634
 
  ;;
6635
 
sysv4.2uw2*)
6636
 
  symcode='[DT]'
6637
 
  ;;
6638
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6639
 
  symcode='[ABDT]'
6640
 
  ;;
6641
 
sysv4)
6642
 
  symcode='[DFNSTU]'
6643
 
  ;;
6644
 
esac
6645
 
 
6646
 
# If we're using GNU nm, then use its standard symbol codes.
6647
 
case `$NM -V 2>&1` in
6648
 
*GNU* | *'with BFD'*)
6649
 
  symcode='[ABCDGIRSTW]' ;;
6650
 
esac
6651
 
 
6652
 
# Transform an extracted symbol line into a proper C declaration.
6653
 
# Some systems (esp. on ia64) link data and code symbols differently,
6654
 
# so use this general approach.
6655
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6656
 
 
6657
 
# Transform an extracted symbol line into symbol name and symbol address
6658
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6659
 
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'"
6660
 
 
6661
 
# Handle CRLF in mingw tool chain
6662
 
opt_cr=
6663
 
case $build_os in
6664
 
mingw*)
6665
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6666
 
  ;;
6667
 
esac
6668
 
 
6669
 
# Try without a prefix underscore, then with it.
6670
 
for ac_symprfx in "" "_"; do
6671
 
 
6672
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6673
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6674
 
 
6675
 
  # Write the raw and C identifiers.
6676
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6677
 
    # Fake it for dumpbin and say T for any non-static function
6678
 
    # and D for any global variable.
6679
 
    # Also find C++ and __fastcall symbols from MSVC++,
6680
 
    # which start with @ or ?.
6681
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6682
 
"     {last_section=section; section=\$ 3};"\
6683
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6684
 
"     \$ 0!~/External *\|/{next};"\
6685
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6686
 
"     {if(hide[section]) next};"\
6687
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6688
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6689
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6690
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6691
 
"     ' prfx=^$ac_symprfx"
6692
 
  else
6693
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6694
 
  fi
6695
 
 
6696
 
  # Check to see that the pipe works correctly.
6697
 
  pipe_works=no
6698
 
 
6699
 
  rm -f conftest*
6700
 
  cat > conftest.$ac_ext <<_LT_EOF
6701
 
#ifdef __cplusplus
6702
 
extern "C" {
6703
 
#endif
6704
 
char nm_test_var;
6705
 
void nm_test_func(void);
6706
 
void nm_test_func(void){}
6707
 
#ifdef __cplusplus
6708
 
}
6709
 
#endif
6710
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6711
 
_LT_EOF
6712
 
 
6713
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6714
 
  (eval $ac_compile) 2>&5
6715
 
  ac_status=$?
6716
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717
 
  test $ac_status = 0; }; then
6718
 
    # Now try to grab the symbols.
6719
 
    nlist=conftest.nm
6720
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6721
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6722
 
  ac_status=$?
6723
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724
 
  test $ac_status = 0; } && test -s "$nlist"; then
6725
 
      # Try sorting and uniquifying the output.
6726
 
      if sort "$nlist" | uniq > "$nlist"T; then
6727
 
        mv -f "$nlist"T "$nlist"
6728
 
      else
6729
 
        rm -f "$nlist"T
6730
 
      fi
6731
 
 
6732
 
      # Make sure that we snagged all the symbols we need.
6733
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6734
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6735
 
          cat <<_LT_EOF > conftest.$ac_ext
6736
 
#ifdef __cplusplus
6737
 
extern "C" {
6738
 
#endif
6739
 
 
6740
 
_LT_EOF
6741
 
          # Now generate the symbol file.
6742
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6743
 
 
6744
 
          cat <<_LT_EOF >> conftest.$ac_ext
6745
 
 
6746
 
/* The mapping between symbol names and symbols.  */
6747
 
const struct {
6748
 
  const char *name;
6749
 
  void       *address;
6750
 
}
6751
 
lt__PROGRAM__LTX_preloaded_symbols[] =
6752
 
{
6753
 
  { "@PROGRAM@", (void *) 0 },
6754
 
_LT_EOF
6755
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6756
 
          cat <<\_LT_EOF >> conftest.$ac_ext
6757
 
  {0, (void *) 0}
6758
 
};
6759
 
 
6760
 
/* This works around a problem in FreeBSD linker */
6761
 
#ifdef FREEBSD_WORKAROUND
6762
 
static const void *lt_preloaded_setup() {
6763
 
  return lt__PROGRAM__LTX_preloaded_symbols;
6764
 
}
6765
 
#endif
6766
 
 
6767
 
#ifdef __cplusplus
6768
 
}
6769
 
#endif
6770
 
_LT_EOF
6771
 
          # Now try linking the two files.
6772
 
          mv conftest.$ac_objext conftstm.$ac_objext
6773
 
          lt_save_LIBS="$LIBS"
6774
 
          lt_save_CFLAGS="$CFLAGS"
6775
 
          LIBS="conftstm.$ac_objext"
6776
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6777
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6778
 
  (eval $ac_link) 2>&5
6779
 
  ac_status=$?
6780
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6782
 
            pipe_works=yes
6783
 
          fi
6784
 
          LIBS="$lt_save_LIBS"
6785
 
          CFLAGS="$lt_save_CFLAGS"
6786
 
        else
6787
 
          echo "cannot find nm_test_func in $nlist" >&5
6788
 
        fi
6789
 
      else
6790
 
        echo "cannot find nm_test_var in $nlist" >&5
6791
 
      fi
6792
 
    else
6793
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6794
 
    fi
6795
 
  else
6796
 
    echo "$progname: failed program was:" >&5
6797
 
    cat conftest.$ac_ext >&5
6798
 
  fi
6799
 
  rm -rf conftest* conftst*
6800
 
 
6801
 
  # Do not use the global_symbol_pipe unless it works.
6802
 
  if test "$pipe_works" = yes; then
6803
 
    break
6804
 
  else
6805
 
    lt_cv_sys_global_symbol_pipe=
6806
 
  fi
6807
 
done
6808
 
 
6809
 
fi
6810
 
 
6811
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6812
 
  lt_cv_sys_global_symbol_to_cdecl=
6813
 
fi
6814
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6815
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6816
 
$as_echo "failed" >&6; }
6817
 
else
6818
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6819
 
$as_echo "ok" >&6; }
6820
 
fi
6821
 
 
6822
 
 
6823
 
 
6824
 
 
6825
 
 
6826
 
 
6827
 
 
6828
 
 
6829
 
 
6830
 
 
6831
 
 
6832
 
 
6833
 
 
6834
 
 
6835
 
 
6836
 
 
6837
 
 
6838
 
 
6839
 
 
6840
 
 
6841
 
 
6842
 
 
6843
 
 
6844
 
# Check whether --enable-libtool-lock was given.
6845
 
if test "${enable_libtool_lock+set}" = set; then :
6846
 
  enableval=$enable_libtool_lock;
6847
 
fi
6848
 
 
6849
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6850
 
 
6851
 
# Some flags need to be propagated to the compiler or linker for good
6852
 
# libtool support.
6853
 
case $host in
6854
 
ia64-*-hpux*)
6855
 
  # Find out which ABI we are using.
6856
 
  echo 'int i;' > conftest.$ac_ext
6857
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6858
 
  (eval $ac_compile) 2>&5
6859
 
  ac_status=$?
6860
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861
 
  test $ac_status = 0; }; then
6862
 
    case `/usr/bin/file conftest.$ac_objext` in
6863
 
      *ELF-32*)
6864
 
        HPUX_IA64_MODE="32"
6865
 
        ;;
6866
 
      *ELF-64*)
6867
 
        HPUX_IA64_MODE="64"
6868
 
        ;;
6869
 
    esac
6870
 
  fi
6871
 
  rm -rf conftest*
6872
 
  ;;
6873
 
*-*-irix6*)
6874
 
  # Find out which ABI we are using.
6875
 
  echo '#line 6875 "configure"' > conftest.$ac_ext
6876
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6877
 
  (eval $ac_compile) 2>&5
6878
 
  ac_status=$?
6879
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880
 
  test $ac_status = 0; }; then
6881
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
6882
 
      case `/usr/bin/file conftest.$ac_objext` in
6883
 
        *32-bit*)
6884
 
          LD="${LD-ld} -melf32bsmip"
6885
 
          ;;
6886
 
        *N32*)
6887
 
          LD="${LD-ld} -melf32bmipn32"
6888
 
          ;;
6889
 
        *64-bit*)
6890
 
          LD="${LD-ld} -melf64bmip"
6891
 
        ;;
6892
 
      esac
6893
 
    else
6894
 
      case `/usr/bin/file conftest.$ac_objext` in
6895
 
        *32-bit*)
6896
 
          LD="${LD-ld} -32"
6897
 
          ;;
6898
 
        *N32*)
6899
 
          LD="${LD-ld} -n32"
6900
 
          ;;
6901
 
        *64-bit*)
6902
 
          LD="${LD-ld} -64"
6903
 
          ;;
6904
 
      esac
6905
 
    fi
6906
 
  fi
6907
 
  rm -rf conftest*
6908
 
  ;;
6909
 
 
6910
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6911
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6912
 
  # Find out which ABI we are using.
6913
 
  echo 'int i;' > conftest.$ac_ext
6914
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6915
 
  (eval $ac_compile) 2>&5
6916
 
  ac_status=$?
6917
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918
 
  test $ac_status = 0; }; then
6919
 
    case `/usr/bin/file conftest.o` in
6920
 
      *32-bit*)
6921
 
        case $host in
6922
 
          x86_64-*kfreebsd*-gnu)
6923
 
            LD="${LD-ld} -m elf_i386_fbsd"
6924
 
            ;;
6925
 
          x86_64-*linux*)
6926
 
            LD="${LD-ld} -m elf_i386"
6927
 
            ;;
6928
 
          ppc64-*linux*|powerpc64-*linux*)
6929
 
            LD="${LD-ld} -m elf32ppclinux"
6930
 
            ;;
6931
 
          s390x-*linux*)
6932
 
            LD="${LD-ld} -m elf_s390"
6933
 
            ;;
6934
 
          sparc64-*linux*)
6935
 
            LD="${LD-ld} -m elf32_sparc"
6936
 
            ;;
6937
 
        esac
6938
 
        ;;
6939
 
      *64-bit*)
6940
 
        case $host in
6941
 
          x86_64-*kfreebsd*-gnu)
6942
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
6943
 
            ;;
6944
 
          x86_64-*linux*)
6945
 
            LD="${LD-ld} -m elf_x86_64"
6946
 
            ;;
6947
 
          ppc*-*linux*|powerpc*-*linux*)
6948
 
            LD="${LD-ld} -m elf64ppc"
6949
 
            ;;
6950
 
          s390*-*linux*|s390*-*tpf*)
6951
 
            LD="${LD-ld} -m elf64_s390"
6952
 
            ;;
6953
 
          sparc*-*linux*)
6954
 
            LD="${LD-ld} -m elf64_sparc"
6955
 
            ;;
6956
 
        esac
6957
 
        ;;
6958
 
    esac
6959
 
  fi
6960
 
  rm -rf conftest*
6961
 
  ;;
6962
 
 
6963
 
*-*-sco3.2v5*)
6964
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6965
 
  SAVE_CFLAGS="$CFLAGS"
6966
 
  CFLAGS="$CFLAGS -belf"
6967
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6968
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6969
 
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6970
 
  $as_echo_n "(cached) " >&6
6971
 
else
6972
 
  ac_ext=c
6973
 
ac_cpp='$CPP $CPPFLAGS'
6974
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
 
 
6978
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979
 
/* end confdefs.h.  */
6980
 
 
6981
 
int
6982
 
main ()
6983
 
{
6984
 
 
6985
 
  ;
6986
 
  return 0;
6987
 
}
6988
 
_ACEOF
6989
 
if ac_fn_c_try_link "$LINENO"; then :
6990
 
  lt_cv_cc_needs_belf=yes
6991
 
else
6992
 
  lt_cv_cc_needs_belf=no
6993
 
fi
6994
 
rm -f core conftest.err conftest.$ac_objext \
6995
 
    conftest$ac_exeext conftest.$ac_ext
6996
 
     ac_ext=c
6997
 
ac_cpp='$CPP $CPPFLAGS'
6998
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001
 
 
7002
 
fi
7003
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7004
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7005
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7006
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7007
 
    CFLAGS="$SAVE_CFLAGS"
7008
 
  fi
7009
 
  ;;
7010
 
sparc*-*solaris*)
7011
 
  # Find out which ABI we are using.
7012
 
  echo 'int i;' > conftest.$ac_ext
7013
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7014
 
  (eval $ac_compile) 2>&5
7015
 
  ac_status=$?
7016
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7017
 
  test $ac_status = 0; }; then
7018
 
    case `/usr/bin/file conftest.o` in
7019
 
    *64-bit*)
7020
 
      case $lt_cv_prog_gnu_ld in
7021
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7022
 
      *)
7023
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7024
 
          LD="${LD-ld} -64"
7025
 
        fi
7026
 
        ;;
7027
 
      esac
7028
 
      ;;
7029
 
    esac
7030
 
  fi
7031
 
  rm -rf conftest*
7032
 
  ;;
7033
 
esac
7034
 
 
7035
 
need_locks="$enable_libtool_lock"
7036
 
 
7037
 
 
7038
 
  case $host_os in
7039
 
    rhapsody* | darwin*)
7040
 
    if test -n "$ac_tool_prefix"; then
7041
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7042
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7043
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044
 
$as_echo_n "checking for $ac_word... " >&6; }
7045
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7046
 
  $as_echo_n "(cached) " >&6
7047
 
else
7048
 
  if test -n "$DSYMUTIL"; then
7049
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7050
 
else
7051
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052
 
for as_dir in $PATH
7053
 
do
7054
 
  IFS=$as_save_IFS
7055
 
  test -z "$as_dir" && as_dir=.
7056
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7057
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7059
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060
 
    break 2
7061
 
  fi
7062
 
done
7063
 
  done
7064
 
IFS=$as_save_IFS
7065
 
 
7066
 
fi
7067
 
fi
7068
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7069
 
if test -n "$DSYMUTIL"; then
7070
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7071
 
$as_echo "$DSYMUTIL" >&6; }
7072
 
else
7073
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074
 
$as_echo "no" >&6; }
7075
 
fi
7076
 
 
7077
 
 
7078
 
fi
7079
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
7080
 
  ac_ct_DSYMUTIL=$DSYMUTIL
7081
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
7082
 
set dummy dsymutil; ac_word=$2
7083
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084
 
$as_echo_n "checking for $ac_word... " >&6; }
7085
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7086
 
  $as_echo_n "(cached) " >&6
7087
 
else
7088
 
  if test -n "$ac_ct_DSYMUTIL"; then
7089
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7090
 
else
7091
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092
 
for as_dir in $PATH
7093
 
do
7094
 
  IFS=$as_save_IFS
7095
 
  test -z "$as_dir" && as_dir=.
7096
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7097
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7099
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100
 
    break 2
7101
 
  fi
7102
 
done
7103
 
  done
7104
 
IFS=$as_save_IFS
7105
 
 
7106
 
fi
7107
 
fi
7108
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7109
 
if test -n "$ac_ct_DSYMUTIL"; then
7110
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7111
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7112
 
else
7113
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114
 
$as_echo "no" >&6; }
7115
 
fi
7116
 
 
7117
 
  if test "x$ac_ct_DSYMUTIL" = x; then
7118
 
    DSYMUTIL=":"
7119
 
  else
7120
 
    case $cross_compiling:$ac_tool_warned in
7121
 
yes:)
7122
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124
 
ac_tool_warned=yes ;;
7125
 
esac
7126
 
    DSYMUTIL=$ac_ct_DSYMUTIL
7127
 
  fi
7128
 
else
7129
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7130
 
fi
7131
 
 
7132
 
    if test -n "$ac_tool_prefix"; then
7133
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7134
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7135
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136
 
$as_echo_n "checking for $ac_word... " >&6; }
7137
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7138
 
  $as_echo_n "(cached) " >&6
7139
 
else
7140
 
  if test -n "$NMEDIT"; then
7141
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7142
 
else
7143
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144
 
for as_dir in $PATH
7145
 
do
7146
 
  IFS=$as_save_IFS
7147
 
  test -z "$as_dir" && as_dir=.
7148
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7149
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7151
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152
 
    break 2
7153
 
  fi
7154
 
done
7155
 
  done
7156
 
IFS=$as_save_IFS
7157
 
 
7158
 
fi
7159
 
fi
7160
 
NMEDIT=$ac_cv_prog_NMEDIT
7161
 
if test -n "$NMEDIT"; then
7162
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7163
 
$as_echo "$NMEDIT" >&6; }
7164
 
else
7165
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166
 
$as_echo "no" >&6; }
7167
 
fi
7168
 
 
7169
 
 
7170
 
fi
7171
 
if test -z "$ac_cv_prog_NMEDIT"; then
7172
 
  ac_ct_NMEDIT=$NMEDIT
7173
 
  # Extract the first word of "nmedit", so it can be a program name with args.
7174
 
set dummy nmedit; ac_word=$2
7175
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176
 
$as_echo_n "checking for $ac_word... " >&6; }
7177
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7178
 
  $as_echo_n "(cached) " >&6
7179
 
else
7180
 
  if test -n "$ac_ct_NMEDIT"; then
7181
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7182
 
else
7183
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184
 
for as_dir in $PATH
7185
 
do
7186
 
  IFS=$as_save_IFS
7187
 
  test -z "$as_dir" && as_dir=.
7188
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7189
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7191
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192
 
    break 2
7193
 
  fi
7194
 
done
7195
 
  done
7196
 
IFS=$as_save_IFS
7197
 
 
7198
 
fi
7199
 
fi
7200
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7201
 
if test -n "$ac_ct_NMEDIT"; then
7202
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7203
 
$as_echo "$ac_ct_NMEDIT" >&6; }
7204
 
else
7205
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206
 
$as_echo "no" >&6; }
7207
 
fi
7208
 
 
7209
 
  if test "x$ac_ct_NMEDIT" = x; then
7210
 
    NMEDIT=":"
7211
 
  else
7212
 
    case $cross_compiling:$ac_tool_warned in
7213
 
yes:)
7214
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216
 
ac_tool_warned=yes ;;
7217
 
esac
7218
 
    NMEDIT=$ac_ct_NMEDIT
7219
 
  fi
7220
 
else
7221
 
  NMEDIT="$ac_cv_prog_NMEDIT"
7222
 
fi
7223
 
 
7224
 
    if test -n "$ac_tool_prefix"; then
7225
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7226
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7227
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228
 
$as_echo_n "checking for $ac_word... " >&6; }
7229
 
if test "${ac_cv_prog_LIPO+set}" = set; then :
7230
 
  $as_echo_n "(cached) " >&6
7231
 
else
7232
 
  if test -n "$LIPO"; then
7233
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7234
 
else
7235
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236
 
for as_dir in $PATH
7237
 
do
7238
 
  IFS=$as_save_IFS
7239
 
  test -z "$as_dir" && as_dir=.
7240
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7241
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7243
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244
 
    break 2
7245
 
  fi
7246
 
done
7247
 
  done
7248
 
IFS=$as_save_IFS
7249
 
 
7250
 
fi
7251
 
fi
7252
 
LIPO=$ac_cv_prog_LIPO
7253
 
if test -n "$LIPO"; then
7254
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7255
 
$as_echo "$LIPO" >&6; }
7256
 
else
7257
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258
 
$as_echo "no" >&6; }
7259
 
fi
7260
 
 
7261
 
 
7262
 
fi
7263
 
if test -z "$ac_cv_prog_LIPO"; then
7264
 
  ac_ct_LIPO=$LIPO
7265
 
  # Extract the first word of "lipo", so it can be a program name with args.
7266
 
set dummy lipo; ac_word=$2
7267
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268
 
$as_echo_n "checking for $ac_word... " >&6; }
7269
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7270
 
  $as_echo_n "(cached) " >&6
7271
 
else
7272
 
  if test -n "$ac_ct_LIPO"; then
7273
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7274
 
else
7275
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276
 
for as_dir in $PATH
7277
 
do
7278
 
  IFS=$as_save_IFS
7279
 
  test -z "$as_dir" && as_dir=.
7280
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7281
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282
 
    ac_cv_prog_ac_ct_LIPO="lipo"
7283
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284
 
    break 2
7285
 
  fi
7286
 
done
7287
 
  done
7288
 
IFS=$as_save_IFS
7289
 
 
7290
 
fi
7291
 
fi
7292
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7293
 
if test -n "$ac_ct_LIPO"; then
7294
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7295
 
$as_echo "$ac_ct_LIPO" >&6; }
7296
 
else
7297
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298
 
$as_echo "no" >&6; }
7299
 
fi
7300
 
 
7301
 
  if test "x$ac_ct_LIPO" = x; then
7302
 
    LIPO=":"
7303
 
  else
7304
 
    case $cross_compiling:$ac_tool_warned in
7305
 
yes:)
7306
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308
 
ac_tool_warned=yes ;;
7309
 
esac
7310
 
    LIPO=$ac_ct_LIPO
7311
 
  fi
7312
 
else
7313
 
  LIPO="$ac_cv_prog_LIPO"
7314
 
fi
7315
 
 
7316
 
    if test -n "$ac_tool_prefix"; then
7317
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7318
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
7319
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320
 
$as_echo_n "checking for $ac_word... " >&6; }
7321
 
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7322
 
  $as_echo_n "(cached) " >&6
7323
 
else
7324
 
  if test -n "$OTOOL"; then
7325
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7326
 
else
7327
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328
 
for as_dir in $PATH
7329
 
do
7330
 
  IFS=$as_save_IFS
7331
 
  test -z "$as_dir" && as_dir=.
7332
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7333
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7335
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336
 
    break 2
7337
 
  fi
7338
 
done
7339
 
  done
7340
 
IFS=$as_save_IFS
7341
 
 
7342
 
fi
7343
 
fi
7344
 
OTOOL=$ac_cv_prog_OTOOL
7345
 
if test -n "$OTOOL"; then
7346
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7347
 
$as_echo "$OTOOL" >&6; }
7348
 
else
7349
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350
 
$as_echo "no" >&6; }
7351
 
fi
7352
 
 
7353
 
 
7354
 
fi
7355
 
if test -z "$ac_cv_prog_OTOOL"; then
7356
 
  ac_ct_OTOOL=$OTOOL
7357
 
  # Extract the first word of "otool", so it can be a program name with args.
7358
 
set dummy otool; ac_word=$2
7359
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360
 
$as_echo_n "checking for $ac_word... " >&6; }
7361
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7362
 
  $as_echo_n "(cached) " >&6
7363
 
else
7364
 
  if test -n "$ac_ct_OTOOL"; then
7365
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7366
 
else
7367
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368
 
for as_dir in $PATH
7369
 
do
7370
 
  IFS=$as_save_IFS
7371
 
  test -z "$as_dir" && as_dir=.
7372
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7373
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374
 
    ac_cv_prog_ac_ct_OTOOL="otool"
7375
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376
 
    break 2
7377
 
  fi
7378
 
done
7379
 
  done
7380
 
IFS=$as_save_IFS
7381
 
 
7382
 
fi
7383
 
fi
7384
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7385
 
if test -n "$ac_ct_OTOOL"; then
7386
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7387
 
$as_echo "$ac_ct_OTOOL" >&6; }
7388
 
else
7389
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390
 
$as_echo "no" >&6; }
7391
 
fi
7392
 
 
7393
 
  if test "x$ac_ct_OTOOL" = x; then
7394
 
    OTOOL=":"
7395
 
  else
7396
 
    case $cross_compiling:$ac_tool_warned in
7397
 
yes:)
7398
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7399
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400
 
ac_tool_warned=yes ;;
7401
 
esac
7402
 
    OTOOL=$ac_ct_OTOOL
7403
 
  fi
7404
 
else
7405
 
  OTOOL="$ac_cv_prog_OTOOL"
7406
 
fi
7407
 
 
7408
 
    if test -n "$ac_tool_prefix"; then
7409
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7410
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7411
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412
 
$as_echo_n "checking for $ac_word... " >&6; }
7413
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7414
 
  $as_echo_n "(cached) " >&6
7415
 
else
7416
 
  if test -n "$OTOOL64"; then
7417
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7418
 
else
7419
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420
 
for as_dir in $PATH
7421
 
do
7422
 
  IFS=$as_save_IFS
7423
 
  test -z "$as_dir" && as_dir=.
7424
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7425
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7427
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428
 
    break 2
7429
 
  fi
7430
 
done
7431
 
  done
7432
 
IFS=$as_save_IFS
7433
 
 
7434
 
fi
7435
 
fi
7436
 
OTOOL64=$ac_cv_prog_OTOOL64
7437
 
if test -n "$OTOOL64"; then
7438
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7439
 
$as_echo "$OTOOL64" >&6; }
7440
 
else
7441
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442
 
$as_echo "no" >&6; }
7443
 
fi
7444
 
 
7445
 
 
7446
 
fi
7447
 
if test -z "$ac_cv_prog_OTOOL64"; then
7448
 
  ac_ct_OTOOL64=$OTOOL64
7449
 
  # Extract the first word of "otool64", so it can be a program name with args.
7450
 
set dummy otool64; ac_word=$2
7451
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452
 
$as_echo_n "checking for $ac_word... " >&6; }
7453
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7454
 
  $as_echo_n "(cached) " >&6
7455
 
else
7456
 
  if test -n "$ac_ct_OTOOL64"; then
7457
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7458
 
else
7459
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460
 
for as_dir in $PATH
7461
 
do
7462
 
  IFS=$as_save_IFS
7463
 
  test -z "$as_dir" && as_dir=.
7464
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7465
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7467
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468
 
    break 2
7469
 
  fi
7470
 
done
7471
 
  done
7472
 
IFS=$as_save_IFS
7473
 
 
7474
 
fi
7475
 
fi
7476
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7477
 
if test -n "$ac_ct_OTOOL64"; then
7478
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7479
 
$as_echo "$ac_ct_OTOOL64" >&6; }
7480
 
else
7481
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482
 
$as_echo "no" >&6; }
7483
 
fi
7484
 
 
7485
 
  if test "x$ac_ct_OTOOL64" = x; then
7486
 
    OTOOL64=":"
7487
 
  else
7488
 
    case $cross_compiling:$ac_tool_warned in
7489
 
yes:)
7490
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492
 
ac_tool_warned=yes ;;
7493
 
esac
7494
 
    OTOOL64=$ac_ct_OTOOL64
7495
 
  fi
7496
 
else
7497
 
  OTOOL64="$ac_cv_prog_OTOOL64"
7498
 
fi
7499
 
 
7500
 
 
7501
 
 
7502
 
 
7503
 
 
7504
 
 
7505
 
 
7506
 
 
7507
 
 
7508
 
 
7509
 
 
7510
 
 
7511
 
 
7512
 
 
7513
 
 
7514
 
 
7515
 
 
7516
 
 
7517
 
 
7518
 
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
 
 
7525
 
 
7526
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7527
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
7528
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7529
 
  $as_echo_n "(cached) " >&6
7530
 
else
7531
 
  lt_cv_apple_cc_single_mod=no
7532
 
      if test -z "${LT_MULTI_MODULE}"; then
7533
 
        # By default we will add the -single_module flag. You can override
7534
 
        # by either setting the environment variable LT_MULTI_MODULE
7535
 
        # non-empty at configure time, or by adding -multi_module to the
7536
 
        # link flags.
7537
 
        rm -rf libconftest.dylib*
7538
 
        echo "int foo(void){return 1;}" > conftest.c
7539
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7540
 
-dynamiclib -Wl,-single_module conftest.c" >&5
7541
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7542
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7543
 
        _lt_result=$?
7544
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7545
 
          lt_cv_apple_cc_single_mod=yes
7546
 
        else
7547
 
          cat conftest.err >&5
7548
 
        fi
7549
 
        rm -rf libconftest.dylib*
7550
 
        rm -f conftest.*
7551
 
      fi
7552
 
fi
7553
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7554
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7555
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7556
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7557
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7558
 
  $as_echo_n "(cached) " >&6
7559
 
else
7560
 
  lt_cv_ld_exported_symbols_list=no
7561
 
      save_LDFLAGS=$LDFLAGS
7562
 
      echo "_main" > conftest.sym
7563
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7564
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565
 
/* end confdefs.h.  */
7566
 
 
7567
 
int
7568
 
main ()
7569
 
{
7570
 
 
7571
 
  ;
7572
 
  return 0;
7573
 
}
7574
 
_ACEOF
7575
 
if ac_fn_c_try_link "$LINENO"; then :
7576
 
  lt_cv_ld_exported_symbols_list=yes
7577
 
else
7578
 
  lt_cv_ld_exported_symbols_list=no
7579
 
fi
7580
 
rm -f core conftest.err conftest.$ac_objext \
7581
 
    conftest$ac_exeext conftest.$ac_ext
7582
 
        LDFLAGS="$save_LDFLAGS"
7583
 
 
7584
 
fi
7585
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7586
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7587
 
    case $host_os in
7588
 
    rhapsody* | darwin1.[012])
7589
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7590
 
    darwin1.*)
7591
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7592
 
    darwin*) # darwin 5.x on
7593
 
      # if running on 10.5 or later, the deployment target defaults
7594
 
      # to the OS version, if on x86, and 10.4, the deployment
7595
 
      # target defaults to 10.4. Don't you love it?
7596
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7597
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7598
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7599
 
        10.[012]*)
7600
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7601
 
        10.*)
7602
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7603
 
      esac
7604
 
    ;;
7605
 
  esac
7606
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7607
 
      _lt_dar_single_mod='$single_module'
7608
 
    fi
7609
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7610
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7611
 
    else
7612
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7613
 
    fi
7614
 
    if test "$DSYMUTIL" != ":"; then
7615
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7616
 
    else
7617
 
      _lt_dsymutil=
7618
 
    fi
7619
 
    ;;
7620
 
  esac
7621
 
 
7622
 
 
7623
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7624
 
$as_echo_n "checking for ANSI C header files... " >&6; }
7625
 
if test "${ac_cv_header_stdc+set}" = set; then :
7626
 
  $as_echo_n "(cached) " >&6
7627
 
else
7628
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629
 
/* end confdefs.h.  */
7630
 
#include <stdlib.h>
7631
 
#include <stdarg.h>
7632
 
#include <string.h>
7633
 
#include <float.h>
7634
 
 
7635
 
int
7636
 
main ()
7637
 
{
7638
 
 
7639
 
  ;
7640
 
  return 0;
7641
 
}
7642
 
_ACEOF
7643
 
if ac_fn_c_try_compile "$LINENO"; then :
7644
 
  ac_cv_header_stdc=yes
7645
 
else
7646
 
  ac_cv_header_stdc=no
7647
 
fi
7648
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649
 
 
7650
 
if test $ac_cv_header_stdc = yes; then
7651
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7652
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653
 
/* end confdefs.h.  */
7654
 
#include <string.h>
7655
 
 
7656
 
_ACEOF
7657
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7658
 
  $EGREP "memchr" >/dev/null 2>&1; then :
7659
 
 
7660
 
else
7661
 
  ac_cv_header_stdc=no
7662
 
fi
7663
 
rm -f conftest*
7664
 
 
7665
 
fi
7666
 
 
7667
 
if test $ac_cv_header_stdc = yes; then
7668
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7669
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670
 
/* end confdefs.h.  */
7671
 
#include <stdlib.h>
7672
 
 
7673
 
_ACEOF
7674
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675
 
  $EGREP "free" >/dev/null 2>&1; then :
7676
 
 
7677
 
else
7678
 
  ac_cv_header_stdc=no
7679
 
fi
7680
 
rm -f conftest*
7681
 
 
7682
 
fi
7683
 
 
7684
 
if test $ac_cv_header_stdc = yes; then
7685
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7686
 
  if test "$cross_compiling" = yes; then :
7687
 
  :
7688
 
else
7689
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690
 
/* end confdefs.h.  */
7691
 
#include <ctype.h>
7692
 
#include <stdlib.h>
7693
 
#if ((' ' & 0x0FF) == 0x020)
7694
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7695
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7696
 
#else
7697
 
# define ISLOWER(c) \
7698
 
                   (('a' <= (c) && (c) <= 'i') \
7699
 
                     || ('j' <= (c) && (c) <= 'r') \
7700
 
                     || ('s' <= (c) && (c) <= 'z'))
7701
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7702
 
#endif
7703
 
 
7704
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7705
 
int
7706
 
main ()
7707
 
{
7708
 
  int i;
7709
 
  for (i = 0; i < 256; i++)
7710
 
    if (XOR (islower (i), ISLOWER (i))
7711
 
        || toupper (i) != TOUPPER (i))
7712
 
      return 2;
7713
 
  return 0;
7714
 
}
7715
 
_ACEOF
7716
 
if ac_fn_c_try_run "$LINENO"; then :
7717
 
 
7718
 
else
7719
 
  ac_cv_header_stdc=no
7720
 
fi
7721
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7722
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7723
 
fi
7724
 
 
7725
 
fi
7726
 
fi
7727
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7728
 
$as_echo "$ac_cv_header_stdc" >&6; }
7729
 
if test $ac_cv_header_stdc = yes; then
7730
 
 
7731
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7732
 
 
7733
 
fi
7734
 
 
7735
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7736
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7737
 
                  inttypes.h stdint.h unistd.h
7738
 
do :
7739
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7740
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7741
 
"
7742
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7743
 
  cat >>confdefs.h <<_ACEOF
7744
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7745
 
_ACEOF
7746
 
 
7747
 
fi
7748
 
 
7749
 
done
7750
 
 
7751
 
 
7752
 
for ac_header in dlfcn.h
7753
 
do :
7754
 
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7755
 
"
7756
 
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7757
 
  cat >>confdefs.h <<_ACEOF
7758
 
#define HAVE_DLFCN_H 1
7759
 
_ACEOF
7760
 
 
7761
 
fi
7762
 
 
7763
 
done
7764
 
 
7765
 
 
7766
 
 
7767
 
ac_ext=cpp
7768
 
ac_cpp='$CXXCPP $CPPFLAGS'
7769
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7772
 
if test -z "$CXX"; then
7773
 
  if test -n "$CCC"; then
7774
 
    CXX=$CCC
7775
 
  else
7776
 
    if test -n "$ac_tool_prefix"; then
7777
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7778
 
  do
7779
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7780
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7781
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782
 
$as_echo_n "checking for $ac_word... " >&6; }
7783
 
if test "${ac_cv_prog_CXX+set}" = set; then :
7784
 
  $as_echo_n "(cached) " >&6
7785
 
else
7786
 
  if test -n "$CXX"; then
7787
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7788
 
else
7789
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790
 
for as_dir in $PATH
7791
 
do
7792
 
  IFS=$as_save_IFS
7793
 
  test -z "$as_dir" && as_dir=.
7794
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7795
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7797
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798
 
    break 2
7799
 
  fi
7800
 
done
7801
 
  done
7802
 
IFS=$as_save_IFS
7803
 
 
7804
 
fi
7805
 
fi
7806
 
CXX=$ac_cv_prog_CXX
7807
 
if test -n "$CXX"; then
7808
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7809
 
$as_echo "$CXX" >&6; }
7810
 
else
7811
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812
 
$as_echo "no" >&6; }
7813
 
fi
7814
 
 
7815
 
 
7816
 
    test -n "$CXX" && break
7817
 
  done
7818
 
fi
7819
 
if test -z "$CXX"; then
7820
 
  ac_ct_CXX=$CXX
7821
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7822
 
do
7823
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7824
 
set dummy $ac_prog; ac_word=$2
7825
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826
 
$as_echo_n "checking for $ac_word... " >&6; }
7827
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7828
 
  $as_echo_n "(cached) " >&6
7829
 
else
7830
 
  if test -n "$ac_ct_CXX"; then
7831
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7832
 
else
7833
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834
 
for as_dir in $PATH
7835
 
do
7836
 
  IFS=$as_save_IFS
7837
 
  test -z "$as_dir" && as_dir=.
7838
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7839
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
7841
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842
 
    break 2
7843
 
  fi
7844
 
done
7845
 
  done
7846
 
IFS=$as_save_IFS
7847
 
 
7848
 
fi
7849
 
fi
7850
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7851
 
if test -n "$ac_ct_CXX"; then
7852
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7853
 
$as_echo "$ac_ct_CXX" >&6; }
7854
 
else
7855
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856
 
$as_echo "no" >&6; }
7857
 
fi
7858
 
 
7859
 
 
7860
 
  test -n "$ac_ct_CXX" && break
7861
 
done
7862
 
 
7863
 
  if test "x$ac_ct_CXX" = x; then
7864
 
    CXX="g++"
7865
 
  else
7866
 
    case $cross_compiling:$ac_tool_warned in
7867
 
yes:)
7868
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870
 
ac_tool_warned=yes ;;
7871
 
esac
7872
 
    CXX=$ac_ct_CXX
7873
 
  fi
7874
 
fi
7875
 
 
7876
 
  fi
7877
 
fi
7878
 
# Provide some information about the compiler.
7879
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7880
 
set X $ac_compile
7881
 
ac_compiler=$2
7882
 
for ac_option in --version -v -V -qversion; do
7883
 
  { { ac_try="$ac_compiler $ac_option >&5"
7884
 
case "(($ac_try" in
7885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886
 
  *) ac_try_echo=$ac_try;;
7887
 
esac
7888
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7889
 
$as_echo "$ac_try_echo"; } >&5
7890
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7891
 
  ac_status=$?
7892
 
  if test -s conftest.err; then
7893
 
    sed '10a\
7894
 
... rest of stderr output deleted ...
7895
 
         10q' conftest.err >conftest.er1
7896
 
    cat conftest.er1 >&5
7897
 
  fi
7898
 
  rm -f conftest.er1 conftest.err
7899
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900
 
  test $ac_status = 0; }
7901
 
done
7902
 
 
7903
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7904
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7905
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7906
 
  $as_echo_n "(cached) " >&6
7907
 
else
7908
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909
 
/* end confdefs.h.  */
7910
 
 
7911
 
int
7912
 
main ()
7913
 
{
7914
 
#ifndef __GNUC__
7915
 
       choke me
7916
 
#endif
7917
 
 
7918
 
  ;
7919
 
  return 0;
7920
 
}
7921
 
_ACEOF
7922
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7923
 
  ac_compiler_gnu=yes
7924
 
else
7925
 
  ac_compiler_gnu=no
7926
 
fi
7927
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7929
 
 
7930
 
fi
7931
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7932
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7933
 
if test $ac_compiler_gnu = yes; then
7934
 
  GXX=yes
7935
 
else
7936
 
  GXX=
7937
 
fi
7938
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
7939
 
ac_save_CXXFLAGS=$CXXFLAGS
7940
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7941
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7942
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7943
 
  $as_echo_n "(cached) " >&6
7944
 
else
7945
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7946
 
   ac_cxx_werror_flag=yes
7947
 
   ac_cv_prog_cxx_g=no
7948
 
   CXXFLAGS="-g"
7949
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950
 
/* end confdefs.h.  */
7951
 
 
7952
 
int
7953
 
main ()
7954
 
{
7955
 
 
7956
 
  ;
7957
 
  return 0;
7958
 
}
7959
 
_ACEOF
7960
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7961
 
  ac_cv_prog_cxx_g=yes
7962
 
else
7963
 
  CXXFLAGS=""
7964
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965
 
/* end confdefs.h.  */
7966
 
 
7967
 
int
7968
 
main ()
7969
 
{
7970
 
 
7971
 
  ;
7972
 
  return 0;
7973
 
}
7974
 
_ACEOF
7975
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7976
 
 
7977
 
else
7978
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7979
 
         CXXFLAGS="-g"
7980
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981
 
/* end confdefs.h.  */
7982
 
 
7983
 
int
7984
 
main ()
7985
 
{
7986
 
 
7987
 
  ;
7988
 
  return 0;
7989
 
}
7990
 
_ACEOF
7991
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7992
 
  ac_cv_prog_cxx_g=yes
7993
 
fi
7994
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995
 
fi
7996
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997
 
fi
7998
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8000
 
fi
8001
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8002
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
8003
 
if test "$ac_test_CXXFLAGS" = set; then
8004
 
  CXXFLAGS=$ac_save_CXXFLAGS
8005
 
elif test $ac_cv_prog_cxx_g = yes; then
8006
 
  if test "$GXX" = yes; then
8007
 
    CXXFLAGS="-g -O2"
8008
 
  else
8009
 
    CXXFLAGS="-g"
8010
 
  fi
8011
 
else
8012
 
  if test "$GXX" = yes; then
8013
 
    CXXFLAGS="-O2"
8014
 
  else
8015
 
    CXXFLAGS=
8016
 
  fi
8017
 
fi
8018
 
ac_ext=c
8019
 
ac_cpp='$CPP $CPPFLAGS'
8020
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023
 
 
8024
 
depcc="$CXX"  am_compiler_list=
8025
 
 
8026
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8027
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
8028
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8029
 
  $as_echo_n "(cached) " >&6
8030
 
else
8031
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8032
 
  # We make a subdir and do the tests there.  Otherwise we can end up
8033
 
  # making bogus files that we don't know about and never remove.  For
8034
 
  # instance it was reported that on HP-UX the gcc test will end up
8035
 
  # making a dummy file named `D' -- because `-MD' means `put the output
8036
 
  # in D'.
8037
 
  mkdir conftest.dir
8038
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
8039
 
  # using a relative directory.
8040
 
  cp "$am_depcomp" conftest.dir
8041
 
  cd conftest.dir
8042
 
  # We will build objects and dependencies in a subdirectory because
8043
 
  # it helps to detect inapplicable dependency modes.  For instance
8044
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
8045
 
  # side effect of compilation, but ICC will put the dependencies in
8046
 
  # the current directory while Tru64 will put them in the object
8047
 
  # directory.
8048
 
  mkdir sub
8049
 
 
8050
 
  am_cv_CXX_dependencies_compiler_type=none
8051
 
  if test "$am_compiler_list" = ""; then
8052
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8053
 
  fi
8054
 
  am__universal=false
8055
 
  case " $depcc " in #(
8056
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8057
 
     esac
8058
 
 
8059
 
  for depmode in $am_compiler_list; do
8060
 
    # Setup a source with many dependencies, because some compilers
8061
 
    # like to wrap large dependency lists on column 80 (with \), and
8062
 
    # we should not choose a depcomp mode which is confused by this.
8063
 
    #
8064
 
    # We need to recreate these files for each test, as the compiler may
8065
 
    # overwrite some of them when testing with obscure command lines.
8066
 
    # This happens at least with the AIX C compiler.
8067
 
    : > sub/conftest.c
8068
 
    for i in 1 2 3 4 5 6; do
8069
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8070
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8071
 
      # Solaris 8's {/usr,}/bin/sh.
8072
 
      touch sub/conftst$i.h
8073
 
    done
8074
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8075
 
 
8076
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8077
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
8078
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
8079
 
    # versions had trouble with output in subdirs
8080
 
    am__obj=sub/conftest.${OBJEXT-o}
8081
 
    am__minus_obj="-o $am__obj"
8082
 
    case $depmode in
8083
 
    gcc)
8084
 
      # This depmode causes a compiler race in universal mode.
8085
 
      test "$am__universal" = false || continue
8086
 
      ;;
8087
 
    nosideeffect)
8088
 
      # after this tag, mechanisms are not by side-effect, so they'll
8089
 
      # only be used when explicitly requested
8090
 
      if test "x$enable_dependency_tracking" = xyes; then
8091
 
        continue
8092
 
      else
8093
 
        break
8094
 
      fi
8095
 
      ;;
8096
 
    msvisualcpp | msvcmsys)
8097
 
      # This compiler won't grok `-c -o', but also, the minuso test has
8098
 
      # not run yet.  These depmodes are late enough in the game, and
8099
 
      # so weak that their functioning should not be impacted.
8100
 
      am__obj=conftest.${OBJEXT-o}
8101
 
      am__minus_obj=
8102
 
      ;;
8103
 
    none) break ;;
8104
 
    esac
8105
 
    if depmode=$depmode \
8106
 
       source=sub/conftest.c object=$am__obj \
8107
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8108
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8109
 
         >/dev/null 2>conftest.err &&
8110
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8111
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8112
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8113
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8114
 
      # icc doesn't choke on unknown options, it will just issue warnings
8115
 
      # or remarks (even with -Werror).  So we grep stderr for any message
8116
 
      # that says an option was ignored or not supported.
8117
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
8118
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
8119
 
      # The diagnosis changed in icc 8.0:
8120
 
      #   icc: Command line remark: option '-MP' not supported
8121
 
      if (grep 'ignoring option' conftest.err ||
8122
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8123
 
        am_cv_CXX_dependencies_compiler_type=$depmode
8124
 
        break
8125
 
      fi
8126
 
    fi
8127
 
  done
8128
 
 
8129
 
  cd ..
8130
 
  rm -rf conftest.dir
8131
 
else
8132
 
  am_cv_CXX_dependencies_compiler_type=none
8133
 
fi
8134
 
 
8135
 
fi
8136
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8137
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8138
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8139
 
 
8140
 
 if
8141
 
  test "x$enable_dependency_tracking" != xno \
8142
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8143
 
  am__fastdepCXX_TRUE=
8144
 
  am__fastdepCXX_FALSE='#'
8145
 
else
8146
 
  am__fastdepCXX_TRUE='#'
8147
 
  am__fastdepCXX_FALSE=
8148
 
fi
8149
 
 
8150
 
 
8151
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8152
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8153
 
    (test "X$CXX" != "Xg++"))) ; then
8154
 
  ac_ext=cpp
8155
 
ac_cpp='$CXXCPP $CPPFLAGS'
8156
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8159
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8160
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8161
 
if test -z "$CXXCPP"; then
8162
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8163
 
  $as_echo_n "(cached) " >&6
8164
 
else
8165
 
      # Double quotes because CXXCPP needs to be expanded
8166
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
8167
 
    do
8168
 
      ac_preproc_ok=false
8169
 
for ac_cxx_preproc_warn_flag in '' yes
8170
 
do
8171
 
  # Use a header file that comes with gcc, so configuring glibc
8172
 
  # with a fresh cross-compiler works.
8173
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174
 
  # <limits.h> exists even on freestanding compilers.
8175
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
8176
 
  # not just through cpp. "Syntax error" is here to catch this case.
8177
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178
 
/* end confdefs.h.  */
8179
 
#ifdef __STDC__
8180
 
# include <limits.h>
8181
 
#else
8182
 
# include <assert.h>
8183
 
#endif
8184
 
                     Syntax error
8185
 
_ACEOF
8186
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8187
 
 
8188
 
else
8189
 
  # Broken: fails on valid input.
8190
 
continue
8191
 
fi
8192
 
rm -f conftest.err conftest.i conftest.$ac_ext
8193
 
 
8194
 
  # OK, works on sane cases.  Now check whether nonexistent headers
8195
 
  # can be detected and how.
8196
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197
 
/* end confdefs.h.  */
8198
 
#include <ac_nonexistent.h>
8199
 
_ACEOF
8200
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8201
 
  # Broken: success on invalid input.
8202
 
continue
8203
 
else
8204
 
  # Passes both tests.
8205
 
ac_preproc_ok=:
8206
 
break
8207
 
fi
8208
 
rm -f conftest.err conftest.i conftest.$ac_ext
8209
 
 
8210
 
done
8211
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8212
 
rm -f conftest.i conftest.err conftest.$ac_ext
8213
 
if $ac_preproc_ok; then :
8214
 
  break
8215
 
fi
8216
 
 
8217
 
    done
8218
 
    ac_cv_prog_CXXCPP=$CXXCPP
8219
 
 
8220
 
fi
8221
 
  CXXCPP=$ac_cv_prog_CXXCPP
8222
 
else
8223
 
  ac_cv_prog_CXXCPP=$CXXCPP
8224
 
fi
8225
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8226
 
$as_echo "$CXXCPP" >&6; }
8227
 
ac_preproc_ok=false
8228
 
for ac_cxx_preproc_warn_flag in '' yes
8229
 
do
8230
 
  # Use a header file that comes with gcc, so configuring glibc
8231
 
  # with a fresh cross-compiler works.
8232
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8233
 
  # <limits.h> exists even on freestanding compilers.
8234
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
8235
 
  # not just through cpp. "Syntax error" is here to catch this case.
8236
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237
 
/* end confdefs.h.  */
8238
 
#ifdef __STDC__
8239
 
# include <limits.h>
8240
 
#else
8241
 
# include <assert.h>
8242
 
#endif
8243
 
                     Syntax error
8244
 
_ACEOF
8245
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8246
 
 
8247
 
else
8248
 
  # Broken: fails on valid input.
8249
 
continue
8250
 
fi
8251
 
rm -f conftest.err conftest.i conftest.$ac_ext
8252
 
 
8253
 
  # OK, works on sane cases.  Now check whether nonexistent headers
8254
 
  # can be detected and how.
8255
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256
 
/* end confdefs.h.  */
8257
 
#include <ac_nonexistent.h>
8258
 
_ACEOF
8259
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8260
 
  # Broken: success on invalid input.
8261
 
continue
8262
 
else
8263
 
  # Passes both tests.
8264
 
ac_preproc_ok=:
8265
 
break
8266
 
fi
8267
 
rm -f conftest.err conftest.i conftest.$ac_ext
8268
 
 
8269
 
done
8270
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8271
 
rm -f conftest.i conftest.err conftest.$ac_ext
8272
 
if $ac_preproc_ok; then :
8273
 
 
8274
 
else
8275
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8276
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8277
 
_lt_caught_CXX_error=yes; }
8278
 
fi
8279
 
 
8280
 
ac_ext=c
8281
 
ac_cpp='$CPP $CPPFLAGS'
8282
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8285
 
 
8286
 
else
8287
 
  _lt_caught_CXX_error=yes
8288
 
fi
8289
 
 
8290
 
 
8291
 
 
8292
 
 
8293
 
 
8294
 
# Set options
8295
 
 
8296
 
 
8297
 
 
8298
 
        enable_dlopen=no
8299
 
 
8300
 
 
8301
 
  enable_win32_dll=no
8302
 
 
8303
 
 
8304
 
            # Check whether --enable-shared was given.
8305
 
if test "${enable_shared+set}" = set; then :
8306
 
  enableval=$enable_shared; p=${PACKAGE-default}
8307
 
    case $enableval in
8308
 
    yes) enable_shared=yes ;;
8309
 
    no) enable_shared=no ;;
8310
 
    *)
8311
 
      enable_shared=no
8312
 
      # Look at the argument we got.  We use all the common list separators.
8313
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8314
 
      for pkg in $enableval; do
8315
 
        IFS="$lt_save_ifs"
8316
 
        if test "X$pkg" = "X$p"; then
8317
 
          enable_shared=yes
8318
 
        fi
8319
 
      done
8320
 
      IFS="$lt_save_ifs"
8321
 
      ;;
8322
 
    esac
8323
 
else
8324
 
  enable_shared=yes
8325
 
fi
8326
 
 
8327
 
 
8328
 
 
8329
 
 
8330
 
 
8331
 
 
8332
 
 
8333
 
 
8334
 
 
8335
 
  # Check whether --enable-static was given.
8336
 
if test "${enable_static+set}" = set; then :
8337
 
  enableval=$enable_static; p=${PACKAGE-default}
8338
 
    case $enableval in
8339
 
    yes) enable_static=yes ;;
8340
 
    no) enable_static=no ;;
8341
 
    *)
8342
 
     enable_static=no
8343
 
      # Look at the argument we got.  We use all the common list separators.
8344
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345
 
      for pkg in $enableval; do
8346
 
        IFS="$lt_save_ifs"
8347
 
        if test "X$pkg" = "X$p"; then
8348
 
          enable_static=yes
8349
 
        fi
8350
 
      done
8351
 
      IFS="$lt_save_ifs"
8352
 
      ;;
8353
 
    esac
8354
 
else
8355
 
  enable_static=yes
8356
 
fi
8357
 
 
8358
 
 
8359
 
 
8360
 
 
8361
 
 
8362
 
 
8363
 
 
8364
 
 
8365
 
 
8366
 
 
8367
 
# Check whether --with-pic was given.
8368
 
if test "${with_pic+set}" = set; then :
8369
 
  withval=$with_pic; pic_mode="$withval"
8370
 
else
8371
 
  pic_mode=default
8372
 
fi
8373
 
 
8374
 
 
8375
 
test -z "$pic_mode" && pic_mode=default
8376
 
 
8377
 
 
8378
 
 
8379
 
 
8380
 
 
8381
 
 
8382
 
 
8383
 
  # Check whether --enable-fast-install was given.
8384
 
if test "${enable_fast_install+set}" = set; then :
8385
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
8386
 
    case $enableval in
8387
 
    yes) enable_fast_install=yes ;;
8388
 
    no) enable_fast_install=no ;;
8389
 
    *)
8390
 
      enable_fast_install=no
8391
 
      # Look at the argument we got.  We use all the common list separators.
8392
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8393
 
      for pkg in $enableval; do
8394
 
        IFS="$lt_save_ifs"
8395
 
        if test "X$pkg" = "X$p"; then
8396
 
          enable_fast_install=yes
8397
 
        fi
8398
 
      done
8399
 
      IFS="$lt_save_ifs"
8400
 
      ;;
8401
 
    esac
8402
 
else
8403
 
  enable_fast_install=yes
8404
 
fi
8405
 
 
8406
 
 
8407
 
 
8408
 
 
8409
 
 
8410
 
 
8411
 
 
8412
 
 
8413
 
 
8414
 
 
8415
 
 
8416
 
# This can be used to rebuild libtool when needed
8417
 
LIBTOOL_DEPS="$ltmain"
8418
 
 
8419
 
# Always use our own libtool.
8420
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8421
 
 
8422
 
 
8423
 
 
8424
 
 
8425
 
 
8426
 
 
8427
 
 
8428
 
 
8429
 
 
8430
 
 
8431
 
 
8432
 
 
8433
 
 
8434
 
 
8435
 
 
8436
 
 
8437
 
 
8438
 
 
8439
 
 
8440
 
 
8441
 
 
8442
 
 
8443
 
 
8444
 
 
8445
 
 
8446
 
test -z "$LN_S" && LN_S="ln -s"
8447
 
 
8448
 
 
8449
 
 
8450
 
 
8451
 
 
8452
 
 
8453
 
 
8454
 
 
8455
 
 
8456
 
 
8457
 
 
8458
 
 
8459
 
 
8460
 
 
8461
 
if test -n "${ZSH_VERSION+set}" ; then
8462
 
   setopt NO_GLOB_SUBST
8463
 
fi
8464
 
 
8465
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8466
 
$as_echo_n "checking for objdir... " >&6; }
8467
 
if test "${lt_cv_objdir+set}" = set; then :
8468
 
  $as_echo_n "(cached) " >&6
8469
 
else
8470
 
  rm -f .libs 2>/dev/null
8471
 
mkdir .libs 2>/dev/null
8472
 
if test -d .libs; then
8473
 
  lt_cv_objdir=.libs
8474
 
else
8475
 
  # MS-DOS does not allow filenames that begin with a dot.
8476
 
  lt_cv_objdir=_libs
8477
 
fi
8478
 
rmdir .libs 2>/dev/null
8479
 
fi
8480
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8481
 
$as_echo "$lt_cv_objdir" >&6; }
8482
 
objdir=$lt_cv_objdir
8483
 
 
8484
 
 
8485
 
 
8486
 
 
8487
 
 
8488
 
cat >>confdefs.h <<_ACEOF
8489
 
#define LT_OBJDIR "$lt_cv_objdir/"
8490
 
_ACEOF
8491
 
 
8492
 
 
8493
 
 
8494
 
 
8495
 
 
8496
 
 
8497
 
 
8498
 
 
8499
 
 
8500
 
 
8501
 
 
8502
 
 
8503
 
 
8504
 
 
8505
 
 
8506
 
 
8507
 
 
8508
 
case $host_os in
8509
 
aix3*)
8510
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
8511
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8512
 
  # vanish in a puff of smoke.
8513
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
8514
 
    COLLECT_NAMES=
8515
 
    export COLLECT_NAMES
8516
 
  fi
8517
 
  ;;
8518
 
esac
8519
 
 
8520
 
# Sed substitution that helps us do robust quoting.  It backslashifies
8521
 
# metacharacters that are still active within double-quoted strings.
8522
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8523
 
 
8524
 
# Same as above, but do not quote variable references.
8525
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8526
 
 
8527
 
# Sed substitution to delay expansion of an escaped shell variable in a
8528
 
# double_quote_subst'ed string.
8529
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8530
 
 
8531
 
# Sed substitution to delay expansion of an escaped single quote.
8532
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8533
 
 
8534
 
# Sed substitution to avoid accidental globbing in evaled expressions
8535
 
no_glob_subst='s/\*/\\\*/g'
8536
 
 
8537
 
# Global variables:
8538
 
ofile=libtool
8539
 
can_build_shared=yes
8540
 
 
8541
 
# All known linkers require a `.a' archive for static linking (except MSVC,
8542
 
# which needs '.lib').
8543
 
libext=a
8544
 
 
8545
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
8546
 
 
8547
 
old_CC="$CC"
8548
 
old_CFLAGS="$CFLAGS"
8549
 
 
8550
 
# Set sane defaults for various variables
8551
 
test -z "$CC" && CC=cc
8552
 
test -z "$LTCC" && LTCC=$CC
8553
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8554
 
test -z "$LD" && LD=ld
8555
 
test -z "$ac_objext" && ac_objext=o
8556
 
 
8557
 
for cc_temp in $compiler""; do
8558
 
  case $cc_temp in
8559
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8560
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8561
 
    \-*) ;;
8562
 
    *) break;;
8563
 
  esac
8564
 
done
8565
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8566
 
 
8567
 
 
8568
 
# Only perform the check for file, if the check method requires it
8569
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8570
 
case $deplibs_check_method in
8571
 
file_magic*)
8572
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8573
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8574
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8575
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8576
 
  $as_echo_n "(cached) " >&6
8577
 
else
8578
 
  case $MAGIC_CMD in
8579
 
[\\/*] |  ?:[\\/]*)
8580
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8581
 
  ;;
8582
 
*)
8583
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8584
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8585
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8586
 
  for ac_dir in $ac_dummy; do
8587
 
    IFS="$lt_save_ifs"
8588
 
    test -z "$ac_dir" && ac_dir=.
8589
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
8590
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8591
 
      if test -n "$file_magic_test_file"; then
8592
 
        case $deplibs_check_method in
8593
 
        "file_magic "*)
8594
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8595
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8596
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8597
 
            $EGREP "$file_magic_regex" > /dev/null; then
8598
 
            :
8599
 
          else
8600
 
            cat <<_LT_EOF 1>&2
8601
 
 
8602
 
*** Warning: the command libtool uses to detect shared libraries,
8603
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8604
 
*** The result is that libtool may fail to recognize shared libraries
8605
 
*** as such.  This will affect the creation of libtool libraries that
8606
 
*** depend on shared libraries, but programs linked with such libtool
8607
 
*** libraries will work regardless of this problem.  Nevertheless, you
8608
 
*** may want to report the problem to your system manager and/or to
8609
 
*** bug-libtool@gnu.org
8610
 
 
8611
 
_LT_EOF
8612
 
          fi ;;
8613
 
        esac
8614
 
      fi
8615
 
      break
8616
 
    fi
8617
 
  done
8618
 
  IFS="$lt_save_ifs"
8619
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8620
 
  ;;
8621
 
esac
8622
 
fi
8623
 
 
8624
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8625
 
if test -n "$MAGIC_CMD"; then
8626
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8627
 
$as_echo "$MAGIC_CMD" >&6; }
8628
 
else
8629
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630
 
$as_echo "no" >&6; }
8631
 
fi
8632
 
 
8633
 
 
8634
 
 
8635
 
 
8636
 
 
8637
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
8638
 
  if test -n "$ac_tool_prefix"; then
8639
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8640
 
$as_echo_n "checking for file... " >&6; }
8641
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8642
 
  $as_echo_n "(cached) " >&6
8643
 
else
8644
 
  case $MAGIC_CMD in
8645
 
[\\/*] |  ?:[\\/]*)
8646
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8647
 
  ;;
8648
 
*)
8649
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8650
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8651
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8652
 
  for ac_dir in $ac_dummy; do
8653
 
    IFS="$lt_save_ifs"
8654
 
    test -z "$ac_dir" && ac_dir=.
8655
 
    if test -f $ac_dir/file; then
8656
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8657
 
      if test -n "$file_magic_test_file"; then
8658
 
        case $deplibs_check_method in
8659
 
        "file_magic "*)
8660
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8661
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8662
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8663
 
            $EGREP "$file_magic_regex" > /dev/null; then
8664
 
            :
8665
 
          else
8666
 
            cat <<_LT_EOF 1>&2
8667
 
 
8668
 
*** Warning: the command libtool uses to detect shared libraries,
8669
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8670
 
*** The result is that libtool may fail to recognize shared libraries
8671
 
*** as such.  This will affect the creation of libtool libraries that
8672
 
*** depend on shared libraries, but programs linked with such libtool
8673
 
*** libraries will work regardless of this problem.  Nevertheless, you
8674
 
*** may want to report the problem to your system manager and/or to
8675
 
*** bug-libtool@gnu.org
8676
 
 
8677
 
_LT_EOF
8678
 
          fi ;;
8679
 
        esac
8680
 
      fi
8681
 
      break
8682
 
    fi
8683
 
  done
8684
 
  IFS="$lt_save_ifs"
8685
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8686
 
  ;;
8687
 
esac
8688
 
fi
8689
 
 
8690
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8691
 
if test -n "$MAGIC_CMD"; then
8692
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8693
 
$as_echo "$MAGIC_CMD" >&6; }
8694
 
else
8695
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696
 
$as_echo "no" >&6; }
8697
 
fi
8698
 
 
8699
 
 
8700
 
  else
8701
 
    MAGIC_CMD=:
8702
 
  fi
8703
 
fi
8704
 
 
8705
 
  fi
8706
 
  ;;
8707
 
esac
8708
 
 
8709
 
# Use C for the default configuration in the libtool script
8710
 
 
8711
 
lt_save_CC="$CC"
8712
 
ac_ext=c
8713
 
ac_cpp='$CPP $CPPFLAGS'
8714
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8717
 
 
8718
 
 
8719
 
# Source file extension for C test sources.
8720
 
ac_ext=c
8721
 
 
8722
 
# Object file extension for compiled C test sources.
8723
 
objext=o
8724
 
objext=$objext
8725
 
 
8726
 
# Code to be used in simple compile tests
8727
 
lt_simple_compile_test_code="int some_variable = 0;"
8728
 
 
8729
 
# Code to be used in simple link tests
8730
 
lt_simple_link_test_code='int main(){return(0);}'
8731
 
 
8732
 
 
8733
 
 
8734
 
 
8735
 
 
8736
 
 
8737
 
 
8738
 
# If no C compiler was specified, use CC.
8739
 
LTCC=${LTCC-"$CC"}
8740
 
 
8741
 
# If no C compiler flags were specified, use CFLAGS.
8742
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8743
 
 
8744
 
# Allow CC to be a program name with arguments.
8745
 
compiler=$CC
8746
 
 
8747
 
# Save the default compiler, since it gets overwritten when the other
8748
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8749
 
compiler_DEFAULT=$CC
8750
 
 
8751
 
# save warnings/boilerplate of simple test code
8752
 
ac_outfile=conftest.$ac_objext
8753
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8754
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8755
 
_lt_compiler_boilerplate=`cat conftest.err`
8756
 
$RM conftest*
8757
 
 
8758
 
ac_outfile=conftest.$ac_objext
8759
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8760
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8761
 
_lt_linker_boilerplate=`cat conftest.err`
8762
 
$RM -r conftest*
8763
 
 
8764
 
 
8765
 
## CAVEAT EMPTOR:
8766
 
## There is no encapsulation within the following macros, do not change
8767
 
## the running order or otherwise move them around unless you know exactly
8768
 
## what you are doing...
8769
 
if test -n "$compiler"; then
8770
 
 
8771
 
lt_prog_compiler_no_builtin_flag=
8772
 
 
8773
 
if test "$GCC" = yes; then
8774
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8775
 
 
8776
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8777
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8778
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8779
 
  $as_echo_n "(cached) " >&6
8780
 
else
8781
 
  lt_cv_prog_compiler_rtti_exceptions=no
8782
 
   ac_outfile=conftest.$ac_objext
8783
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8784
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8785
 
   # Insert the option either (1) after the last *FLAGS variable, or
8786
 
   # (2) before a word containing "conftest.", or (3) at the end.
8787
 
   # Note that $ac_compile itself does not contain backslashes and begins
8788
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8789
 
   # The option is referenced via a variable to avoid confusing sed.
8790
 
   lt_compile=`echo "$ac_compile" | $SED \
8791
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8792
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8793
 
   -e 's:$: $lt_compiler_flag:'`
8794
 
   (eval echo "\"\$as_me:8794: $lt_compile\"" >&5)
8795
 
   (eval "$lt_compile" 2>conftest.err)
8796
 
   ac_status=$?
8797
 
   cat conftest.err >&5
8798
 
   echo "$as_me:8798: \$? = $ac_status" >&5
8799
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8800
 
     # The compiler can only warn and ignore the option if not recognized
8801
 
     # So say no if there are warnings other than the usual output.
8802
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8803
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8804
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8805
 
       lt_cv_prog_compiler_rtti_exceptions=yes
8806
 
     fi
8807
 
   fi
8808
 
   $RM conftest*
8809
 
 
8810
 
fi
8811
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8812
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8813
 
 
8814
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8815
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8816
 
else
8817
 
    :
8818
 
fi
8819
 
 
8820
 
fi
8821
 
 
8822
 
 
8823
 
 
8824
 
 
8825
 
 
8826
 
 
8827
 
  lt_prog_compiler_wl=
8828
 
lt_prog_compiler_pic=
8829
 
lt_prog_compiler_static=
8830
 
 
8831
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8832
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8833
 
 
8834
 
  if test "$GCC" = yes; then
8835
 
    lt_prog_compiler_wl='-Wl,'
8836
 
    lt_prog_compiler_static='-static'
8837
 
 
8838
 
    case $host_os in
8839
 
      aix*)
8840
 
      # All AIX code is PIC.
8841
 
      if test "$host_cpu" = ia64; then
8842
 
        # AIX 5 now supports IA64 processor
8843
 
        lt_prog_compiler_static='-Bstatic'
8844
 
      fi
8845
 
      ;;
8846
 
 
8847
 
    amigaos*)
8848
 
      case $host_cpu in
8849
 
      powerpc)
8850
 
            # see comment about AmigaOS4 .so support
8851
 
            lt_prog_compiler_pic='-fPIC'
8852
 
        ;;
8853
 
      m68k)
8854
 
            # FIXME: we need at least 68020 code to build shared libraries, but
8855
 
            # adding the `-m68020' flag to GCC prevents building anything better,
8856
 
            # like `-m68040'.
8857
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8858
 
        ;;
8859
 
      esac
8860
 
      ;;
8861
 
 
8862
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8863
 
      # PIC is the default for these OSes.
8864
 
      ;;
8865
 
 
8866
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8867
 
      # This hack is so that the source file can tell whether it is being
8868
 
      # built for inclusion in a dll (and should export symbols for example).
8869
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8870
 
      # (--disable-auto-import) libraries
8871
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8872
 
      ;;
8873
 
 
8874
 
    darwin* | rhapsody*)
8875
 
      # PIC is the default on this platform
8876
 
      # Common symbols not allowed in MH_DYLIB files
8877
 
      lt_prog_compiler_pic='-fno-common'
8878
 
      ;;
8879
 
 
8880
 
    hpux*)
8881
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8882
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8883
 
      # sets the default TLS model and affects inlining.
8884
 
      case $host_cpu in
8885
 
      hppa*64*)
8886
 
        # +Z the default
8887
 
        ;;
8888
 
      *)
8889
 
        lt_prog_compiler_pic='-fPIC'
8890
 
        ;;
8891
 
      esac
8892
 
      ;;
8893
 
 
8894
 
    interix[3-9]*)
8895
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8896
 
      # Instead, we relocate shared libraries at runtime.
8897
 
      ;;
8898
 
 
8899
 
    msdosdjgpp*)
8900
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8901
 
      # on systems that don't support them.
8902
 
      lt_prog_compiler_can_build_shared=no
8903
 
      enable_shared=no
8904
 
      ;;
8905
 
 
8906
 
    *nto* | *qnx*)
8907
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8908
 
      # it will coredump.
8909
 
      lt_prog_compiler_pic='-fPIC -shared'
8910
 
      ;;
8911
 
 
8912
 
    sysv4*MP*)
8913
 
      if test -d /usr/nec; then
8914
 
        lt_prog_compiler_pic=-Kconform_pic
8915
 
      fi
8916
 
      ;;
8917
 
 
8918
 
    *)
8919
 
      lt_prog_compiler_pic='-fPIC'
8920
 
      ;;
8921
 
    esac
8922
 
  else
8923
 
    # PORTME Check for flag to pass linker flags through the system compiler.
8924
 
    case $host_os in
8925
 
    aix*)
8926
 
      lt_prog_compiler_wl='-Wl,'
8927
 
      if test "$host_cpu" = ia64; then
8928
 
        # AIX 5 now supports IA64 processor
8929
 
        lt_prog_compiler_static='-Bstatic'
8930
 
      else
8931
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8932
 
      fi
8933
 
      ;;
8934
 
 
8935
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8936
 
      # This hack is so that the source file can tell whether it is being
8937
 
      # built for inclusion in a dll (and should export symbols for example).
8938
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8939
 
      ;;
8940
 
 
8941
 
    hpux9* | hpux10* | hpux11*)
8942
 
      lt_prog_compiler_wl='-Wl,'
8943
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8944
 
      # not for PA HP-UX.
8945
 
      case $host_cpu in
8946
 
      hppa*64*|ia64*)
8947
 
        # +Z the default
8948
 
        ;;
8949
 
      *)
8950
 
        lt_prog_compiler_pic='+Z'
8951
 
        ;;
8952
 
      esac
8953
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8954
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8955
 
      ;;
8956
 
 
8957
 
    irix5* | irix6* | nonstopux*)
8958
 
      lt_prog_compiler_wl='-Wl,'
8959
 
      # PIC (with -KPIC) is the default.
8960
 
      lt_prog_compiler_static='-non_shared'
8961
 
      ;;
8962
 
 
8963
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8964
 
      case $cc_basename in
8965
 
      # old Intel for x86_64 which still supported -KPIC.
8966
 
      ecc*)
8967
 
        lt_prog_compiler_wl='-Wl,'
8968
 
        lt_prog_compiler_pic='-KPIC'
8969
 
        lt_prog_compiler_static='-static'
8970
 
        ;;
8971
 
      # icc used to be incompatible with GCC.
8972
 
      # ICC 10 doesn't accept -KPIC any more.
8973
 
      icc* | ifort*)
8974
 
        lt_prog_compiler_wl='-Wl,'
8975
 
        lt_prog_compiler_pic='-fPIC'
8976
 
        lt_prog_compiler_static='-static'
8977
 
        ;;
8978
 
      # Lahey Fortran 8.1.
8979
 
      lf95*)
8980
 
        lt_prog_compiler_wl='-Wl,'
8981
 
        lt_prog_compiler_pic='--shared'
8982
 
        lt_prog_compiler_static='--static'
8983
 
        ;;
8984
 
      pgcc* | pgf77* | pgf90* | pgf95*)
8985
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
8986
 
        # which looks to be a dead project)
8987
 
        lt_prog_compiler_wl='-Wl,'
8988
 
        lt_prog_compiler_pic='-fpic'
8989
 
        lt_prog_compiler_static='-Bstatic'
8990
 
        ;;
8991
 
      ccc*)
8992
 
        lt_prog_compiler_wl='-Wl,'
8993
 
        # All Alpha code is PIC.
8994
 
        lt_prog_compiler_static='-non_shared'
8995
 
        ;;
8996
 
      xl*)
8997
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
8998
 
        lt_prog_compiler_wl='-Wl,'
8999
 
        lt_prog_compiler_pic='-qpic'
9000
 
        lt_prog_compiler_static='-qstaticlink'
9001
 
        ;;
9002
 
      *)
9003
 
        case `$CC -V 2>&1 | sed 5q` in
9004
 
        *Sun\ C*)
9005
 
          # Sun C 5.9
9006
 
          lt_prog_compiler_pic='-KPIC'
9007
 
          lt_prog_compiler_static='-Bstatic'
9008
 
          lt_prog_compiler_wl='-Wl,'
9009
 
          ;;
9010
 
        *Sun\ F*)
9011
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9012
 
          lt_prog_compiler_pic='-KPIC'
9013
 
          lt_prog_compiler_static='-Bstatic'
9014
 
          lt_prog_compiler_wl=''
9015
 
          ;;
9016
 
        esac
9017
 
        ;;
9018
 
      esac
9019
 
      ;;
9020
 
 
9021
 
    newsos6)
9022
 
      lt_prog_compiler_pic='-KPIC'
9023
 
      lt_prog_compiler_static='-Bstatic'
9024
 
      ;;
9025
 
 
9026
 
    *nto* | *qnx*)
9027
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9028
 
      # it will coredump.
9029
 
      lt_prog_compiler_pic='-fPIC -shared'
9030
 
      ;;
9031
 
 
9032
 
    osf3* | osf4* | osf5*)
9033
 
      lt_prog_compiler_wl='-Wl,'
9034
 
      # All OSF/1 code is PIC.
9035
 
      lt_prog_compiler_static='-non_shared'
9036
 
      ;;
9037
 
 
9038
 
    rdos*)
9039
 
      lt_prog_compiler_static='-non_shared'
9040
 
      ;;
9041
 
 
9042
 
    solaris*)
9043
 
      lt_prog_compiler_pic='-KPIC'
9044
 
      lt_prog_compiler_static='-Bstatic'
9045
 
      case $cc_basename in
9046
 
      f77* | f90* | f95*)
9047
 
        lt_prog_compiler_wl='-Qoption ld ';;
9048
 
      *)
9049
 
        lt_prog_compiler_wl='-Wl,';;
9050
 
      esac
9051
 
      ;;
9052
 
 
9053
 
    sunos4*)
9054
 
      lt_prog_compiler_wl='-Qoption ld '
9055
 
      lt_prog_compiler_pic='-PIC'
9056
 
      lt_prog_compiler_static='-Bstatic'
9057
 
      ;;
9058
 
 
9059
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
9060
 
      lt_prog_compiler_wl='-Wl,'
9061
 
      lt_prog_compiler_pic='-KPIC'
9062
 
      lt_prog_compiler_static='-Bstatic'
9063
 
      ;;
9064
 
 
9065
 
    sysv4*MP*)
9066
 
      if test -d /usr/nec ;then
9067
 
        lt_prog_compiler_pic='-Kconform_pic'
9068
 
        lt_prog_compiler_static='-Bstatic'
9069
 
      fi
9070
 
      ;;
9071
 
 
9072
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9073
 
      lt_prog_compiler_wl='-Wl,'
9074
 
      lt_prog_compiler_pic='-KPIC'
9075
 
      lt_prog_compiler_static='-Bstatic'
9076
 
      ;;
9077
 
 
9078
 
    unicos*)
9079
 
      lt_prog_compiler_wl='-Wl,'
9080
 
      lt_prog_compiler_can_build_shared=no
9081
 
      ;;
9082
 
 
9083
 
    uts4*)
9084
 
      lt_prog_compiler_pic='-pic'
9085
 
      lt_prog_compiler_static='-Bstatic'
9086
 
      ;;
9087
 
 
9088
 
    *)
9089
 
      lt_prog_compiler_can_build_shared=no
9090
 
      ;;
9091
 
    esac
9092
 
  fi
9093
 
 
9094
 
case $host_os in
9095
 
  # For platforms which do not support PIC, -DPIC is meaningless:
9096
 
  *djgpp*)
9097
 
    lt_prog_compiler_pic=
9098
 
    ;;
9099
 
  *)
9100
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9101
 
    ;;
9102
 
esac
9103
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9104
 
$as_echo "$lt_prog_compiler_pic" >&6; }
9105
 
 
9106
 
 
9107
 
 
9108
 
 
9109
 
 
9110
 
 
9111
 
#
9112
 
# Check to make sure the PIC flag actually works.
9113
 
#
9114
 
if test -n "$lt_prog_compiler_pic"; then
9115
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9116
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9117
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9118
 
  $as_echo_n "(cached) " >&6
9119
 
else
9120
 
  lt_cv_prog_compiler_pic_works=no
9121
 
   ac_outfile=conftest.$ac_objext
9122
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9124
 
   # Insert the option either (1) after the last *FLAGS variable, or
9125
 
   # (2) before a word containing "conftest.", or (3) at the end.
9126
 
   # Note that $ac_compile itself does not contain backslashes and begins
9127
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9128
 
   # The option is referenced via a variable to avoid confusing sed.
9129
 
   lt_compile=`echo "$ac_compile" | $SED \
9130
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9131
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9132
 
   -e 's:$: $lt_compiler_flag:'`
9133
 
   (eval echo "\"\$as_me:9133: $lt_compile\"" >&5)
9134
 
   (eval "$lt_compile" 2>conftest.err)
9135
 
   ac_status=$?
9136
 
   cat conftest.err >&5
9137
 
   echo "$as_me:9137: \$? = $ac_status" >&5
9138
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
9139
 
     # The compiler can only warn and ignore the option if not recognized
9140
 
     # So say no if there are warnings other than the usual output.
9141
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9142
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9143
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9144
 
       lt_cv_prog_compiler_pic_works=yes
9145
 
     fi
9146
 
   fi
9147
 
   $RM conftest*
9148
 
 
9149
 
fi
9150
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9151
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9152
 
 
9153
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9154
 
    case $lt_prog_compiler_pic in
9155
 
     "" | " "*) ;;
9156
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9157
 
     esac
9158
 
else
9159
 
    lt_prog_compiler_pic=
9160
 
     lt_prog_compiler_can_build_shared=no
9161
 
fi
9162
 
 
9163
 
fi
9164
 
 
9165
 
 
9166
 
 
9167
 
 
9168
 
 
9169
 
 
9170
 
#
9171
 
# Check to make sure the static flag actually works.
9172
 
#
9173
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9174
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9175
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9176
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9177
 
  $as_echo_n "(cached) " >&6
9178
 
else
9179
 
  lt_cv_prog_compiler_static_works=no
9180
 
   save_LDFLAGS="$LDFLAGS"
9181
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9182
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9183
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9184
 
     # The linker can only warn and ignore the option if not recognized
9185
 
     # So say no if there are warnings
9186
 
     if test -s conftest.err; then
9187
 
       # Append any errors to the config.log.
9188
 
       cat conftest.err 1>&5
9189
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9190
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9191
 
       if diff conftest.exp conftest.er2 >/dev/null; then
9192
 
         lt_cv_prog_compiler_static_works=yes
9193
 
       fi
9194
 
     else
9195
 
       lt_cv_prog_compiler_static_works=yes
9196
 
     fi
9197
 
   fi
9198
 
   $RM -r conftest*
9199
 
   LDFLAGS="$save_LDFLAGS"
9200
 
 
9201
 
fi
9202
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9203
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9204
 
 
9205
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9206
 
    :
9207
 
else
9208
 
    lt_prog_compiler_static=
9209
 
fi
9210
 
 
9211
 
 
9212
 
 
9213
 
 
9214
 
 
9215
 
 
9216
 
 
9217
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9218
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9219
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9220
 
  $as_echo_n "(cached) " >&6
9221
 
else
9222
 
  lt_cv_prog_compiler_c_o=no
9223
 
   $RM -r conftest 2>/dev/null
9224
 
   mkdir conftest
9225
 
   cd conftest
9226
 
   mkdir out
9227
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9228
 
 
9229
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9230
 
   # Insert the option either (1) after the last *FLAGS variable, or
9231
 
   # (2) before a word containing "conftest.", or (3) at the end.
9232
 
   # Note that $ac_compile itself does not contain backslashes and begins
9233
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9234
 
   lt_compile=`echo "$ac_compile" | $SED \
9235
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9236
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9237
 
   -e 's:$: $lt_compiler_flag:'`
9238
 
   (eval echo "\"\$as_me:9238: $lt_compile\"" >&5)
9239
 
   (eval "$lt_compile" 2>out/conftest.err)
9240
 
   ac_status=$?
9241
 
   cat out/conftest.err >&5
9242
 
   echo "$as_me:9242: \$? = $ac_status" >&5
9243
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9244
 
   then
9245
 
     # The compiler can only warn and ignore the option if not recognized
9246
 
     # So say no if there are warnings
9247
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9248
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9249
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9250
 
       lt_cv_prog_compiler_c_o=yes
9251
 
     fi
9252
 
   fi
9253
 
   chmod u+w . 2>&5
9254
 
   $RM conftest*
9255
 
   # SGI C++ compiler will create directory out/ii_files/ for
9256
 
   # template instantiation
9257
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9258
 
   $RM out/* && rmdir out
9259
 
   cd ..
9260
 
   $RM -r conftest
9261
 
   $RM conftest*
9262
 
 
9263
 
fi
9264
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9265
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9266
 
 
9267
 
 
9268
 
 
9269
 
 
9270
 
 
9271
 
 
9272
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9273
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9274
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9275
 
  $as_echo_n "(cached) " >&6
9276
 
else
9277
 
  lt_cv_prog_compiler_c_o=no
9278
 
   $RM -r conftest 2>/dev/null
9279
 
   mkdir conftest
9280
 
   cd conftest
9281
 
   mkdir out
9282
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9283
 
 
9284
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9285
 
   # Insert the option either (1) after the last *FLAGS variable, or
9286
 
   # (2) before a word containing "conftest.", or (3) at the end.
9287
 
   # Note that $ac_compile itself does not contain backslashes and begins
9288
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9289
 
   lt_compile=`echo "$ac_compile" | $SED \
9290
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9291
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9292
 
   -e 's:$: $lt_compiler_flag:'`
9293
 
   (eval echo "\"\$as_me:9293: $lt_compile\"" >&5)
9294
 
   (eval "$lt_compile" 2>out/conftest.err)
9295
 
   ac_status=$?
9296
 
   cat out/conftest.err >&5
9297
 
   echo "$as_me:9297: \$? = $ac_status" >&5
9298
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9299
 
   then
9300
 
     # The compiler can only warn and ignore the option if not recognized
9301
 
     # So say no if there are warnings
9302
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9303
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9304
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9305
 
       lt_cv_prog_compiler_c_o=yes
9306
 
     fi
9307
 
   fi
9308
 
   chmod u+w . 2>&5
9309
 
   $RM conftest*
9310
 
   # SGI C++ compiler will create directory out/ii_files/ for
9311
 
   # template instantiation
9312
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9313
 
   $RM out/* && rmdir out
9314
 
   cd ..
9315
 
   $RM -r conftest
9316
 
   $RM conftest*
9317
 
 
9318
 
fi
9319
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9320
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9321
 
 
9322
 
 
9323
 
 
9324
 
 
9325
 
hard_links="nottested"
9326
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9327
 
  # do not overwrite the value of need_locks provided by the user
9328
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9329
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
9330
 
  hard_links=yes
9331
 
  $RM conftest*
9332
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9333
 
  touch conftest.a
9334
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
9335
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9336
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9337
 
$as_echo "$hard_links" >&6; }
9338
 
  if test "$hard_links" = no; then
9339
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9340
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9341
 
    need_locks=warn
9342
 
  fi
9343
 
else
9344
 
  need_locks=no
9345
 
fi
9346
 
 
9347
 
 
9348
 
 
9349
 
 
9350
 
 
9351
 
 
9352
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9353
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9354
 
 
9355
 
  runpath_var=
9356
 
  allow_undefined_flag=
9357
 
  always_export_symbols=no
9358
 
  archive_cmds=
9359
 
  archive_expsym_cmds=
9360
 
  compiler_needs_object=no
9361
 
  enable_shared_with_static_runtimes=no
9362
 
  export_dynamic_flag_spec=
9363
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9364
 
  hardcode_automatic=no
9365
 
  hardcode_direct=no
9366
 
  hardcode_direct_absolute=no
9367
 
  hardcode_libdir_flag_spec=
9368
 
  hardcode_libdir_flag_spec_ld=
9369
 
  hardcode_libdir_separator=
9370
 
  hardcode_minus_L=no
9371
 
  hardcode_shlibpath_var=unsupported
9372
 
  inherit_rpath=no
9373
 
  link_all_deplibs=unknown
9374
 
  module_cmds=
9375
 
  module_expsym_cmds=
9376
 
  old_archive_from_new_cmds=
9377
 
  old_archive_from_expsyms_cmds=
9378
 
  thread_safe_flag_spec=
9379
 
  whole_archive_flag_spec=
9380
 
  # include_expsyms should be a list of space-separated symbols to be *always*
9381
 
  # included in the symbol list
9382
 
  include_expsyms=
9383
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
9384
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9385
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9386
 
  # as well as any symbol that contains `d'.
9387
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9388
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9389
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
9390
 
  # the symbol is explicitly referenced.  Since portable code cannot
9391
 
  # rely on this symbol name, it's probably fine to never include it in
9392
 
  # preloaded symbol tables.
9393
 
  # Exclude shared library initialization/finalization symbols.
9394
 
  extract_expsyms_cmds=
9395
 
 
9396
 
  case $host_os in
9397
 
  cygwin* | mingw* | pw32* | cegcc*)
9398
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9399
 
    # When not using gcc, we currently assume that we are using
9400
 
    # Microsoft Visual C++.
9401
 
    if test "$GCC" != yes; then
9402
 
      with_gnu_ld=no
9403
 
    fi
9404
 
    ;;
9405
 
  interix*)
9406
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9407
 
    with_gnu_ld=yes
9408
 
    ;;
9409
 
  openbsd*)
9410
 
    with_gnu_ld=no
9411
 
    ;;
9412
 
  linux* | k*bsd*-gnu)
9413
 
    link_all_deplibs=no
9414
 
    ;;
9415
 
  esac
9416
 
 
9417
 
  ld_shlibs=yes
9418
 
  if test "$with_gnu_ld" = yes; then
9419
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
9420
 
    wlarc='${wl}'
9421
 
 
9422
 
    # Set some defaults for GNU ld with shared library support. These
9423
 
    # are reset later if shared libraries are not supported. Putting them
9424
 
    # here allows them to be overridden if necessary.
9425
 
    runpath_var=LD_RUN_PATH
9426
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
9428
 
    # ancient GNU ld didn't support --whole-archive et. al.
9429
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9430
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9431
 
    else
9432
 
      whole_archive_flag_spec=
9433
 
    fi
9434
 
    supports_anon_versioning=no
9435
 
    case `$LD -v 2>&1` in
9436
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
9437
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9438
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9439
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9440
 
      *\ 2.11.*) ;; # other 2.11 versions
9441
 
      *) supports_anon_versioning=yes ;;
9442
 
    esac
9443
 
 
9444
 
    # See if GNU ld supports shared libraries.
9445
 
    case $host_os in
9446
 
    aix[3-9]*)
9447
 
      # On AIX/PPC, the GNU linker is very broken
9448
 
      if test "$host_cpu" != ia64; then
9449
 
        ld_shlibs=no
9450
 
        cat <<_LT_EOF 1>&2
9451
 
 
9452
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9453
 
*** to be unable to reliably create shared libraries on AIX.
9454
 
*** Therefore, libtool is disabling shared libraries support.  If you
9455
 
*** really care for shared libraries, you may want to modify your PATH
9456
 
*** so that a non-GNU linker is found, and then restart.
9457
 
 
9458
 
_LT_EOF
9459
 
      fi
9460
 
      ;;
9461
 
 
9462
 
    amigaos*)
9463
 
      case $host_cpu in
9464
 
      powerpc)
9465
 
            # see comment about AmigaOS4 .so support
9466
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467
 
            archive_expsym_cmds=''
9468
 
        ;;
9469
 
      m68k)
9470
 
            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)'
9471
 
            hardcode_libdir_flag_spec='-L$libdir'
9472
 
            hardcode_minus_L=yes
9473
 
        ;;
9474
 
      esac
9475
 
      ;;
9476
 
 
9477
 
    beos*)
9478
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479
 
        allow_undefined_flag=unsupported
9480
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9481
 
        # support --undefined.  This deserves some investigation.  FIXME
9482
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483
 
      else
9484
 
        ld_shlibs=no
9485
 
      fi
9486
 
      ;;
9487
 
 
9488
 
    cygwin* | mingw* | pw32* | cegcc*)
9489
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9490
 
      # as there is no search path for DLLs.
9491
 
      hardcode_libdir_flag_spec='-L$libdir'
9492
 
      allow_undefined_flag=unsupported
9493
 
      always_export_symbols=no
9494
 
      enable_shared_with_static_runtimes=yes
9495
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9496
 
 
9497
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9498
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9499
 
        # If the export-symbols file already is a .def file (1st line
9500
 
        # is EXPORTS), use it as is; otherwise, prepend...
9501
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9502
 
          cp $export_symbols $output_objdir/$soname.def;
9503
 
        else
9504
 
          echo EXPORTS > $output_objdir/$soname.def;
9505
 
          cat $export_symbols >> $output_objdir/$soname.def;
9506
 
        fi~
9507
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9508
 
      else
9509
 
        ld_shlibs=no
9510
 
      fi
9511
 
      ;;
9512
 
 
9513
 
    interix[3-9]*)
9514
 
      hardcode_direct=no
9515
 
      hardcode_shlibpath_var=no
9516
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9517
 
      export_dynamic_flag_spec='${wl}-E'
9518
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9519
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9520
 
      # default) and relocated if they conflict, which is a slow very memory
9521
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
9522
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9523
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9524
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9525
 
      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'
9526
 
      ;;
9527
 
 
9528
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9529
 
      tmp_diet=no
9530
 
      if test "$host_os" = linux-dietlibc; then
9531
 
        case $cc_basename in
9532
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9533
 
        esac
9534
 
      fi
9535
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9536
 
         && test "$tmp_diet" = no
9537
 
      then
9538
 
        tmp_addflag=
9539
 
        tmp_sharedflag='-shared'
9540
 
        case $cc_basename,$host_cpu in
9541
 
        pgcc*)                          # Portland Group C compiler
9542
 
          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'
9543
 
          tmp_addflag=' $pic_flag'
9544
 
          ;;
9545
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9546
 
          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'
9547
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
9548
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9549
 
          tmp_addflag=' -i_dynamic' ;;
9550
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9551
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9552
 
        ifc* | ifort*)                  # Intel Fortran compiler
9553
 
          tmp_addflag=' -nofor_main' ;;
9554
 
        lf95*)                          # Lahey Fortran 8.1
9555
 
          whole_archive_flag_spec=
9556
 
          tmp_sharedflag='--shared' ;;
9557
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9558
 
          tmp_sharedflag='-qmkshrobj'
9559
 
          tmp_addflag= ;;
9560
 
        esac
9561
 
        case `$CC -V 2>&1 | sed 5q` in
9562
 
        *Sun\ C*)                       # Sun C 5.9
9563
 
          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'
9564
 
          compiler_needs_object=yes
9565
 
          tmp_sharedflag='-G' ;;
9566
 
        *Sun\ F*)                       # Sun Fortran 8.3
9567
 
          tmp_sharedflag='-G' ;;
9568
 
        esac
9569
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570
 
 
9571
 
        if test "x$supports_anon_versioning" = xyes; then
9572
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9573
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9574
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
9575
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9576
 
        fi
9577
 
 
9578
 
        case $cc_basename in
9579
 
        xlf*)
9580
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9581
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9582
 
          hardcode_libdir_flag_spec=
9583
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9584
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9585
 
          if test "x$supports_anon_versioning" = xyes; then
9586
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9587
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9588
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
9589
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9590
 
          fi
9591
 
          ;;
9592
 
        esac
9593
 
      else
9594
 
        ld_shlibs=no
9595
 
      fi
9596
 
      ;;
9597
 
 
9598
 
    netbsd* | netbsdelf*-gnu)
9599
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9600
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9601
 
        wlarc=
9602
 
      else
9603
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9605
 
      fi
9606
 
      ;;
9607
 
 
9608
 
    solaris*)
9609
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9610
 
        ld_shlibs=no
9611
 
        cat <<_LT_EOF 1>&2
9612
 
 
9613
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9614
 
*** create shared libraries on Solaris systems.  Therefore, libtool
9615
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9616
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
9617
 
*** your PATH or compiler configuration so that the native linker is
9618
 
*** used, and then restart.
9619
 
 
9620
 
_LT_EOF
9621
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9624
 
      else
9625
 
        ld_shlibs=no
9626
 
      fi
9627
 
      ;;
9628
 
 
9629
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9630
 
      case `$LD -v 2>&1` in
9631
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9632
 
        ld_shlibs=no
9633
 
        cat <<_LT_EOF 1>&2
9634
 
 
9635
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9636
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9637
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9638
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9639
 
*** your PATH or compiler configuration so that the native linker is
9640
 
*** used, and then restart.
9641
 
 
9642
 
_LT_EOF
9643
 
        ;;
9644
 
        *)
9645
 
          # For security reasons, it is highly recommended that you always
9646
 
          # use absolute paths for naming shared libraries, and exclude the
9647
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
9648
 
          # requires that you compile everything twice, which is a pain.
9649
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9650
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9651
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9653
 
          else
9654
 
            ld_shlibs=no
9655
 
          fi
9656
 
        ;;
9657
 
      esac
9658
 
      ;;
9659
 
 
9660
 
    sunos4*)
9661
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9662
 
      wlarc=
9663
 
      hardcode_direct=yes
9664
 
      hardcode_shlibpath_var=no
9665
 
      ;;
9666
 
 
9667
 
    *)
9668
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9669
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9670
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9671
 
      else
9672
 
        ld_shlibs=no
9673
 
      fi
9674
 
      ;;
9675
 
    esac
9676
 
 
9677
 
    if test "$ld_shlibs" = no; then
9678
 
      runpath_var=
9679
 
      hardcode_libdir_flag_spec=
9680
 
      export_dynamic_flag_spec=
9681
 
      whole_archive_flag_spec=
9682
 
    fi
9683
 
  else
9684
 
    # PORTME fill in a description of your system's linker (not GNU ld)
9685
 
    case $host_os in
9686
 
    aix3*)
9687
 
      allow_undefined_flag=unsupported
9688
 
      always_export_symbols=yes
9689
 
      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'
9690
 
      # Note: this linker hardcodes the directories in LIBPATH if there
9691
 
      # are no directories specified by -L.
9692
 
      hardcode_minus_L=yes
9693
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9694
 
        # Neither direct hardcoding nor static linking is supported with a
9695
 
        # broken collect2.
9696
 
        hardcode_direct=unsupported
9697
 
      fi
9698
 
      ;;
9699
 
 
9700
 
    aix[4-9]*)
9701
 
      if test "$host_cpu" = ia64; then
9702
 
        # On IA64, the linker does run time linking by default, so we don't
9703
 
        # have to do anything special.
9704
 
        aix_use_runtimelinking=no
9705
 
        exp_sym_flag='-Bexport'
9706
 
        no_entry_flag=""
9707
 
      else
9708
 
        # If we're using GNU nm, then we don't want the "-C" option.
9709
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9710
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9711
 
          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'
9712
 
        else
9713
 
          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'
9714
 
        fi
9715
 
        aix_use_runtimelinking=no
9716
 
 
9717
 
        # Test if we are trying to use run time linking or normal
9718
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9719
 
        # need to do runtime linking.
9720
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9721
 
          for ld_flag in $LDFLAGS; do
9722
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9723
 
            aix_use_runtimelinking=yes
9724
 
            break
9725
 
          fi
9726
 
          done
9727
 
          ;;
9728
 
        esac
9729
 
 
9730
 
        exp_sym_flag='-bexport'
9731
 
        no_entry_flag='-bnoentry'
9732
 
      fi
9733
 
 
9734
 
      # When large executables or shared objects are built, AIX ld can
9735
 
      # have problems creating the table of contents.  If linking a library
9736
 
      # or program results in "error TOC overflow" add -mminimal-toc to
9737
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9738
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9739
 
 
9740
 
      archive_cmds=''
9741
 
      hardcode_direct=yes
9742
 
      hardcode_direct_absolute=yes
9743
 
      hardcode_libdir_separator=':'
9744
 
      link_all_deplibs=yes
9745
 
      file_list_spec='${wl}-f,'
9746
 
 
9747
 
      if test "$GCC" = yes; then
9748
 
        case $host_os in aix4.[012]|aix4.[012].*)
9749
 
        # We only want to do this on AIX 4.2 and lower, the check
9750
 
        # below for broken collect2 doesn't work under 4.3+
9751
 
          collect2name=`${CC} -print-prog-name=collect2`
9752
 
          if test -f "$collect2name" &&
9753
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9754
 
          then
9755
 
          # We have reworked collect2
9756
 
          :
9757
 
          else
9758
 
          # We have old collect2
9759
 
          hardcode_direct=unsupported
9760
 
          # It fails to find uninstalled libraries when the uninstalled
9761
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9762
 
          # to unsupported forces relinking
9763
 
          hardcode_minus_L=yes
9764
 
          hardcode_libdir_flag_spec='-L$libdir'
9765
 
          hardcode_libdir_separator=
9766
 
          fi
9767
 
          ;;
9768
 
        esac
9769
 
        shared_flag='-shared'
9770
 
        if test "$aix_use_runtimelinking" = yes; then
9771
 
          shared_flag="$shared_flag "'${wl}-G'
9772
 
        fi
9773
 
        link_all_deplibs=no
9774
 
      else
9775
 
        # not using gcc
9776
 
        if test "$host_cpu" = ia64; then
9777
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9778
 
        # chokes on -Wl,-G. The following line is correct:
9779
 
          shared_flag='-G'
9780
 
        else
9781
 
          if test "$aix_use_runtimelinking" = yes; then
9782
 
            shared_flag='${wl}-G'
9783
 
          else
9784
 
            shared_flag='${wl}-bM:SRE'
9785
 
          fi
9786
 
        fi
9787
 
      fi
9788
 
 
9789
 
      export_dynamic_flag_spec='${wl}-bexpall'
9790
 
      # It seems that -bexpall does not export symbols beginning with
9791
 
      # underscore (_), so it is better to generate a list of symbols to export.
9792
 
      always_export_symbols=yes
9793
 
      if test "$aix_use_runtimelinking" = yes; then
9794
 
        # Warning - without using the other runtime loading flags (-brtl),
9795
 
        # -berok will link without error, but may produce a broken library.
9796
 
        allow_undefined_flag='-berok'
9797
 
        # Determine the default libpath from the value encoded in an
9798
 
        # empty executable.
9799
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800
 
/* end confdefs.h.  */
9801
 
 
9802
 
int
9803
 
main ()
9804
 
{
9805
 
 
9806
 
  ;
9807
 
  return 0;
9808
 
}
9809
 
_ACEOF
9810
 
if ac_fn_c_try_link "$LINENO"; then :
9811
 
 
9812
 
lt_aix_libpath_sed='
9813
 
    /Import File Strings/,/^$/ {
9814
 
        /^0/ {
9815
 
            s/^0  *\(.*\)$/\1/
9816
 
            p
9817
 
        }
9818
 
    }'
9819
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9820
 
# Check for a 64-bit object if we didn't find anything.
9821
 
if test -z "$aix_libpath"; then
9822
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823
 
fi
9824
 
fi
9825
 
rm -f core conftest.err conftest.$ac_objext \
9826
 
    conftest$ac_exeext conftest.$ac_ext
9827
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9828
 
 
9829
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9830
 
        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"
9831
 
      else
9832
 
        if test "$host_cpu" = ia64; then
9833
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9834
 
          allow_undefined_flag="-z nodefs"
9835
 
          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"
9836
 
        else
9837
 
         # Determine the default libpath from the value encoded in an
9838
 
         # empty executable.
9839
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840
 
/* end confdefs.h.  */
9841
 
 
9842
 
int
9843
 
main ()
9844
 
{
9845
 
 
9846
 
  ;
9847
 
  return 0;
9848
 
}
9849
 
_ACEOF
9850
 
if ac_fn_c_try_link "$LINENO"; then :
9851
 
 
9852
 
lt_aix_libpath_sed='
9853
 
    /Import File Strings/,/^$/ {
9854
 
        /^0/ {
9855
 
            s/^0  *\(.*\)$/\1/
9856
 
            p
9857
 
        }
9858
 
    }'
9859
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860
 
# Check for a 64-bit object if we didn't find anything.
9861
 
if test -z "$aix_libpath"; then
9862
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9863
 
fi
9864
 
fi
9865
 
rm -f core conftest.err conftest.$ac_objext \
9866
 
    conftest$ac_exeext conftest.$ac_ext
9867
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9868
 
 
9869
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870
 
          # Warning - without using the other run time loading flags,
9871
 
          # -berok will link without error, but may produce a broken library.
9872
 
          no_undefined_flag=' ${wl}-bernotok'
9873
 
          allow_undefined_flag=' ${wl}-berok'
9874
 
          # Exported symbols can be pulled into shared objects from archives
9875
 
          whole_archive_flag_spec='$convenience'
9876
 
          archive_cmds_need_lc=yes
9877
 
          # This is similar to how AIX traditionally builds its shared libraries.
9878
 
          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'
9879
 
        fi
9880
 
      fi
9881
 
      ;;
9882
 
 
9883
 
    amigaos*)
9884
 
      case $host_cpu in
9885
 
      powerpc)
9886
 
            # see comment about AmigaOS4 .so support
9887
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9888
 
            archive_expsym_cmds=''
9889
 
        ;;
9890
 
      m68k)
9891
 
            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)'
9892
 
            hardcode_libdir_flag_spec='-L$libdir'
9893
 
            hardcode_minus_L=yes
9894
 
        ;;
9895
 
      esac
9896
 
      ;;
9897
 
 
9898
 
    bsdi[45]*)
9899
 
      export_dynamic_flag_spec=-rdynamic
9900
 
      ;;
9901
 
 
9902
 
    cygwin* | mingw* | pw32* | cegcc*)
9903
 
      # When not using gcc, we currently assume that we are using
9904
 
      # Microsoft Visual C++.
9905
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9906
 
      # no search path for DLLs.
9907
 
      hardcode_libdir_flag_spec=' '
9908
 
      allow_undefined_flag=unsupported
9909
 
      # Tell ltmain to make .lib files, not .a files.
9910
 
      libext=lib
9911
 
      # Tell ltmain to make .dll files, not .so files.
9912
 
      shrext_cmds=".dll"
9913
 
      # FIXME: Setting linknames here is a bad hack.
9914
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9915
 
      # The linker will automatically build a .lib file if we build a DLL.
9916
 
      old_archive_from_new_cmds='true'
9917
 
      # FIXME: Should let the user specify the lib program.
9918
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9919
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9920
 
      enable_shared_with_static_runtimes=yes
9921
 
      ;;
9922
 
 
9923
 
    darwin* | rhapsody*)
9924
 
 
9925
 
 
9926
 
  archive_cmds_need_lc=no
9927
 
  hardcode_direct=no
9928
 
  hardcode_automatic=yes
9929
 
  hardcode_shlibpath_var=unsupported
9930
 
  whole_archive_flag_spec=''
9931
 
  link_all_deplibs=yes
9932
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
9933
 
  case $cc_basename in
9934
 
     ifort*) _lt_dar_can_shared=yes ;;
9935
 
     *) _lt_dar_can_shared=$GCC ;;
9936
 
  esac
9937
 
  if test "$_lt_dar_can_shared" = "yes"; then
9938
 
    output_verbose_link_cmd=echo
9939
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9940
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9941
 
    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}"
9942
 
    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}"
9943
 
 
9944
 
  else
9945
 
  ld_shlibs=no
9946
 
  fi
9947
 
 
9948
 
      ;;
9949
 
 
9950
 
    dgux*)
9951
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952
 
      hardcode_libdir_flag_spec='-L$libdir'
9953
 
      hardcode_shlibpath_var=no
9954
 
      ;;
9955
 
 
9956
 
    freebsd1*)
9957
 
      ld_shlibs=no
9958
 
      ;;
9959
 
 
9960
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9961
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9962
 
    # does not break anything, and helps significantly (at the cost of a little
9963
 
    # extra space).
9964
 
    freebsd2.2*)
9965
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9966
 
      hardcode_libdir_flag_spec='-R$libdir'
9967
 
      hardcode_direct=yes
9968
 
      hardcode_shlibpath_var=no
9969
 
      ;;
9970
 
 
9971
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9972
 
    freebsd2*)
9973
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9974
 
      hardcode_direct=yes
9975
 
      hardcode_minus_L=yes
9976
 
      hardcode_shlibpath_var=no
9977
 
      ;;
9978
 
 
9979
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9980
 
    freebsd* | dragonfly*)
9981
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9982
 
      hardcode_libdir_flag_spec='-R$libdir'
9983
 
      hardcode_direct=yes
9984
 
      hardcode_shlibpath_var=no
9985
 
      ;;
9986
 
 
9987
 
    hpux9*)
9988
 
      if test "$GCC" = yes; then
9989
 
        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'
9990
 
      else
9991
 
        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'
9992
 
      fi
9993
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994
 
      hardcode_libdir_separator=:
9995
 
      hardcode_direct=yes
9996
 
 
9997
 
      # hardcode_minus_L: Not really in the search PATH,
9998
 
      # but as the default location of the library.
9999
 
      hardcode_minus_L=yes
10000
 
      export_dynamic_flag_spec='${wl}-E'
10001
 
      ;;
10002
 
 
10003
 
    hpux10*)
10004
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10005
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10006
 
      else
10007
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10008
 
      fi
10009
 
      if test "$with_gnu_ld" = no; then
10010
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10011
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
10012
 
        hardcode_libdir_separator=:
10013
 
        hardcode_direct=yes
10014
 
        hardcode_direct_absolute=yes
10015
 
        export_dynamic_flag_spec='${wl}-E'
10016
 
        # hardcode_minus_L: Not really in the search PATH,
10017
 
        # but as the default location of the library.
10018
 
        hardcode_minus_L=yes
10019
 
      fi
10020
 
      ;;
10021
 
 
10022
 
    hpux11*)
10023
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10024
 
        case $host_cpu in
10025
 
        hppa*64*)
10026
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10027
 
          ;;
10028
 
        ia64*)
10029
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10030
 
          ;;
10031
 
        *)
10032
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10033
 
          ;;
10034
 
        esac
10035
 
      else
10036
 
        case $host_cpu in
10037
 
        hppa*64*)
10038
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10039
 
          ;;
10040
 
        ia64*)
10041
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10042
 
          ;;
10043
 
        *)
10044
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10045
 
          ;;
10046
 
        esac
10047
 
      fi
10048
 
      if test "$with_gnu_ld" = no; then
10049
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10050
 
        hardcode_libdir_separator=:
10051
 
 
10052
 
        case $host_cpu in
10053
 
        hppa*64*|ia64*)
10054
 
          hardcode_direct=no
10055
 
          hardcode_shlibpath_var=no
10056
 
          ;;
10057
 
        *)
10058
 
          hardcode_direct=yes
10059
 
          hardcode_direct_absolute=yes
10060
 
          export_dynamic_flag_spec='${wl}-E'
10061
 
 
10062
 
          # hardcode_minus_L: Not really in the search PATH,
10063
 
          # but as the default location of the library.
10064
 
          hardcode_minus_L=yes
10065
 
          ;;
10066
 
        esac
10067
 
      fi
10068
 
      ;;
10069
 
 
10070
 
    irix5* | irix6* | nonstopux*)
10071
 
      if test "$GCC" = yes; then
10072
 
        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'
10073
 
        # Try to use the -exported_symbol ld option, if it does not
10074
 
        # work, assume that -exports_file does not work either and
10075
 
        # implicitly export all symbols.
10076
 
        save_LDFLAGS="$LDFLAGS"
10077
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10078
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079
 
/* end confdefs.h.  */
10080
 
int foo(void) {}
10081
 
_ACEOF
10082
 
if ac_fn_c_try_link "$LINENO"; then :
10083
 
  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'
10084
 
 
10085
 
fi
10086
 
rm -f core conftest.err conftest.$ac_objext \
10087
 
    conftest$ac_exeext conftest.$ac_ext
10088
 
        LDFLAGS="$save_LDFLAGS"
10089
 
      else
10090
 
        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'
10091
 
        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'
10092
 
      fi
10093
 
      archive_cmds_need_lc='no'
10094
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095
 
      hardcode_libdir_separator=:
10096
 
      inherit_rpath=yes
10097
 
      link_all_deplibs=yes
10098
 
      ;;
10099
 
 
10100
 
    netbsd* | netbsdelf*-gnu)
10101
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10102
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10103
 
      else
10104
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10105
 
      fi
10106
 
      hardcode_libdir_flag_spec='-R$libdir'
10107
 
      hardcode_direct=yes
10108
 
      hardcode_shlibpath_var=no
10109
 
      ;;
10110
 
 
10111
 
    newsos6)
10112
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113
 
      hardcode_direct=yes
10114
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115
 
      hardcode_libdir_separator=:
10116
 
      hardcode_shlibpath_var=no
10117
 
      ;;
10118
 
 
10119
 
    *nto* | *qnx*)
10120
 
      ;;
10121
 
 
10122
 
    openbsd*)
10123
 
      if test -f /usr/libexec/ld.so; then
10124
 
        hardcode_direct=yes
10125
 
        hardcode_shlibpath_var=no
10126
 
        hardcode_direct_absolute=yes
10127
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10128
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10129
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10130
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10131
 
          export_dynamic_flag_spec='${wl}-E'
10132
 
        else
10133
 
          case $host_os in
10134
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10135
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10136
 
             hardcode_libdir_flag_spec='-R$libdir'
10137
 
             ;;
10138
 
           *)
10139
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10141
 
             ;;
10142
 
          esac
10143
 
        fi
10144
 
      else
10145
 
        ld_shlibs=no
10146
 
      fi
10147
 
      ;;
10148
 
 
10149
 
    os2*)
10150
 
      hardcode_libdir_flag_spec='-L$libdir'
10151
 
      hardcode_minus_L=yes
10152
 
      allow_undefined_flag=unsupported
10153
 
      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'
10154
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10155
 
      ;;
10156
 
 
10157
 
    osf3*)
10158
 
      if test "$GCC" = yes; then
10159
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10160
 
        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'
10161
 
      else
10162
 
        allow_undefined_flag=' -expect_unresolved \*'
10163
 
        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'
10164
 
      fi
10165
 
      archive_cmds_need_lc='no'
10166
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10167
 
      hardcode_libdir_separator=:
10168
 
      ;;
10169
 
 
10170
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10171
 
      if test "$GCC" = yes; then
10172
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10173
 
        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'
10174
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10175
 
      else
10176
 
        allow_undefined_flag=' -expect_unresolved \*'
10177
 
        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'
10178
 
        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~
10179
 
        $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'
10180
 
 
10181
 
        # Both c and cxx compiler support -rpath directly
10182
 
        hardcode_libdir_flag_spec='-rpath $libdir'
10183
 
      fi
10184
 
      archive_cmds_need_lc='no'
10185
 
      hardcode_libdir_separator=:
10186
 
      ;;
10187
 
 
10188
 
    solaris*)
10189
 
      no_undefined_flag=' -z defs'
10190
 
      if test "$GCC" = yes; then
10191
 
        wlarc='${wl}'
10192
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10193
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10194
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10195
 
      else
10196
 
        case `$CC -V 2>&1` in
10197
 
        *"Compilers 5.0"*)
10198
 
          wlarc=''
10199
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10201
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10202
 
          ;;
10203
 
        *)
10204
 
          wlarc='${wl}'
10205
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10206
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10208
 
          ;;
10209
 
        esac
10210
 
      fi
10211
 
      hardcode_libdir_flag_spec='-R$libdir'
10212
 
      hardcode_shlibpath_var=no
10213
 
      case $host_os in
10214
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10215
 
      *)
10216
 
        # The compiler driver will combine and reorder linker options,
10217
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10218
 
        # but is careful enough not to reorder.
10219
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10220
 
        if test "$GCC" = yes; then
10221
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10222
 
        else
10223
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10224
 
        fi
10225
 
        ;;
10226
 
      esac
10227
 
      link_all_deplibs=yes
10228
 
      ;;
10229
 
 
10230
 
    sunos4*)
10231
 
      if test "x$host_vendor" = xsequent; then
10232
 
        # Use $CC to link under sequent, because it throws in some extra .o
10233
 
        # files that make .init and .fini sections work.
10234
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10235
 
      else
10236
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10237
 
      fi
10238
 
      hardcode_libdir_flag_spec='-L$libdir'
10239
 
      hardcode_direct=yes
10240
 
      hardcode_minus_L=yes
10241
 
      hardcode_shlibpath_var=no
10242
 
      ;;
10243
 
 
10244
 
    sysv4)
10245
 
      case $host_vendor in
10246
 
        sni)
10247
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248
 
          hardcode_direct=yes # is this really true???
10249
 
        ;;
10250
 
        siemens)
10251
 
          ## LD is ld it makes a PLAMLIB
10252
 
          ## CC just makes a GrossModule.
10253
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10254
 
          reload_cmds='$CC -r -o $output$reload_objs'
10255
 
          hardcode_direct=no
10256
 
        ;;
10257
 
        motorola)
10258
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10260
 
        ;;
10261
 
      esac
10262
 
      runpath_var='LD_RUN_PATH'
10263
 
      hardcode_shlibpath_var=no
10264
 
      ;;
10265
 
 
10266
 
    sysv4.3*)
10267
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268
 
      hardcode_shlibpath_var=no
10269
 
      export_dynamic_flag_spec='-Bexport'
10270
 
      ;;
10271
 
 
10272
 
    sysv4*MP*)
10273
 
      if test -d /usr/nec; then
10274
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275
 
        hardcode_shlibpath_var=no
10276
 
        runpath_var=LD_RUN_PATH
10277
 
        hardcode_runpath_var=yes
10278
 
        ld_shlibs=yes
10279
 
      fi
10280
 
      ;;
10281
 
 
10282
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10283
 
      no_undefined_flag='${wl}-z,text'
10284
 
      archive_cmds_need_lc=no
10285
 
      hardcode_shlibpath_var=no
10286
 
      runpath_var='LD_RUN_PATH'
10287
 
 
10288
 
      if test "$GCC" = yes; then
10289
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291
 
      else
10292
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294
 
      fi
10295
 
      ;;
10296
 
 
10297
 
    sysv5* | sco3.2v5* | sco5v6*)
10298
 
      # Note: We can NOT use -z defs as we might desire, because we do not
10299
 
      # link with -lc, and that would cause any symbols used from libc to
10300
 
      # always be unresolved, which means just about no library would
10301
 
      # ever link correctly.  If we're not using GNU ld we use -z text
10302
 
      # though, which does catch some bad symbols but isn't as heavy-handed
10303
 
      # as -z defs.
10304
 
      no_undefined_flag='${wl}-z,text'
10305
 
      allow_undefined_flag='${wl}-z,nodefs'
10306
 
      archive_cmds_need_lc=no
10307
 
      hardcode_shlibpath_var=no
10308
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10309
 
      hardcode_libdir_separator=':'
10310
 
      link_all_deplibs=yes
10311
 
      export_dynamic_flag_spec='${wl}-Bexport'
10312
 
      runpath_var='LD_RUN_PATH'
10313
 
 
10314
 
      if test "$GCC" = yes; then
10315
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317
 
      else
10318
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320
 
      fi
10321
 
      ;;
10322
 
 
10323
 
    uts4*)
10324
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325
 
      hardcode_libdir_flag_spec='-L$libdir'
10326
 
      hardcode_shlibpath_var=no
10327
 
      ;;
10328
 
 
10329
 
    *)
10330
 
      ld_shlibs=no
10331
 
      ;;
10332
 
    esac
10333
 
 
10334
 
    if test x$host_vendor = xsni; then
10335
 
      case $host in
10336
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10337
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10338
 
        ;;
10339
 
      esac
10340
 
    fi
10341
 
  fi
10342
 
 
10343
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10344
 
$as_echo "$ld_shlibs" >&6; }
10345
 
test "$ld_shlibs" = no && can_build_shared=no
10346
 
 
10347
 
with_gnu_ld=$with_gnu_ld
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
#
10364
 
# Do we need to explicitly link libc?
10365
 
#
10366
 
case "x$archive_cmds_need_lc" in
10367
 
x|xyes)
10368
 
  # Assume -lc should be added
10369
 
  archive_cmds_need_lc=yes
10370
 
 
10371
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10372
 
    case $archive_cmds in
10373
 
    *'~'*)
10374
 
      # FIXME: we may have to deal with multi-command sequences.
10375
 
      ;;
10376
 
    '$CC '*)
10377
 
      # Test whether the compiler implicitly links with -lc since on some
10378
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10379
 
      # to ld, don't add -lc before -lgcc.
10380
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10381
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10382
 
      $RM conftest*
10383
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10384
 
 
10385
 
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10386
 
  (eval $ac_compile) 2>&5
10387
 
  ac_status=$?
10388
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389
 
  test $ac_status = 0; } 2>conftest.err; then
10390
 
        soname=conftest
10391
 
        lib=conftest
10392
 
        libobjs=conftest.$ac_objext
10393
 
        deplibs=
10394
 
        wl=$lt_prog_compiler_wl
10395
 
        pic_flag=$lt_prog_compiler_pic
10396
 
        compiler_flags=-v
10397
 
        linker_flags=-v
10398
 
        verstring=
10399
 
        output_objdir=.
10400
 
        libname=conftest
10401
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
10402
 
        allow_undefined_flag=
10403
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10404
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10405
 
  ac_status=$?
10406
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10407
 
  test $ac_status = 0; }
10408
 
        then
10409
 
          archive_cmds_need_lc=no
10410
 
        else
10411
 
          archive_cmds_need_lc=yes
10412
 
        fi
10413
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
10414
 
      else
10415
 
        cat conftest.err 1>&5
10416
 
      fi
10417
 
      $RM conftest*
10418
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10419
 
$as_echo "$archive_cmds_need_lc" >&6; }
10420
 
      ;;
10421
 
    esac
10422
 
  fi
10423
 
  ;;
10424
 
esac
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
 
 
10495
 
 
10496
 
 
10497
 
 
10498
 
 
10499
 
 
10500
 
 
10501
 
 
10502
 
 
10503
 
 
10504
 
 
10505
 
 
10506
 
 
10507
 
 
10508
 
 
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
 
10514
 
 
10515
 
 
10516
 
 
10517
 
 
10518
 
 
10519
 
 
10520
 
 
10521
 
 
10522
 
 
10523
 
 
10524
 
 
10525
 
 
10526
 
 
10527
 
 
10528
 
 
10529
 
 
10530
 
 
10531
 
 
10532
 
 
10533
 
 
10534
 
 
10535
 
 
10536
 
 
10537
 
 
10538
 
 
10539
 
 
10540
 
 
10541
 
 
10542
 
 
10543
 
 
10544
 
 
10545
 
 
10546
 
 
10547
 
 
10548
 
 
10549
 
 
10550
 
 
10551
 
 
10552
 
 
10553
 
 
10554
 
 
10555
 
 
10556
 
 
10557
 
 
10558
 
 
10559
 
 
10560
 
 
10561
 
 
10562
 
 
10563
 
 
10564
 
 
10565
 
 
10566
 
 
10567
 
 
10568
 
 
10569
 
 
10570
 
 
10571
 
 
10572
 
 
10573
 
 
10574
 
 
10575
 
 
10576
 
 
10577
 
 
10578
 
 
10579
 
 
10580
 
 
10581
 
 
10582
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10583
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10584
 
 
10585
 
if test "$GCC" = yes; then
10586
 
  case $host_os in
10587
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10588
 
    *) lt_awk_arg="/^libraries:/" ;;
10589
 
  esac
10590
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10591
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10592
 
    # if the path contains ";" then we assume it to be the separator
10593
 
    # otherwise default to the standard path separator (i.e. ":") - it is
10594
 
    # assumed that no part of a normal pathname contains ";" but that should
10595
 
    # okay in the real world where ";" in dirpaths is itself problematic.
10596
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10597
 
  else
10598
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10599
 
  fi
10600
 
  # Ok, now we have the path, separated by spaces, we can step through it
10601
 
  # and add multilib dir if necessary.
10602
 
  lt_tmp_lt_search_path_spec=
10603
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10604
 
  for lt_sys_path in $lt_search_path_spec; do
10605
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10606
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10607
 
    else
10608
 
      test -d "$lt_sys_path" && \
10609
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10610
 
    fi
10611
 
  done
10612
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10613
 
BEGIN {RS=" "; FS="/|\n";} {
10614
 
  lt_foo="";
10615
 
  lt_count=0;
10616
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
10617
 
    if ($lt_i != "" && $lt_i != ".") {
10618
 
      if ($lt_i == "..") {
10619
 
        lt_count++;
10620
 
      } else {
10621
 
        if (lt_count == 0) {
10622
 
          lt_foo="/" $lt_i lt_foo;
10623
 
        } else {
10624
 
          lt_count--;
10625
 
        }
10626
 
      }
10627
 
    }
10628
 
  }
10629
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10630
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10631
 
}'`
10632
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10633
 
else
10634
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10635
 
fi
10636
 
library_names_spec=
10637
 
libname_spec='lib$name'
10638
 
soname_spec=
10639
 
shrext_cmds=".so"
10640
 
postinstall_cmds=
10641
 
postuninstall_cmds=
10642
 
finish_cmds=
10643
 
finish_eval=
10644
 
shlibpath_var=
10645
 
shlibpath_overrides_runpath=unknown
10646
 
version_type=none
10647
 
dynamic_linker="$host_os ld.so"
10648
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10649
 
need_lib_prefix=unknown
10650
 
hardcode_into_libs=no
10651
 
 
10652
 
# when you set need_version to no, make sure it does not cause -set_version
10653
 
# flags to be left without arguments
10654
 
need_version=unknown
10655
 
 
10656
 
case $host_os in
10657
 
aix3*)
10658
 
  version_type=linux
10659
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10660
 
  shlibpath_var=LIBPATH
10661
 
 
10662
 
  # AIX 3 has no versioning support, so we append a major version to the name.
10663
 
  soname_spec='${libname}${release}${shared_ext}$major'
10664
 
  ;;
10665
 
 
10666
 
aix[4-9]*)
10667
 
  version_type=linux
10668
 
  need_lib_prefix=no
10669
 
  need_version=no
10670
 
  hardcode_into_libs=yes
10671
 
  if test "$host_cpu" = ia64; then
10672
 
    # AIX 5 supports IA64
10673
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10674
 
    shlibpath_var=LD_LIBRARY_PATH
10675
 
  else
10676
 
    # With GCC up to 2.95.x, collect2 would create an import file
10677
 
    # for dependence libraries.  The import file would start with
10678
 
    # the line `#! .'.  This would cause the generated library to
10679
 
    # depend on `.', always an invalid library.  This was fixed in
10680
 
    # development snapshots of GCC prior to 3.0.
10681
 
    case $host_os in
10682
 
      aix4 | aix4.[01] | aix4.[01].*)
10683
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10684
 
           echo ' yes '
10685
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10686
 
        :
10687
 
      else
10688
 
        can_build_shared=no
10689
 
      fi
10690
 
      ;;
10691
 
    esac
10692
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10693
 
    # soname into executable. Probably we can add versioning support to
10694
 
    # collect2, so additional links can be useful in future.
10695
 
    if test "$aix_use_runtimelinking" = yes; then
10696
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10697
 
      # instead of lib<name>.a to let people know that these are not
10698
 
      # typical AIX shared libraries.
10699
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700
 
    else
10701
 
      # We preserve .a as extension for shared libraries through AIX4.2
10702
 
      # and later when we are not doing run time linking.
10703
 
      library_names_spec='${libname}${release}.a $libname.a'
10704
 
      soname_spec='${libname}${release}${shared_ext}$major'
10705
 
    fi
10706
 
    shlibpath_var=LIBPATH
10707
 
  fi
10708
 
  ;;
10709
 
 
10710
 
amigaos*)
10711
 
  case $host_cpu in
10712
 
  powerpc)
10713
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10714
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10715
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716
 
    ;;
10717
 
  m68k)
10718
 
    library_names_spec='$libname.ixlibrary $libname.a'
10719
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10720
 
    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'
10721
 
    ;;
10722
 
  esac
10723
 
  ;;
10724
 
 
10725
 
beos*)
10726
 
  library_names_spec='${libname}${shared_ext}'
10727
 
  dynamic_linker="$host_os ld.so"
10728
 
  shlibpath_var=LIBRARY_PATH
10729
 
  ;;
10730
 
 
10731
 
bsdi[45]*)
10732
 
  version_type=linux
10733
 
  need_version=no
10734
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735
 
  soname_spec='${libname}${release}${shared_ext}$major'
10736
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10737
 
  shlibpath_var=LD_LIBRARY_PATH
10738
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10739
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10740
 
  # the default ld.so.conf also contains /usr/contrib/lib and
10741
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10742
 
  # libtool to hard-code these into programs
10743
 
  ;;
10744
 
 
10745
 
cygwin* | mingw* | pw32* | cegcc*)
10746
 
  version_type=windows
10747
 
  shrext_cmds=".dll"
10748
 
  need_version=no
10749
 
  need_lib_prefix=no
10750
 
 
10751
 
  case $GCC,$host_os in
10752
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10753
 
    library_names_spec='$libname.dll.a'
10754
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10755
 
    postinstall_cmds='base_file=`basename \${file}`~
10756
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10757
 
      dldir=$destdir/`dirname \$dlpath`~
10758
 
      test -d \$dldir || mkdir -p \$dldir~
10759
 
      $install_prog $dir/$dlname \$dldir/$dlname~
10760
 
      chmod a+x \$dldir/$dlname~
10761
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10762
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10763
 
      fi'
10764
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10765
 
      dlpath=$dir/\$dldll~
10766
 
       $RM \$dlpath'
10767
 
    shlibpath_overrides_runpath=yes
10768
 
 
10769
 
    case $host_os in
10770
 
    cygwin*)
10771
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10772
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10774
 
      ;;
10775
 
    mingw* | cegcc*)
10776
 
      # MinGW DLLs use traditional 'lib' prefix
10777
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10779
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10780
 
        # It is most probably a Windows format PATH printed by
10781
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10782
 
        # path with ; separators, and with drive letters. We can handle the
10783
 
        # drive letters (cygwin fileutils understands them), so leave them,
10784
 
        # especially as we might pass files found there to a mingw objdump,
10785
 
        # which wouldn't understand a cygwinified path. Ahh.
10786
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10787
 
      else
10788
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10789
 
      fi
10790
 
      ;;
10791
 
    pw32*)
10792
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10793
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10794
 
      ;;
10795
 
    esac
10796
 
    ;;
10797
 
 
10798
 
  *)
10799
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10800
 
    ;;
10801
 
  esac
10802
 
  dynamic_linker='Win32 ld.exe'
10803
 
  # FIXME: first we should search . and the directory the executable is in
10804
 
  shlibpath_var=PATH
10805
 
  ;;
10806
 
 
10807
 
darwin* | rhapsody*)
10808
 
  dynamic_linker="$host_os dyld"
10809
 
  version_type=darwin
10810
 
  need_lib_prefix=no
10811
 
  need_version=no
10812
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10813
 
  soname_spec='${libname}${release}${major}$shared_ext'
10814
 
  shlibpath_overrides_runpath=yes
10815
 
  shlibpath_var=DYLD_LIBRARY_PATH
10816
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10817
 
 
10818
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10819
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10820
 
  ;;
10821
 
 
10822
 
dgux*)
10823
 
  version_type=linux
10824
 
  need_lib_prefix=no
10825
 
  need_version=no
10826
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10827
 
  soname_spec='${libname}${release}${shared_ext}$major'
10828
 
  shlibpath_var=LD_LIBRARY_PATH
10829
 
  ;;
10830
 
 
10831
 
freebsd1*)
10832
 
  dynamic_linker=no
10833
 
  ;;
10834
 
 
10835
 
freebsd* | dragonfly*)
10836
 
  # DragonFly does not have aout.  When/if they implement a new
10837
 
  # versioning mechanism, adjust this.
10838
 
  if test -x /usr/bin/objformat; then
10839
 
    objformat=`/usr/bin/objformat`
10840
 
  else
10841
 
    case $host_os in
10842
 
    freebsd[123]*) objformat=aout ;;
10843
 
    *) objformat=elf ;;
10844
 
    esac
10845
 
  fi
10846
 
  version_type=freebsd-$objformat
10847
 
  case $version_type in
10848
 
    freebsd-elf*)
10849
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10850
 
      need_version=no
10851
 
      need_lib_prefix=no
10852
 
      ;;
10853
 
    freebsd-*)
10854
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10855
 
      need_version=yes
10856
 
      ;;
10857
 
  esac
10858
 
  shlibpath_var=LD_LIBRARY_PATH
10859
 
  case $host_os in
10860
 
  freebsd2*)
10861
 
    shlibpath_overrides_runpath=yes
10862
 
    ;;
10863
 
  freebsd3.[01]* | freebsdelf3.[01]*)
10864
 
    shlibpath_overrides_runpath=yes
10865
 
    hardcode_into_libs=yes
10866
 
    ;;
10867
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10868
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10869
 
    shlibpath_overrides_runpath=no
10870
 
    hardcode_into_libs=yes
10871
 
    ;;
10872
 
  *) # from 4.6 on, and DragonFly
10873
 
    shlibpath_overrides_runpath=yes
10874
 
    hardcode_into_libs=yes
10875
 
    ;;
10876
 
  esac
10877
 
  ;;
10878
 
 
10879
 
gnu*)
10880
 
  version_type=linux
10881
 
  need_lib_prefix=no
10882
 
  need_version=no
10883
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10884
 
  soname_spec='${libname}${release}${shared_ext}$major'
10885
 
  shlibpath_var=LD_LIBRARY_PATH
10886
 
  hardcode_into_libs=yes
10887
 
  ;;
10888
 
 
10889
 
hpux9* | hpux10* | hpux11*)
10890
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
10891
 
  # link against other versions.
10892
 
  version_type=sunos
10893
 
  need_lib_prefix=no
10894
 
  need_version=no
10895
 
  case $host_cpu in
10896
 
  ia64*)
10897
 
    shrext_cmds='.so'
10898
 
    hardcode_into_libs=yes
10899
 
    dynamic_linker="$host_os dld.so"
10900
 
    shlibpath_var=LD_LIBRARY_PATH
10901
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10902
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903
 
    soname_spec='${libname}${release}${shared_ext}$major'
10904
 
    if test "X$HPUX_IA64_MODE" = X32; then
10905
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10906
 
    else
10907
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10908
 
    fi
10909
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10910
 
    ;;
10911
 
  hppa*64*)
10912
 
    shrext_cmds='.sl'
10913
 
    hardcode_into_libs=yes
10914
 
    dynamic_linker="$host_os dld.sl"
10915
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10916
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10917
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918
 
    soname_spec='${libname}${release}${shared_ext}$major'
10919
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10920
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10921
 
    ;;
10922
 
  *)
10923
 
    shrext_cmds='.sl'
10924
 
    dynamic_linker="$host_os dld.sl"
10925
 
    shlibpath_var=SHLIB_PATH
10926
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10927
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928
 
    soname_spec='${libname}${release}${shared_ext}$major'
10929
 
    ;;
10930
 
  esac
10931
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10932
 
  postinstall_cmds='chmod 555 $lib'
10933
 
  ;;
10934
 
 
10935
 
interix[3-9]*)
10936
 
  version_type=linux
10937
 
  need_lib_prefix=no
10938
 
  need_version=no
10939
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10940
 
  soname_spec='${libname}${release}${shared_ext}$major'
10941
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10942
 
  shlibpath_var=LD_LIBRARY_PATH
10943
 
  shlibpath_overrides_runpath=no
10944
 
  hardcode_into_libs=yes
10945
 
  ;;
10946
 
 
10947
 
irix5* | irix6* | nonstopux*)
10948
 
  case $host_os in
10949
 
    nonstopux*) version_type=nonstopux ;;
10950
 
    *)
10951
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
10952
 
                version_type=linux
10953
 
        else
10954
 
                version_type=irix
10955
 
        fi ;;
10956
 
  esac
10957
 
  need_lib_prefix=no
10958
 
  need_version=no
10959
 
  soname_spec='${libname}${release}${shared_ext}$major'
10960
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10961
 
  case $host_os in
10962
 
  irix5* | nonstopux*)
10963
 
    libsuff= shlibsuff=
10964
 
    ;;
10965
 
  *)
10966
 
    case $LD in # libtool.m4 will add one of these switches to LD
10967
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10968
 
      libsuff= shlibsuff= libmagic=32-bit;;
10969
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10970
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10971
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10972
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10973
 
    *) libsuff= shlibsuff= libmagic=never-match;;
10974
 
    esac
10975
 
    ;;
10976
 
  esac
10977
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10978
 
  shlibpath_overrides_runpath=no
10979
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10980
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10981
 
  hardcode_into_libs=yes
10982
 
  ;;
10983
 
 
10984
 
# No shared lib support for Linux oldld, aout, or coff.
10985
 
linux*oldld* | linux*aout* | linux*coff*)
10986
 
  dynamic_linker=no
10987
 
  ;;
10988
 
 
10989
 
# This must be Linux ELF.
10990
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10991
 
  version_type=linux
10992
 
  need_lib_prefix=no
10993
 
  need_version=no
10994
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995
 
  soname_spec='${libname}${release}${shared_ext}$major'
10996
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10997
 
  shlibpath_var=LD_LIBRARY_PATH
10998
 
  shlibpath_overrides_runpath=no
10999
 
  # Some binutils ld are patched to set DT_RUNPATH
11000
 
  save_LDFLAGS=$LDFLAGS
11001
 
  save_libdir=$libdir
11002
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11003
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11004
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005
 
/* end confdefs.h.  */
11006
 
 
11007
 
int
11008
 
main ()
11009
 
{
11010
 
 
11011
 
  ;
11012
 
  return 0;
11013
 
}
11014
 
_ACEOF
11015
 
if ac_fn_c_try_link "$LINENO"; then :
11016
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11017
 
  shlibpath_overrides_runpath=yes
11018
 
fi
11019
 
fi
11020
 
rm -f core conftest.err conftest.$ac_objext \
11021
 
    conftest$ac_exeext conftest.$ac_ext
11022
 
  LDFLAGS=$save_LDFLAGS
11023
 
  libdir=$save_libdir
11024
 
 
11025
 
  # This implies no fast_install, which is unacceptable.
11026
 
  # Some rework will be needed to allow for fast_install
11027
 
  # before this can be enabled.
11028
 
  hardcode_into_libs=yes
11029
 
 
11030
 
  # Append ld.so.conf contents to the search path
11031
 
  if test -f /etc/ld.so.conf; then
11032
 
    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' ' '`
11033
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11034
 
  fi
11035
 
 
11036
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11037
 
  # powerpc, because MkLinux only supported shared libraries with the
11038
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
11039
 
  # most powerpc-linux boxes support dynamic linking these days and
11040
 
  # people can always --disable-shared, the test was removed, and we
11041
 
  # assume the GNU/Linux dynamic linker is in use.
11042
 
  dynamic_linker='GNU/Linux ld.so'
11043
 
  ;;
11044
 
 
11045
 
netbsdelf*-gnu)
11046
 
  version_type=linux
11047
 
  need_lib_prefix=no
11048
 
  need_version=no
11049
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11050
 
  soname_spec='${libname}${release}${shared_ext}$major'
11051
 
  shlibpath_var=LD_LIBRARY_PATH
11052
 
  shlibpath_overrides_runpath=no
11053
 
  hardcode_into_libs=yes
11054
 
  dynamic_linker='NetBSD ld.elf_so'
11055
 
  ;;
11056
 
 
11057
 
netbsd*)
11058
 
  version_type=sunos
11059
 
  need_lib_prefix=no
11060
 
  need_version=no
11061
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11062
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11063
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11064
 
    dynamic_linker='NetBSD (a.out) ld.so'
11065
 
  else
11066
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11067
 
    soname_spec='${libname}${release}${shared_ext}$major'
11068
 
    dynamic_linker='NetBSD ld.elf_so'
11069
 
  fi
11070
 
  shlibpath_var=LD_LIBRARY_PATH
11071
 
  shlibpath_overrides_runpath=yes
11072
 
  hardcode_into_libs=yes
11073
 
  ;;
11074
 
 
11075
 
newsos6)
11076
 
  version_type=linux
11077
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078
 
  shlibpath_var=LD_LIBRARY_PATH
11079
 
  shlibpath_overrides_runpath=yes
11080
 
  ;;
11081
 
 
11082
 
*nto* | *qnx*)
11083
 
  version_type=qnx
11084
 
  need_lib_prefix=no
11085
 
  need_version=no
11086
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087
 
  soname_spec='${libname}${release}${shared_ext}$major'
11088
 
  shlibpath_var=LD_LIBRARY_PATH
11089
 
  shlibpath_overrides_runpath=no
11090
 
  hardcode_into_libs=yes
11091
 
  dynamic_linker='ldqnx.so'
11092
 
  ;;
11093
 
 
11094
 
openbsd*)
11095
 
  version_type=sunos
11096
 
  sys_lib_dlsearch_path_spec="/usr/lib"
11097
 
  need_lib_prefix=no
11098
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11099
 
  case $host_os in
11100
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11101
 
    *)                          need_version=no  ;;
11102
 
  esac
11103
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11105
 
  shlibpath_var=LD_LIBRARY_PATH
11106
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11107
 
    case $host_os in
11108
 
      openbsd2.[89] | openbsd2.[89].*)
11109
 
        shlibpath_overrides_runpath=no
11110
 
        ;;
11111
 
      *)
11112
 
        shlibpath_overrides_runpath=yes
11113
 
        ;;
11114
 
      esac
11115
 
  else
11116
 
    shlibpath_overrides_runpath=yes
11117
 
  fi
11118
 
  ;;
11119
 
 
11120
 
os2*)
11121
 
  libname_spec='$name'
11122
 
  shrext_cmds=".dll"
11123
 
  need_lib_prefix=no
11124
 
  library_names_spec='$libname${shared_ext} $libname.a'
11125
 
  dynamic_linker='OS/2 ld.exe'
11126
 
  shlibpath_var=LIBPATH
11127
 
  ;;
11128
 
 
11129
 
osf3* | osf4* | osf5*)
11130
 
  version_type=osf
11131
 
  need_lib_prefix=no
11132
 
  need_version=no
11133
 
  soname_spec='${libname}${release}${shared_ext}$major'
11134
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135
 
  shlibpath_var=LD_LIBRARY_PATH
11136
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11137
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11138
 
  ;;
11139
 
 
11140
 
rdos*)
11141
 
  dynamic_linker=no
11142
 
  ;;
11143
 
 
11144
 
solaris*)
11145
 
  version_type=linux
11146
 
  need_lib_prefix=no
11147
 
  need_version=no
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
 
  shlibpath_overrides_runpath=yes
11152
 
  hardcode_into_libs=yes
11153
 
  # ldd complains unless libraries are executable
11154
 
  postinstall_cmds='chmod +x $lib'
11155
 
  ;;
11156
 
 
11157
 
sunos4*)
11158
 
  version_type=sunos
11159
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11160
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11161
 
  shlibpath_var=LD_LIBRARY_PATH
11162
 
  shlibpath_overrides_runpath=yes
11163
 
  if test "$with_gnu_ld" = yes; then
11164
 
    need_lib_prefix=no
11165
 
  fi
11166
 
  need_version=yes
11167
 
  ;;
11168
 
 
11169
 
sysv4 | sysv4.3*)
11170
 
  version_type=linux
11171
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172
 
  soname_spec='${libname}${release}${shared_ext}$major'
11173
 
  shlibpath_var=LD_LIBRARY_PATH
11174
 
  case $host_vendor in
11175
 
    sni)
11176
 
      shlibpath_overrides_runpath=no
11177
 
      need_lib_prefix=no
11178
 
      runpath_var=LD_RUN_PATH
11179
 
      ;;
11180
 
    siemens)
11181
 
      need_lib_prefix=no
11182
 
      ;;
11183
 
    motorola)
11184
 
      need_lib_prefix=no
11185
 
      need_version=no
11186
 
      shlibpath_overrides_runpath=no
11187
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11188
 
      ;;
11189
 
  esac
11190
 
  ;;
11191
 
 
11192
 
sysv4*MP*)
11193
 
  if test -d /usr/nec ;then
11194
 
    version_type=linux
11195
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11196
 
    soname_spec='$libname${shared_ext}.$major'
11197
 
    shlibpath_var=LD_LIBRARY_PATH
11198
 
  fi
11199
 
  ;;
11200
 
 
11201
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11202
 
  version_type=freebsd-elf
11203
 
  need_lib_prefix=no
11204
 
  need_version=no
11205
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11206
 
  soname_spec='${libname}${release}${shared_ext}$major'
11207
 
  shlibpath_var=LD_LIBRARY_PATH
11208
 
  shlibpath_overrides_runpath=yes
11209
 
  hardcode_into_libs=yes
11210
 
  if test "$with_gnu_ld" = yes; then
11211
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11212
 
  else
11213
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11214
 
    case $host_os in
11215
 
      sco3.2v5*)
11216
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11217
 
        ;;
11218
 
    esac
11219
 
  fi
11220
 
  sys_lib_dlsearch_path_spec='/usr/lib'
11221
 
  ;;
11222
 
 
11223
 
tpf*)
11224
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11225
 
  version_type=linux
11226
 
  need_lib_prefix=no
11227
 
  need_version=no
11228
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11229
 
  shlibpath_var=LD_LIBRARY_PATH
11230
 
  shlibpath_overrides_runpath=no
11231
 
  hardcode_into_libs=yes
11232
 
  ;;
11233
 
 
11234
 
uts4*)
11235
 
  version_type=linux
11236
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237
 
  soname_spec='${libname}${release}${shared_ext}$major'
11238
 
  shlibpath_var=LD_LIBRARY_PATH
11239
 
  ;;
11240
 
 
11241
 
*)
11242
 
  dynamic_linker=no
11243
 
  ;;
11244
 
esac
11245
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11246
 
$as_echo "$dynamic_linker" >&6; }
11247
 
test "$dynamic_linker" = no && can_build_shared=no
11248
 
 
11249
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11250
 
if test "$GCC" = yes; then
11251
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11252
 
fi
11253
 
 
11254
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11255
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11256
 
fi
11257
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11258
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11259
 
fi
11260
 
 
11261
 
 
11262
 
 
11263
 
 
11264
 
 
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
 
 
11272
 
 
11273
 
 
11274
 
 
11275
 
 
11276
 
 
11277
 
 
11278
 
 
11279
 
 
11280
 
 
11281
 
 
11282
 
 
11283
 
 
11284
 
 
11285
 
 
11286
 
 
11287
 
 
11288
 
 
11289
 
 
11290
 
 
11291
 
 
11292
 
 
11293
 
 
11294
 
 
11295
 
 
11296
 
 
11297
 
 
11298
 
 
11299
 
 
11300
 
 
11301
 
 
11302
 
 
11303
 
 
11304
 
 
11305
 
 
11306
 
 
11307
 
 
11308
 
 
11309
 
 
11310
 
 
11311
 
 
11312
 
 
11313
 
 
11314
 
 
11315
 
 
11316
 
 
11317
 
 
11318
 
 
11319
 
 
11320
 
 
11321
 
 
11322
 
 
11323
 
 
11324
 
 
11325
 
 
11326
 
 
11327
 
 
11328
 
 
11329
 
 
11330
 
 
11331
 
 
11332
 
 
11333
 
 
11334
 
 
11335
 
 
11336
 
 
11337
 
 
11338
 
 
11339
 
 
11340
 
 
11341
 
 
11342
 
 
11343
 
 
11344
 
 
11345
 
 
11346
 
 
11347
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11348
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11349
 
hardcode_action=
11350
 
if test -n "$hardcode_libdir_flag_spec" ||
11351
 
   test -n "$runpath_var" ||
11352
 
   test "X$hardcode_automatic" = "Xyes" ; then
11353
 
 
11354
 
  # We can hardcode non-existent directories.
11355
 
  if test "$hardcode_direct" != no &&
11356
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11357
 
     # have to relink, otherwise we might link with an installed library
11358
 
     # when we should be linking with a yet-to-be-installed one
11359
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11360
 
     test "$hardcode_minus_L" != no; then
11361
 
    # Linking always hardcodes the temporary library directory.
11362
 
    hardcode_action=relink
11363
 
  else
11364
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11365
 
    hardcode_action=immediate
11366
 
  fi
11367
 
else
11368
 
  # We cannot hardcode anything, or else we can only hardcode existing
11369
 
  # directories.
11370
 
  hardcode_action=unsupported
11371
 
fi
11372
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11373
 
$as_echo "$hardcode_action" >&6; }
11374
 
 
11375
 
if test "$hardcode_action" = relink ||
11376
 
   test "$inherit_rpath" = yes; then
11377
 
  # Fast installation is not supported
11378
 
  enable_fast_install=no
11379
 
elif test "$shlibpath_overrides_runpath" = yes ||
11380
 
     test "$enable_shared" = no; then
11381
 
  # Fast installation is not necessary
11382
 
  enable_fast_install=needless
11383
 
fi
11384
 
 
11385
 
 
11386
 
 
11387
 
 
11388
 
 
11389
 
 
11390
 
  if test "x$enable_dlopen" != xyes; then
11391
 
  enable_dlopen=unknown
11392
 
  enable_dlopen_self=unknown
11393
 
  enable_dlopen_self_static=unknown
11394
 
else
11395
 
  lt_cv_dlopen=no
11396
 
  lt_cv_dlopen_libs=
11397
 
 
11398
 
  case $host_os in
11399
 
  beos*)
11400
 
    lt_cv_dlopen="load_add_on"
11401
 
    lt_cv_dlopen_libs=
11402
 
    lt_cv_dlopen_self=yes
11403
 
    ;;
11404
 
 
11405
 
  mingw* | pw32* | cegcc*)
11406
 
    lt_cv_dlopen="LoadLibrary"
11407
 
    lt_cv_dlopen_libs=
11408
 
    ;;
11409
 
 
11410
 
  cygwin*)
11411
 
    lt_cv_dlopen="dlopen"
11412
 
    lt_cv_dlopen_libs=
11413
 
    ;;
11414
 
 
11415
 
  darwin*)
11416
 
  # if libdl is installed we need to link against it
11417
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11418
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11419
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11420
 
  $as_echo_n "(cached) " >&6
11421
 
else
11422
 
  ac_check_lib_save_LIBS=$LIBS
11423
 
LIBS="-ldl  $LIBS"
11424
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425
 
/* end confdefs.h.  */
11426
 
 
11427
 
/* Override any GCC internal prototype to avoid an error.
11428
 
   Use char because int might match the return type of a GCC
11429
 
   builtin and then its argument prototype would still apply.  */
11430
 
#ifdef __cplusplus
11431
 
extern "C"
11432
 
#endif
11433
 
char dlopen ();
11434
 
int
11435
 
main ()
11436
 
{
11437
 
return dlopen ();
11438
 
  ;
11439
 
  return 0;
11440
 
}
11441
 
_ACEOF
11442
 
if ac_fn_c_try_link "$LINENO"; then :
11443
 
  ac_cv_lib_dl_dlopen=yes
11444
 
else
11445
 
  ac_cv_lib_dl_dlopen=no
11446
 
fi
11447
 
rm -f core conftest.err conftest.$ac_objext \
11448
 
    conftest$ac_exeext conftest.$ac_ext
11449
 
LIBS=$ac_check_lib_save_LIBS
11450
 
fi
11451
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11452
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11453
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11454
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11455
 
else
11456
 
 
11457
 
    lt_cv_dlopen="dyld"
11458
 
    lt_cv_dlopen_libs=
11459
 
    lt_cv_dlopen_self=yes
11460
 
 
11461
 
fi
11462
 
 
11463
 
    ;;
11464
 
 
11465
 
  *)
11466
 
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11467
 
if test "x$ac_cv_func_shl_load" = x""yes; then :
11468
 
  lt_cv_dlopen="shl_load"
11469
 
else
11470
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11471
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11472
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11473
 
  $as_echo_n "(cached) " >&6
11474
 
else
11475
 
  ac_check_lib_save_LIBS=$LIBS
11476
 
LIBS="-ldld  $LIBS"
11477
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478
 
/* end confdefs.h.  */
11479
 
 
11480
 
/* Override any GCC internal prototype to avoid an error.
11481
 
   Use char because int might match the return type of a GCC
11482
 
   builtin and then its argument prototype would still apply.  */
11483
 
#ifdef __cplusplus
11484
 
extern "C"
11485
 
#endif
11486
 
char shl_load ();
11487
 
int
11488
 
main ()
11489
 
{
11490
 
return shl_load ();
11491
 
  ;
11492
 
  return 0;
11493
 
}
11494
 
_ACEOF
11495
 
if ac_fn_c_try_link "$LINENO"; then :
11496
 
  ac_cv_lib_dld_shl_load=yes
11497
 
else
11498
 
  ac_cv_lib_dld_shl_load=no
11499
 
fi
11500
 
rm -f core conftest.err conftest.$ac_objext \
11501
 
    conftest$ac_exeext conftest.$ac_ext
11502
 
LIBS=$ac_check_lib_save_LIBS
11503
 
fi
11504
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11505
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11506
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11507
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11508
 
else
11509
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11510
 
if test "x$ac_cv_func_dlopen" = x""yes; then :
11511
 
  lt_cv_dlopen="dlopen"
11512
 
else
11513
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11514
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11515
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11516
 
  $as_echo_n "(cached) " >&6
11517
 
else
11518
 
  ac_check_lib_save_LIBS=$LIBS
11519
 
LIBS="-ldl  $LIBS"
11520
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521
 
/* end confdefs.h.  */
11522
 
 
11523
 
/* Override any GCC internal prototype to avoid an error.
11524
 
   Use char because int might match the return type of a GCC
11525
 
   builtin and then its argument prototype would still apply.  */
11526
 
#ifdef __cplusplus
11527
 
extern "C"
11528
 
#endif
11529
 
char dlopen ();
11530
 
int
11531
 
main ()
11532
 
{
11533
 
return dlopen ();
11534
 
  ;
11535
 
  return 0;
11536
 
}
11537
 
_ACEOF
11538
 
if ac_fn_c_try_link "$LINENO"; then :
11539
 
  ac_cv_lib_dl_dlopen=yes
11540
 
else
11541
 
  ac_cv_lib_dl_dlopen=no
11542
 
fi
11543
 
rm -f core conftest.err conftest.$ac_objext \
11544
 
    conftest$ac_exeext conftest.$ac_ext
11545
 
LIBS=$ac_check_lib_save_LIBS
11546
 
fi
11547
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11548
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11549
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11550
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11551
 
else
11552
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11553
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11554
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11555
 
  $as_echo_n "(cached) " >&6
11556
 
else
11557
 
  ac_check_lib_save_LIBS=$LIBS
11558
 
LIBS="-lsvld  $LIBS"
11559
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560
 
/* end confdefs.h.  */
11561
 
 
11562
 
/* Override any GCC internal prototype to avoid an error.
11563
 
   Use char because int might match the return type of a GCC
11564
 
   builtin and then its argument prototype would still apply.  */
11565
 
#ifdef __cplusplus
11566
 
extern "C"
11567
 
#endif
11568
 
char dlopen ();
11569
 
int
11570
 
main ()
11571
 
{
11572
 
return dlopen ();
11573
 
  ;
11574
 
  return 0;
11575
 
}
11576
 
_ACEOF
11577
 
if ac_fn_c_try_link "$LINENO"; then :
11578
 
  ac_cv_lib_svld_dlopen=yes
11579
 
else
11580
 
  ac_cv_lib_svld_dlopen=no
11581
 
fi
11582
 
rm -f core conftest.err conftest.$ac_objext \
11583
 
    conftest$ac_exeext conftest.$ac_ext
11584
 
LIBS=$ac_check_lib_save_LIBS
11585
 
fi
11586
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11587
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11588
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11589
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11590
 
else
11591
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11592
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11593
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11594
 
  $as_echo_n "(cached) " >&6
11595
 
else
11596
 
  ac_check_lib_save_LIBS=$LIBS
11597
 
LIBS="-ldld  $LIBS"
11598
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599
 
/* end confdefs.h.  */
11600
 
 
11601
 
/* Override any GCC internal prototype to avoid an error.
11602
 
   Use char because int might match the return type of a GCC
11603
 
   builtin and then its argument prototype would still apply.  */
11604
 
#ifdef __cplusplus
11605
 
extern "C"
11606
 
#endif
11607
 
char dld_link ();
11608
 
int
11609
 
main ()
11610
 
{
11611
 
return dld_link ();
11612
 
  ;
11613
 
  return 0;
11614
 
}
11615
 
_ACEOF
11616
 
if ac_fn_c_try_link "$LINENO"; then :
11617
 
  ac_cv_lib_dld_dld_link=yes
11618
 
else
11619
 
  ac_cv_lib_dld_dld_link=no
11620
 
fi
11621
 
rm -f core conftest.err conftest.$ac_objext \
11622
 
    conftest$ac_exeext conftest.$ac_ext
11623
 
LIBS=$ac_check_lib_save_LIBS
11624
 
fi
11625
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11626
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11627
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11628
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11629
 
fi
11630
 
 
11631
 
 
11632
 
fi
11633
 
 
11634
 
 
11635
 
fi
11636
 
 
11637
 
 
11638
 
fi
11639
 
 
11640
 
 
11641
 
fi
11642
 
 
11643
 
 
11644
 
fi
11645
 
 
11646
 
    ;;
11647
 
  esac
11648
 
 
11649
 
  if test "x$lt_cv_dlopen" != xno; then
11650
 
    enable_dlopen=yes
11651
 
  else
11652
 
    enable_dlopen=no
11653
 
  fi
11654
 
 
11655
 
  case $lt_cv_dlopen in
11656
 
  dlopen)
11657
 
    save_CPPFLAGS="$CPPFLAGS"
11658
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11659
 
 
11660
 
    save_LDFLAGS="$LDFLAGS"
11661
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11662
 
 
11663
 
    save_LIBS="$LIBS"
11664
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
11665
 
 
11666
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11667
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11668
 
if test "${lt_cv_dlopen_self+set}" = set; then :
11669
 
  $as_echo_n "(cached) " >&6
11670
 
else
11671
 
          if test "$cross_compiling" = yes; then :
11672
 
  lt_cv_dlopen_self=cross
11673
 
else
11674
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11675
 
  lt_status=$lt_dlunknown
11676
 
  cat > conftest.$ac_ext <<_LT_EOF
11677
 
#line 11677 "configure"
11678
 
#include "confdefs.h"
11679
 
 
11680
 
#if HAVE_DLFCN_H
11681
 
#include <dlfcn.h>
11682
 
#endif
11683
 
 
11684
 
#include <stdio.h>
11685
 
 
11686
 
#ifdef RTLD_GLOBAL
11687
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11688
 
#else
11689
 
#  ifdef DL_GLOBAL
11690
 
#    define LT_DLGLOBAL         DL_GLOBAL
11691
 
#  else
11692
 
#    define LT_DLGLOBAL         0
11693
 
#  endif
11694
 
#endif
11695
 
 
11696
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11697
 
   find out it does not work in some platform. */
11698
 
#ifndef LT_DLLAZY_OR_NOW
11699
 
#  ifdef RTLD_LAZY
11700
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11701
 
#  else
11702
 
#    ifdef DL_LAZY
11703
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11704
 
#    else
11705
 
#      ifdef RTLD_NOW
11706
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11707
 
#      else
11708
 
#        ifdef DL_NOW
11709
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11710
 
#        else
11711
 
#          define LT_DLLAZY_OR_NOW      0
11712
 
#        endif
11713
 
#      endif
11714
 
#    endif
11715
 
#  endif
11716
 
#endif
11717
 
 
11718
 
void fnord() { int i=42;}
11719
 
int main ()
11720
 
{
11721
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11722
 
  int status = $lt_dlunknown;
11723
 
 
11724
 
  if (self)
11725
 
    {
11726
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11727
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11728
 
      /* dlclose (self); */
11729
 
    }
11730
 
  else
11731
 
    puts (dlerror ());
11732
 
 
11733
 
  return status;
11734
 
}
11735
 
_LT_EOF
11736
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11737
 
  (eval $ac_link) 2>&5
11738
 
  ac_status=$?
11739
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11741
 
    (./conftest; exit; ) >&5 2>/dev/null
11742
 
    lt_status=$?
11743
 
    case x$lt_status in
11744
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11745
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11746
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11747
 
    esac
11748
 
  else :
11749
 
    # compilation failed
11750
 
    lt_cv_dlopen_self=no
11751
 
  fi
11752
 
fi
11753
 
rm -fr conftest*
11754
 
 
11755
 
 
11756
 
fi
11757
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11758
 
$as_echo "$lt_cv_dlopen_self" >&6; }
11759
 
 
11760
 
    if test "x$lt_cv_dlopen_self" = xyes; then
11761
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11762
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11763
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11764
 
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11765
 
  $as_echo_n "(cached) " >&6
11766
 
else
11767
 
          if test "$cross_compiling" = yes; then :
11768
 
  lt_cv_dlopen_self_static=cross
11769
 
else
11770
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11771
 
  lt_status=$lt_dlunknown
11772
 
  cat > conftest.$ac_ext <<_LT_EOF
11773
 
#line 11773 "configure"
11774
 
#include "confdefs.h"
11775
 
 
11776
 
#if HAVE_DLFCN_H
11777
 
#include <dlfcn.h>
11778
 
#endif
11779
 
 
11780
 
#include <stdio.h>
11781
 
 
11782
 
#ifdef RTLD_GLOBAL
11783
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11784
 
#else
11785
 
#  ifdef DL_GLOBAL
11786
 
#    define LT_DLGLOBAL         DL_GLOBAL
11787
 
#  else
11788
 
#    define LT_DLGLOBAL         0
11789
 
#  endif
11790
 
#endif
11791
 
 
11792
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11793
 
   find out it does not work in some platform. */
11794
 
#ifndef LT_DLLAZY_OR_NOW
11795
 
#  ifdef RTLD_LAZY
11796
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11797
 
#  else
11798
 
#    ifdef DL_LAZY
11799
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11800
 
#    else
11801
 
#      ifdef RTLD_NOW
11802
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11803
 
#      else
11804
 
#        ifdef DL_NOW
11805
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11806
 
#        else
11807
 
#          define LT_DLLAZY_OR_NOW      0
11808
 
#        endif
11809
 
#      endif
11810
 
#    endif
11811
 
#  endif
11812
 
#endif
11813
 
 
11814
 
void fnord() { int i=42;}
11815
 
int main ()
11816
 
{
11817
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11818
 
  int status = $lt_dlunknown;
11819
 
 
11820
 
  if (self)
11821
 
    {
11822
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11823
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11824
 
      /* dlclose (self); */
11825
 
    }
11826
 
  else
11827
 
    puts (dlerror ());
11828
 
 
11829
 
  return status;
11830
 
}
11831
 
_LT_EOF
11832
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11833
 
  (eval $ac_link) 2>&5
11834
 
  ac_status=$?
11835
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11836
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11837
 
    (./conftest; exit; ) >&5 2>/dev/null
11838
 
    lt_status=$?
11839
 
    case x$lt_status in
11840
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11841
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11842
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11843
 
    esac
11844
 
  else :
11845
 
    # compilation failed
11846
 
    lt_cv_dlopen_self_static=no
11847
 
  fi
11848
 
fi
11849
 
rm -fr conftest*
11850
 
 
11851
 
 
11852
 
fi
11853
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11854
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11855
 
    fi
11856
 
 
11857
 
    CPPFLAGS="$save_CPPFLAGS"
11858
 
    LDFLAGS="$save_LDFLAGS"
11859
 
    LIBS="$save_LIBS"
11860
 
    ;;
11861
 
  esac
11862
 
 
11863
 
  case $lt_cv_dlopen_self in
11864
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11865
 
  *) enable_dlopen_self=unknown ;;
11866
 
  esac
11867
 
 
11868
 
  case $lt_cv_dlopen_self_static in
11869
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11870
 
  *) enable_dlopen_self_static=unknown ;;
11871
 
  esac
11872
 
fi
11873
 
 
11874
 
 
11875
 
 
11876
 
 
11877
 
 
11878
 
 
11879
 
 
11880
 
 
11881
 
 
11882
 
 
11883
 
 
11884
 
 
11885
 
 
11886
 
 
11887
 
 
11888
 
 
11889
 
 
11890
 
striplib=
11891
 
old_striplib=
11892
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11893
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11894
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11895
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11896
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11897
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898
 
$as_echo "yes" >&6; }
11899
 
else
11900
 
# FIXME - insert some real tests, host_os isn't really good enough
11901
 
  case $host_os in
11902
 
  darwin*)
11903
 
    if test -n "$STRIP" ; then
11904
 
      striplib="$STRIP -x"
11905
 
      old_striplib="$STRIP -S"
11906
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907
 
$as_echo "yes" >&6; }
11908
 
    else
11909
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910
 
$as_echo "no" >&6; }
11911
 
    fi
11912
 
    ;;
11913
 
  *)
11914
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915
 
$as_echo "no" >&6; }
11916
 
    ;;
11917
 
  esac
11918
 
fi
11919
 
 
11920
 
 
11921
 
 
11922
 
 
11923
 
 
11924
 
 
11925
 
 
11926
 
 
11927
 
 
11928
 
 
11929
 
 
11930
 
 
11931
 
  # Report which library types will actually be built
11932
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11933
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11934
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11935
 
$as_echo "$can_build_shared" >&6; }
11936
 
 
11937
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11938
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
11939
 
  test "$can_build_shared" = "no" && enable_shared=no
11940
 
 
11941
 
  # On AIX, shared libraries and static libraries use the same namespace, and
11942
 
  # are all built from PIC.
11943
 
  case $host_os in
11944
 
  aix3*)
11945
 
    test "$enable_shared" = yes && enable_static=no
11946
 
    if test -n "$RANLIB"; then
11947
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11948
 
      postinstall_cmds='$RANLIB $lib'
11949
 
    fi
11950
 
    ;;
11951
 
 
11952
 
  aix[4-9]*)
11953
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11954
 
      test "$enable_shared" = yes && enable_static=no
11955
 
    fi
11956
 
    ;;
11957
 
  esac
11958
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11959
 
$as_echo "$enable_shared" >&6; }
11960
 
 
11961
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11962
 
$as_echo_n "checking whether to build static libraries... " >&6; }
11963
 
  # Make sure either enable_shared or enable_static is yes.
11964
 
  test "$enable_shared" = yes || enable_static=yes
11965
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11966
 
$as_echo "$enable_static" >&6; }
11967
 
 
11968
 
 
11969
 
 
11970
 
 
11971
 
fi
11972
 
ac_ext=c
11973
 
ac_cpp='$CPP $CPPFLAGS'
11974
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11977
 
 
11978
 
CC="$lt_save_CC"
11979
 
 
11980
 
 
11981
 
ac_ext=cpp
11982
 
ac_cpp='$CXXCPP $CPPFLAGS'
11983
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11984
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11985
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11986
 
 
11987
 
archive_cmds_need_lc_CXX=no
11988
 
allow_undefined_flag_CXX=
11989
 
always_export_symbols_CXX=no
11990
 
archive_expsym_cmds_CXX=
11991
 
compiler_needs_object_CXX=no
11992
 
export_dynamic_flag_spec_CXX=
11993
 
hardcode_direct_CXX=no
11994
 
hardcode_direct_absolute_CXX=no
11995
 
hardcode_libdir_flag_spec_CXX=
11996
 
hardcode_libdir_flag_spec_ld_CXX=
11997
 
hardcode_libdir_separator_CXX=
11998
 
hardcode_minus_L_CXX=no
11999
 
hardcode_shlibpath_var_CXX=unsupported
12000
 
hardcode_automatic_CXX=no
12001
 
inherit_rpath_CXX=no
12002
 
module_cmds_CXX=
12003
 
module_expsym_cmds_CXX=
12004
 
link_all_deplibs_CXX=unknown
12005
 
old_archive_cmds_CXX=$old_archive_cmds
12006
 
no_undefined_flag_CXX=
12007
 
whole_archive_flag_spec_CXX=
12008
 
enable_shared_with_static_runtimes_CXX=no
12009
 
 
12010
 
# Source file extension for C++ test sources.
12011
 
ac_ext=cpp
12012
 
 
12013
 
# Object file extension for compiled C++ test sources.
12014
 
objext=o
12015
 
objext_CXX=$objext
12016
 
 
12017
 
# No sense in running all these tests if we already determined that
12018
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
12019
 
# are currently assumed to apply to all compilers on this platform,
12020
 
# and will be corrupted by setting them based on a non-working compiler.
12021
 
if test "$_lt_caught_CXX_error" != yes; then
12022
 
  # Code to be used in simple compile tests
12023
 
  lt_simple_compile_test_code="int some_variable = 0;"
12024
 
 
12025
 
  # Code to be used in simple link tests
12026
 
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12027
 
 
12028
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12029
 
 
12030
 
 
12031
 
 
12032
 
 
12033
 
 
12034
 
 
12035
 
# If no C compiler was specified, use CC.
12036
 
LTCC=${LTCC-"$CC"}
12037
 
 
12038
 
# If no C compiler flags were specified, use CFLAGS.
12039
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12040
 
 
12041
 
# Allow CC to be a program name with arguments.
12042
 
compiler=$CC
12043
 
 
12044
 
 
12045
 
  # save warnings/boilerplate of simple test code
12046
 
  ac_outfile=conftest.$ac_objext
12047
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12048
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12049
 
_lt_compiler_boilerplate=`cat conftest.err`
12050
 
$RM conftest*
12051
 
 
12052
 
  ac_outfile=conftest.$ac_objext
12053
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12054
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12055
 
_lt_linker_boilerplate=`cat conftest.err`
12056
 
$RM -r conftest*
12057
 
 
12058
 
 
12059
 
  # Allow CC to be a program name with arguments.
12060
 
  lt_save_CC=$CC
12061
 
  lt_save_LD=$LD
12062
 
  lt_save_GCC=$GCC
12063
 
  GCC=$GXX
12064
 
  lt_save_with_gnu_ld=$with_gnu_ld
12065
 
  lt_save_path_LD=$lt_cv_path_LD
12066
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12067
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12068
 
  else
12069
 
    $as_unset lt_cv_prog_gnu_ld
12070
 
  fi
12071
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
12072
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
12073
 
  else
12074
 
    $as_unset lt_cv_path_LD
12075
 
  fi
12076
 
  test -z "${LDCXX+set}" || LD=$LDCXX
12077
 
  CC=${CXX-"c++"}
12078
 
  compiler=$CC
12079
 
  compiler_CXX=$CC
12080
 
  for cc_temp in $compiler""; do
12081
 
  case $cc_temp in
12082
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12083
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12084
 
    \-*) ;;
12085
 
    *) break;;
12086
 
  esac
12087
 
done
12088
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12089
 
 
12090
 
 
12091
 
  if test -n "$compiler"; then
12092
 
    # We don't want -fno-exception when compiling C++ code, so set the
12093
 
    # no_builtin_flag separately
12094
 
    if test "$GXX" = yes; then
12095
 
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12096
 
    else
12097
 
      lt_prog_compiler_no_builtin_flag_CXX=
12098
 
    fi
12099
 
 
12100
 
    if test "$GXX" = yes; then
12101
 
      # Set up default GNU C++ configuration
12102
 
 
12103
 
 
12104
 
 
12105
 
# Check whether --with-gnu-ld was given.
12106
 
if test "${with_gnu_ld+set}" = set; then :
12107
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12108
 
else
12109
 
  with_gnu_ld=no
12110
 
fi
12111
 
 
12112
 
ac_prog=ld
12113
 
if test "$GCC" = yes; then
12114
 
  # Check if gcc -print-prog-name=ld gives a path.
12115
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12116
 
$as_echo_n "checking for ld used by $CC... " >&6; }
12117
 
  case $host in
12118
 
  *-*-mingw*)
12119
 
    # gcc leaves a trailing carriage return which upsets mingw
12120
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12121
 
  *)
12122
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12123
 
  esac
12124
 
  case $ac_prog in
12125
 
    # Accept absolute paths.
12126
 
    [\\/]* | ?:[\\/]*)
12127
 
      re_direlt='/[^/][^/]*/\.\./'
12128
 
      # Canonicalize the pathname of ld
12129
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12130
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12131
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12132
 
      done
12133
 
      test -z "$LD" && LD="$ac_prog"
12134
 
      ;;
12135
 
  "")
12136
 
    # If it fails, then pretend we aren't using GCC.
12137
 
    ac_prog=ld
12138
 
    ;;
12139
 
  *)
12140
 
    # If it is relative, then search for the first ld in PATH.
12141
 
    with_gnu_ld=unknown
12142
 
    ;;
12143
 
  esac
12144
 
elif test "$with_gnu_ld" = yes; then
12145
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12146
 
$as_echo_n "checking for GNU ld... " >&6; }
12147
 
else
12148
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12149
 
$as_echo_n "checking for non-GNU ld... " >&6; }
12150
 
fi
12151
 
if test "${lt_cv_path_LD+set}" = set; then :
12152
 
  $as_echo_n "(cached) " >&6
12153
 
else
12154
 
  if test -z "$LD"; then
12155
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12156
 
  for ac_dir in $PATH; do
12157
 
    IFS="$lt_save_ifs"
12158
 
    test -z "$ac_dir" && ac_dir=.
12159
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12160
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
12161
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
12162
 
      # but apparently some variants of GNU ld only accept -v.
12163
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
12164
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12165
 
      *GNU* | *'with BFD'*)
12166
 
        test "$with_gnu_ld" != no && break
12167
 
        ;;
12168
 
      *)
12169
 
        test "$with_gnu_ld" != yes && break
12170
 
        ;;
12171
 
      esac
12172
 
    fi
12173
 
  done
12174
 
  IFS="$lt_save_ifs"
12175
 
else
12176
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12177
 
fi
12178
 
fi
12179
 
 
12180
 
LD="$lt_cv_path_LD"
12181
 
if test -n "$LD"; then
12182
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12183
 
$as_echo "$LD" >&6; }
12184
 
else
12185
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186
 
$as_echo "no" >&6; }
12187
 
fi
12188
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12189
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12190
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12191
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12192
 
  $as_echo_n "(cached) " >&6
12193
 
else
12194
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12195
 
case `$LD -v 2>&1 </dev/null` in
12196
 
*GNU* | *'with BFD'*)
12197
 
  lt_cv_prog_gnu_ld=yes
12198
 
  ;;
12199
 
*)
12200
 
  lt_cv_prog_gnu_ld=no
12201
 
  ;;
12202
 
esac
12203
 
fi
12204
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12205
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12206
 
with_gnu_ld=$lt_cv_prog_gnu_ld
12207
 
 
12208
 
 
12209
 
 
12210
 
 
12211
 
 
12212
 
 
12213
 
 
12214
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12215
 
      # archiving commands below assume that GNU ld is being used.
12216
 
      if test "$with_gnu_ld" = yes; then
12217
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218
 
        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'
12219
 
 
12220
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12221
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12222
 
 
12223
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
12224
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12225
 
        #     investigate it a little bit more. (MM)
12226
 
        wlarc='${wl}'
12227
 
 
12228
 
        # ancient GNU ld didn't support --whole-archive et. al.
12229
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12230
 
          $GREP 'no-whole-archive' > /dev/null; then
12231
 
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12232
 
        else
12233
 
          whole_archive_flag_spec_CXX=
12234
 
        fi
12235
 
      else
12236
 
        with_gnu_ld=no
12237
 
        wlarc=
12238
 
 
12239
 
        # A generic and very simple default shared library creation
12240
 
        # command for GNU C++ for the case where it uses the native
12241
 
        # linker, instead of GNU ld.  If possible, this setting should
12242
 
        # overridden to take advantage of the native linker features on
12243
 
        # the platform it is being used on.
12244
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12245
 
      fi
12246
 
 
12247
 
      # Commands to make compiler produce verbose output that lists
12248
 
      # what "hidden" libraries, object files and flags are used when
12249
 
      # linking a shared library.
12250
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12251
 
 
12252
 
    else
12253
 
      GXX=no
12254
 
      with_gnu_ld=no
12255
 
      wlarc=
12256
 
    fi
12257
 
 
12258
 
    # PORTME: fill in a description of your system's C++ link characteristics
12259
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12260
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12261
 
    ld_shlibs_CXX=yes
12262
 
    case $host_os in
12263
 
      aix3*)
12264
 
        # FIXME: insert proper C++ library support
12265
 
        ld_shlibs_CXX=no
12266
 
        ;;
12267
 
      aix[4-9]*)
12268
 
        if test "$host_cpu" = ia64; then
12269
 
          # On IA64, the linker does run time linking by default, so we don't
12270
 
          # have to do anything special.
12271
 
          aix_use_runtimelinking=no
12272
 
          exp_sym_flag='-Bexport'
12273
 
          no_entry_flag=""
12274
 
        else
12275
 
          aix_use_runtimelinking=no
12276
 
 
12277
 
          # Test if we are trying to use run time linking or normal
12278
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12279
 
          # need to do runtime linking.
12280
 
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12281
 
            for ld_flag in $LDFLAGS; do
12282
 
              case $ld_flag in
12283
 
              *-brtl*)
12284
 
                aix_use_runtimelinking=yes
12285
 
                break
12286
 
                ;;
12287
 
              esac
12288
 
            done
12289
 
            ;;
12290
 
          esac
12291
 
 
12292
 
          exp_sym_flag='-bexport'
12293
 
          no_entry_flag='-bnoentry'
12294
 
        fi
12295
 
 
12296
 
        # When large executables or shared objects are built, AIX ld can
12297
 
        # have problems creating the table of contents.  If linking a library
12298
 
        # or program results in "error TOC overflow" add -mminimal-toc to
12299
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12300
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12301
 
 
12302
 
        archive_cmds_CXX=''
12303
 
        hardcode_direct_CXX=yes
12304
 
        hardcode_direct_absolute_CXX=yes
12305
 
        hardcode_libdir_separator_CXX=':'
12306
 
        link_all_deplibs_CXX=yes
12307
 
        file_list_spec_CXX='${wl}-f,'
12308
 
 
12309
 
        if test "$GXX" = yes; then
12310
 
          case $host_os in aix4.[012]|aix4.[012].*)
12311
 
          # We only want to do this on AIX 4.2 and lower, the check
12312
 
          # below for broken collect2 doesn't work under 4.3+
12313
 
          collect2name=`${CC} -print-prog-name=collect2`
12314
 
          if test -f "$collect2name" &&
12315
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12316
 
          then
12317
 
            # We have reworked collect2
12318
 
            :
12319
 
          else
12320
 
            # We have old collect2
12321
 
            hardcode_direct_CXX=unsupported
12322
 
            # It fails to find uninstalled libraries when the uninstalled
12323
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
12324
 
            # to unsupported forces relinking
12325
 
            hardcode_minus_L_CXX=yes
12326
 
            hardcode_libdir_flag_spec_CXX='-L$libdir'
12327
 
            hardcode_libdir_separator_CXX=
12328
 
          fi
12329
 
          esac
12330
 
          shared_flag='-shared'
12331
 
          if test "$aix_use_runtimelinking" = yes; then
12332
 
            shared_flag="$shared_flag "'${wl}-G'
12333
 
          fi
12334
 
        else
12335
 
          # not using gcc
12336
 
          if test "$host_cpu" = ia64; then
12337
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12338
 
          # chokes on -Wl,-G. The following line is correct:
12339
 
          shared_flag='-G'
12340
 
          else
12341
 
            if test "$aix_use_runtimelinking" = yes; then
12342
 
              shared_flag='${wl}-G'
12343
 
            else
12344
 
              shared_flag='${wl}-bM:SRE'
12345
 
            fi
12346
 
          fi
12347
 
        fi
12348
 
 
12349
 
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12350
 
        # It seems that -bexpall does not export symbols beginning with
12351
 
        # underscore (_), so it is better to generate a list of symbols to
12352
 
        # export.
12353
 
        always_export_symbols_CXX=yes
12354
 
        if test "$aix_use_runtimelinking" = yes; then
12355
 
          # Warning - without using the other runtime loading flags (-brtl),
12356
 
          # -berok will link without error, but may produce a broken library.
12357
 
          allow_undefined_flag_CXX='-berok'
12358
 
          # Determine the default libpath from the value encoded in an empty
12359
 
          # executable.
12360
 
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361
 
/* end confdefs.h.  */
12362
 
 
12363
 
int
12364
 
main ()
12365
 
{
12366
 
 
12367
 
  ;
12368
 
  return 0;
12369
 
}
12370
 
_ACEOF
12371
 
if ac_fn_cxx_try_link "$LINENO"; then :
12372
 
 
12373
 
lt_aix_libpath_sed='
12374
 
    /Import File Strings/,/^$/ {
12375
 
        /^0/ {
12376
 
            s/^0  *\(.*\)$/\1/
12377
 
            p
12378
 
        }
12379
 
    }'
12380
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12381
 
# Check for a 64-bit object if we didn't find anything.
12382
 
if test -z "$aix_libpath"; then
12383
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12384
 
fi
12385
 
fi
12386
 
rm -f core conftest.err conftest.$ac_objext \
12387
 
    conftest$ac_exeext conftest.$ac_ext
12388
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12389
 
 
12390
 
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12391
 
 
12392
 
          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"
12393
 
        else
12394
 
          if test "$host_cpu" = ia64; then
12395
 
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12396
 
            allow_undefined_flag_CXX="-z nodefs"
12397
 
            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"
12398
 
          else
12399
 
            # Determine the default libpath from the value encoded in an
12400
 
            # empty executable.
12401
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402
 
/* end confdefs.h.  */
12403
 
 
12404
 
int
12405
 
main ()
12406
 
{
12407
 
 
12408
 
  ;
12409
 
  return 0;
12410
 
}
12411
 
_ACEOF
12412
 
if ac_fn_cxx_try_link "$LINENO"; then :
12413
 
 
12414
 
lt_aix_libpath_sed='
12415
 
    /Import File Strings/,/^$/ {
12416
 
        /^0/ {
12417
 
            s/^0  *\(.*\)$/\1/
12418
 
            p
12419
 
        }
12420
 
    }'
12421
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12422
 
# Check for a 64-bit object if we didn't find anything.
12423
 
if test -z "$aix_libpath"; then
12424
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12425
 
fi
12426
 
fi
12427
 
rm -f core conftest.err conftest.$ac_objext \
12428
 
    conftest$ac_exeext conftest.$ac_ext
12429
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12430
 
 
12431
 
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12432
 
            # Warning - without using the other run time loading flags,
12433
 
            # -berok will link without error, but may produce a broken library.
12434
 
            no_undefined_flag_CXX=' ${wl}-bernotok'
12435
 
            allow_undefined_flag_CXX=' ${wl}-berok'
12436
 
            # Exported symbols can be pulled into shared objects from archives
12437
 
            whole_archive_flag_spec_CXX='$convenience'
12438
 
            archive_cmds_need_lc_CXX=yes
12439
 
            # This is similar to how AIX traditionally builds its shared
12440
 
            # libraries.
12441
 
            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'
12442
 
          fi
12443
 
        fi
12444
 
        ;;
12445
 
 
12446
 
      beos*)
12447
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12448
 
          allow_undefined_flag_CXX=unsupported
12449
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12450
 
          # support --undefined.  This deserves some investigation.  FIXME
12451
 
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12452
 
        else
12453
 
          ld_shlibs_CXX=no
12454
 
        fi
12455
 
        ;;
12456
 
 
12457
 
      chorus*)
12458
 
        case $cc_basename in
12459
 
          *)
12460
 
          # FIXME: insert proper C++ library support
12461
 
          ld_shlibs_CXX=no
12462
 
          ;;
12463
 
        esac
12464
 
        ;;
12465
 
 
12466
 
      cygwin* | mingw* | pw32* | cegcc*)
12467
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12468
 
        # as there is no search path for DLLs.
12469
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12470
 
        allow_undefined_flag_CXX=unsupported
12471
 
        always_export_symbols_CXX=no
12472
 
        enable_shared_with_static_runtimes_CXX=yes
12473
 
 
12474
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12475
 
          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'
12476
 
          # If the export-symbols file already is a .def file (1st line
12477
 
          # is EXPORTS), use it as is; otherwise, prepend...
12478
 
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12479
 
            cp $export_symbols $output_objdir/$soname.def;
12480
 
          else
12481
 
            echo EXPORTS > $output_objdir/$soname.def;
12482
 
            cat $export_symbols >> $output_objdir/$soname.def;
12483
 
          fi~
12484
 
          $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'
12485
 
        else
12486
 
          ld_shlibs_CXX=no
12487
 
        fi
12488
 
        ;;
12489
 
      darwin* | rhapsody*)
12490
 
 
12491
 
 
12492
 
  archive_cmds_need_lc_CXX=no
12493
 
  hardcode_direct_CXX=no
12494
 
  hardcode_automatic_CXX=yes
12495
 
  hardcode_shlibpath_var_CXX=unsupported
12496
 
  whole_archive_flag_spec_CXX=''
12497
 
  link_all_deplibs_CXX=yes
12498
 
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12499
 
  case $cc_basename in
12500
 
     ifort*) _lt_dar_can_shared=yes ;;
12501
 
     *) _lt_dar_can_shared=$GCC ;;
12502
 
  esac
12503
 
  if test "$_lt_dar_can_shared" = "yes"; then
12504
 
    output_verbose_link_cmd=echo
12505
 
    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}"
12506
 
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12507
 
    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}"
12508
 
    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}"
12509
 
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12510
 
      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}"
12511
 
      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}"
12512
 
    fi
12513
 
 
12514
 
  else
12515
 
  ld_shlibs_CXX=no
12516
 
  fi
12517
 
 
12518
 
        ;;
12519
 
 
12520
 
      dgux*)
12521
 
        case $cc_basename in
12522
 
          ec++*)
12523
 
            # FIXME: insert proper C++ library support
12524
 
            ld_shlibs_CXX=no
12525
 
            ;;
12526
 
          ghcx*)
12527
 
            # Green Hills C++ Compiler
12528
 
            # FIXME: insert proper C++ library support
12529
 
            ld_shlibs_CXX=no
12530
 
            ;;
12531
 
          *)
12532
 
            # FIXME: insert proper C++ library support
12533
 
            ld_shlibs_CXX=no
12534
 
            ;;
12535
 
        esac
12536
 
        ;;
12537
 
 
12538
 
      freebsd[12]*)
12539
 
        # C++ shared libraries reported to be fairly broken before
12540
 
        # switch to ELF
12541
 
        ld_shlibs_CXX=no
12542
 
        ;;
12543
 
 
12544
 
      freebsd-elf*)
12545
 
        archive_cmds_need_lc_CXX=no
12546
 
        ;;
12547
 
 
12548
 
      freebsd* | dragonfly*)
12549
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12550
 
        # conventions
12551
 
        ld_shlibs_CXX=yes
12552
 
        ;;
12553
 
 
12554
 
      gnu*)
12555
 
        ;;
12556
 
 
12557
 
      hpux9*)
12558
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12559
 
        hardcode_libdir_separator_CXX=:
12560
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12561
 
        hardcode_direct_CXX=yes
12562
 
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12563
 
                                             # but as the default
12564
 
                                             # location of the library.
12565
 
 
12566
 
        case $cc_basename in
12567
 
          CC*)
12568
 
            # FIXME: insert proper C++ library support
12569
 
            ld_shlibs_CXX=no
12570
 
            ;;
12571
 
          aCC*)
12572
 
            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'
12573
 
            # Commands to make compiler produce verbose output that lists
12574
 
            # what "hidden" libraries, object files and flags are used when
12575
 
            # linking a shared library.
12576
 
            #
12577
 
            # There doesn't appear to be a way to prevent this compiler from
12578
 
            # explicitly linking system object files so we need to strip them
12579
 
            # from the output so that they don't get included in the library
12580
 
            # dependencies.
12581
 
            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'
12582
 
            ;;
12583
 
          *)
12584
 
            if test "$GXX" = yes; then
12585
 
              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'
12586
 
            else
12587
 
              # FIXME: insert proper C++ library support
12588
 
              ld_shlibs_CXX=no
12589
 
            fi
12590
 
            ;;
12591
 
        esac
12592
 
        ;;
12593
 
 
12594
 
      hpux10*|hpux11*)
12595
 
        if test $with_gnu_ld = no; then
12596
 
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12597
 
          hardcode_libdir_separator_CXX=:
12598
 
 
12599
 
          case $host_cpu in
12600
 
            hppa*64*|ia64*)
12601
 
              ;;
12602
 
            *)
12603
 
              export_dynamic_flag_spec_CXX='${wl}-E'
12604
 
              ;;
12605
 
          esac
12606
 
        fi
12607
 
        case $host_cpu in
12608
 
          hppa*64*|ia64*)
12609
 
            hardcode_direct_CXX=no
12610
 
            hardcode_shlibpath_var_CXX=no
12611
 
            ;;
12612
 
          *)
12613
 
            hardcode_direct_CXX=yes
12614
 
            hardcode_direct_absolute_CXX=yes
12615
 
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12616
 
                                                 # but as the default
12617
 
                                                 # location of the library.
12618
 
            ;;
12619
 
        esac
12620
 
 
12621
 
        case $cc_basename in
12622
 
          CC*)
12623
 
            # FIXME: insert proper C++ library support
12624
 
            ld_shlibs_CXX=no
12625
 
            ;;
12626
 
          aCC*)
12627
 
            case $host_cpu in
12628
 
              hppa*64*)
12629
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12630
 
                ;;
12631
 
              ia64*)
12632
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12633
 
                ;;
12634
 
              *)
12635
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12636
 
                ;;
12637
 
            esac
12638
 
            # Commands to make compiler produce verbose output that lists
12639
 
            # what "hidden" libraries, object files and flags are used when
12640
 
            # linking a shared library.
12641
 
            #
12642
 
            # There doesn't appear to be a way to prevent this compiler from
12643
 
            # explicitly linking system object files so we need to strip them
12644
 
            # from the output so that they don't get included in the library
12645
 
            # dependencies.
12646
 
            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'
12647
 
            ;;
12648
 
          *)
12649
 
            if test "$GXX" = yes; then
12650
 
              if test $with_gnu_ld = no; then
12651
 
                case $host_cpu in
12652
 
                  hppa*64*)
12653
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12654
 
                    ;;
12655
 
                  ia64*)
12656
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12657
 
                    ;;
12658
 
                  *)
12659
 
                    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'
12660
 
                    ;;
12661
 
                esac
12662
 
              fi
12663
 
            else
12664
 
              # FIXME: insert proper C++ library support
12665
 
              ld_shlibs_CXX=no
12666
 
            fi
12667
 
            ;;
12668
 
        esac
12669
 
        ;;
12670
 
 
12671
 
      interix[3-9]*)
12672
 
        hardcode_direct_CXX=no
12673
 
        hardcode_shlibpath_var_CXX=no
12674
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12675
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12676
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12677
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
12678
 
        # default) and relocated if they conflict, which is a slow very memory
12679
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
12680
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12681
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12682
 
        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'
12683
 
        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'
12684
 
        ;;
12685
 
      irix5* | irix6*)
12686
 
        case $cc_basename in
12687
 
          CC*)
12688
 
            # SGI C++
12689
 
            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'
12690
 
 
12691
 
            # Archives containing C++ object files must be created using
12692
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12693
 
            # necessary to make sure instantiated templates are included
12694
 
            # in the archive.
12695
 
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12696
 
            ;;
12697
 
          *)
12698
 
            if test "$GXX" = yes; then
12699
 
              if test "$with_gnu_ld" = no; then
12700
 
                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'
12701
 
              else
12702
 
                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'
12703
 
              fi
12704
 
            fi
12705
 
            link_all_deplibs_CXX=yes
12706
 
            ;;
12707
 
        esac
12708
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12709
 
        hardcode_libdir_separator_CXX=:
12710
 
        inherit_rpath_CXX=yes
12711
 
        ;;
12712
 
 
12713
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12714
 
        case $cc_basename in
12715
 
          KCC*)
12716
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12717
 
 
12718
 
            # KCC will only create a shared library if the output file
12719
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12720
 
            # to its proper name (with version) after linking.
12721
 
            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'
12722
 
            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'
12723
 
            # Commands to make compiler produce verbose output that lists
12724
 
            # what "hidden" libraries, object files and flags are used when
12725
 
            # linking a shared library.
12726
 
            #
12727
 
            # There doesn't appear to be a way to prevent this compiler from
12728
 
            # explicitly linking system object files so we need to strip them
12729
 
            # from the output so that they don't get included in the library
12730
 
            # dependencies.
12731
 
            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'
12732
 
 
12733
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12734
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12735
 
 
12736
 
            # Archives containing C++ object files must be created using
12737
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12738
 
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12739
 
            ;;
12740
 
          icpc* | ecpc* )
12741
 
            # Intel C++
12742
 
            with_gnu_ld=yes
12743
 
            # version 8.0 and above of icpc choke on multiply defined symbols
12744
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
12745
 
            # earlier do not add the objects themselves.
12746
 
            case `$CC -V 2>&1` in
12747
 
              *"Version 7."*)
12748
 
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12749
 
                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'
12750
 
                ;;
12751
 
              *)  # Version 8.0 or newer
12752
 
                tmp_idyn=
12753
 
                case $host_cpu in
12754
 
                  ia64*) tmp_idyn=' -i_dynamic';;
12755
 
                esac
12756
 
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757
 
                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'
12758
 
                ;;
12759
 
            esac
12760
 
            archive_cmds_need_lc_CXX=no
12761
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12762
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12763
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12764
 
            ;;
12765
 
          pgCC* | pgcpp*)
12766
 
            # Portland Group C++ compiler
12767
 
            case `$CC -V` in
12768
 
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12769
 
              prelink_cmds_CXX='tpldir=Template.dir~
12770
 
                rm -rf $tpldir~
12771
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12772
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12773
 
              old_archive_cmds_CXX='tpldir=Template.dir~
12774
 
                rm -rf $tpldir~
12775
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12776
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12777
 
                $RANLIB $oldlib'
12778
 
              archive_cmds_CXX='tpldir=Template.dir~
12779
 
                rm -rf $tpldir~
12780
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12781
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12782
 
              archive_expsym_cmds_CXX='tpldir=Template.dir~
12783
 
                rm -rf $tpldir~
12784
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12785
 
                $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'
12786
 
              ;;
12787
 
            *) # Version 6 will use weak symbols
12788
 
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12789
 
              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'
12790
 
              ;;
12791
 
            esac
12792
 
 
12793
 
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12794
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12795
 
            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'
12796
 
            ;;
12797
 
          cxx*)
12798
 
            # Compaq C++
12799
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12800
 
            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'
12801
 
 
12802
 
            runpath_var=LD_RUN_PATH
12803
 
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12804
 
            hardcode_libdir_separator_CXX=:
12805
 
 
12806
 
            # Commands to make compiler produce verbose output that lists
12807
 
            # what "hidden" libraries, object files and flags are used when
12808
 
            # linking a shared library.
12809
 
            #
12810
 
            # There doesn't appear to be a way to prevent this compiler from
12811
 
            # explicitly linking system object files so we need to strip them
12812
 
            # from the output so that they don't get included in the library
12813
 
            # dependencies.
12814
 
            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'
12815
 
            ;;
12816
 
          xl*)
12817
 
            # IBM XL 8.0 on PPC, with GNU ld
12818
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12819
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12820
 
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12821
 
            if test "x$supports_anon_versioning" = xyes; then
12822
 
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12823
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12824
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
12825
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12826
 
            fi
12827
 
            ;;
12828
 
          *)
12829
 
            case `$CC -V 2>&1 | sed 5q` in
12830
 
            *Sun\ C*)
12831
 
              # Sun C++ 5.9
12832
 
              no_undefined_flag_CXX=' -zdefs'
12833
 
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12834
 
              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'
12835
 
              hardcode_libdir_flag_spec_CXX='-R$libdir'
12836
 
              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'
12837
 
              compiler_needs_object_CXX=yes
12838
 
 
12839
 
              # Not sure whether something based on
12840
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12841
 
              # would be better.
12842
 
              output_verbose_link_cmd='echo'
12843
 
 
12844
 
              # Archives containing C++ object files must be created using
12845
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12846
 
              # necessary to make sure instantiated templates are included
12847
 
              # in the archive.
12848
 
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12849
 
              ;;
12850
 
            esac
12851
 
            ;;
12852
 
        esac
12853
 
        ;;
12854
 
 
12855
 
      lynxos*)
12856
 
        # FIXME: insert proper C++ library support
12857
 
        ld_shlibs_CXX=no
12858
 
        ;;
12859
 
 
12860
 
      m88k*)
12861
 
        # FIXME: insert proper C++ library support
12862
 
        ld_shlibs_CXX=no
12863
 
        ;;
12864
 
 
12865
 
      mvs*)
12866
 
        case $cc_basename in
12867
 
          cxx*)
12868
 
            # FIXME: insert proper C++ library support
12869
 
            ld_shlibs_CXX=no
12870
 
            ;;
12871
 
          *)
12872
 
            # FIXME: insert proper C++ library support
12873
 
            ld_shlibs_CXX=no
12874
 
            ;;
12875
 
        esac
12876
 
        ;;
12877
 
 
12878
 
      netbsd*)
12879
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12880
 
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12881
 
          wlarc=
12882
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12883
 
          hardcode_direct_CXX=yes
12884
 
          hardcode_shlibpath_var_CXX=no
12885
 
        fi
12886
 
        # Workaround some broken pre-1.5 toolchains
12887
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12888
 
        ;;
12889
 
 
12890
 
      *nto* | *qnx*)
12891
 
        ld_shlibs_CXX=yes
12892
 
        ;;
12893
 
 
12894
 
      openbsd2*)
12895
 
        # C++ shared libraries are fairly broken
12896
 
        ld_shlibs_CXX=no
12897
 
        ;;
12898
 
 
12899
 
      openbsd*)
12900
 
        if test -f /usr/libexec/ld.so; then
12901
 
          hardcode_direct_CXX=yes
12902
 
          hardcode_shlibpath_var_CXX=no
12903
 
          hardcode_direct_absolute_CXX=yes
12904
 
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12905
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12906
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12907
 
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12908
 
            export_dynamic_flag_spec_CXX='${wl}-E'
12909
 
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12910
 
          fi
12911
 
          output_verbose_link_cmd=echo
12912
 
        else
12913
 
          ld_shlibs_CXX=no
12914
 
        fi
12915
 
        ;;
12916
 
 
12917
 
      osf3* | osf4* | osf5*)
12918
 
        case $cc_basename in
12919
 
          KCC*)
12920
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12921
 
 
12922
 
            # KCC will only create a shared library if the output file
12923
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12924
 
            # to its proper name (with version) after linking.
12925
 
            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'
12926
 
 
12927
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12928
 
            hardcode_libdir_separator_CXX=:
12929
 
 
12930
 
            # Archives containing C++ object files must be created using
12931
 
            # the KAI C++ compiler.
12932
 
            case $host in
12933
 
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12934
 
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12935
 
            esac
12936
 
            ;;
12937
 
          RCC*)
12938
 
            # Rational C++ 2.4.1
12939
 
            # FIXME: insert proper C++ library support
12940
 
            ld_shlibs_CXX=no
12941
 
            ;;
12942
 
          cxx*)
12943
 
            case $host in
12944
 
              osf3*)
12945
 
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12946
 
                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'
12947
 
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12948
 
                ;;
12949
 
              *)
12950
 
                allow_undefined_flag_CXX=' -expect_unresolved \*'
12951
 
                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'
12952
 
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12953
 
                  echo "-hidden">> $lib.exp~
12954
 
                  $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~
12955
 
                  $RM $lib.exp'
12956
 
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12957
 
                ;;
12958
 
            esac
12959
 
 
12960
 
            hardcode_libdir_separator_CXX=:
12961
 
 
12962
 
            # Commands to make compiler produce verbose output that lists
12963
 
            # what "hidden" libraries, object files and flags are used when
12964
 
            # linking a shared library.
12965
 
            #
12966
 
            # There doesn't appear to be a way to prevent this compiler from
12967
 
            # explicitly linking system object files so we need to strip them
12968
 
            # from the output so that they don't get included in the library
12969
 
            # dependencies.
12970
 
            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'
12971
 
            ;;
12972
 
          *)
12973
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12974
 
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12975
 
              case $host in
12976
 
                osf3*)
12977
 
                  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'
12978
 
                  ;;
12979
 
                *)
12980
 
                  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'
12981
 
                  ;;
12982
 
              esac
12983
 
 
12984
 
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12985
 
              hardcode_libdir_separator_CXX=:
12986
 
 
12987
 
              # Commands to make compiler produce verbose output that lists
12988
 
              # what "hidden" libraries, object files and flags are used when
12989
 
              # linking a shared library.
12990
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12991
 
 
12992
 
            else
12993
 
              # FIXME: insert proper C++ library support
12994
 
              ld_shlibs_CXX=no
12995
 
            fi
12996
 
            ;;
12997
 
        esac
12998
 
        ;;
12999
 
 
13000
 
      psos*)
13001
 
        # FIXME: insert proper C++ library support
13002
 
        ld_shlibs_CXX=no
13003
 
        ;;
13004
 
 
13005
 
      sunos4*)
13006
 
        case $cc_basename in
13007
 
          CC*)
13008
 
            # Sun C++ 4.x
13009
 
            # FIXME: insert proper C++ library support
13010
 
            ld_shlibs_CXX=no
13011
 
            ;;
13012
 
          lcc*)
13013
 
            # Lucid
13014
 
            # FIXME: insert proper C++ library support
13015
 
            ld_shlibs_CXX=no
13016
 
            ;;
13017
 
          *)
13018
 
            # FIXME: insert proper C++ library support
13019
 
            ld_shlibs_CXX=no
13020
 
            ;;
13021
 
        esac
13022
 
        ;;
13023
 
 
13024
 
      solaris*)
13025
 
        case $cc_basename in
13026
 
          CC*)
13027
 
            # Sun C++ 4.2, 5.x and Centerline C++
13028
 
            archive_cmds_need_lc_CXX=yes
13029
 
            no_undefined_flag_CXX=' -zdefs'
13030
 
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13031
 
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13032
 
              $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'
13033
 
 
13034
 
            hardcode_libdir_flag_spec_CXX='-R$libdir'
13035
 
            hardcode_shlibpath_var_CXX=no
13036
 
            case $host_os in
13037
 
              solaris2.[0-5] | solaris2.[0-5].*) ;;
13038
 
              *)
13039
 
                # The compiler driver will combine and reorder linker options,
13040
 
                # but understands `-z linker_flag'.
13041
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
13042
 
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13043
 
                ;;
13044
 
            esac
13045
 
            link_all_deplibs_CXX=yes
13046
 
 
13047
 
            output_verbose_link_cmd='echo'
13048
 
 
13049
 
            # Archives containing C++ object files must be created using
13050
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13051
 
            # necessary to make sure instantiated templates are included
13052
 
            # in the archive.
13053
 
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13054
 
            ;;
13055
 
          gcx*)
13056
 
            # Green Hills C++ Compiler
13057
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13058
 
 
13059
 
            # The C++ compiler must be used to create the archive.
13060
 
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13061
 
            ;;
13062
 
          *)
13063
 
            # GNU C++ compiler with Solaris linker
13064
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13065
 
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13066
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13067
 
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13068
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13069
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13070
 
 
13071
 
                # Commands to make compiler produce verbose output that lists
13072
 
                # what "hidden" libraries, object files and flags are used when
13073
 
                # linking a shared library.
13074
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13075
 
              else
13076
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
13077
 
                # platform.
13078
 
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13079
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13080
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13081
 
 
13082
 
                # Commands to make compiler produce verbose output that lists
13083
 
                # what "hidden" libraries, object files and flags are used when
13084
 
                # linking a shared library.
13085
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13086
 
              fi
13087
 
 
13088
 
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13089
 
              case $host_os in
13090
 
                solaris2.[0-5] | solaris2.[0-5].*) ;;
13091
 
                *)
13092
 
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13093
 
                  ;;
13094
 
              esac
13095
 
            fi
13096
 
            ;;
13097
 
        esac
13098
 
        ;;
13099
 
 
13100
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13101
 
      no_undefined_flag_CXX='${wl}-z,text'
13102
 
      archive_cmds_need_lc_CXX=no
13103
 
      hardcode_shlibpath_var_CXX=no
13104
 
      runpath_var='LD_RUN_PATH'
13105
 
 
13106
 
      case $cc_basename in
13107
 
        CC*)
13108
 
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13109
 
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13110
 
          ;;
13111
 
        *)
13112
 
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13113
 
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114
 
          ;;
13115
 
      esac
13116
 
      ;;
13117
 
 
13118
 
      sysv5* | sco3.2v5* | sco5v6*)
13119
 
        # Note: We can NOT use -z defs as we might desire, because we do not
13120
 
        # link with -lc, and that would cause any symbols used from libc to
13121
 
        # always be unresolved, which means just about no library would
13122
 
        # ever link correctly.  If we're not using GNU ld we use -z text
13123
 
        # though, which does catch some bad symbols but isn't as heavy-handed
13124
 
        # as -z defs.
13125
 
        no_undefined_flag_CXX='${wl}-z,text'
13126
 
        allow_undefined_flag_CXX='${wl}-z,nodefs'
13127
 
        archive_cmds_need_lc_CXX=no
13128
 
        hardcode_shlibpath_var_CXX=no
13129
 
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13130
 
        hardcode_libdir_separator_CXX=':'
13131
 
        link_all_deplibs_CXX=yes
13132
 
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
13133
 
        runpath_var='LD_RUN_PATH'
13134
 
 
13135
 
        case $cc_basename in
13136
 
          CC*)
13137
 
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13138
 
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139
 
            ;;
13140
 
          *)
13141
 
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13142
 
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13143
 
            ;;
13144
 
        esac
13145
 
      ;;
13146
 
 
13147
 
      tandem*)
13148
 
        case $cc_basename in
13149
 
          NCC*)
13150
 
            # NonStop-UX NCC 3.20
13151
 
            # FIXME: insert proper C++ library support
13152
 
            ld_shlibs_CXX=no
13153
 
            ;;
13154
 
          *)
13155
 
            # FIXME: insert proper C++ library support
13156
 
            ld_shlibs_CXX=no
13157
 
            ;;
13158
 
        esac
13159
 
        ;;
13160
 
 
13161
 
      vxworks*)
13162
 
        # FIXME: insert proper C++ library support
13163
 
        ld_shlibs_CXX=no
13164
 
        ;;
13165
 
 
13166
 
      *)
13167
 
        # FIXME: insert proper C++ library support
13168
 
        ld_shlibs_CXX=no
13169
 
        ;;
13170
 
    esac
13171
 
 
13172
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13173
 
$as_echo "$ld_shlibs_CXX" >&6; }
13174
 
    test "$ld_shlibs_CXX" = no && can_build_shared=no
13175
 
 
13176
 
    GCC_CXX="$GXX"
13177
 
    LD_CXX="$LD"
13178
 
 
13179
 
    ## CAVEAT EMPTOR:
13180
 
    ## There is no encapsulation within the following macros, do not change
13181
 
    ## the running order or otherwise move them around unless you know exactly
13182
 
    ## what you are doing...
13183
 
    # Dependencies to place before and after the object being linked:
13184
 
predep_objects_CXX=
13185
 
postdep_objects_CXX=
13186
 
predeps_CXX=
13187
 
postdeps_CXX=
13188
 
compiler_lib_search_path_CXX=
13189
 
 
13190
 
cat > conftest.$ac_ext <<_LT_EOF
13191
 
class Foo
13192
 
{
13193
 
public:
13194
 
  Foo (void) { a = 0; }
13195
 
private:
13196
 
  int a;
13197
 
};
13198
 
_LT_EOF
13199
 
 
13200
 
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13201
 
  (eval $ac_compile) 2>&5
13202
 
  ac_status=$?
13203
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204
 
  test $ac_status = 0; }; then
13205
 
  # Parse the compiler output and extract the necessary
13206
 
  # objects, libraries and library flags.
13207
 
 
13208
 
  # Sentinel used to keep track of whether or not we are before
13209
 
  # the conftest object file.
13210
 
  pre_test_object_deps_done=no
13211
 
 
13212
 
  for p in `eval "$output_verbose_link_cmd"`; do
13213
 
    case $p in
13214
 
 
13215
 
    -L* | -R* | -l*)
13216
 
       # Some compilers place space between "-{L,R}" and the path.
13217
 
       # Remove the space.
13218
 
       if test $p = "-L" ||
13219
 
          test $p = "-R"; then
13220
 
         prev=$p
13221
 
         continue
13222
 
       else
13223
 
         prev=
13224
 
       fi
13225
 
 
13226
 
       if test "$pre_test_object_deps_done" = no; then
13227
 
         case $p in
13228
 
         -L* | -R*)
13229
 
           # Internal compiler library paths should come after those
13230
 
           # provided the user.  The postdeps already come after the
13231
 
           # user supplied libs so there is no need to process them.
13232
 
           if test -z "$compiler_lib_search_path_CXX"; then
13233
 
             compiler_lib_search_path_CXX="${prev}${p}"
13234
 
           else
13235
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13236
 
           fi
13237
 
           ;;
13238
 
         # The "-l" case would never come before the object being
13239
 
         # linked, so don't bother handling this case.
13240
 
         esac
13241
 
       else
13242
 
         if test -z "$postdeps_CXX"; then
13243
 
           postdeps_CXX="${prev}${p}"
13244
 
         else
13245
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13246
 
         fi
13247
 
       fi
13248
 
       ;;
13249
 
 
13250
 
    *.$objext)
13251
 
       # This assumes that the test object file only shows up
13252
 
       # once in the compiler output.
13253
 
       if test "$p" = "conftest.$objext"; then
13254
 
         pre_test_object_deps_done=yes
13255
 
         continue
13256
 
       fi
13257
 
 
13258
 
       if test "$pre_test_object_deps_done" = no; then
13259
 
         if test -z "$predep_objects_CXX"; then
13260
 
           predep_objects_CXX="$p"
13261
 
         else
13262
 
           predep_objects_CXX="$predep_objects_CXX $p"
13263
 
         fi
13264
 
       else
13265
 
         if test -z "$postdep_objects_CXX"; then
13266
 
           postdep_objects_CXX="$p"
13267
 
         else
13268
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
13269
 
         fi
13270
 
       fi
13271
 
       ;;
13272
 
 
13273
 
    *) ;; # Ignore the rest.
13274
 
 
13275
 
    esac
13276
 
  done
13277
 
 
13278
 
  # Clean up.
13279
 
  rm -f a.out a.exe
13280
 
else
13281
 
  echo "libtool.m4: error: problem compiling CXX test program"
13282
 
fi
13283
 
 
13284
 
$RM -f confest.$objext
13285
 
 
13286
 
# PORTME: override above test on systems where it is broken
13287
 
case $host_os in
13288
 
interix[3-9]*)
13289
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13290
 
  # hack all around it, let's just trust "g++" to DTRT.
13291
 
  predep_objects_CXX=
13292
 
  postdep_objects_CXX=
13293
 
  postdeps_CXX=
13294
 
  ;;
13295
 
 
13296
 
linux*)
13297
 
  case `$CC -V 2>&1 | sed 5q` in
13298
 
  *Sun\ C*)
13299
 
    # Sun C++ 5.9
13300
 
 
13301
 
    # The more standards-conforming stlport4 library is
13302
 
    # incompatible with the Cstd library. Avoid specifying
13303
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13304
 
    # -library=stlport4 depends on it.
13305
 
    case " $CXX $CXXFLAGS " in
13306
 
    *" -library=stlport4 "*)
13307
 
      solaris_use_stlport4=yes
13308
 
      ;;
13309
 
    esac
13310
 
 
13311
 
    if test "$solaris_use_stlport4" != yes; then
13312
 
      postdeps_CXX='-library=Cstd -library=Crun'
13313
 
    fi
13314
 
    ;;
13315
 
  esac
13316
 
  ;;
13317
 
 
13318
 
solaris*)
13319
 
  case $cc_basename in
13320
 
  CC*)
13321
 
    # The more standards-conforming stlport4 library is
13322
 
    # incompatible with the Cstd library. Avoid specifying
13323
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13324
 
    # -library=stlport4 depends on it.
13325
 
    case " $CXX $CXXFLAGS " in
13326
 
    *" -library=stlport4 "*)
13327
 
      solaris_use_stlport4=yes
13328
 
      ;;
13329
 
    esac
13330
 
 
13331
 
    # Adding this requires a known-good setup of shared libraries for
13332
 
    # Sun compiler versions before 5.6, else PIC objects from an old
13333
 
    # archive will be linked into the output, leading to subtle bugs.
13334
 
    if test "$solaris_use_stlport4" != yes; then
13335
 
      postdeps_CXX='-library=Cstd -library=Crun'
13336
 
    fi
13337
 
    ;;
13338
 
  esac
13339
 
  ;;
13340
 
esac
13341
 
 
13342
 
 
13343
 
case " $postdeps_CXX " in
13344
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13345
 
esac
13346
 
 compiler_lib_search_dirs_CXX=
13347
 
if test -n "${compiler_lib_search_path_CXX}"; then
13348
 
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13349
 
fi
13350
 
 
13351
 
 
13352
 
 
13353
 
 
13354
 
 
13355
 
 
13356
 
 
13357
 
 
13358
 
 
13359
 
 
13360
 
 
13361
 
 
13362
 
 
13363
 
 
13364
 
 
13365
 
 
13366
 
 
13367
 
 
13368
 
 
13369
 
 
13370
 
 
13371
 
 
13372
 
 
13373
 
 
13374
 
 
13375
 
 
13376
 
 
13377
 
 
13378
 
 
13379
 
 
13380
 
 
13381
 
    lt_prog_compiler_wl_CXX=
13382
 
lt_prog_compiler_pic_CXX=
13383
 
lt_prog_compiler_static_CXX=
13384
 
 
13385
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13386
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13387
 
 
13388
 
  # C++ specific cases for pic, static, wl, etc.
13389
 
  if test "$GXX" = yes; then
13390
 
    lt_prog_compiler_wl_CXX='-Wl,'
13391
 
    lt_prog_compiler_static_CXX='-static'
13392
 
 
13393
 
    case $host_os in
13394
 
    aix*)
13395
 
      # All AIX code is PIC.
13396
 
      if test "$host_cpu" = ia64; then
13397
 
        # AIX 5 now supports IA64 processor
13398
 
        lt_prog_compiler_static_CXX='-Bstatic'
13399
 
      fi
13400
 
      ;;
13401
 
 
13402
 
    amigaos*)
13403
 
      case $host_cpu in
13404
 
      powerpc)
13405
 
            # see comment about AmigaOS4 .so support
13406
 
            lt_prog_compiler_pic_CXX='-fPIC'
13407
 
        ;;
13408
 
      m68k)
13409
 
            # FIXME: we need at least 68020 code to build shared libraries, but
13410
 
            # adding the `-m68020' flag to GCC prevents building anything better,
13411
 
            # like `-m68040'.
13412
 
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13413
 
        ;;
13414
 
      esac
13415
 
      ;;
13416
 
 
13417
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13418
 
      # PIC is the default for these OSes.
13419
 
      ;;
13420
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
13421
 
      # This hack is so that the source file can tell whether it is being
13422
 
      # built for inclusion in a dll (and should export symbols for example).
13423
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13424
 
      # (--disable-auto-import) libraries
13425
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13426
 
      ;;
13427
 
    darwin* | rhapsody*)
13428
 
      # PIC is the default on this platform
13429
 
      # Common symbols not allowed in MH_DYLIB files
13430
 
      lt_prog_compiler_pic_CXX='-fno-common'
13431
 
      ;;
13432
 
    *djgpp*)
13433
 
      # DJGPP does not support shared libraries at all
13434
 
      lt_prog_compiler_pic_CXX=
13435
 
      ;;
13436
 
    interix[3-9]*)
13437
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13438
 
      # Instead, we relocate shared libraries at runtime.
13439
 
      ;;
13440
 
    sysv4*MP*)
13441
 
      if test -d /usr/nec; then
13442
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
13443
 
      fi
13444
 
      ;;
13445
 
    hpux*)
13446
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13447
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13448
 
      # sets the default TLS model and affects inlining.
13449
 
      case $host_cpu in
13450
 
      hppa*64*)
13451
 
        ;;
13452
 
      *)
13453
 
        lt_prog_compiler_pic_CXX='-fPIC'
13454
 
        ;;
13455
 
      esac
13456
 
      ;;
13457
 
    *qnx* | *nto*)
13458
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
13459
 
      # it will coredump.
13460
 
      lt_prog_compiler_pic_CXX='-fPIC -shared'
13461
 
      ;;
13462
 
    *)
13463
 
      lt_prog_compiler_pic_CXX='-fPIC'
13464
 
      ;;
13465
 
    esac
13466
 
  else
13467
 
    case $host_os in
13468
 
      aix[4-9]*)
13469
 
        # All AIX code is PIC.
13470
 
        if test "$host_cpu" = ia64; then
13471
 
          # AIX 5 now supports IA64 processor
13472
 
          lt_prog_compiler_static_CXX='-Bstatic'
13473
 
        else
13474
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13475
 
        fi
13476
 
        ;;
13477
 
      chorus*)
13478
 
        case $cc_basename in
13479
 
        cxch68*)
13480
 
          # Green Hills C++ Compiler
13481
 
          # _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"
13482
 
          ;;
13483
 
        esac
13484
 
        ;;
13485
 
      dgux*)
13486
 
        case $cc_basename in
13487
 
          ec++*)
13488
 
            lt_prog_compiler_pic_CXX='-KPIC'
13489
 
            ;;
13490
 
          ghcx*)
13491
 
            # Green Hills C++ Compiler
13492
 
            lt_prog_compiler_pic_CXX='-pic'
13493
 
            ;;
13494
 
          *)
13495
 
            ;;
13496
 
        esac
13497
 
        ;;
13498
 
      freebsd* | dragonfly*)
13499
 
        # FreeBSD uses GNU C++
13500
 
        ;;
13501
 
      hpux9* | hpux10* | hpux11*)
13502
 
        case $cc_basename in
13503
 
          CC*)
13504
 
            lt_prog_compiler_wl_CXX='-Wl,'
13505
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13506
 
            if test "$host_cpu" != ia64; then
13507
 
              lt_prog_compiler_pic_CXX='+Z'
13508
 
            fi
13509
 
            ;;
13510
 
          aCC*)
13511
 
            lt_prog_compiler_wl_CXX='-Wl,'
13512
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13513
 
            case $host_cpu in
13514
 
            hppa*64*|ia64*)
13515
 
              # +Z the default
13516
 
              ;;
13517
 
            *)
13518
 
              lt_prog_compiler_pic_CXX='+Z'
13519
 
              ;;
13520
 
            esac
13521
 
            ;;
13522
 
          *)
13523
 
            ;;
13524
 
        esac
13525
 
        ;;
13526
 
      interix*)
13527
 
        # This is c89, which is MS Visual C++ (no shared libs)
13528
 
        # Anyone wants to do a port?
13529
 
        ;;
13530
 
      irix5* | irix6* | nonstopux*)
13531
 
        case $cc_basename in
13532
 
          CC*)
13533
 
            lt_prog_compiler_wl_CXX='-Wl,'
13534
 
            lt_prog_compiler_static_CXX='-non_shared'
13535
 
            # CC pic flag -KPIC is the default.
13536
 
            ;;
13537
 
          *)
13538
 
            ;;
13539
 
        esac
13540
 
        ;;
13541
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13542
 
        case $cc_basename in
13543
 
          KCC*)
13544
 
            # KAI C++ Compiler
13545
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13546
 
            lt_prog_compiler_pic_CXX='-fPIC'
13547
 
            ;;
13548
 
          ecpc* )
13549
 
            # old Intel C++ for x86_64 which still supported -KPIC.
13550
 
            lt_prog_compiler_wl_CXX='-Wl,'
13551
 
            lt_prog_compiler_pic_CXX='-KPIC'
13552
 
            lt_prog_compiler_static_CXX='-static'
13553
 
            ;;
13554
 
          icpc* )
13555
 
            # Intel C++, used to be incompatible with GCC.
13556
 
            # ICC 10 doesn't accept -KPIC any more.
13557
 
            lt_prog_compiler_wl_CXX='-Wl,'
13558
 
            lt_prog_compiler_pic_CXX='-fPIC'
13559
 
            lt_prog_compiler_static_CXX='-static'
13560
 
            ;;
13561
 
          pgCC* | pgcpp*)
13562
 
            # Portland Group C++ compiler
13563
 
            lt_prog_compiler_wl_CXX='-Wl,'
13564
 
            lt_prog_compiler_pic_CXX='-fpic'
13565
 
            lt_prog_compiler_static_CXX='-Bstatic'
13566
 
            ;;
13567
 
          cxx*)
13568
 
            # Compaq C++
13569
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13570
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13571
 
            lt_prog_compiler_pic_CXX=
13572
 
            lt_prog_compiler_static_CXX='-non_shared'
13573
 
            ;;
13574
 
          xlc* | xlC*)
13575
 
            # IBM XL 8.0 on PPC
13576
 
            lt_prog_compiler_wl_CXX='-Wl,'
13577
 
            lt_prog_compiler_pic_CXX='-qpic'
13578
 
            lt_prog_compiler_static_CXX='-qstaticlink'
13579
 
            ;;
13580
 
          *)
13581
 
            case `$CC -V 2>&1 | sed 5q` in
13582
 
            *Sun\ C*)
13583
 
              # Sun C++ 5.9
13584
 
              lt_prog_compiler_pic_CXX='-KPIC'
13585
 
              lt_prog_compiler_static_CXX='-Bstatic'
13586
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
13587
 
              ;;
13588
 
            esac
13589
 
            ;;
13590
 
        esac
13591
 
        ;;
13592
 
      lynxos*)
13593
 
        ;;
13594
 
      m88k*)
13595
 
        ;;
13596
 
      mvs*)
13597
 
        case $cc_basename in
13598
 
          cxx*)
13599
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
13600
 
            ;;
13601
 
          *)
13602
 
            ;;
13603
 
        esac
13604
 
        ;;
13605
 
      netbsd* | netbsdelf*-gnu)
13606
 
        ;;
13607
 
      *qnx* | *nto*)
13608
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13609
 
        # it will coredump.
13610
 
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13611
 
        ;;
13612
 
      osf3* | osf4* | osf5*)
13613
 
        case $cc_basename in
13614
 
          KCC*)
13615
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13616
 
            ;;
13617
 
          RCC*)
13618
 
            # Rational C++ 2.4.1
13619
 
            lt_prog_compiler_pic_CXX='-pic'
13620
 
            ;;
13621
 
          cxx*)
13622
 
            # Digital/Compaq C++
13623
 
            lt_prog_compiler_wl_CXX='-Wl,'
13624
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13625
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13626
 
            lt_prog_compiler_pic_CXX=
13627
 
            lt_prog_compiler_static_CXX='-non_shared'
13628
 
            ;;
13629
 
          *)
13630
 
            ;;
13631
 
        esac
13632
 
        ;;
13633
 
      psos*)
13634
 
        ;;
13635
 
      solaris*)
13636
 
        case $cc_basename in
13637
 
          CC*)
13638
 
            # Sun C++ 4.2, 5.x and Centerline C++
13639
 
            lt_prog_compiler_pic_CXX='-KPIC'
13640
 
            lt_prog_compiler_static_CXX='-Bstatic'
13641
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
13642
 
            ;;
13643
 
          gcx*)
13644
 
            # Green Hills C++ Compiler
13645
 
            lt_prog_compiler_pic_CXX='-PIC'
13646
 
            ;;
13647
 
          *)
13648
 
            ;;
13649
 
        esac
13650
 
        ;;
13651
 
      sunos4*)
13652
 
        case $cc_basename in
13653
 
          CC*)
13654
 
            # Sun C++ 4.x
13655
 
            lt_prog_compiler_pic_CXX='-pic'
13656
 
            lt_prog_compiler_static_CXX='-Bstatic'
13657
 
            ;;
13658
 
          lcc*)
13659
 
            # Lucid
13660
 
            lt_prog_compiler_pic_CXX='-pic'
13661
 
            ;;
13662
 
          *)
13663
 
            ;;
13664
 
        esac
13665
 
        ;;
13666
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13667
 
        case $cc_basename in
13668
 
          CC*)
13669
 
            lt_prog_compiler_wl_CXX='-Wl,'
13670
 
            lt_prog_compiler_pic_CXX='-KPIC'
13671
 
            lt_prog_compiler_static_CXX='-Bstatic'
13672
 
            ;;
13673
 
        esac
13674
 
        ;;
13675
 
      tandem*)
13676
 
        case $cc_basename in
13677
 
          NCC*)
13678
 
            # NonStop-UX NCC 3.20
13679
 
            lt_prog_compiler_pic_CXX='-KPIC'
13680
 
            ;;
13681
 
          *)
13682
 
            ;;
13683
 
        esac
13684
 
        ;;
13685
 
      vxworks*)
13686
 
        ;;
13687
 
      *)
13688
 
        lt_prog_compiler_can_build_shared_CXX=no
13689
 
        ;;
13690
 
    esac
13691
 
  fi
13692
 
 
13693
 
case $host_os in
13694
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13695
 
  *djgpp*)
13696
 
    lt_prog_compiler_pic_CXX=
13697
 
    ;;
13698
 
  *)
13699
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13700
 
    ;;
13701
 
esac
13702
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13703
 
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13704
 
 
13705
 
 
13706
 
 
13707
 
#
13708
 
# Check to make sure the PIC flag actually works.
13709
 
#
13710
 
if test -n "$lt_prog_compiler_pic_CXX"; then
13711
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13712
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13713
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13714
 
  $as_echo_n "(cached) " >&6
13715
 
else
13716
 
  lt_cv_prog_compiler_pic_works_CXX=no
13717
 
   ac_outfile=conftest.$ac_objext
13718
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13719
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13720
 
   # Insert the option either (1) after the last *FLAGS variable, or
13721
 
   # (2) before a word containing "conftest.", or (3) at the end.
13722
 
   # Note that $ac_compile itself does not contain backslashes and begins
13723
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13724
 
   # The option is referenced via a variable to avoid confusing sed.
13725
 
   lt_compile=`echo "$ac_compile" | $SED \
13726
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13727
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13728
 
   -e 's:$: $lt_compiler_flag:'`
13729
 
   (eval echo "\"\$as_me:13729: $lt_compile\"" >&5)
13730
 
   (eval "$lt_compile" 2>conftest.err)
13731
 
   ac_status=$?
13732
 
   cat conftest.err >&5
13733
 
   echo "$as_me:13733: \$? = $ac_status" >&5
13734
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13735
 
     # The compiler can only warn and ignore the option if not recognized
13736
 
     # So say no if there are warnings other than the usual output.
13737
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13738
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13739
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13740
 
       lt_cv_prog_compiler_pic_works_CXX=yes
13741
 
     fi
13742
 
   fi
13743
 
   $RM conftest*
13744
 
 
13745
 
fi
13746
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13747
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13748
 
 
13749
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13750
 
    case $lt_prog_compiler_pic_CXX in
13751
 
     "" | " "*) ;;
13752
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13753
 
     esac
13754
 
else
13755
 
    lt_prog_compiler_pic_CXX=
13756
 
     lt_prog_compiler_can_build_shared_CXX=no
13757
 
fi
13758
 
 
13759
 
fi
13760
 
 
13761
 
 
13762
 
 
13763
 
#
13764
 
# Check to make sure the static flag actually works.
13765
 
#
13766
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13767
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13768
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13769
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13770
 
  $as_echo_n "(cached) " >&6
13771
 
else
13772
 
  lt_cv_prog_compiler_static_works_CXX=no
13773
 
   save_LDFLAGS="$LDFLAGS"
13774
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13775
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13776
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13777
 
     # The linker can only warn and ignore the option if not recognized
13778
 
     # So say no if there are warnings
13779
 
     if test -s conftest.err; then
13780
 
       # Append any errors to the config.log.
13781
 
       cat conftest.err 1>&5
13782
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13783
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13784
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13785
 
         lt_cv_prog_compiler_static_works_CXX=yes
13786
 
       fi
13787
 
     else
13788
 
       lt_cv_prog_compiler_static_works_CXX=yes
13789
 
     fi
13790
 
   fi
13791
 
   $RM -r conftest*
13792
 
   LDFLAGS="$save_LDFLAGS"
13793
 
 
13794
 
fi
13795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13796
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13797
 
 
13798
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13799
 
    :
13800
 
else
13801
 
    lt_prog_compiler_static_CXX=
13802
 
fi
13803
 
 
13804
 
 
13805
 
 
13806
 
 
13807
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13808
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13809
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13810
 
  $as_echo_n "(cached) " >&6
13811
 
else
13812
 
  lt_cv_prog_compiler_c_o_CXX=no
13813
 
   $RM -r conftest 2>/dev/null
13814
 
   mkdir conftest
13815
 
   cd conftest
13816
 
   mkdir out
13817
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13818
 
 
13819
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13820
 
   # Insert the option either (1) after the last *FLAGS variable, or
13821
 
   # (2) before a word containing "conftest.", or (3) at the end.
13822
 
   # Note that $ac_compile itself does not contain backslashes and begins
13823
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13824
 
   lt_compile=`echo "$ac_compile" | $SED \
13825
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13826
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13827
 
   -e 's:$: $lt_compiler_flag:'`
13828
 
   (eval echo "\"\$as_me:13828: $lt_compile\"" >&5)
13829
 
   (eval "$lt_compile" 2>out/conftest.err)
13830
 
   ac_status=$?
13831
 
   cat out/conftest.err >&5
13832
 
   echo "$as_me:13832: \$? = $ac_status" >&5
13833
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13834
 
   then
13835
 
     # The compiler can only warn and ignore the option if not recognized
13836
 
     # So say no if there are warnings
13837
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13838
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13839
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13840
 
       lt_cv_prog_compiler_c_o_CXX=yes
13841
 
     fi
13842
 
   fi
13843
 
   chmod u+w . 2>&5
13844
 
   $RM conftest*
13845
 
   # SGI C++ compiler will create directory out/ii_files/ for
13846
 
   # template instantiation
13847
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13848
 
   $RM out/* && rmdir out
13849
 
   cd ..
13850
 
   $RM -r conftest
13851
 
   $RM conftest*
13852
 
 
13853
 
fi
13854
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13855
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13856
 
 
13857
 
 
13858
 
 
13859
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13860
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13861
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13862
 
  $as_echo_n "(cached) " >&6
13863
 
else
13864
 
  lt_cv_prog_compiler_c_o_CXX=no
13865
 
   $RM -r conftest 2>/dev/null
13866
 
   mkdir conftest
13867
 
   cd conftest
13868
 
   mkdir out
13869
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13870
 
 
13871
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13872
 
   # Insert the option either (1) after the last *FLAGS variable, or
13873
 
   # (2) before a word containing "conftest.", or (3) at the end.
13874
 
   # Note that $ac_compile itself does not contain backslashes and begins
13875
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13876
 
   lt_compile=`echo "$ac_compile" | $SED \
13877
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13878
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13879
 
   -e 's:$: $lt_compiler_flag:'`
13880
 
   (eval echo "\"\$as_me:13880: $lt_compile\"" >&5)
13881
 
   (eval "$lt_compile" 2>out/conftest.err)
13882
 
   ac_status=$?
13883
 
   cat out/conftest.err >&5
13884
 
   echo "$as_me:13884: \$? = $ac_status" >&5
13885
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13886
 
   then
13887
 
     # The compiler can only warn and ignore the option if not recognized
13888
 
     # So say no if there are warnings
13889
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13890
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13891
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13892
 
       lt_cv_prog_compiler_c_o_CXX=yes
13893
 
     fi
13894
 
   fi
13895
 
   chmod u+w . 2>&5
13896
 
   $RM conftest*
13897
 
   # SGI C++ compiler will create directory out/ii_files/ for
13898
 
   # template instantiation
13899
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13900
 
   $RM out/* && rmdir out
13901
 
   cd ..
13902
 
   $RM -r conftest
13903
 
   $RM conftest*
13904
 
 
13905
 
fi
13906
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13907
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13908
 
 
13909
 
 
13910
 
 
13911
 
 
13912
 
hard_links="nottested"
13913
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13914
 
  # do not overwrite the value of need_locks provided by the user
13915
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13916
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
13917
 
  hard_links=yes
13918
 
  $RM conftest*
13919
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13920
 
  touch conftest.a
13921
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13922
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13923
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13924
 
$as_echo "$hard_links" >&6; }
13925
 
  if test "$hard_links" = no; then
13926
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13927
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13928
 
    need_locks=warn
13929
 
  fi
13930
 
else
13931
 
  need_locks=no
13932
 
fi
13933
 
 
13934
 
 
13935
 
 
13936
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13937
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13938
 
 
13939
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13940
 
  case $host_os in
13941
 
  aix[4-9]*)
13942
 
    # If we're using GNU nm, then we don't want the "-C" option.
13943
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13944
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13945
 
      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'
13946
 
    else
13947
 
      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'
13948
 
    fi
13949
 
    ;;
13950
 
  pw32*)
13951
 
    export_symbols_cmds_CXX="$ltdll_cmds"
13952
 
  ;;
13953
 
  cygwin* | mingw* | cegcc*)
13954
 
    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'
13955
 
  ;;
13956
 
  linux* | k*bsd*-gnu)
13957
 
    link_all_deplibs_CXX=no
13958
 
  ;;
13959
 
  *)
13960
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13961
 
  ;;
13962
 
  esac
13963
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13964
 
 
13965
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13966
 
$as_echo "$ld_shlibs_CXX" >&6; }
13967
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13968
 
 
13969
 
with_gnu_ld_CXX=$with_gnu_ld
13970
 
 
13971
 
 
13972
 
 
13973
 
 
13974
 
 
13975
 
 
13976
 
#
13977
 
# Do we need to explicitly link libc?
13978
 
#
13979
 
case "x$archive_cmds_need_lc_CXX" in
13980
 
x|xyes)
13981
 
  # Assume -lc should be added
13982
 
  archive_cmds_need_lc_CXX=yes
13983
 
 
13984
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13985
 
    case $archive_cmds_CXX in
13986
 
    *'~'*)
13987
 
      # FIXME: we may have to deal with multi-command sequences.
13988
 
      ;;
13989
 
    '$CC '*)
13990
 
      # Test whether the compiler implicitly links with -lc since on some
13991
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13992
 
      # to ld, don't add -lc before -lgcc.
13993
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13994
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13995
 
      $RM conftest*
13996
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13997
 
 
13998
 
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13999
 
  (eval $ac_compile) 2>&5
14000
 
  ac_status=$?
14001
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002
 
  test $ac_status = 0; } 2>conftest.err; then
14003
 
        soname=conftest
14004
 
        lib=conftest
14005
 
        libobjs=conftest.$ac_objext
14006
 
        deplibs=
14007
 
        wl=$lt_prog_compiler_wl_CXX
14008
 
        pic_flag=$lt_prog_compiler_pic_CXX
14009
 
        compiler_flags=-v
14010
 
        linker_flags=-v
14011
 
        verstring=
14012
 
        output_objdir=.
14013
 
        libname=conftest
14014
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14015
 
        allow_undefined_flag_CXX=
14016
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14017
 
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14018
 
  ac_status=$?
14019
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020
 
  test $ac_status = 0; }
14021
 
        then
14022
 
          archive_cmds_need_lc_CXX=no
14023
 
        else
14024
 
          archive_cmds_need_lc_CXX=yes
14025
 
        fi
14026
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14027
 
      else
14028
 
        cat conftest.err 1>&5
14029
 
      fi
14030
 
      $RM conftest*
14031
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14032
 
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14033
 
      ;;
14034
 
    esac
14035
 
  fi
14036
 
  ;;
14037
 
esac
14038
 
 
14039
 
 
14040
 
 
14041
 
 
14042
 
 
14043
 
 
14044
 
 
14045
 
 
14046
 
 
14047
 
 
14048
 
 
14049
 
 
14050
 
 
14051
 
 
14052
 
 
14053
 
 
14054
 
 
14055
 
 
14056
 
 
14057
 
 
14058
 
 
14059
 
 
14060
 
 
14061
 
 
14062
 
 
14063
 
 
14064
 
 
14065
 
 
14066
 
 
14067
 
 
14068
 
 
14069
 
 
14070
 
 
14071
 
 
14072
 
 
14073
 
 
14074
 
 
14075
 
 
14076
 
 
14077
 
 
14078
 
 
14079
 
 
14080
 
 
14081
 
 
14082
 
 
14083
 
 
14084
 
 
14085
 
 
14086
 
 
14087
 
 
14088
 
 
14089
 
 
14090
 
 
14091
 
 
14092
 
 
14093
 
 
14094
 
 
14095
 
 
14096
 
 
14097
 
 
14098
 
 
14099
 
 
14100
 
 
14101
 
 
14102
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14103
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14104
 
 
14105
 
library_names_spec=
14106
 
libname_spec='lib$name'
14107
 
soname_spec=
14108
 
shrext_cmds=".so"
14109
 
postinstall_cmds=
14110
 
postuninstall_cmds=
14111
 
finish_cmds=
14112
 
finish_eval=
14113
 
shlibpath_var=
14114
 
shlibpath_overrides_runpath=unknown
14115
 
version_type=none
14116
 
dynamic_linker="$host_os ld.so"
14117
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14118
 
need_lib_prefix=unknown
14119
 
hardcode_into_libs=no
14120
 
 
14121
 
# when you set need_version to no, make sure it does not cause -set_version
14122
 
# flags to be left without arguments
14123
 
need_version=unknown
14124
 
 
14125
 
case $host_os in
14126
 
aix3*)
14127
 
  version_type=linux
14128
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14129
 
  shlibpath_var=LIBPATH
14130
 
 
14131
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14132
 
  soname_spec='${libname}${release}${shared_ext}$major'
14133
 
  ;;
14134
 
 
14135
 
aix[4-9]*)
14136
 
  version_type=linux
14137
 
  need_lib_prefix=no
14138
 
  need_version=no
14139
 
  hardcode_into_libs=yes
14140
 
  if test "$host_cpu" = ia64; then
14141
 
    # AIX 5 supports IA64
14142
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14143
 
    shlibpath_var=LD_LIBRARY_PATH
14144
 
  else
14145
 
    # With GCC up to 2.95.x, collect2 would create an import file
14146
 
    # for dependence libraries.  The import file would start with
14147
 
    # the line `#! .'.  This would cause the generated library to
14148
 
    # depend on `.', always an invalid library.  This was fixed in
14149
 
    # development snapshots of GCC prior to 3.0.
14150
 
    case $host_os in
14151
 
      aix4 | aix4.[01] | aix4.[01].*)
14152
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14153
 
           echo ' yes '
14154
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14155
 
        :
14156
 
      else
14157
 
        can_build_shared=no
14158
 
      fi
14159
 
      ;;
14160
 
    esac
14161
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14162
 
    # soname into executable. Probably we can add versioning support to
14163
 
    # collect2, so additional links can be useful in future.
14164
 
    if test "$aix_use_runtimelinking" = yes; then
14165
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14166
 
      # instead of lib<name>.a to let people know that these are not
14167
 
      # typical AIX shared libraries.
14168
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169
 
    else
14170
 
      # We preserve .a as extension for shared libraries through AIX4.2
14171
 
      # and later when we are not doing run time linking.
14172
 
      library_names_spec='${libname}${release}.a $libname.a'
14173
 
      soname_spec='${libname}${release}${shared_ext}$major'
14174
 
    fi
14175
 
    shlibpath_var=LIBPATH
14176
 
  fi
14177
 
  ;;
14178
 
 
14179
 
amigaos*)
14180
 
  case $host_cpu in
14181
 
  powerpc)
14182
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
14183
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14184
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14185
 
    ;;
14186
 
  m68k)
14187
 
    library_names_spec='$libname.ixlibrary $libname.a'
14188
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14189
 
    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'
14190
 
    ;;
14191
 
  esac
14192
 
  ;;
14193
 
 
14194
 
beos*)
14195
 
  library_names_spec='${libname}${shared_ext}'
14196
 
  dynamic_linker="$host_os ld.so"
14197
 
  shlibpath_var=LIBRARY_PATH
14198
 
  ;;
14199
 
 
14200
 
bsdi[45]*)
14201
 
  version_type=linux
14202
 
  need_version=no
14203
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204
 
  soname_spec='${libname}${release}${shared_ext}$major'
14205
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14206
 
  shlibpath_var=LD_LIBRARY_PATH
14207
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14208
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14209
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14210
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14211
 
  # libtool to hard-code these into programs
14212
 
  ;;
14213
 
 
14214
 
cygwin* | mingw* | pw32* | cegcc*)
14215
 
  version_type=windows
14216
 
  shrext_cmds=".dll"
14217
 
  need_version=no
14218
 
  need_lib_prefix=no
14219
 
 
14220
 
  case $GCC,$host_os in
14221
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14222
 
    library_names_spec='$libname.dll.a'
14223
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14224
 
    postinstall_cmds='base_file=`basename \${file}`~
14225
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14226
 
      dldir=$destdir/`dirname \$dlpath`~
14227
 
      test -d \$dldir || mkdir -p \$dldir~
14228
 
      $install_prog $dir/$dlname \$dldir/$dlname~
14229
 
      chmod a+x \$dldir/$dlname~
14230
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14231
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14232
 
      fi'
14233
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14234
 
      dlpath=$dir/\$dldll~
14235
 
       $RM \$dlpath'
14236
 
    shlibpath_overrides_runpath=yes
14237
 
 
14238
 
    case $host_os in
14239
 
    cygwin*)
14240
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14241
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14242
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14243
 
      ;;
14244
 
    mingw* | cegcc*)
14245
 
      # MinGW DLLs use traditional 'lib' prefix
14246
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14247
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14248
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14249
 
        # It is most probably a Windows format PATH printed by
14250
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14251
 
        # path with ; separators, and with drive letters. We can handle the
14252
 
        # drive letters (cygwin fileutils understands them), so leave them,
14253
 
        # especially as we might pass files found there to a mingw objdump,
14254
 
        # which wouldn't understand a cygwinified path. Ahh.
14255
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14256
 
      else
14257
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14258
 
      fi
14259
 
      ;;
14260
 
    pw32*)
14261
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14262
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14263
 
      ;;
14264
 
    esac
14265
 
    ;;
14266
 
 
14267
 
  *)
14268
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14269
 
    ;;
14270
 
  esac
14271
 
  dynamic_linker='Win32 ld.exe'
14272
 
  # FIXME: first we should search . and the directory the executable is in
14273
 
  shlibpath_var=PATH
14274
 
  ;;
14275
 
 
14276
 
darwin* | rhapsody*)
14277
 
  dynamic_linker="$host_os dyld"
14278
 
  version_type=darwin
14279
 
  need_lib_prefix=no
14280
 
  need_version=no
14281
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14282
 
  soname_spec='${libname}${release}${major}$shared_ext'
14283
 
  shlibpath_overrides_runpath=yes
14284
 
  shlibpath_var=DYLD_LIBRARY_PATH
14285
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14286
 
 
14287
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14288
 
  ;;
14289
 
 
14290
 
dgux*)
14291
 
  version_type=linux
14292
 
  need_lib_prefix=no
14293
 
  need_version=no
14294
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14295
 
  soname_spec='${libname}${release}${shared_ext}$major'
14296
 
  shlibpath_var=LD_LIBRARY_PATH
14297
 
  ;;
14298
 
 
14299
 
freebsd1*)
14300
 
  dynamic_linker=no
14301
 
  ;;
14302
 
 
14303
 
freebsd* | dragonfly*)
14304
 
  # DragonFly does not have aout.  When/if they implement a new
14305
 
  # versioning mechanism, adjust this.
14306
 
  if test -x /usr/bin/objformat; then
14307
 
    objformat=`/usr/bin/objformat`
14308
 
  else
14309
 
    case $host_os in
14310
 
    freebsd[123]*) objformat=aout ;;
14311
 
    *) objformat=elf ;;
14312
 
    esac
14313
 
  fi
14314
 
  version_type=freebsd-$objformat
14315
 
  case $version_type in
14316
 
    freebsd-elf*)
14317
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14318
 
      need_version=no
14319
 
      need_lib_prefix=no
14320
 
      ;;
14321
 
    freebsd-*)
14322
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14323
 
      need_version=yes
14324
 
      ;;
14325
 
  esac
14326
 
  shlibpath_var=LD_LIBRARY_PATH
14327
 
  case $host_os in
14328
 
  freebsd2*)
14329
 
    shlibpath_overrides_runpath=yes
14330
 
    ;;
14331
 
  freebsd3.[01]* | freebsdelf3.[01]*)
14332
 
    shlibpath_overrides_runpath=yes
14333
 
    hardcode_into_libs=yes
14334
 
    ;;
14335
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14336
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14337
 
    shlibpath_overrides_runpath=no
14338
 
    hardcode_into_libs=yes
14339
 
    ;;
14340
 
  *) # from 4.6 on, and DragonFly
14341
 
    shlibpath_overrides_runpath=yes
14342
 
    hardcode_into_libs=yes
14343
 
    ;;
14344
 
  esac
14345
 
  ;;
14346
 
 
14347
 
gnu*)
14348
 
  version_type=linux
14349
 
  need_lib_prefix=no
14350
 
  need_version=no
14351
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14352
 
  soname_spec='${libname}${release}${shared_ext}$major'
14353
 
  shlibpath_var=LD_LIBRARY_PATH
14354
 
  hardcode_into_libs=yes
14355
 
  ;;
14356
 
 
14357
 
hpux9* | hpux10* | hpux11*)
14358
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14359
 
  # link against other versions.
14360
 
  version_type=sunos
14361
 
  need_lib_prefix=no
14362
 
  need_version=no
14363
 
  case $host_cpu in
14364
 
  ia64*)
14365
 
    shrext_cmds='.so'
14366
 
    hardcode_into_libs=yes
14367
 
    dynamic_linker="$host_os dld.so"
14368
 
    shlibpath_var=LD_LIBRARY_PATH
14369
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14370
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371
 
    soname_spec='${libname}${release}${shared_ext}$major'
14372
 
    if test "X$HPUX_IA64_MODE" = X32; then
14373
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14374
 
    else
14375
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14376
 
    fi
14377
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14378
 
    ;;
14379
 
  hppa*64*)
14380
 
    shrext_cmds='.sl'
14381
 
    hardcode_into_libs=yes
14382
 
    dynamic_linker="$host_os dld.sl"
14383
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14384
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14385
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14386
 
    soname_spec='${libname}${release}${shared_ext}$major'
14387
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14388
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14389
 
    ;;
14390
 
  *)
14391
 
    shrext_cmds='.sl'
14392
 
    dynamic_linker="$host_os dld.sl"
14393
 
    shlibpath_var=SHLIB_PATH
14394
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14395
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396
 
    soname_spec='${libname}${release}${shared_ext}$major'
14397
 
    ;;
14398
 
  esac
14399
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14400
 
  postinstall_cmds='chmod 555 $lib'
14401
 
  ;;
14402
 
 
14403
 
interix[3-9]*)
14404
 
  version_type=linux
14405
 
  need_lib_prefix=no
14406
 
  need_version=no
14407
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14408
 
  soname_spec='${libname}${release}${shared_ext}$major'
14409
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14410
 
  shlibpath_var=LD_LIBRARY_PATH
14411
 
  shlibpath_overrides_runpath=no
14412
 
  hardcode_into_libs=yes
14413
 
  ;;
14414
 
 
14415
 
irix5* | irix6* | nonstopux*)
14416
 
  case $host_os in
14417
 
    nonstopux*) version_type=nonstopux ;;
14418
 
    *)
14419
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14420
 
                version_type=linux
14421
 
        else
14422
 
                version_type=irix
14423
 
        fi ;;
14424
 
  esac
14425
 
  need_lib_prefix=no
14426
 
  need_version=no
14427
 
  soname_spec='${libname}${release}${shared_ext}$major'
14428
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14429
 
  case $host_os in
14430
 
  irix5* | nonstopux*)
14431
 
    libsuff= shlibsuff=
14432
 
    ;;
14433
 
  *)
14434
 
    case $LD in # libtool.m4 will add one of these switches to LD
14435
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14436
 
      libsuff= shlibsuff= libmagic=32-bit;;
14437
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14438
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14439
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14440
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14441
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14442
 
    esac
14443
 
    ;;
14444
 
  esac
14445
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14446
 
  shlibpath_overrides_runpath=no
14447
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14448
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14449
 
  hardcode_into_libs=yes
14450
 
  ;;
14451
 
 
14452
 
# No shared lib support for Linux oldld, aout, or coff.
14453
 
linux*oldld* | linux*aout* | linux*coff*)
14454
 
  dynamic_linker=no
14455
 
  ;;
14456
 
 
14457
 
# This must be Linux ELF.
14458
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14459
 
  version_type=linux
14460
 
  need_lib_prefix=no
14461
 
  need_version=no
14462
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463
 
  soname_spec='${libname}${release}${shared_ext}$major'
14464
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14465
 
  shlibpath_var=LD_LIBRARY_PATH
14466
 
  shlibpath_overrides_runpath=no
14467
 
  # Some binutils ld are patched to set DT_RUNPATH
14468
 
  save_LDFLAGS=$LDFLAGS
14469
 
  save_libdir=$libdir
14470
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14471
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14472
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473
 
/* end confdefs.h.  */
14474
 
 
14475
 
int
14476
 
main ()
14477
 
{
14478
 
 
14479
 
  ;
14480
 
  return 0;
14481
 
}
14482
 
_ACEOF
14483
 
if ac_fn_cxx_try_link "$LINENO"; then :
14484
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14485
 
  shlibpath_overrides_runpath=yes
14486
 
fi
14487
 
fi
14488
 
rm -f core conftest.err conftest.$ac_objext \
14489
 
    conftest$ac_exeext conftest.$ac_ext
14490
 
  LDFLAGS=$save_LDFLAGS
14491
 
  libdir=$save_libdir
14492
 
 
14493
 
  # This implies no fast_install, which is unacceptable.
14494
 
  # Some rework will be needed to allow for fast_install
14495
 
  # before this can be enabled.
14496
 
  hardcode_into_libs=yes
14497
 
 
14498
 
  # Append ld.so.conf contents to the search path
14499
 
  if test -f /etc/ld.so.conf; then
14500
 
    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' ' '`
14501
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14502
 
  fi
14503
 
 
14504
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14505
 
  # powerpc, because MkLinux only supported shared libraries with the
14506
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14507
 
  # most powerpc-linux boxes support dynamic linking these days and
14508
 
  # people can always --disable-shared, the test was removed, and we
14509
 
  # assume the GNU/Linux dynamic linker is in use.
14510
 
  dynamic_linker='GNU/Linux ld.so'
14511
 
  ;;
14512
 
 
14513
 
netbsdelf*-gnu)
14514
 
  version_type=linux
14515
 
  need_lib_prefix=no
14516
 
  need_version=no
14517
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14518
 
  soname_spec='${libname}${release}${shared_ext}$major'
14519
 
  shlibpath_var=LD_LIBRARY_PATH
14520
 
  shlibpath_overrides_runpath=no
14521
 
  hardcode_into_libs=yes
14522
 
  dynamic_linker='NetBSD ld.elf_so'
14523
 
  ;;
14524
 
 
14525
 
netbsd*)
14526
 
  version_type=sunos
14527
 
  need_lib_prefix=no
14528
 
  need_version=no
14529
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14530
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14531
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14532
 
    dynamic_linker='NetBSD (a.out) ld.so'
14533
 
  else
14534
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14535
 
    soname_spec='${libname}${release}${shared_ext}$major'
14536
 
    dynamic_linker='NetBSD ld.elf_so'
14537
 
  fi
14538
 
  shlibpath_var=LD_LIBRARY_PATH
14539
 
  shlibpath_overrides_runpath=yes
14540
 
  hardcode_into_libs=yes
14541
 
  ;;
14542
 
 
14543
 
newsos6)
14544
 
  version_type=linux
14545
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546
 
  shlibpath_var=LD_LIBRARY_PATH
14547
 
  shlibpath_overrides_runpath=yes
14548
 
  ;;
14549
 
 
14550
 
*nto* | *qnx*)
14551
 
  version_type=qnx
14552
 
  need_lib_prefix=no
14553
 
  need_version=no
14554
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555
 
  soname_spec='${libname}${release}${shared_ext}$major'
14556
 
  shlibpath_var=LD_LIBRARY_PATH
14557
 
  shlibpath_overrides_runpath=no
14558
 
  hardcode_into_libs=yes
14559
 
  dynamic_linker='ldqnx.so'
14560
 
  ;;
14561
 
 
14562
 
openbsd*)
14563
 
  version_type=sunos
14564
 
  sys_lib_dlsearch_path_spec="/usr/lib"
14565
 
  need_lib_prefix=no
14566
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14567
 
  case $host_os in
14568
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14569
 
    *)                          need_version=no  ;;
14570
 
  esac
14571
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14572
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14573
 
  shlibpath_var=LD_LIBRARY_PATH
14574
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14575
 
    case $host_os in
14576
 
      openbsd2.[89] | openbsd2.[89].*)
14577
 
        shlibpath_overrides_runpath=no
14578
 
        ;;
14579
 
      *)
14580
 
        shlibpath_overrides_runpath=yes
14581
 
        ;;
14582
 
      esac
14583
 
  else
14584
 
    shlibpath_overrides_runpath=yes
14585
 
  fi
14586
 
  ;;
14587
 
 
14588
 
os2*)
14589
 
  libname_spec='$name'
14590
 
  shrext_cmds=".dll"
14591
 
  need_lib_prefix=no
14592
 
  library_names_spec='$libname${shared_ext} $libname.a'
14593
 
  dynamic_linker='OS/2 ld.exe'
14594
 
  shlibpath_var=LIBPATH
14595
 
  ;;
14596
 
 
14597
 
osf3* | osf4* | osf5*)
14598
 
  version_type=osf
14599
 
  need_lib_prefix=no
14600
 
  need_version=no
14601
 
  soname_spec='${libname}${release}${shared_ext}$major'
14602
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603
 
  shlibpath_var=LD_LIBRARY_PATH
14604
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14605
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14606
 
  ;;
14607
 
 
14608
 
rdos*)
14609
 
  dynamic_linker=no
14610
 
  ;;
14611
 
 
14612
 
solaris*)
14613
 
  version_type=linux
14614
 
  need_lib_prefix=no
14615
 
  need_version=no
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
 
  shlibpath_overrides_runpath=yes
14620
 
  hardcode_into_libs=yes
14621
 
  # ldd complains unless libraries are executable
14622
 
  postinstall_cmds='chmod +x $lib'
14623
 
  ;;
14624
 
 
14625
 
sunos4*)
14626
 
  version_type=sunos
14627
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14628
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14629
 
  shlibpath_var=LD_LIBRARY_PATH
14630
 
  shlibpath_overrides_runpath=yes
14631
 
  if test "$with_gnu_ld" = yes; then
14632
 
    need_lib_prefix=no
14633
 
  fi
14634
 
  need_version=yes
14635
 
  ;;
14636
 
 
14637
 
sysv4 | sysv4.3*)
14638
 
  version_type=linux
14639
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640
 
  soname_spec='${libname}${release}${shared_ext}$major'
14641
 
  shlibpath_var=LD_LIBRARY_PATH
14642
 
  case $host_vendor in
14643
 
    sni)
14644
 
      shlibpath_overrides_runpath=no
14645
 
      need_lib_prefix=no
14646
 
      runpath_var=LD_RUN_PATH
14647
 
      ;;
14648
 
    siemens)
14649
 
      need_lib_prefix=no
14650
 
      ;;
14651
 
    motorola)
14652
 
      need_lib_prefix=no
14653
 
      need_version=no
14654
 
      shlibpath_overrides_runpath=no
14655
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14656
 
      ;;
14657
 
  esac
14658
 
  ;;
14659
 
 
14660
 
sysv4*MP*)
14661
 
  if test -d /usr/nec ;then
14662
 
    version_type=linux
14663
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14664
 
    soname_spec='$libname${shared_ext}.$major'
14665
 
    shlibpath_var=LD_LIBRARY_PATH
14666
 
  fi
14667
 
  ;;
14668
 
 
14669
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14670
 
  version_type=freebsd-elf
14671
 
  need_lib_prefix=no
14672
 
  need_version=no
14673
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14674
 
  soname_spec='${libname}${release}${shared_ext}$major'
14675
 
  shlibpath_var=LD_LIBRARY_PATH
14676
 
  shlibpath_overrides_runpath=yes
14677
 
  hardcode_into_libs=yes
14678
 
  if test "$with_gnu_ld" = yes; then
14679
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14680
 
  else
14681
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14682
 
    case $host_os in
14683
 
      sco3.2v5*)
14684
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14685
 
        ;;
14686
 
    esac
14687
 
  fi
14688
 
  sys_lib_dlsearch_path_spec='/usr/lib'
14689
 
  ;;
14690
 
 
14691
 
tpf*)
14692
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14693
 
  version_type=linux
14694
 
  need_lib_prefix=no
14695
 
  need_version=no
14696
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697
 
  shlibpath_var=LD_LIBRARY_PATH
14698
 
  shlibpath_overrides_runpath=no
14699
 
  hardcode_into_libs=yes
14700
 
  ;;
14701
 
 
14702
 
uts4*)
14703
 
  version_type=linux
14704
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705
 
  soname_spec='${libname}${release}${shared_ext}$major'
14706
 
  shlibpath_var=LD_LIBRARY_PATH
14707
 
  ;;
14708
 
 
14709
 
*)
14710
 
  dynamic_linker=no
14711
 
  ;;
14712
 
esac
14713
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14714
 
$as_echo "$dynamic_linker" >&6; }
14715
 
test "$dynamic_linker" = no && can_build_shared=no
14716
 
 
14717
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14718
 
if test "$GCC" = yes; then
14719
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14720
 
fi
14721
 
 
14722
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14723
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14724
 
fi
14725
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14726
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14727
 
fi
14728
 
 
14729
 
 
14730
 
 
14731
 
 
14732
 
 
14733
 
 
14734
 
 
14735
 
 
14736
 
 
14737
 
 
14738
 
 
14739
 
 
14740
 
 
14741
 
 
14742
 
 
14743
 
 
14744
 
 
14745
 
 
14746
 
 
14747
 
 
14748
 
 
14749
 
 
14750
 
 
14751
 
 
14752
 
 
14753
 
 
14754
 
 
14755
 
 
14756
 
 
14757
 
 
14758
 
 
14759
 
 
14760
 
 
14761
 
 
14762
 
 
14763
 
 
14764
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14765
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14766
 
hardcode_action_CXX=
14767
 
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14768
 
   test -n "$runpath_var_CXX" ||
14769
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14770
 
 
14771
 
  # We can hardcode non-existent directories.
14772
 
  if test "$hardcode_direct_CXX" != no &&
14773
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14774
 
     # have to relink, otherwise we might link with an installed library
14775
 
     # when we should be linking with a yet-to-be-installed one
14776
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14777
 
     test "$hardcode_minus_L_CXX" != no; then
14778
 
    # Linking always hardcodes the temporary library directory.
14779
 
    hardcode_action_CXX=relink
14780
 
  else
14781
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14782
 
    hardcode_action_CXX=immediate
14783
 
  fi
14784
 
else
14785
 
  # We cannot hardcode anything, or else we can only hardcode existing
14786
 
  # directories.
14787
 
  hardcode_action_CXX=unsupported
14788
 
fi
14789
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14790
 
$as_echo "$hardcode_action_CXX" >&6; }
14791
 
 
14792
 
if test "$hardcode_action_CXX" = relink ||
14793
 
   test "$inherit_rpath_CXX" = yes; then
14794
 
  # Fast installation is not supported
14795
 
  enable_fast_install=no
14796
 
elif test "$shlibpath_overrides_runpath" = yes ||
14797
 
     test "$enable_shared" = no; then
14798
 
  # Fast installation is not necessary
14799
 
  enable_fast_install=needless
14800
 
fi
14801
 
 
14802
 
 
14803
 
 
14804
 
 
14805
 
 
14806
 
 
14807
 
 
14808
 
  fi # test -n "$compiler"
14809
 
 
14810
 
  CC=$lt_save_CC
14811
 
  LDCXX=$LD
14812
 
  LD=$lt_save_LD
14813
 
  GCC=$lt_save_GCC
14814
 
  with_gnu_ld=$lt_save_with_gnu_ld
14815
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
14816
 
  lt_cv_path_LD=$lt_save_path_LD
14817
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14818
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14819
 
fi # test "$_lt_caught_CXX_error" != yes
14820
 
 
14821
 
ac_ext=c
14822
 
ac_cpp='$CPP $CPPFLAGS'
14823
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14826
 
 
14827
 
 
14828
 
 
14829
 
 
14830
 
 
14831
 
 
14832
 
 
14833
 
 
14834
 
 
14835
 
 
14836
 
 
14837
 
 
14838
 
 
14839
 
        ac_config_commands="$ac_config_commands libtool"
14840
 
 
14841
 
 
14842
 
 
14843
 
 
14844
 
# Only expand once:
14845
 
 
14846
 
 
14847
 
 
14848
 
        ac_ext=cpp
14849
 
ac_cpp='$CXXCPP $CPPFLAGS'
14850
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14851
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14852
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14853
 
 
14854
 
 
14855
 
                CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -g -Wno-return-type"
14856
 
 
14857
 
 
14858
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14859
 
# for constant arguments.  Useless!
14860
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14861
 
$as_echo_n "checking for working alloca.h... " >&6; }
14862
 
if test "${ac_cv_working_alloca_h+set}" = set; then :
14863
 
  $as_echo_n "(cached) " >&6
14864
 
else
14865
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866
 
/* end confdefs.h.  */
14867
 
#include <alloca.h>
14868
 
int
14869
 
main ()
14870
 
{
14871
 
char *p = (char *) alloca (2 * sizeof (int));
14872
 
                          if (p) return 0;
14873
 
  ;
14874
 
  return 0;
14875
 
}
14876
 
_ACEOF
14877
 
if ac_fn_cxx_try_link "$LINENO"; then :
14878
 
  ac_cv_working_alloca_h=yes
14879
 
else
14880
 
  ac_cv_working_alloca_h=no
14881
 
fi
14882
 
rm -f core conftest.err conftest.$ac_objext \
14883
 
    conftest$ac_exeext conftest.$ac_ext
14884
 
fi
14885
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14886
 
$as_echo "$ac_cv_working_alloca_h" >&6; }
14887
 
if test $ac_cv_working_alloca_h = yes; then
14888
 
 
14889
 
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14890
 
 
14891
 
fi
14892
 
 
14893
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14894
 
$as_echo_n "checking for alloca... " >&6; }
14895
 
if test "${ac_cv_func_alloca_works+set}" = set; then :
14896
 
  $as_echo_n "(cached) " >&6
14897
 
else
14898
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899
 
/* end confdefs.h.  */
14900
 
#ifdef __GNUC__
14901
 
# define alloca __builtin_alloca
14902
 
#else
14903
 
# ifdef _MSC_VER
14904
 
#  include <malloc.h>
14905
 
#  define alloca _alloca
14906
 
# else
14907
 
#  ifdef HAVE_ALLOCA_H
14908
 
#   include <alloca.h>
14909
 
#  else
14910
 
#   ifdef _AIX
14911
 
 #pragma alloca
14912
 
#   else
14913
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
14914
 
char *alloca ();
14915
 
#    endif
14916
 
#   endif
14917
 
#  endif
14918
 
# endif
14919
 
#endif
14920
 
 
14921
 
int
14922
 
main ()
14923
 
{
14924
 
char *p = (char *) alloca (1);
14925
 
                                    if (p) return 0;
14926
 
  ;
14927
 
  return 0;
14928
 
}
14929
 
_ACEOF
14930
 
if ac_fn_cxx_try_link "$LINENO"; then :
14931
 
  ac_cv_func_alloca_works=yes
14932
 
else
14933
 
  ac_cv_func_alloca_works=no
14934
 
fi
14935
 
rm -f core conftest.err conftest.$ac_objext \
14936
 
    conftest$ac_exeext conftest.$ac_ext
14937
 
fi
14938
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14939
 
$as_echo "$ac_cv_func_alloca_works" >&6; }
14940
 
 
14941
 
if test $ac_cv_func_alloca_works = yes; then
14942
 
 
14943
 
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14944
 
 
14945
 
else
14946
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14947
 
# that cause trouble.  Some versions do not even contain alloca or
14948
 
# contain a buggy version.  If you still want to use their alloca,
14949
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
14950
 
 
14951
 
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14952
 
 
14953
 
$as_echo "#define C_ALLOCA 1" >>confdefs.h
14954
 
 
14955
 
 
14956
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14957
 
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14958
 
if test "${ac_cv_os_cray+set}" = set; then :
14959
 
  $as_echo_n "(cached) " >&6
14960
 
else
14961
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962
 
/* end confdefs.h.  */
14963
 
#if defined CRAY && ! defined CRAY2
14964
 
webecray
14965
 
#else
14966
 
wenotbecray
14967
 
#endif
14968
 
 
14969
 
_ACEOF
14970
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14971
 
  $EGREP "webecray" >/dev/null 2>&1; then :
14972
 
  ac_cv_os_cray=yes
14973
 
else
14974
 
  ac_cv_os_cray=no
14975
 
fi
14976
 
rm -f conftest*
14977
 
 
14978
 
fi
14979
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14980
 
$as_echo "$ac_cv_os_cray" >&6; }
14981
 
if test $ac_cv_os_cray = yes; then
14982
 
  for ac_func in _getb67 GETB67 getb67; do
14983
 
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14984
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
14985
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14986
 
 
14987
 
cat >>confdefs.h <<_ACEOF
14988
 
#define CRAY_STACKSEG_END $ac_func
14989
 
_ACEOF
14990
 
 
14991
 
    break
14992
 
fi
14993
 
 
14994
 
  done
14995
 
fi
14996
 
 
14997
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14998
 
$as_echo_n "checking stack direction for C alloca... " >&6; }
14999
 
if test "${ac_cv_c_stack_direction+set}" = set; then :
15000
 
  $as_echo_n "(cached) " >&6
15001
 
else
15002
 
  if test "$cross_compiling" = yes; then :
15003
 
  ac_cv_c_stack_direction=0
15004
 
else
15005
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006
 
/* end confdefs.h.  */
15007
 
$ac_includes_default
15008
 
int
15009
 
find_stack_direction ()
15010
 
{
15011
 
  static char *addr = 0;
15012
 
  auto char dummy;
15013
 
  if (addr == 0)
15014
 
    {
15015
 
      addr = &dummy;
15016
 
      return find_stack_direction ();
15017
 
    }
15018
 
  else
15019
 
    return (&dummy > addr) ? 1 : -1;
15020
 
}
15021
 
 
15022
 
int
15023
 
main ()
15024
 
{
15025
 
  return find_stack_direction () < 0;
15026
 
}
15027
 
_ACEOF
15028
 
if ac_fn_cxx_try_run "$LINENO"; then :
15029
 
  ac_cv_c_stack_direction=1
15030
 
else
15031
 
  ac_cv_c_stack_direction=-1
15032
 
fi
15033
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15034
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15035
 
fi
15036
 
 
15037
 
fi
15038
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15039
 
$as_echo "$ac_cv_c_stack_direction" >&6; }
15040
 
cat >>confdefs.h <<_ACEOF
15041
 
#define STACK_DIRECTION $ac_cv_c_stack_direction
15042
 
_ACEOF
15043
 
 
15044
 
 
15045
 
fi
15046
 
 
15047
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15048
 
$as_echo_n "checking for ANSI C header files... " >&6; }
15049
 
if test "${ac_cv_header_stdc+set}" = set; then :
15050
 
  $as_echo_n "(cached) " >&6
15051
 
else
15052
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053
 
/* end confdefs.h.  */
15054
 
#include <stdlib.h>
15055
 
#include <stdarg.h>
15056
 
#include <string.h>
15057
 
#include <float.h>
15058
 
 
15059
 
int
15060
 
main ()
15061
 
{
15062
 
 
15063
 
  ;
15064
 
  return 0;
15065
 
}
15066
 
_ACEOF
15067
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15068
 
  ac_cv_header_stdc=yes
15069
 
else
15070
 
  ac_cv_header_stdc=no
15071
 
fi
15072
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073
 
 
15074
 
if test $ac_cv_header_stdc = yes; then
15075
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15076
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077
 
/* end confdefs.h.  */
15078
 
#include <string.h>
15079
 
 
15080
 
_ACEOF
15081
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15082
 
  $EGREP "memchr" >/dev/null 2>&1; then :
15083
 
 
15084
 
else
15085
 
  ac_cv_header_stdc=no
15086
 
fi
15087
 
rm -f conftest*
15088
 
 
15089
 
fi
15090
 
 
15091
 
if test $ac_cv_header_stdc = yes; then
15092
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15093
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094
 
/* end confdefs.h.  */
15095
 
#include <stdlib.h>
15096
 
 
15097
 
_ACEOF
15098
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15099
 
  $EGREP "free" >/dev/null 2>&1; then :
15100
 
 
15101
 
else
15102
 
  ac_cv_header_stdc=no
15103
 
fi
15104
 
rm -f conftest*
15105
 
 
15106
 
fi
15107
 
 
15108
 
if test $ac_cv_header_stdc = yes; then
15109
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15110
 
  if test "$cross_compiling" = yes; then :
15111
 
  :
15112
 
else
15113
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114
 
/* end confdefs.h.  */
15115
 
#include <ctype.h>
15116
 
#include <stdlib.h>
15117
 
#if ((' ' & 0x0FF) == 0x020)
15118
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15119
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15120
 
#else
15121
 
# define ISLOWER(c) \
15122
 
                   (('a' <= (c) && (c) <= 'i') \
15123
 
                     || ('j' <= (c) && (c) <= 'r') \
15124
 
                     || ('s' <= (c) && (c) <= 'z'))
15125
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15126
 
#endif
15127
 
 
15128
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15129
 
int
15130
 
main ()
15131
 
{
15132
 
  int i;
15133
 
  for (i = 0; i < 256; i++)
15134
 
    if (XOR (islower (i), ISLOWER (i))
15135
 
        || toupper (i) != TOUPPER (i))
15136
 
      return 2;
15137
 
  return 0;
15138
 
}
15139
 
_ACEOF
15140
 
if ac_fn_cxx_try_run "$LINENO"; then :
15141
 
 
15142
 
else
15143
 
  ac_cv_header_stdc=no
15144
 
fi
15145
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15146
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15147
 
fi
15148
 
 
15149
 
fi
15150
 
fi
15151
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15152
 
$as_echo "$ac_cv_header_stdc" >&6; }
15153
 
if test $ac_cv_header_stdc = yes; then
15154
 
 
15155
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15156
 
 
15157
 
fi
15158
 
 
15159
 
        for ac_header in arpa/inet.h fcntl.h libintl.h limits.h malloc.h \
15160
 
                        memory.h netdb.h netinet/in.h stdlib.h string.h strings.h \
15161
 
                        sys/ioctl.h sys/socket.h sys/time.h unistd.h utime.h ostream
15162
 
do :
15163
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164
 
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15165
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15166
 
  cat >>confdefs.h <<_ACEOF
15167
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15168
 
_ACEOF
15169
 
 
15170
 
fi
15171
 
 
15172
 
done
15173
 
 
15174
 
 
15175
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15176
 
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15177
 
if test "${ac_cv_header_stat_broken+set}" = set; then :
15178
 
  $as_echo_n "(cached) " >&6
15179
 
else
15180
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181
 
/* end confdefs.h.  */
15182
 
#include <sys/types.h>
15183
 
#include <sys/stat.h>
15184
 
 
15185
 
#if defined S_ISBLK && defined S_IFDIR
15186
 
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15187
 
#endif
15188
 
 
15189
 
#if defined S_ISBLK && defined S_IFCHR
15190
 
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15191
 
#endif
15192
 
 
15193
 
#if defined S_ISLNK && defined S_IFREG
15194
 
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15195
 
#endif
15196
 
 
15197
 
#if defined S_ISSOCK && defined S_IFREG
15198
 
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15199
 
#endif
15200
 
 
15201
 
_ACEOF
15202
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15203
 
  ac_cv_header_stat_broken=no
15204
 
else
15205
 
  ac_cv_header_stat_broken=yes
15206
 
fi
15207
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208
 
fi
15209
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15210
 
$as_echo "$ac_cv_header_stat_broken" >&6; }
15211
 
if test $ac_cv_header_stat_broken = yes; then
15212
 
 
15213
 
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15214
 
 
15215
 
fi
15216
 
 
15217
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15218
 
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15219
 
if test "${ac_cv_header_stdbool_h+set}" = set; then :
15220
 
  $as_echo_n "(cached) " >&6
15221
 
else
15222
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223
 
/* end confdefs.h.  */
15224
 
 
15225
 
#include <stdbool.h>
15226
 
#ifndef bool
15227
 
 "error: bool is not defined"
15228
 
#endif
15229
 
#ifndef false
15230
 
 "error: false is not defined"
15231
 
#endif
15232
 
#if false
15233
 
 "error: false is not 0"
15234
 
#endif
15235
 
#ifndef true
15236
 
 "error: true is not defined"
15237
 
#endif
15238
 
#if true != 1
15239
 
 "error: true is not 1"
15240
 
#endif
15241
 
#ifndef __bool_true_false_are_defined
15242
 
 "error: __bool_true_false_are_defined is not defined"
15243
 
#endif
15244
 
 
15245
 
        struct s { _Bool s: 1; _Bool t; } s;
15246
 
 
15247
 
        char a[true == 1 ? 1 : -1];
15248
 
        char b[false == 0 ? 1 : -1];
15249
 
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15250
 
        char d[(bool) 0.5 == true ? 1 : -1];
15251
 
        bool e = &s;
15252
 
        char f[(_Bool) 0.0 == false ? 1 : -1];
15253
 
        char g[true];
15254
 
        char h[sizeof (_Bool)];
15255
 
        char i[sizeof s.t];
15256
 
        enum { j = false, k = true, l = false * true, m = true * 256 };
15257
 
        /* The following fails for
15258
 
           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15259
 
        _Bool n[m];
15260
 
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15261
 
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15262
 
#       if defined __xlc__ || defined __GNUC__
15263
 
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15264
 
            reported by James Lemley on 2005-10-05; see
15265
 
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15266
 
            This test is not quite right, since xlc is allowed to
15267
 
            reject this program, as the initializer for xlcbug is
15268
 
            not one of the forms that C requires support for.
15269
 
            However, doing the test right would require a runtime
15270
 
            test, and that would make cross-compilation harder.
15271
 
            Let us hope that IBM fixes the xlc bug, and also adds
15272
 
            support for this kind of constant expression.  In the
15273
 
            meantime, this test will reject xlc, which is OK, since
15274
 
            our stdbool.h substitute should suffice.  We also test
15275
 
            this with GCC, where it should work, to detect more
15276
 
            quickly whether someone messes up the test in the
15277
 
            future.  */
15278
 
         char digs[] = "0123456789";
15279
 
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
15280
 
#       endif
15281
 
        /* Catch a bug in an HP-UX C compiler.  See
15282
 
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15283
 
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15284
 
         */
15285
 
        _Bool q = true;
15286
 
        _Bool *pq = &q;
15287
 
 
15288
 
int
15289
 
main ()
15290
 
{
15291
 
 
15292
 
        *pq |= q;
15293
 
        *pq |= ! q;
15294
 
        /* Refer to every declared value, to avoid compiler optimizations.  */
15295
 
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15296
 
                + !m + !n + !o + !p + !q + !pq);
15297
 
 
15298
 
  ;
15299
 
  return 0;
15300
 
}
15301
 
_ACEOF
15302
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15303
 
  ac_cv_header_stdbool_h=yes
15304
 
else
15305
 
  ac_cv_header_stdbool_h=no
15306
 
fi
15307
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308
 
fi
15309
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15310
 
$as_echo "$ac_cv_header_stdbool_h" >&6; }
15311
 
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15312
 
if test "x$ac_cv_type__Bool" = x""yes; then :
15313
 
 
15314
 
cat >>confdefs.h <<_ACEOF
15315
 
#define HAVE__BOOL 1
15316
 
_ACEOF
15317
 
 
15318
 
 
15319
 
fi
15320
 
 
15321
 
if test $ac_cv_header_stdbool_h = yes; then
15322
 
 
15323
 
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15324
 
 
15325
 
fi
15326
 
 
15327
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15328
 
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15329
 
if test "${ac_cv_c_const+set}" = set; then :
15330
 
  $as_echo_n "(cached) " >&6
15331
 
else
15332
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333
 
/* end confdefs.h.  */
15334
 
 
15335
 
int
15336
 
main ()
15337
 
{
15338
 
/* FIXME: Include the comments suggested by Paul. */
15339
 
#ifndef __cplusplus
15340
 
  /* Ultrix mips cc rejects this.  */
15341
 
  typedef int charset[2];
15342
 
  const charset cs;
15343
 
  /* SunOS 4.1.1 cc rejects this.  */
15344
 
  char const *const *pcpcc;
15345
 
  char **ppc;
15346
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
15347
 
  struct point {int x, y;};
15348
 
  static struct point const zero = {0,0};
15349
 
  /* AIX XL C 1.02.0.0 rejects this.
15350
 
     It does not let you subtract one const X* pointer from another in
15351
 
     an arm of an if-expression whose if-part is not a constant
15352
 
     expression */
15353
 
  const char *g = "string";
15354
 
  pcpcc = &g + (g ? g-g : 0);
15355
 
  /* HPUX 7.0 cc rejects these. */
15356
 
  ++pcpcc;
15357
 
  ppc = (char**) pcpcc;
15358
 
  pcpcc = (char const *const *) ppc;
15359
 
  { /* SCO 3.2v4 cc rejects this.  */
15360
 
    char *t;
15361
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
15362
 
 
15363
 
    *t++ = 0;
15364
 
    if (s) return 0;
15365
 
  }
15366
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15367
 
    int x[] = {25, 17};
15368
 
    const int *foo = &x[0];
15369
 
    ++foo;
15370
 
  }
15371
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15372
 
    typedef const int *iptr;
15373
 
    iptr p = 0;
15374
 
    ++p;
15375
 
  }
15376
 
  { /* AIX XL C 1.02.0.0 rejects this saying
15377
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15378
 
    struct s { int j; const int *ap[3]; };
15379
 
    struct s *b; b->j = 5;
15380
 
  }
15381
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15382
 
    const int foo = 10;
15383
 
    if (!foo) return 0;
15384
 
  }
15385
 
  return !cs[0] && !zero.x;
15386
 
#endif
15387
 
 
15388
 
  ;
15389
 
  return 0;
15390
 
}
15391
 
_ACEOF
15392
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15393
 
  ac_cv_c_const=yes
15394
 
else
15395
 
  ac_cv_c_const=no
15396
 
fi
15397
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398
 
fi
15399
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15400
 
$as_echo "$ac_cv_c_const" >&6; }
15401
 
if test $ac_cv_c_const = no; then
15402
 
 
15403
 
$as_echo "#define const /**/" >>confdefs.h
15404
 
 
15405
 
fi
15406
 
 
15407
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15408
 
$as_echo_n "checking for inline... " >&6; }
15409
 
if test "${ac_cv_c_inline+set}" = set; then :
15410
 
  $as_echo_n "(cached) " >&6
15411
 
else
15412
 
  ac_cv_c_inline=no
15413
 
for ac_kw in inline __inline__ __inline; do
15414
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415
 
/* end confdefs.h.  */
15416
 
#ifndef __cplusplus
15417
 
typedef int foo_t;
15418
 
static $ac_kw foo_t static_foo () {return 0; }
15419
 
$ac_kw foo_t foo () {return 0; }
15420
 
#endif
15421
 
 
15422
 
_ACEOF
15423
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15424
 
  ac_cv_c_inline=$ac_kw
15425
 
fi
15426
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427
 
  test "$ac_cv_c_inline" != no && break
15428
 
done
15429
 
 
15430
 
fi
15431
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15432
 
$as_echo "$ac_cv_c_inline" >&6; }
15433
 
 
15434
 
case $ac_cv_c_inline in
15435
 
  inline | yes) ;;
15436
 
  *)
15437
 
    case $ac_cv_c_inline in
15438
 
      no) ac_val=;;
15439
 
      *) ac_val=$ac_cv_c_inline;;
15440
 
    esac
15441
 
    cat >>confdefs.h <<_ACEOF
15442
 
#ifndef __cplusplus
15443
 
#define inline $ac_val
15444
 
#endif
15445
 
_ACEOF
15446
 
    ;;
15447
 
esac
15448
 
 
15449
 
        ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15450
 
if test "x$ac_cv_type_pid_t" = x""yes; then :
15451
 
 
15452
 
else
15453
 
 
15454
 
cat >>confdefs.h <<_ACEOF
15455
 
#define pid_t int
15456
 
_ACEOF
15457
 
 
15458
 
fi
15459
 
 
15460
 
        ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15461
 
if test "x$ac_cv_type_size_t" = x""yes; then :
15462
 
 
15463
 
else
15464
 
 
15465
 
cat >>confdefs.h <<_ACEOF
15466
 
#define size_t unsigned int
15467
 
_ACEOF
15468
 
 
15469
 
fi
15470
 
 
15471
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15472
 
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15473
 
if test "${ac_cv_header_time+set}" = set; then :
15474
 
  $as_echo_n "(cached) " >&6
15475
 
else
15476
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477
 
/* end confdefs.h.  */
15478
 
#include <sys/types.h>
15479
 
#include <sys/time.h>
15480
 
#include <time.h>
15481
 
 
15482
 
int
15483
 
main ()
15484
 
{
15485
 
if ((struct tm *) 0)
15486
 
return 0;
15487
 
  ;
15488
 
  return 0;
15489
 
}
15490
 
_ACEOF
15491
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15492
 
  ac_cv_header_time=yes
15493
 
else
15494
 
  ac_cv_header_time=no
15495
 
fi
15496
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497
 
fi
15498
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15499
 
$as_echo "$ac_cv_header_time" >&6; }
15500
 
if test $ac_cv_header_time = yes; then
15501
 
 
15502
 
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15503
 
 
15504
 
fi
15505
 
 
15506
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15507
 
$as_echo_n "checking for working volatile... " >&6; }
15508
 
if test "${ac_cv_c_volatile+set}" = set; then :
15509
 
  $as_echo_n "(cached) " >&6
15510
 
else
15511
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512
 
/* end confdefs.h.  */
15513
 
 
15514
 
int
15515
 
main ()
15516
 
{
15517
 
 
15518
 
volatile int x;
15519
 
int * volatile y = (int *) 0;
15520
 
return !x && !y;
15521
 
  ;
15522
 
  return 0;
15523
 
}
15524
 
_ACEOF
15525
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15526
 
  ac_cv_c_volatile=yes
15527
 
else
15528
 
  ac_cv_c_volatile=no
15529
 
fi
15530
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531
 
fi
15532
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15533
 
$as_echo "$ac_cv_c_volatile" >&6; }
15534
 
if test $ac_cv_c_volatile = no; then
15535
 
 
15536
 
$as_echo "#define volatile /**/" >>confdefs.h
15537
 
 
15538
 
fi
15539
 
 
15540
 
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15541
 
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15542
 
 
15543
 
cat >>confdefs.h <<_ACEOF
15544
 
#define HAVE_PTRDIFF_T 1
15545
 
_ACEOF
15546
 
 
15547
 
 
15548
 
fi
15549
 
 
15550
 
 
15551
 
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15552
 
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15553
 
if test "${ac_cv_type_uid_t+set}" = set; then :
15554
 
  $as_echo_n "(cached) " >&6
15555
 
else
15556
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557
 
/* end confdefs.h.  */
15558
 
#include <sys/types.h>
15559
 
 
15560
 
_ACEOF
15561
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15562
 
  $EGREP "uid_t" >/dev/null 2>&1; then :
15563
 
  ac_cv_type_uid_t=yes
15564
 
else
15565
 
  ac_cv_type_uid_t=no
15566
 
fi
15567
 
rm -f conftest*
15568
 
 
15569
 
fi
15570
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15571
 
$as_echo "$ac_cv_type_uid_t" >&6; }
15572
 
if test $ac_cv_type_uid_t = no; then
15573
 
 
15574
 
$as_echo "#define uid_t int" >>confdefs.h
15575
 
 
15576
 
 
15577
 
$as_echo "#define gid_t int" >>confdefs.h
15578
 
 
15579
 
fi
15580
 
 
15581
 
for ac_header in unistd.h
15582
 
do :
15583
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15584
 
if test "x$ac_cv_header_unistd_h" = x""yes; then :
15585
 
  cat >>confdefs.h <<_ACEOF
15586
 
#define HAVE_UNISTD_H 1
15587
 
_ACEOF
15588
 
 
15589
 
fi
15590
 
 
15591
 
done
15592
 
 
15593
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15594
 
$as_echo_n "checking for working chown... " >&6; }
15595
 
if test "${ac_cv_func_chown_works+set}" = set; then :
15596
 
  $as_echo_n "(cached) " >&6
15597
 
else
15598
 
  if test "$cross_compiling" = yes; then :
15599
 
  ac_cv_func_chown_works=no
15600
 
else
15601
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602
 
/* end confdefs.h.  */
15603
 
$ac_includes_default
15604
 
#include <fcntl.h>
15605
 
 
15606
 
int
15607
 
main ()
15608
 
{
15609
 
  char *f = "conftest.chown";
15610
 
  struct stat before, after;
15611
 
 
15612
 
  if (creat (f, 0600) < 0)
15613
 
    return 1;
15614
 
  if (stat (f, &before) < 0)
15615
 
    return 1;
15616
 
  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15617
 
    return 1;
15618
 
  if (stat (f, &after) < 0)
15619
 
    return 1;
15620
 
  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15621
 
 
15622
 
  ;
15623
 
  return 0;
15624
 
}
15625
 
_ACEOF
15626
 
if ac_fn_cxx_try_run "$LINENO"; then :
15627
 
  ac_cv_func_chown_works=yes
15628
 
else
15629
 
  ac_cv_func_chown_works=no
15630
 
fi
15631
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15632
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15633
 
fi
15634
 
 
15635
 
rm -f conftest.chown
15636
 
 
15637
 
fi
15638
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15639
 
$as_echo "$ac_cv_func_chown_works" >&6; }
15640
 
if test $ac_cv_func_chown_works = yes; then
15641
 
 
15642
 
$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15643
 
 
15644
 
fi
15645
 
 
15646
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15647
 
$as_echo_n "checking for error_at_line... " >&6; }
15648
 
if test "${ac_cv_lib_error_at_line+set}" = set; then :
15649
 
  $as_echo_n "(cached) " >&6
15650
 
else
15651
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652
 
/* end confdefs.h.  */
15653
 
#include <error.h>
15654
 
int
15655
 
main ()
15656
 
{
15657
 
error_at_line (0, 0, "", 0, "an error occurred");
15658
 
  ;
15659
 
  return 0;
15660
 
}
15661
 
_ACEOF
15662
 
if ac_fn_cxx_try_link "$LINENO"; then :
15663
 
  ac_cv_lib_error_at_line=yes
15664
 
else
15665
 
  ac_cv_lib_error_at_line=no
15666
 
fi
15667
 
rm -f core conftest.err conftest.$ac_objext \
15668
 
    conftest$ac_exeext conftest.$ac_ext
15669
 
fi
15670
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15671
 
$as_echo "$ac_cv_lib_error_at_line" >&6; }
15672
 
if test $ac_cv_lib_error_at_line = no; then
15673
 
  case " $LIBOBJS " in
15674
 
  *" error.$ac_objext "* ) ;;
15675
 
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
15676
 
 ;;
15677
 
esac
15678
 
 
15679
 
fi
15680
 
 
15681
 
        for ac_header in vfork.h
15682
 
do :
15683
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15684
 
if test "x$ac_cv_header_vfork_h" = x""yes; then :
15685
 
  cat >>confdefs.h <<_ACEOF
15686
 
#define HAVE_VFORK_H 1
15687
 
_ACEOF
15688
 
 
15689
 
fi
15690
 
 
15691
 
done
15692
 
 
15693
 
for ac_func in fork vfork
15694
 
do :
15695
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15696
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15697
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15698
 
  cat >>confdefs.h <<_ACEOF
15699
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15700
 
_ACEOF
15701
 
 
15702
 
fi
15703
 
done
15704
 
 
15705
 
if test "x$ac_cv_func_fork" = xyes; then
15706
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15707
 
$as_echo_n "checking for working fork... " >&6; }
15708
 
if test "${ac_cv_func_fork_works+set}" = set; then :
15709
 
  $as_echo_n "(cached) " >&6
15710
 
else
15711
 
  if test "$cross_compiling" = yes; then :
15712
 
  ac_cv_func_fork_works=cross
15713
 
else
15714
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715
 
/* end confdefs.h.  */
15716
 
$ac_includes_default
15717
 
int
15718
 
main ()
15719
 
{
15720
 
 
15721
 
          /* By Ruediger Kuhlmann. */
15722
 
          return fork () < 0;
15723
 
 
15724
 
  ;
15725
 
  return 0;
15726
 
}
15727
 
_ACEOF
15728
 
if ac_fn_cxx_try_run "$LINENO"; then :
15729
 
  ac_cv_func_fork_works=yes
15730
 
else
15731
 
  ac_cv_func_fork_works=no
15732
 
fi
15733
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15734
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15735
 
fi
15736
 
 
15737
 
fi
15738
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15739
 
$as_echo "$ac_cv_func_fork_works" >&6; }
15740
 
 
15741
 
else
15742
 
  ac_cv_func_fork_works=$ac_cv_func_fork
15743
 
fi
15744
 
if test "x$ac_cv_func_fork_works" = xcross; then
15745
 
  case $host in
15746
 
    *-*-amigaos* | *-*-msdosdjgpp*)
15747
 
      # Override, as these systems have only a dummy fork() stub
15748
 
      ac_cv_func_fork_works=no
15749
 
      ;;
15750
 
    *)
15751
 
      ac_cv_func_fork_works=yes
15752
 
      ;;
15753
 
  esac
15754
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15755
 
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15756
 
fi
15757
 
ac_cv_func_vfork_works=$ac_cv_func_vfork
15758
 
if test "x$ac_cv_func_vfork" = xyes; then
15759
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15760
 
$as_echo_n "checking for working vfork... " >&6; }
15761
 
if test "${ac_cv_func_vfork_works+set}" = set; then :
15762
 
  $as_echo_n "(cached) " >&6
15763
 
else
15764
 
  if test "$cross_compiling" = yes; then :
15765
 
  ac_cv_func_vfork_works=cross
15766
 
else
15767
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768
 
/* end confdefs.h.  */
15769
 
/* Thanks to Paul Eggert for this test.  */
15770
 
$ac_includes_default
15771
 
#include <sys/wait.h>
15772
 
#ifdef HAVE_VFORK_H
15773
 
# include <vfork.h>
15774
 
#endif
15775
 
/* On some sparc systems, changes by the child to local and incoming
15776
 
   argument registers are propagated back to the parent.  The compiler
15777
 
   is told about this with #include <vfork.h>, but some compilers
15778
 
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15779
 
   static variable whose address is put into a register that is
15780
 
   clobbered by the vfork.  */
15781
 
static void
15782
 
#ifdef __cplusplus
15783
 
sparc_address_test (int arg)
15784
 
# else
15785
 
sparc_address_test (arg) int arg;
15786
 
#endif
15787
 
{
15788
 
  static pid_t child;
15789
 
  if (!child) {
15790
 
    child = vfork ();
15791
 
    if (child < 0) {
15792
 
      perror ("vfork");
15793
 
      _exit(2);
15794
 
    }
15795
 
    if (!child) {
15796
 
      arg = getpid();
15797
 
      write(-1, "", 0);
15798
 
      _exit (arg);
15799
 
    }
15800
 
  }
15801
 
}
15802
 
 
15803
 
int
15804
 
main ()
15805
 
{
15806
 
  pid_t parent = getpid ();
15807
 
  pid_t child;
15808
 
 
15809
 
  sparc_address_test (0);
15810
 
 
15811
 
  child = vfork ();
15812
 
 
15813
 
  if (child == 0) {
15814
 
    /* Here is another test for sparc vfork register problems.  This
15815
 
       test uses lots of local variables, at least as many local
15816
 
       variables as main has allocated so far including compiler
15817
 
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15818
 
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15819
 
       reuse the register of parent for one of the local variables,
15820
 
       since it will think that parent can't possibly be used any more
15821
 
       in this routine.  Assigning to the local variable will thus
15822
 
       munge parent in the parent process.  */
15823
 
    pid_t
15824
 
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15825
 
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15826
 
    /* Convince the compiler that p..p7 are live; otherwise, it might
15827
 
       use the same hardware register for all 8 local variables.  */
15828
 
    if (p != p1 || p != p2 || p != p3 || p != p4
15829
 
        || p != p5 || p != p6 || p != p7)
15830
 
      _exit(1);
15831
 
 
15832
 
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15833
 
       from child file descriptors.  If the child closes a descriptor
15834
 
       before it execs or exits, this munges the parent's descriptor
15835
 
       as well.  Test for this by closing stdout in the child.  */
15836
 
    _exit(close(fileno(stdout)) != 0);
15837
 
  } else {
15838
 
    int status;
15839
 
    struct stat st;
15840
 
 
15841
 
    while (wait(&status) != child)
15842
 
      ;
15843
 
    return (
15844
 
         /* Was there some problem with vforking?  */
15845
 
         child < 0
15846
 
 
15847
 
         /* Did the child fail?  (This shouldn't happen.)  */
15848
 
         || status
15849
 
 
15850
 
         /* Did the vfork/compiler bug occur?  */
15851
 
         || parent != getpid()
15852
 
 
15853
 
         /* Did the file descriptor bug occur?  */
15854
 
         || fstat(fileno(stdout), &st) != 0
15855
 
         );
15856
 
  }
15857
 
}
15858
 
_ACEOF
15859
 
if ac_fn_cxx_try_run "$LINENO"; then :
15860
 
  ac_cv_func_vfork_works=yes
15861
 
else
15862
 
  ac_cv_func_vfork_works=no
15863
 
fi
15864
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15865
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15866
 
fi
15867
 
 
15868
 
fi
15869
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15870
 
$as_echo "$ac_cv_func_vfork_works" >&6; }
15871
 
 
15872
 
fi;
15873
 
if test "x$ac_cv_func_fork_works" = xcross; then
15874
 
  ac_cv_func_vfork_works=$ac_cv_func_vfork
15875
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15876
 
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15877
 
fi
15878
 
 
15879
 
if test "x$ac_cv_func_vfork_works" = xyes; then
15880
 
 
15881
 
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15882
 
 
15883
 
else
15884
 
 
15885
 
$as_echo "#define vfork fork" >>confdefs.h
15886
 
 
15887
 
fi
15888
 
if test "x$ac_cv_func_fork_works" = xyes; then
15889
 
 
15890
 
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15891
 
 
15892
 
fi
15893
 
 
15894
 
        if test $ac_cv_c_compiler_gnu = yes; then
15895
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
15896
 
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
15897
 
if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
15898
 
  $as_echo_n "(cached) " >&6
15899
 
else
15900
 
    ac_pattern="Autoconf.*'x'"
15901
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902
 
/* end confdefs.h.  */
15903
 
#include <sgtty.h>
15904
 
Autoconf TIOCGETP
15905
 
_ACEOF
15906
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15907
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15908
 
  ac_cv_prog_gcc_traditional=yes
15909
 
else
15910
 
  ac_cv_prog_gcc_traditional=no
15911
 
fi
15912
 
rm -f conftest*
15913
 
 
15914
 
 
15915
 
  if test $ac_cv_prog_gcc_traditional = no; then
15916
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917
 
/* end confdefs.h.  */
15918
 
#include <termio.h>
15919
 
Autoconf TCGETA
15920
 
_ACEOF
15921
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15922
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15923
 
  ac_cv_prog_gcc_traditional=yes
15924
 
fi
15925
 
rm -f conftest*
15926
 
 
15927
 
  fi
15928
 
fi
15929
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
15930
 
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
15931
 
  if test $ac_cv_prog_gcc_traditional = yes; then
15932
 
    CC="$CC -traditional"
15933
 
  fi
15934
 
fi
15935
 
 
15936
 
        for ac_header in stdlib.h
15937
 
do :
15938
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15939
 
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15940
 
  cat >>confdefs.h <<_ACEOF
15941
 
#define HAVE_STDLIB_H 1
15942
 
_ACEOF
15943
 
 
15944
 
fi
15945
 
 
15946
 
done
15947
 
 
15948
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15949
 
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15950
 
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
15951
 
  $as_echo_n "(cached) " >&6
15952
 
else
15953
 
  if test "$cross_compiling" = yes; then :
15954
 
  ac_cv_func_malloc_0_nonnull=no
15955
 
else
15956
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957
 
/* end confdefs.h.  */
15958
 
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15959
 
# include <stdlib.h>
15960
 
#else
15961
 
char *malloc ();
15962
 
#endif
15963
 
 
15964
 
int
15965
 
main ()
15966
 
{
15967
 
return ! malloc (0);
15968
 
  ;
15969
 
  return 0;
15970
 
}
15971
 
_ACEOF
15972
 
if ac_fn_cxx_try_run "$LINENO"; then :
15973
 
  ac_cv_func_malloc_0_nonnull=yes
15974
 
else
15975
 
  ac_cv_func_malloc_0_nonnull=no
15976
 
fi
15977
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15978
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15979
 
fi
15980
 
 
15981
 
fi
15982
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15983
 
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15984
 
if test $ac_cv_func_malloc_0_nonnull = yes; then :
15985
 
 
15986
 
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15987
 
 
15988
 
else
15989
 
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15990
 
 
15991
 
   case " $LIBOBJS " in
15992
 
  *" malloc.$ac_objext "* ) ;;
15993
 
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15994
 
 ;;
15995
 
esac
15996
 
 
15997
 
 
15998
 
$as_echo "#define malloc rpl_malloc" >>confdefs.h
15999
 
 
16000
 
fi
16001
 
 
16002
 
 
16003
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16004
 
$as_echo_n "checking for working memcmp... " >&6; }
16005
 
if test "${ac_cv_func_memcmp_working+set}" = set; then :
16006
 
  $as_echo_n "(cached) " >&6
16007
 
else
16008
 
  if test "$cross_compiling" = yes; then :
16009
 
  ac_cv_func_memcmp_working=no
16010
 
else
16011
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012
 
/* end confdefs.h.  */
16013
 
$ac_includes_default
16014
 
int
16015
 
main ()
16016
 
{
16017
 
 
16018
 
  /* Some versions of memcmp are not 8-bit clean.  */
16019
 
  char c0 = '\100', c1 = '\200', c2 = '\201';
16020
 
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16021
 
    return 1;
16022
 
 
16023
 
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16024
 
     or more and with at least one buffer not starting on a 4-byte boundary.
16025
 
     William Lewis provided this test program.   */
16026
 
  {
16027
 
    char foo[21];
16028
 
    char bar[21];
16029
 
    int i;
16030
 
    for (i = 0; i < 4; i++)
16031
 
      {
16032
 
        char *a = foo + i;
16033
 
        char *b = bar + i;
16034
 
        strcpy (a, "--------01111111");
16035
 
        strcpy (b, "--------10000000");
16036
 
        if (memcmp (a, b, 16) >= 0)
16037
 
          return 1;
16038
 
      }
16039
 
    return 0;
16040
 
  }
16041
 
 
16042
 
  ;
16043
 
  return 0;
16044
 
}
16045
 
_ACEOF
16046
 
if ac_fn_cxx_try_run "$LINENO"; then :
16047
 
  ac_cv_func_memcmp_working=yes
16048
 
else
16049
 
  ac_cv_func_memcmp_working=no
16050
 
fi
16051
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16052
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16053
 
fi
16054
 
 
16055
 
fi
16056
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16057
 
$as_echo "$ac_cv_func_memcmp_working" >&6; }
16058
 
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16059
 
  *" memcmp.$ac_objext "* ) ;;
16060
 
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16061
 
 ;;
16062
 
esac
16063
 
 
16064
 
 
16065
 
        for ac_header in stdlib.h
16066
 
do :
16067
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16068
 
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16069
 
  cat >>confdefs.h <<_ACEOF
16070
 
#define HAVE_STDLIB_H 1
16071
 
_ACEOF
16072
 
 
16073
 
fi
16074
 
 
16075
 
done
16076
 
 
16077
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16078
 
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16079
 
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
16080
 
  $as_echo_n "(cached) " >&6
16081
 
else
16082
 
  if test "$cross_compiling" = yes; then :
16083
 
  ac_cv_func_realloc_0_nonnull=no
16084
 
else
16085
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086
 
/* end confdefs.h.  */
16087
 
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16088
 
# include <stdlib.h>
16089
 
#else
16090
 
char *realloc ();
16091
 
#endif
16092
 
 
16093
 
int
16094
 
main ()
16095
 
{
16096
 
return ! realloc (0, 0);
16097
 
  ;
16098
 
  return 0;
16099
 
}
16100
 
_ACEOF
16101
 
if ac_fn_cxx_try_run "$LINENO"; then :
16102
 
  ac_cv_func_realloc_0_nonnull=yes
16103
 
else
16104
 
  ac_cv_func_realloc_0_nonnull=no
16105
 
fi
16106
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16107
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16108
 
fi
16109
 
 
16110
 
fi
16111
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16112
 
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16113
 
if test $ac_cv_func_realloc_0_nonnull = yes; then :
16114
 
 
16115
 
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16116
 
 
16117
 
else
16118
 
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16119
 
 
16120
 
   case " $LIBOBJS " in
16121
 
  *" realloc.$ac_objext "* ) ;;
16122
 
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16123
 
 ;;
16124
 
esac
16125
 
 
16126
 
 
16127
 
$as_echo "#define realloc rpl_realloc" >>confdefs.h
16128
 
 
16129
 
fi
16130
 
 
16131
 
 
16132
 
        for ac_header in sys/select.h sys/socket.h
16133
 
do :
16134
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16135
 
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16136
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16137
 
  cat >>confdefs.h <<_ACEOF
16138
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16139
 
_ACEOF
16140
 
 
16141
 
fi
16142
 
 
16143
 
done
16144
 
 
16145
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
16146
 
$as_echo_n "checking types of arguments for select... " >&6; }
16147
 
if test "${ac_cv_func_select_args+set}" = set; then :
16148
 
  $as_echo_n "(cached) " >&6
16149
 
else
16150
 
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16151
 
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16152
 
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16153
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154
 
/* end confdefs.h.  */
16155
 
$ac_includes_default
16156
 
#ifdef HAVE_SYS_SELECT_H
16157
 
# include <sys/select.h>
16158
 
#endif
16159
 
#ifdef HAVE_SYS_SOCKET_H
16160
 
# include <sys/socket.h>
16161
 
#endif
16162
 
 
16163
 
int
16164
 
main ()
16165
 
{
16166
 
extern int select ($ac_arg1,
16167
 
                                            $ac_arg234, $ac_arg234, $ac_arg234,
16168
 
                                            $ac_arg5);
16169
 
  ;
16170
 
  return 0;
16171
 
}
16172
 
_ACEOF
16173
 
if ac_fn_cxx_try_compile "$LINENO"; then :
16174
 
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16175
 
fi
16176
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177
 
  done
16178
 
 done
16179
 
done
16180
 
# Provide a safe default value.
16181
 
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16182
 
 
16183
 
fi
16184
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
16185
 
$as_echo "$ac_cv_func_select_args" >&6; }
16186
 
ac_save_IFS=$IFS; IFS=','
16187
 
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16188
 
IFS=$ac_save_IFS
16189
 
shift
16190
 
 
16191
 
cat >>confdefs.h <<_ACEOF
16192
 
#define SELECT_TYPE_ARG1 $1
16193
 
_ACEOF
16194
 
 
16195
 
 
16196
 
cat >>confdefs.h <<_ACEOF
16197
 
#define SELECT_TYPE_ARG234 ($2)
16198
 
_ACEOF
16199
 
 
16200
 
 
16201
 
cat >>confdefs.h <<_ACEOF
16202
 
#define SELECT_TYPE_ARG5 ($3)
16203
 
_ACEOF
16204
 
 
16205
 
rm -f conftest*
16206
 
 
16207
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16208
 
$as_echo_n "checking return type of signal handlers... " >&6; }
16209
 
if test "${ac_cv_type_signal+set}" = set; then :
16210
 
  $as_echo_n "(cached) " >&6
16211
 
else
16212
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213
 
/* end confdefs.h.  */
16214
 
#include <sys/types.h>
16215
 
#include <signal.h>
16216
 
 
16217
 
int
16218
 
main ()
16219
 
{
16220
 
return *(signal (0, 0)) (0) == 1;
16221
 
  ;
16222
 
  return 0;
16223
 
}
16224
 
_ACEOF
16225
 
if ac_fn_cxx_try_compile "$LINENO"; then :
16226
 
  ac_cv_type_signal=int
16227
 
else
16228
 
  ac_cv_type_signal=void
16229
 
fi
16230
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231
 
fi
16232
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16233
 
$as_echo "$ac_cv_type_signal" >&6; }
16234
 
 
16235
 
cat >>confdefs.h <<_ACEOF
16236
 
#define RETSIGTYPE $ac_cv_type_signal
16237
 
_ACEOF
16238
 
 
16239
 
 
16240
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16241
 
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16242
 
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
16243
 
  $as_echo_n "(cached) " >&6
16244
 
else
16245
 
  rm -f conftest.sym conftest.file
16246
 
echo >conftest.file
16247
 
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16248
 
  if test "$cross_compiling" = yes; then :
16249
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
16250
 
else
16251
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252
 
/* end confdefs.h.  */
16253
 
$ac_includes_default
16254
 
int
16255
 
main ()
16256
 
{
16257
 
struct stat sbuf;
16258
 
     /* Linux will dereference the symlink and fail, as required by POSIX.
16259
 
        That is better in the sense that it means we will not
16260
 
        have to compile and use the lstat wrapper.  */
16261
 
     return lstat ("conftest.sym/", &sbuf) == 0;
16262
 
  ;
16263
 
  return 0;
16264
 
}
16265
 
_ACEOF
16266
 
if ac_fn_cxx_try_run "$LINENO"; then :
16267
 
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
16268
 
else
16269
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
16270
 
fi
16271
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16272
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16273
 
fi
16274
 
 
16275
 
else
16276
 
  # If the `ln -s' command failed, then we probably don't even
16277
 
  # have an lstat function.
16278
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
16279
 
fi
16280
 
rm -f conftest.sym conftest.file
16281
 
 
16282
 
fi
16283
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16284
 
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16285
 
 
16286
 
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16287
 
 
16288
 
cat >>confdefs.h <<_ACEOF
16289
 
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16290
 
_ACEOF
16291
 
 
16292
 
 
16293
 
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16294
 
  case " $LIBOBJS " in
16295
 
  *" lstat.$ac_objext "* ) ;;
16296
 
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16297
 
 ;;
16298
 
esac
16299
 
 
16300
 
fi
16301
 
 
16302
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16303
 
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
16304
 
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
16305
 
  $as_echo_n "(cached) " >&6
16306
 
else
16307
 
  if test "$cross_compiling" = yes; then :
16308
 
  ac_cv_func_stat_empty_string_bug=yes
16309
 
else
16310
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311
 
/* end confdefs.h.  */
16312
 
$ac_includes_default
16313
 
int
16314
 
main ()
16315
 
{
16316
 
struct stat sbuf;
16317
 
  return stat ("", &sbuf) == 0;
16318
 
  ;
16319
 
  return 0;
16320
 
}
16321
 
_ACEOF
16322
 
if ac_fn_cxx_try_run "$LINENO"; then :
16323
 
  ac_cv_func_stat_empty_string_bug=no
16324
 
else
16325
 
  ac_cv_func_stat_empty_string_bug=yes
16326
 
fi
16327
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16328
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16329
 
fi
16330
 
 
16331
 
fi
16332
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16333
 
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16334
 
if test $ac_cv_func_stat_empty_string_bug = yes; then
16335
 
  case " $LIBOBJS " in
16336
 
  *" stat.$ac_objext "* ) ;;
16337
 
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16338
 
 ;;
16339
 
esac
16340
 
 
16341
 
 
16342
 
cat >>confdefs.h <<_ACEOF
16343
 
#define HAVE_STAT_EMPTY_STRING_BUG 1
16344
 
_ACEOF
16345
 
 
16346
 
fi
16347
 
 
16348
 
 
16349
 
 
16350
 
 
16351
 
  for ac_header in $ac_header_list
16352
 
do :
16353
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354
 
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16355
 
"
16356
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16357
 
  cat >>confdefs.h <<_ACEOF
16358
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16359
 
_ACEOF
16360
 
 
16361
 
fi
16362
 
 
16363
 
done
16364
 
 
16365
 
 
16366
 
 
16367
 
 
16368
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
16369
 
$as_echo_n "checking whether utime accepts a null argument... " >&6; }
16370
 
if test "${ac_cv_func_utime_null+set}" = set; then :
16371
 
  $as_echo_n "(cached) " >&6
16372
 
else
16373
 
  rm -f conftest.data; >conftest.data
16374
 
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
16375
 
if test "$cross_compiling" = yes; then :
16376
 
  ac_cv_func_utime_null='guessing yes'
16377
 
else
16378
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379
 
/* end confdefs.h.  */
16380
 
$ac_includes_default
16381
 
               #ifdef HAVE_UTIME_H
16382
 
               # include <utime.h>
16383
 
               #endif
16384
 
int
16385
 
main ()
16386
 
{
16387
 
struct stat s, t;
16388
 
  return ! (stat ("conftest.data", &s) == 0
16389
 
            && utime ("conftest.data", 0) == 0
16390
 
            && stat ("conftest.data", &t) == 0
16391
 
            && t.st_mtime >= s.st_mtime
16392
 
            && t.st_mtime - s.st_mtime < 120);
16393
 
  ;
16394
 
  return 0;
16395
 
}
16396
 
_ACEOF
16397
 
if ac_fn_cxx_try_run "$LINENO"; then :
16398
 
  ac_cv_func_utime_null=yes
16399
 
else
16400
 
  ac_cv_func_utime_null=no
16401
 
fi
16402
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16403
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16404
 
fi
16405
 
 
16406
 
fi
16407
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
16408
 
$as_echo "$ac_cv_func_utime_null" >&6; }
16409
 
if test "x$ac_cv_func_utime_null" != xno; then
16410
 
  ac_cv_func_utime_null=yes
16411
 
 
16412
 
$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
16413
 
 
16414
 
fi
16415
 
rm -f conftest.data
16416
 
 
16417
 
for ac_func in vprintf
16418
 
do :
16419
 
  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16420
 
if test "x$ac_cv_func_vprintf" = x""yes; then :
16421
 
  cat >>confdefs.h <<_ACEOF
16422
 
#define HAVE_VPRINTF 1
16423
 
_ACEOF
16424
 
 
16425
 
ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16426
 
if test "x$ac_cv_func__doprnt" = x""yes; then :
16427
 
 
16428
 
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16429
 
 
16430
 
fi
16431
 
 
16432
 
fi
16433
 
done
16434
 
 
16435
 
 
16436
 
for ac_func in bzero floor gethostbyname gethrtime gettimeofday \
16437
 
                inet_ntoa memset mkdir pathconf pow regcomp select setlocale socket \
16438
 
                strchr strdup strerror strrchr strstr strtol utime
16439
 
do :
16440
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16441
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16442
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16443
 
  cat >>confdefs.h <<_ACEOF
16444
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16445
 
_ACEOF
16446
 
 
16447
 
fi
16448
 
done
16449
 
 
16450
 
 
16451
 
SFLPHONE_LIBS="$SFLPHONE_LIBS"
16452
 
 
16453
 
 
16454
 
 
16455
 
 
16456
 
 
16457
 
 
16458
 
 
16459
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16460
 
        if test -n "$ac_tool_prefix"; then
16461
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16462
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16463
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464
 
$as_echo_n "checking for $ac_word... " >&6; }
16465
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16466
 
  $as_echo_n "(cached) " >&6
16467
 
else
16468
 
  case $PKG_CONFIG in
16469
 
  [\\/]* | ?:[\\/]*)
16470
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16471
 
  ;;
16472
 
  *)
16473
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16474
 
for as_dir in $PATH
16475
 
do
16476
 
  IFS=$as_save_IFS
16477
 
  test -z "$as_dir" && as_dir=.
16478
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16479
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16480
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16481
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16482
 
    break 2
16483
 
  fi
16484
 
done
16485
 
  done
16486
 
IFS=$as_save_IFS
16487
 
 
16488
 
  ;;
16489
 
esac
16490
 
fi
16491
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16492
 
if test -n "$PKG_CONFIG"; then
16493
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16494
 
$as_echo "$PKG_CONFIG" >&6; }
16495
 
else
16496
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497
 
$as_echo "no" >&6; }
16498
 
fi
16499
 
 
16500
 
 
16501
 
fi
16502
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
16503
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
16504
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
16505
 
set dummy pkg-config; ac_word=$2
16506
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16507
 
$as_echo_n "checking for $ac_word... " >&6; }
16508
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16509
 
  $as_echo_n "(cached) " >&6
16510
 
else
16511
 
  case $ac_pt_PKG_CONFIG in
16512
 
  [\\/]* | ?:[\\/]*)
16513
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16514
 
  ;;
16515
 
  *)
16516
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16517
 
for as_dir in $PATH
16518
 
do
16519
 
  IFS=$as_save_IFS
16520
 
  test -z "$as_dir" && as_dir=.
16521
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16522
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16523
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16524
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16525
 
    break 2
16526
 
  fi
16527
 
done
16528
 
  done
16529
 
IFS=$as_save_IFS
16530
 
 
16531
 
  ;;
16532
 
esac
16533
 
fi
16534
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16535
 
if test -n "$ac_pt_PKG_CONFIG"; then
16536
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16537
 
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16538
 
else
16539
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540
 
$as_echo "no" >&6; }
16541
 
fi
16542
 
 
16543
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
16544
 
    PKG_CONFIG=""
16545
 
  else
16546
 
    case $cross_compiling:$ac_tool_warned in
16547
 
yes:)
16548
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16549
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16550
 
ac_tool_warned=yes ;;
16551
 
esac
16552
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
16553
 
  fi
16554
 
else
16555
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16556
 
fi
16557
 
 
16558
 
fi
16559
 
if test -n "$PKG_CONFIG"; then
16560
 
        _pkg_min_version=0.9.0
16561
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16562
 
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16563
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16564
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16565
 
$as_echo "yes" >&6; }
16566
 
        else
16567
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16568
 
$as_echo "no" >&6; }
16569
 
                PKG_CONFIG=""
16570
 
        fi
16571
 
fi
16572
 
 
16573
 
#Trying to set PJSIP using pkg-config
16574
 
#PKG_CHECK_MODULES(SIP, libpj-sfl, have_libpj=true, have_libpj=false)
16575
 
#if test "x${have_libpj}" = "xfalse" ; then
16576
 
#   AC_MSG_ERROR([PJSIP not found. http://www.pjsip.org/download.htm])
16577
 
#fi
16578
 
#AC_SUBST(SIP_CFLAGS)
16579
 
 
16580
 
UUID_MIN_VERSION=1.0
16581
 
 
16582
 
pkg_failed=no
16583
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
16584
 
$as_echo_n "checking for UUID... " >&6; }
16585
 
 
16586
 
if test -n "$UUID_CFLAGS"; then
16587
 
    pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
16588
 
 elif test -n "$PKG_CONFIG"; then
16589
 
    if test -n "$PKG_CONFIG" && \
16590
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= \${UUID_MIN_VERSION}\""; } >&5
16591
 
  ($PKG_CONFIG --exists --print-errors "uuid >= ${UUID_MIN_VERSION}") 2>&5
16592
 
  ac_status=$?
16593
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594
 
  test $ac_status = 0; }; then
16595
 
  pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= ${UUID_MIN_VERSION}" 2>/dev/null`
16596
 
else
16597
 
  pkg_failed=yes
16598
 
fi
16599
 
 else
16600
 
    pkg_failed=untried
16601
 
fi
16602
 
if test -n "$UUID_LIBS"; then
16603
 
    pkg_cv_UUID_LIBS="$UUID_LIBS"
16604
 
 elif test -n "$PKG_CONFIG"; then
16605
 
    if test -n "$PKG_CONFIG" && \
16606
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= \${UUID_MIN_VERSION}\""; } >&5
16607
 
  ($PKG_CONFIG --exists --print-errors "uuid >= ${UUID_MIN_VERSION}") 2>&5
16608
 
  ac_status=$?
16609
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610
 
  test $ac_status = 0; }; then
16611
 
  pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid >= ${UUID_MIN_VERSION}" 2>/dev/null`
16612
 
else
16613
 
  pkg_failed=yes
16614
 
fi
16615
 
 else
16616
 
    pkg_failed=untried
16617
 
fi
16618
 
 
16619
 
 
16620
 
 
16621
 
if test $pkg_failed = yes; then
16622
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16623
 
$as_echo "no" >&6; }
16624
 
 
16625
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16626
 
        _pkg_short_errors_supported=yes
16627
 
else
16628
 
        _pkg_short_errors_supported=no
16629
 
fi
16630
 
        if test $_pkg_short_errors_supported = yes; then
16631
 
                UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid >= ${UUID_MIN_VERSION}" 2>&1`
16632
 
        else
16633
 
                UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid >= ${UUID_MIN_VERSION}" 2>&1`
16634
 
        fi
16635
 
        # Put the nasty error message in config.log where it belongs
16636
 
        echo "$UUID_PKG_ERRORS" >&5
16637
 
 
16638
 
        HAVE_UUID=false
16639
 
elif test $pkg_failed = untried; then
16640
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16641
 
$as_echo "no" >&6; }
16642
 
        HAVE_UUID=false
16643
 
else
16644
 
        UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
16645
 
        UUID_LIBS=$pkg_cv_UUID_LIBS
16646
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16647
 
$as_echo "yes" >&6; }
16648
 
        HAVE_UUID=true
16649
 
fi;
16650
 
 
16651
 
 
16652
 
 
16653
 
ALSA_MIN_VERSION=1.0
16654
 
 
16655
 
pkg_failed=no
16656
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
16657
 
$as_echo_n "checking for ALSA... " >&6; }
16658
 
 
16659
 
if test -n "$ALSA_CFLAGS"; then
16660
 
    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
16661
 
 elif test -n "$PKG_CONFIG"; then
16662
 
    if test -n "$PKG_CONFIG" && \
16663
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= \${ALSA_MIN_VERSION}\""; } >&5
16664
 
  ($PKG_CONFIG --exists --print-errors "alsa >= ${ALSA_MIN_VERSION}") 2>&5
16665
 
  ac_status=$?
16666
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16667
 
  test $ac_status = 0; }; then
16668
 
  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= ${ALSA_MIN_VERSION}" 2>/dev/null`
16669
 
else
16670
 
  pkg_failed=yes
16671
 
fi
16672
 
 else
16673
 
    pkg_failed=untried
16674
 
fi
16675
 
if test -n "$ALSA_LIBS"; then
16676
 
    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
16677
 
 elif test -n "$PKG_CONFIG"; then
16678
 
    if test -n "$PKG_CONFIG" && \
16679
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= \${ALSA_MIN_VERSION}\""; } >&5
16680
 
  ($PKG_CONFIG --exists --print-errors "alsa >= ${ALSA_MIN_VERSION}") 2>&5
16681
 
  ac_status=$?
16682
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683
 
  test $ac_status = 0; }; then
16684
 
  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= ${ALSA_MIN_VERSION}" 2>/dev/null`
16685
 
else
16686
 
  pkg_failed=yes
16687
 
fi
16688
 
 else
16689
 
    pkg_failed=untried
16690
 
fi
16691
 
 
16692
 
 
16693
 
 
16694
 
if test $pkg_failed = yes; then
16695
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16696
 
$as_echo "no" >&6; }
16697
 
 
16698
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16699
 
        _pkg_short_errors_supported=yes
16700
 
else
16701
 
        _pkg_short_errors_supported=no
16702
 
fi
16703
 
        if test $_pkg_short_errors_supported = yes; then
16704
 
                ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa >= ${ALSA_MIN_VERSION}" 2>&1`
16705
 
        else
16706
 
                ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa >= ${ALSA_MIN_VERSION}" 2>&1`
16707
 
        fi
16708
 
        # Put the nasty error message in config.log where it belongs
16709
 
        echo "$ALSA_PKG_ERRORS" >&5
16710
 
 
16711
 
        as_fn_error $? "Mising alsa development package: libasound2-dev or alsa-lib-devel" "$LINENO" 5
16712
 
elif test $pkg_failed = untried; then
16713
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16714
 
$as_echo "no" >&6; }
16715
 
        as_fn_error $? "Mising alsa development package: libasound2-dev or alsa-lib-devel" "$LINENO" 5
16716
 
else
16717
 
        ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
16718
 
        ALSA_LIBS=$pkg_cv_ALSA_LIBS
16719
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16720
 
$as_echo "yes" >&6; }
16721
 
 
16722
 
fi
16723
 
 
16724
 
 
16725
 
 
16726
 
LIBPULSE_MIN_VERSION=0.9.15
16727
 
 
16728
 
pkg_failed=no
16729
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
16730
 
$as_echo_n "checking for PULSEAUDIO... " >&6; }
16731
 
 
16732
 
if test -n "$PULSEAUDIO_CFLAGS"; then
16733
 
    pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
16734
 
 elif test -n "$PKG_CONFIG"; then
16735
 
    if test -n "$PKG_CONFIG" && \
16736
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= \${LIBPULSE_MIN_VERSION}\""; } >&5
16737
 
  ($PKG_CONFIG --exists --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}") 2>&5
16738
 
  ac_status=$?
16739
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16740
 
  test $ac_status = 0; }; then
16741
 
  pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>/dev/null`
16742
 
else
16743
 
  pkg_failed=yes
16744
 
fi
16745
 
 else
16746
 
    pkg_failed=untried
16747
 
fi
16748
 
if test -n "$PULSEAUDIO_LIBS"; then
16749
 
    pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
16750
 
 elif test -n "$PKG_CONFIG"; then
16751
 
    if test -n "$PKG_CONFIG" && \
16752
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= \${LIBPULSE_MIN_VERSION}\""; } >&5
16753
 
  ($PKG_CONFIG --exists --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}") 2>&5
16754
 
  ac_status=$?
16755
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16756
 
  test $ac_status = 0; }; then
16757
 
  pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>/dev/null`
16758
 
else
16759
 
  pkg_failed=yes
16760
 
fi
16761
 
 else
16762
 
    pkg_failed=untried
16763
 
fi
16764
 
 
16765
 
 
16766
 
 
16767
 
if test $pkg_failed = yes; then
16768
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16769
 
$as_echo "no" >&6; }
16770
 
 
16771
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16772
 
        _pkg_short_errors_supported=yes
16773
 
else
16774
 
        _pkg_short_errors_supported=no
16775
 
fi
16776
 
        if test $_pkg_short_errors_supported = yes; then
16777
 
                PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>&1`
16778
 
        else
16779
 
                PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>&1`
16780
 
        fi
16781
 
        # Put the nasty error message in config.log where it belongs
16782
 
        echo "$PULSEAUDIO_PKG_ERRORS" >&5
16783
 
 
16784
 
        as_fn_error $? "Mising pulseaudio development package: libpulse-dev" "$LINENO" 5
16785
 
elif test $pkg_failed = untried; then
16786
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16787
 
$as_echo "no" >&6; }
16788
 
        as_fn_error $? "Mising pulseaudio development package: libpulse-dev" "$LINENO" 5
16789
 
else
16790
 
        PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
16791
 
        PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
16792
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16793
 
$as_echo "yes" >&6; }
16794
 
 
16795
 
fi
16796
 
 
16797
 
 
16798
 
 
16799
 
LIBSAMPLERATE_MIN_VERSION=0.1.2
16800
 
 
16801
 
pkg_failed=no
16802
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAMPLERATE" >&5
16803
 
$as_echo_n "checking for SAMPLERATE... " >&6; }
16804
 
 
16805
 
if test -n "$SAMPLERATE_CFLAGS"; then
16806
 
    pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
16807
 
 elif test -n "$PKG_CONFIG"; then
16808
 
    if test -n "$PKG_CONFIG" && \
16809
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= \${LIBSAMPLERATE_MIN_VERSION}\""; } >&5
16810
 
  ($PKG_CONFIG --exists --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}") 2>&5
16811
 
  ac_status=$?
16812
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16813
 
  test $ac_status = 0; }; then
16814
 
  pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>/dev/null`
16815
 
else
16816
 
  pkg_failed=yes
16817
 
fi
16818
 
 else
16819
 
    pkg_failed=untried
16820
 
fi
16821
 
if test -n "$SAMPLERATE_LIBS"; then
16822
 
    pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
16823
 
 elif test -n "$PKG_CONFIG"; then
16824
 
    if test -n "$PKG_CONFIG" && \
16825
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= \${LIBSAMPLERATE_MIN_VERSION}\""; } >&5
16826
 
  ($PKG_CONFIG --exists --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}") 2>&5
16827
 
  ac_status=$?
16828
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16829
 
  test $ac_status = 0; }; then
16830
 
  pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>/dev/null`
16831
 
else
16832
 
  pkg_failed=yes
16833
 
fi
16834
 
 else
16835
 
    pkg_failed=untried
16836
 
fi
16837
 
 
16838
 
 
16839
 
 
16840
 
if test $pkg_failed = yes; then
16841
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842
 
$as_echo "no" >&6; }
16843
 
 
16844
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16845
 
        _pkg_short_errors_supported=yes
16846
 
else
16847
 
        _pkg_short_errors_supported=no
16848
 
fi
16849
 
        if test $_pkg_short_errors_supported = yes; then
16850
 
                SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>&1`
16851
 
        else
16852
 
                SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>&1`
16853
 
        fi
16854
 
        # Put the nasty error message in config.log where it belongs
16855
 
        echo "$SAMPLERATE_PKG_ERRORS" >&5
16856
 
 
16857
 
        as_fn_error $? "Mising libsamplerate development package: libsamplerate0-dev" "$LINENO" 5
16858
 
elif test $pkg_failed = untried; then
16859
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860
 
$as_echo "no" >&6; }
16861
 
        as_fn_error $? "Mising libsamplerate development package: libsamplerate0-dev" "$LINENO" 5
16862
 
else
16863
 
        SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
16864
 
        SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
16865
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16866
 
$as_echo "yes" >&6; }
16867
 
 
16868
 
fi
16869
 
 
16870
 
 
16871
 
 
16872
 
LIBCCGNU2_MIN_VERSION=1.3.1
16873
 
 
16874
 
pkg_failed=no
16875
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCGNU2" >&5
16876
 
$as_echo_n "checking for CCGNU2... " >&6; }
16877
 
 
16878
 
if test -n "$CCGNU2_CFLAGS"; then
16879
 
    pkg_cv_CCGNU2_CFLAGS="$CCGNU2_CFLAGS"
16880
 
 elif test -n "$PKG_CONFIG"; then
16881
 
    if test -n "$PKG_CONFIG" && \
16882
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
16883
 
  ($PKG_CONFIG --exists --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
16884
 
  ac_status=$?
16885
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16886
 
  test $ac_status = 0; }; then
16887
 
  pkg_cv_CCGNU2_CFLAGS=`$PKG_CONFIG --cflags "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
16888
 
else
16889
 
  pkg_failed=yes
16890
 
fi
16891
 
 else
16892
 
    pkg_failed=untried
16893
 
fi
16894
 
if test -n "$CCGNU2_LIBS"; then
16895
 
    pkg_cv_CCGNU2_LIBS="$CCGNU2_LIBS"
16896
 
 elif test -n "$PKG_CONFIG"; then
16897
 
    if test -n "$PKG_CONFIG" && \
16898
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
16899
 
  ($PKG_CONFIG --exists --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
16900
 
  ac_status=$?
16901
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16902
 
  test $ac_status = 0; }; then
16903
 
  pkg_cv_CCGNU2_LIBS=`$PKG_CONFIG --libs "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
16904
 
else
16905
 
  pkg_failed=yes
16906
 
fi
16907
 
 else
16908
 
    pkg_failed=untried
16909
 
fi
16910
 
 
16911
 
 
16912
 
 
16913
 
if test $pkg_failed = yes; then
16914
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16915
 
$as_echo "no" >&6; }
16916
 
 
16917
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16918
 
        _pkg_short_errors_supported=yes
16919
 
else
16920
 
        _pkg_short_errors_supported=no
16921
 
fi
16922
 
        if test $_pkg_short_errors_supported = yes; then
16923
 
                CCGNU2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
16924
 
        else
16925
 
                CCGNU2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
16926
 
        fi
16927
 
        # Put the nasty error message in config.log where it belongs
16928
 
        echo "$CCGNU2_PKG_ERRORS" >&5
16929
 
 
16930
 
        as_fn_error $? "Mising common cpp development package: libcommoncpp2-dev" "$LINENO" 5
16931
 
elif test $pkg_failed = untried; then
16932
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16933
 
$as_echo "no" >&6; }
16934
 
        as_fn_error $? "Mising common cpp development package: libcommoncpp2-dev" "$LINENO" 5
16935
 
else
16936
 
        CCGNU2_CFLAGS=$pkg_cv_CCGNU2_CFLAGS
16937
 
        CCGNU2_LIBS=$pkg_cv_CCGNU2_LIBS
16938
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16939
 
$as_echo "yes" >&6; }
16940
 
 
16941
 
fi
16942
 
 
16943
 
 
16944
 
 
16945
 
LIBCCEXT2_MIN_VERSION=1.3.1
16946
 
 
16947
 
pkg_failed=no
16948
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCEXT2" >&5
16949
 
$as_echo_n "checking for CCEXT2... " >&6; }
16950
 
 
16951
 
if test -n "$CCEXT2_CFLAGS"; then
16952
 
    pkg_cv_CCEXT2_CFLAGS="$CCEXT2_CFLAGS"
16953
 
 elif test -n "$PKG_CONFIG"; then
16954
 
    if test -n "$PKG_CONFIG" && \
16955
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccext2 >= \${LIBCCEXT2_MIN_VERSION}\""; } >&5
16956
 
  ($PKG_CONFIG --exists --print-errors "libccext2 >= ${LIBCCEXT2_MIN_VERSION}") 2>&5
16957
 
  ac_status=$?
16958
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16959
 
  test $ac_status = 0; }; then
16960
 
  pkg_cv_CCEXT2_CFLAGS=`$PKG_CONFIG --cflags "libccext2 >= ${LIBCCEXT2_MIN_VERSION}" 2>/dev/null`
16961
 
else
16962
 
  pkg_failed=yes
16963
 
fi
16964
 
 else
16965
 
    pkg_failed=untried
16966
 
fi
16967
 
if test -n "$CCEXT2_LIBS"; then
16968
 
    pkg_cv_CCEXT2_LIBS="$CCEXT2_LIBS"
16969
 
 elif test -n "$PKG_CONFIG"; then
16970
 
    if test -n "$PKG_CONFIG" && \
16971
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccext2 >= \${LIBCCEXT2_MIN_VERSION}\""; } >&5
16972
 
  ($PKG_CONFIG --exists --print-errors "libccext2 >= ${LIBCCEXT2_MIN_VERSION}") 2>&5
16973
 
  ac_status=$?
16974
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16975
 
  test $ac_status = 0; }; then
16976
 
  pkg_cv_CCEXT2_LIBS=`$PKG_CONFIG --libs "libccext2 >= ${LIBCCEXT2_MIN_VERSION}" 2>/dev/null`
16977
 
else
16978
 
  pkg_failed=yes
16979
 
fi
16980
 
 else
16981
 
    pkg_failed=untried
16982
 
fi
16983
 
 
16984
 
 
16985
 
 
16986
 
if test $pkg_failed = yes; then
16987
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16988
 
$as_echo "no" >&6; }
16989
 
 
16990
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16991
 
        _pkg_short_errors_supported=yes
16992
 
else
16993
 
        _pkg_short_errors_supported=no
16994
 
fi
16995
 
        if test $_pkg_short_errors_supported = yes; then
16996
 
                CCEXT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccext2 >= ${LIBCCEXT2_MIN_VERSION}" 2>&1`
16997
 
        else
16998
 
                CCEXT2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccext2 >= ${LIBCCEXT2_MIN_VERSION}" 2>&1`
16999
 
        fi
17000
 
        # Put the nasty error message in config.log where it belongs
17001
 
        echo "$CCEXT2_PKG_ERRORS" >&5
17002
 
 
17003
 
        as_fn_error $? "Package requirements (libccext2 >= ${LIBCCEXT2_MIN_VERSION}) were not met:
17004
 
 
17005
 
$CCEXT2_PKG_ERRORS
17006
 
 
17007
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17008
 
installed software in a non-standard prefix.
17009
 
 
17010
 
Alternatively, you may set the environment variables CCEXT2_CFLAGS
17011
 
and CCEXT2_LIBS to avoid the need to call pkg-config.
17012
 
See the pkg-config man page for more details." "$LINENO" 5
17013
 
elif test $pkg_failed = untried; then
17014
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015
 
$as_echo "no" >&6; }
17016
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17017
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17018
 
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17019
 
is in your PATH or set the PKG_CONFIG environment variable to the full
17020
 
path to pkg-config.
17021
 
 
17022
 
Alternatively, you may set the environment variables CCEXT2_CFLAGS
17023
 
and CCEXT2_LIBS to avoid the need to call pkg-config.
17024
 
See the pkg-config man page for more details.
17025
 
 
17026
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17027
 
See \`config.log' for more details" "$LINENO" 5 ; }
17028
 
else
17029
 
        CCEXT2_CFLAGS=$pkg_cv_CCEXT2_CFLAGS
17030
 
        CCEXT2_LIBS=$pkg_cv_CCEXT2_LIBS
17031
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17032
 
$as_echo "yes" >&6; }
17033
 
 
17034
 
fi
17035
 
 
17036
 
 
17037
 
 
17038
 
LIBCCRT_MIN_VERSION=1.3.0
17039
 
 
17040
 
pkg_failed=no
17041
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCRTP" >&5
17042
 
$as_echo_n "checking for CCRTP... " >&6; }
17043
 
 
17044
 
if test -n "$CCRTP_CFLAGS"; then
17045
 
    pkg_cv_CCRTP_CFLAGS="$CCRTP_CFLAGS"
17046
 
 elif test -n "$PKG_CONFIG"; then
17047
 
    if test -n "$PKG_CONFIG" && \
17048
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp1 >= \${LIBCCRT_MIN_VERSION}\""; } >&5
17049
 
  ($PKG_CONFIG --exists --print-errors "libccrtp1 >= ${LIBCCRT_MIN_VERSION}") 2>&5
17050
 
  ac_status=$?
17051
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17052
 
  test $ac_status = 0; }; then
17053
 
  pkg_cv_CCRTP_CFLAGS=`$PKG_CONFIG --cflags "libccrtp1 >= ${LIBCCRT_MIN_VERSION}" 2>/dev/null`
17054
 
else
17055
 
  pkg_failed=yes
17056
 
fi
17057
 
 else
17058
 
    pkg_failed=untried
17059
 
fi
17060
 
if test -n "$CCRTP_LIBS"; then
17061
 
    pkg_cv_CCRTP_LIBS="$CCRTP_LIBS"
17062
 
 elif test -n "$PKG_CONFIG"; then
17063
 
    if test -n "$PKG_CONFIG" && \
17064
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp1 >= \${LIBCCRT_MIN_VERSION}\""; } >&5
17065
 
  ($PKG_CONFIG --exists --print-errors "libccrtp1 >= ${LIBCCRT_MIN_VERSION}") 2>&5
17066
 
  ac_status=$?
17067
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068
 
  test $ac_status = 0; }; then
17069
 
  pkg_cv_CCRTP_LIBS=`$PKG_CONFIG --libs "libccrtp1 >= ${LIBCCRT_MIN_VERSION}" 2>/dev/null`
17070
 
else
17071
 
  pkg_failed=yes
17072
 
fi
17073
 
 else
17074
 
    pkg_failed=untried
17075
 
fi
17076
 
 
17077
 
 
17078
 
 
17079
 
if test $pkg_failed = yes; then
17080
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081
 
$as_echo "no" >&6; }
17082
 
 
17083
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17084
 
        _pkg_short_errors_supported=yes
17085
 
else
17086
 
        _pkg_short_errors_supported=no
17087
 
fi
17088
 
        if test $_pkg_short_errors_supported = yes; then
17089
 
                CCRTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccrtp1 >= ${LIBCCRT_MIN_VERSION}" 2>&1`
17090
 
        else
17091
 
                CCRTP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccrtp1 >= ${LIBCCRT_MIN_VERSION}" 2>&1`
17092
 
        fi
17093
 
        # Put the nasty error message in config.log where it belongs
17094
 
        echo "$CCRTP_PKG_ERRORS" >&5
17095
 
 
17096
 
        as_fn_error $? "Mising ccrtp development package: libccrtp-dev" "$LINENO" 5
17097
 
elif test $pkg_failed = untried; then
17098
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099
 
$as_echo "no" >&6; }
17100
 
        as_fn_error $? "Mising ccrtp development package: libccrtp-dev" "$LINENO" 5
17101
 
else
17102
 
        CCRTP_CFLAGS=$pkg_cv_CCRTP_CFLAGS
17103
 
        CCRTP_LIBS=$pkg_cv_CCRTP_LIBS
17104
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17105
 
$as_echo "yes" >&6; }
17106
 
 
17107
 
fi
17108
 
 
17109
 
 
17110
 
 
17111
 
 
17112
 
pkg_failed=no
17113
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
17114
 
$as_echo_n "checking for libssl... " >&6; }
17115
 
 
17116
 
if test -n "$libssl_CFLAGS"; then
17117
 
    pkg_cv_libssl_CFLAGS="$libssl_CFLAGS"
17118
 
 elif test -n "$PKG_CONFIG"; then
17119
 
    if test -n "$PKG_CONFIG" && \
17120
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
17121
 
  ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
17122
 
  ac_status=$?
17123
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17124
 
  test $ac_status = 0; }; then
17125
 
  pkg_cv_libssl_CFLAGS=`$PKG_CONFIG --cflags "libssl" 2>/dev/null`
17126
 
else
17127
 
  pkg_failed=yes
17128
 
fi
17129
 
 else
17130
 
    pkg_failed=untried
17131
 
fi
17132
 
if test -n "$libssl_LIBS"; then
17133
 
    pkg_cv_libssl_LIBS="$libssl_LIBS"
17134
 
 elif test -n "$PKG_CONFIG"; then
17135
 
    if test -n "$PKG_CONFIG" && \
17136
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
17137
 
  ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
17138
 
  ac_status=$?
17139
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17140
 
  test $ac_status = 0; }; then
17141
 
  pkg_cv_libssl_LIBS=`$PKG_CONFIG --libs "libssl" 2>/dev/null`
17142
 
else
17143
 
  pkg_failed=yes
17144
 
fi
17145
 
 else
17146
 
    pkg_failed=untried
17147
 
fi
17148
 
 
17149
 
 
17150
 
 
17151
 
if test $pkg_failed = yes; then
17152
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17153
 
$as_echo "no" >&6; }
17154
 
 
17155
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17156
 
        _pkg_short_errors_supported=yes
17157
 
else
17158
 
        _pkg_short_errors_supported=no
17159
 
fi
17160
 
        if test $_pkg_short_errors_supported = yes; then
17161
 
                libssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libssl" 2>&1`
17162
 
        else
17163
 
                libssl_PKG_ERRORS=`$PKG_CONFIG --print-errors "libssl" 2>&1`
17164
 
        fi
17165
 
        # Put the nasty error message in config.log where it belongs
17166
 
        echo "$libssl_PKG_ERRORS" >&5
17167
 
 
17168
 
        as_fn_error $? "Mising ssl development package: libssl-dev" "$LINENO" 5
17169
 
elif test $pkg_failed = untried; then
17170
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17171
 
$as_echo "no" >&6; }
17172
 
        as_fn_error $? "Mising ssl development package: libssl-dev" "$LINENO" 5
17173
 
else
17174
 
        libssl_CFLAGS=$pkg_cv_libssl_CFLAGS
17175
 
        libssl_LIBS=$pkg_cv_libssl_LIBS
17176
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17177
 
$as_echo "yes" >&6; }
17178
 
 
17179
 
fi
17180
 
 
17181
 
 
17182
 
 
17183
 
LIBZRTPCPP_MIN_VERSION=1.3.0
17184
 
 
17185
 
pkg_failed=no
17186
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZRTPCPP" >&5
17187
 
$as_echo_n "checking for ZRTPCPP... " >&6; }
17188
 
 
17189
 
if test -n "$ZRTPCPP_CFLAGS"; then
17190
 
    pkg_cv_ZRTPCPP_CFLAGS="$ZRTPCPP_CFLAGS"
17191
 
 elif test -n "$PKG_CONFIG"; then
17192
 
    if test -n "$PKG_CONFIG" && \
17193
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzrtpcpp >= \${LIBZRTPCPP_MIN_VERSION}\""; } >&5
17194
 
  ($PKG_CONFIG --exists --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}") 2>&5
17195
 
  ac_status=$?
17196
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17197
 
  test $ac_status = 0; }; then
17198
 
  pkg_cv_ZRTPCPP_CFLAGS=`$PKG_CONFIG --cflags "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>/dev/null`
17199
 
else
17200
 
  pkg_failed=yes
17201
 
fi
17202
 
 else
17203
 
    pkg_failed=untried
17204
 
fi
17205
 
if test -n "$ZRTPCPP_LIBS"; then
17206
 
    pkg_cv_ZRTPCPP_LIBS="$ZRTPCPP_LIBS"
17207
 
 elif test -n "$PKG_CONFIG"; then
17208
 
    if test -n "$PKG_CONFIG" && \
17209
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzrtpcpp >= \${LIBZRTPCPP_MIN_VERSION}\""; } >&5
17210
 
  ($PKG_CONFIG --exists --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}") 2>&5
17211
 
  ac_status=$?
17212
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17213
 
  test $ac_status = 0; }; then
17214
 
  pkg_cv_ZRTPCPP_LIBS=`$PKG_CONFIG --libs "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>/dev/null`
17215
 
else
17216
 
  pkg_failed=yes
17217
 
fi
17218
 
 else
17219
 
    pkg_failed=untried
17220
 
fi
17221
 
 
17222
 
 
17223
 
 
17224
 
if test $pkg_failed = yes; then
17225
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17226
 
$as_echo "no" >&6; }
17227
 
 
17228
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17229
 
        _pkg_short_errors_supported=yes
17230
 
else
17231
 
        _pkg_short_errors_supported=no
17232
 
fi
17233
 
        if test $_pkg_short_errors_supported = yes; then
17234
 
                ZRTPCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>&1`
17235
 
        else
17236
 
                ZRTPCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>&1`
17237
 
        fi
17238
 
        # Put the nasty error message in config.log where it belongs
17239
 
        echo "$ZRTPCPP_PKG_ERRORS" >&5
17240
 
 
17241
 
        as_fn_error $? "Missing zrtp development package: libzrtpcpp-dev" "$LINENO" 5
17242
 
elif test $pkg_failed = untried; then
17243
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244
 
$as_echo "no" >&6; }
17245
 
        as_fn_error $? "Missing zrtp development package: libzrtpcpp-dev" "$LINENO" 5
17246
 
else
17247
 
        ZRTPCPP_CFLAGS=$pkg_cv_ZRTPCPP_CFLAGS
17248
 
        ZRTPCPP_LIBS=$pkg_cv_ZRTPCPP_LIBS
17249
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17250
 
$as_echo "yes" >&6; }
17251
 
 
17252
 
fi
17253
 
 
17254
 
 
17255
 
 
17256
 
 
17257
 
DBUS_REQUIRED_VERSION=0.60
17258
 
 
17259
 
pkg_failed=no
17260
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus" >&5
17261
 
$as_echo_n "checking for dbus... " >&6; }
17262
 
 
17263
 
if test -n "$dbus_CFLAGS"; then
17264
 
    pkg_cv_dbus_CFLAGS="$dbus_CFLAGS"
17265
 
 elif test -n "$PKG_CONFIG"; then
17266
 
    if test -n "$PKG_CONFIG" && \
17267
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_REQUIRED_VERSION\""; } >&5
17268
 
  ($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION") 2>&5
17269
 
  ac_status=$?
17270
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17271
 
  test $ac_status = 0; }; then
17272
 
  pkg_cv_dbus_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= $DBUS_REQUIRED_VERSION" 2>/dev/null`
17273
 
else
17274
 
  pkg_failed=yes
17275
 
fi
17276
 
 else
17277
 
    pkg_failed=untried
17278
 
fi
17279
 
if test -n "$dbus_LIBS"; then
17280
 
    pkg_cv_dbus_LIBS="$dbus_LIBS"
17281
 
 elif test -n "$PKG_CONFIG"; then
17282
 
    if test -n "$PKG_CONFIG" && \
17283
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_REQUIRED_VERSION\""; } >&5
17284
 
  ($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION") 2>&5
17285
 
  ac_status=$?
17286
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17287
 
  test $ac_status = 0; }; then
17288
 
  pkg_cv_dbus_LIBS=`$PKG_CONFIG --libs "dbus-1 >= $DBUS_REQUIRED_VERSION" 2>/dev/null`
17289
 
else
17290
 
  pkg_failed=yes
17291
 
fi
17292
 
 else
17293
 
    pkg_failed=untried
17294
 
fi
17295
 
 
17296
 
 
17297
 
 
17298
 
if test $pkg_failed = yes; then
17299
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300
 
$as_echo "no" >&6; }
17301
 
 
17302
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17303
 
        _pkg_short_errors_supported=yes
17304
 
else
17305
 
        _pkg_short_errors_supported=no
17306
 
fi
17307
 
        if test $_pkg_short_errors_supported = yes; then
17308
 
                dbus_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION" 2>&1`
17309
 
        else
17310
 
                dbus_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION" 2>&1`
17311
 
        fi
17312
 
        # Put the nasty error message in config.log where it belongs
17313
 
        echo "$dbus_PKG_ERRORS" >&5
17314
 
 
17315
 
        as_fn_error $? "You need the DBus libraries (version 0.6 or better)
17316
 
                                http://gitorious.org/dbus-cplusplus" "$LINENO" 5
17317
 
elif test $pkg_failed = untried; then
17318
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17319
 
$as_echo "no" >&6; }
17320
 
        as_fn_error $? "You need the DBus libraries (version 0.6 or better)
17321
 
                                http://gitorious.org/dbus-cplusplus" "$LINENO" 5
17322
 
else
17323
 
        dbus_CFLAGS=$pkg_cv_dbus_CFLAGS
17324
 
        dbus_LIBS=$pkg_cv_dbus_LIBS
17325
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17326
 
$as_echo "yes" >&6; }
17327
 
 
17328
 
fi
17329
 
 
17330
 
 
17331
 
 
17332
 
DBUS_API_STABLE_VERSION=1.0.0
17333
 
if test -n "$PKG_CONFIG" && \
17334
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 < \$DBUS_API_STABLE_VERSION\""; } >&5
17335
 
  ($PKG_CONFIG --exists --print-errors "dbus-1 < $DBUS_API_STABLE_VERSION") 2>&5
17336
 
  ac_status=$?
17337
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17338
 
  test $ac_status = 0; }; then
17339
 
 
17340
 
$as_echo "#define DBUS_API_SUBJECT_TO_CHANGE /**/" >>confdefs.h
17341
 
 
17342
 
 
17343
 
fi
17344
 
 
17345
 
DBUS_THREADS_INIT_DEFAULT_VERSION=0.93
17346
 
if test -n "$PKG_CONFIG" && \
17347
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_THREADS_INIT_DEFAULT_VERSION\""; } >&5
17348
 
  ($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_THREADS_INIT_DEFAULT_VERSION") 2>&5
17349
 
  ac_status=$?
17350
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351
 
  test $ac_status = 0; }; then
17352
 
 
17353
 
$as_echo "#define DBUS_HAS_THREADS_INIT_DEFAULT /**/" >>confdefs.h
17354
 
 
17355
 
 
17356
 
fi
17357
 
 
17358
 
DBUS_RECURSIVE_MUTEX_VERSION=0.95
17359
 
if test -n "$PKG_CONFIG" && \
17360
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_RECURSIVE_MUTEX_VERSION\""; } >&5
17361
 
  ($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_RECURSIVE_MUTEX_VERSION") 2>&5
17362
 
  ac_status=$?
17363
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17364
 
  test $ac_status = 0; }; then
17365
 
 
17366
 
$as_echo "#define DBUS_HAS_RECURSIVE_MUTEX /**/" >>confdefs.h
17367
 
 
17368
 
 
17369
 
fi
17370
 
 
17371
 
 
17372
 
 
17373
 
# Check whether --with-debug was given.
17374
 
if test "${with_debug+set}" = set; then :
17375
 
  withval=$with_debug; with_debug=${withval}
17376
 
else
17377
 
  with_debug=no
17378
 
 
17379
 
fi
17380
 
 
17381
 
        if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
17382
 
        CXXFLAGS="$USE_EXCEPTIONS $USER_INCLUDES -g -O0 -Wno-return-type"
17383
 
        else
17384
 
        CXXFLAGS="-g -Wall -O2"
17385
 
        fi
17386
 
 
17387
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate_MM in -lexpat" >&5
17388
 
$as_echo_n "checking for XML_ParserCreate_MM in -lexpat... " >&6; }
17389
 
if test "${ac_cv_lib_expat_XML_ParserCreate_MM+set}" = set; then :
17390
 
  $as_echo_n "(cached) " >&6
17391
 
else
17392
 
  ac_check_lib_save_LIBS=$LIBS
17393
 
LIBS="-lexpat  $LIBS"
17394
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395
 
/* end confdefs.h.  */
17396
 
 
17397
 
/* Override any GCC internal prototype to avoid an error.
17398
 
   Use char because int might match the return type of a GCC
17399
 
   builtin and then its argument prototype would still apply.  */
17400
 
#ifdef __cplusplus
17401
 
extern "C"
17402
 
#endif
17403
 
char XML_ParserCreate_MM ();
17404
 
int
17405
 
main ()
17406
 
{
17407
 
return XML_ParserCreate_MM ();
17408
 
  ;
17409
 
  return 0;
17410
 
}
17411
 
_ACEOF
17412
 
if ac_fn_cxx_try_link "$LINENO"; then :
17413
 
  ac_cv_lib_expat_XML_ParserCreate_MM=yes
17414
 
else
17415
 
  ac_cv_lib_expat_XML_ParserCreate_MM=no
17416
 
fi
17417
 
rm -f core conftest.err conftest.$ac_objext \
17418
 
    conftest$ac_exeext conftest.$ac_ext
17419
 
LIBS=$ac_check_lib_save_LIBS
17420
 
fi
17421
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate_MM" >&5
17422
 
$as_echo "$ac_cv_lib_expat_XML_ParserCreate_MM" >&6; }
17423
 
if test "x$ac_cv_lib_expat_XML_ParserCreate_MM" = x""yes; then :
17424
 
  for ac_header in expat.h
17425
 
do :
17426
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
17427
 
if test "x$ac_cv_header_expat_h" = x""yes; then :
17428
 
  cat >>confdefs.h <<_ACEOF
17429
 
#define HAVE_EXPAT_H 1
17430
 
_ACEOF
17431
 
 have_expat=true
17432
 
else
17433
 
  have_expat=false
17434
 
fi
17435
 
 
17436
 
done
17437
 
 
17438
 
else
17439
 
  have_expat=false
17440
 
fi
17441
 
 
17442
 
 
17443
 
if ! $have_expat; then
17444
 
as_fn_error $? "libexpat development files missing" "$LINENO" 5
17445
 
fi
17446
 
 
17447
 
xml_CFLAGS=
17448
 
xml_LIBS=-lexpat
17449
 
 
17450
 
 
17451
 
 
17452
 
 
17453
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaml_parser_initialize in -lyaml" >&5
17454
 
$as_echo_n "checking for yaml_parser_initialize in -lyaml... " >&6; }
17455
 
if test "${ac_cv_lib_yaml_yaml_parser_initialize+set}" = set; then :
17456
 
  $as_echo_n "(cached) " >&6
17457
 
else
17458
 
  ac_check_lib_save_LIBS=$LIBS
17459
 
LIBS="-lyaml  $LIBS"
17460
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461
 
/* end confdefs.h.  */
17462
 
 
17463
 
/* Override any GCC internal prototype to avoid an error.
17464
 
   Use char because int might match the return type of a GCC
17465
 
   builtin and then its argument prototype would still apply.  */
17466
 
#ifdef __cplusplus
17467
 
extern "C"
17468
 
#endif
17469
 
char yaml_parser_initialize ();
17470
 
int
17471
 
main ()
17472
 
{
17473
 
return yaml_parser_initialize ();
17474
 
  ;
17475
 
  return 0;
17476
 
}
17477
 
_ACEOF
17478
 
if ac_fn_cxx_try_link "$LINENO"; then :
17479
 
  ac_cv_lib_yaml_yaml_parser_initialize=yes
17480
 
else
17481
 
  ac_cv_lib_yaml_yaml_parser_initialize=no
17482
 
fi
17483
 
rm -f core conftest.err conftest.$ac_objext \
17484
 
    conftest$ac_exeext conftest.$ac_ext
17485
 
LIBS=$ac_check_lib_save_LIBS
17486
 
fi
17487
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yaml_yaml_parser_initialize" >&5
17488
 
$as_echo "$ac_cv_lib_yaml_yaml_parser_initialize" >&6; }
17489
 
if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = x""yes; then :
17490
 
  for ac_header in yaml.h
17491
 
do :
17492
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "yaml.h" "ac_cv_header_yaml_h" "$ac_includes_default"
17493
 
if test "x$ac_cv_header_yaml_h" = x""yes; then :
17494
 
  cat >>confdefs.h <<_ACEOF
17495
 
#define HAVE_YAML_H 1
17496
 
_ACEOF
17497
 
 have_yaml=true
17498
 
else
17499
 
  have_yaml=false
17500
 
fi
17501
 
 
17502
 
done
17503
 
 
17504
 
else
17505
 
  have_yaml=false
17506
 
fi
17507
 
 
17508
 
 
17509
 
if test "$have_yaml" = "false"; then
17510
 
as_fn_error $? "libyaml development files missing" "$LINENO" 5
17511
 
fi
17512
 
 
17513
 
yaml_CFLAGS=
17514
 
yaml_LIBS=-lyaml
17515
 
 
17516
 
 
17517
 
 
17518
 
 
17519
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17520
 
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17521
 
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
17522
 
  $as_echo_n "(cached) " >&6
17523
 
else
17524
 
  ac_check_lib_save_LIBS=$LIBS
17525
 
LIBS="-lpthread  $LIBS"
17526
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527
 
/* end confdefs.h.  */
17528
 
 
17529
 
/* Override any GCC internal prototype to avoid an error.
17530
 
   Use char because int might match the return type of a GCC
17531
 
   builtin and then its argument prototype would still apply.  */
17532
 
#ifdef __cplusplus
17533
 
extern "C"
17534
 
#endif
17535
 
char pthread_create ();
17536
 
int
17537
 
main ()
17538
 
{
17539
 
return pthread_create ();
17540
 
  ;
17541
 
  return 0;
17542
 
}
17543
 
_ACEOF
17544
 
if ac_fn_cxx_try_link "$LINENO"; then :
17545
 
  ac_cv_lib_pthread_pthread_create=yes
17546
 
else
17547
 
  ac_cv_lib_pthread_pthread_create=no
17548
 
fi
17549
 
rm -f core conftest.err conftest.$ac_objext \
17550
 
    conftest$ac_exeext conftest.$ac_ext
17551
 
LIBS=$ac_check_lib_save_LIBS
17552
 
fi
17553
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17554
 
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17555
 
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
17556
 
  for ac_header in pthread.h
17557
 
do :
17558
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17559
 
if test "x$ac_cv_header_pthread_h" = x""yes; then :
17560
 
  cat >>confdefs.h <<_ACEOF
17561
 
#define HAVE_PTHREAD_H 1
17562
 
_ACEOF
17563
 
 have_pthread=true
17564
 
else
17565
 
  have_pthread=false
17566
 
fi
17567
 
 
17568
 
done
17569
 
 
17570
 
else
17571
 
  have_pthread=false
17572
 
fi
17573
 
 
17574
 
 
17575
 
        if test "$have_pthread" = "false"; then
17576
 
as_fn_error $? "You need the POSIX Thread library (pthreads)" "$LINENO" 5
17577
 
        fi
17578
 
 
17579
 
 
17580
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_free in -lpcre" >&5
17581
 
$as_echo_n "checking for pcre_free in -lpcre... " >&6; }
17582
 
if test "${ac_cv_lib_pcre_pcre_free+set}" = set; then :
17583
 
  $as_echo_n "(cached) " >&6
17584
 
else
17585
 
  ac_check_lib_save_LIBS=$LIBS
17586
 
LIBS="-lpcre  $LIBS"
17587
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588
 
/* end confdefs.h.  */
17589
 
 
17590
 
/* Override any GCC internal prototype to avoid an error.
17591
 
   Use char because int might match the return type of a GCC
17592
 
   builtin and then its argument prototype would still apply.  */
17593
 
#ifdef __cplusplus
17594
 
extern "C"
17595
 
#endif
17596
 
char pcre_free ();
17597
 
int
17598
 
main ()
17599
 
{
17600
 
return pcre_free ();
17601
 
  ;
17602
 
  return 0;
17603
 
}
17604
 
_ACEOF
17605
 
if ac_fn_cxx_try_link "$LINENO"; then :
17606
 
  ac_cv_lib_pcre_pcre_free=yes
17607
 
else
17608
 
  ac_cv_lib_pcre_pcre_free=no
17609
 
fi
17610
 
rm -f core conftest.err conftest.$ac_objext \
17611
 
    conftest$ac_exeext conftest.$ac_ext
17612
 
LIBS=$ac_check_lib_save_LIBS
17613
 
fi
17614
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_free" >&5
17615
 
$as_echo "$ac_cv_lib_pcre_pcre_free" >&6; }
17616
 
if test "x$ac_cv_lib_pcre_pcre_free" = x""yes; then :
17617
 
  for ac_header in pcre.h
17618
 
do :
17619
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
17620
 
if test "x$ac_cv_header_pcre_h" = x""yes; then :
17621
 
  cat >>confdefs.h <<_ACEOF
17622
 
#define HAVE_PCRE_H 1
17623
 
_ACEOF
17624
 
 have_pcre=true
17625
 
else
17626
 
  have_pcre=false
17627
 
fi
17628
 
 
17629
 
done
17630
 
 
17631
 
else
17632
 
  have_pcre=false
17633
 
fi
17634
 
 
17635
 
 
17636
 
        if test "$have_pcre" = "false"; then
17637
 
as_fn_error $? "You need the Perl-Compatible Regular Expressions library (pcre)" "$LINENO" 5
17638
 
        fi
17639
 
 
17640
 
        PCRE_LIBS=-lpcre
17641
 
        PCRE_CFLAGS=
17642
 
 
17643
 
 
17644
 
 
17645
 
 
17646
 
 
17647
 
 
17648
 
# For the tools/, we need libdbus-c++ for the "build" architecture as well
17649
 
 
17650
 
         if test "$cross_compiling" = "yes"; then
17651
 
  CROSS_COMPILING_TRUE=
17652
 
  CROSS_COMPILING_FALSE='#'
17653
 
else
17654
 
  CROSS_COMPILING_TRUE='#'
17655
 
  CROSS_COMPILING_FALSE=
17656
 
fi
17657
 
 
17658
 
 
17659
 
 
17660
 
# Check whether --with-build-libdbus-cxx was given.
17661
 
if test "${with_build_libdbus_cxx+set}" = set; then :
17662
 
  withval=$with_build_libdbus_cxx;  BUILD_LIBDBUS_CXX_DIR=${withval}
17663
 
else
17664
 
   BUILD_LIBDBUS_CXX_DIR="\$(top_builddir)"
17665
 
 
17666
 
fi
17667
 
 
17668
 
 
17669
 
 
17670
 
                CPPUNIT_MIN_VERSION=1.12
17671
 
 
17672
 
pkg_failed=no
17673
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
17674
 
$as_echo_n "checking for CPPUNIT... " >&6; }
17675
 
 
17676
 
if test -n "$CPPUNIT_CFLAGS"; then
17677
 
    pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
17678
 
 elif test -n "$PKG_CONFIG"; then
17679
 
    if test -n "$PKG_CONFIG" && \
17680
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= \${CPPUNIT_MIN_VERSION}\""; } >&5
17681
 
  ($PKG_CONFIG --exists --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}") 2>&5
17682
 
  ac_status=$?
17683
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17684
 
  test $ac_status = 0; }; then
17685
 
  pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>/dev/null`
17686
 
else
17687
 
  pkg_failed=yes
17688
 
fi
17689
 
 else
17690
 
    pkg_failed=untried
17691
 
fi
17692
 
if test -n "$CPPUNIT_LIBS"; then
17693
 
    pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
17694
 
 elif test -n "$PKG_CONFIG"; then
17695
 
    if test -n "$PKG_CONFIG" && \
17696
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= \${CPPUNIT_MIN_VERSION}\""; } >&5
17697
 
  ($PKG_CONFIG --exists --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}") 2>&5
17698
 
  ac_status=$?
17699
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17700
 
  test $ac_status = 0; }; then
17701
 
  pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>/dev/null`
17702
 
else
17703
 
  pkg_failed=yes
17704
 
fi
17705
 
 else
17706
 
    pkg_failed=untried
17707
 
fi
17708
 
 
17709
 
 
17710
 
 
17711
 
if test $pkg_failed = yes; then
17712
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17713
 
$as_echo "no" >&6; }
17714
 
 
17715
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17716
 
        _pkg_short_errors_supported=yes
17717
 
else
17718
 
        _pkg_short_errors_supported=no
17719
 
fi
17720
 
        if test $_pkg_short_errors_supported = yes; then
17721
 
                CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>&1`
17722
 
        else
17723
 
                CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>&1`
17724
 
        fi
17725
 
        # Put the nasty error message in config.log where it belongs
17726
 
        echo "$CPPUNIT_PKG_ERRORS" >&5
17727
 
 
17728
 
         if test 0 = 1 ; then
17729
 
  BUILD_TEST_TRUE=
17730
 
  BUILD_TEST_FALSE='#'
17731
 
else
17732
 
  BUILD_TEST_TRUE='#'
17733
 
  BUILD_TEST_FALSE=
17734
 
fi
17735
 
 
17736
 
elif test $pkg_failed = untried; then
17737
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17738
 
$as_echo "no" >&6; }
17739
 
         if test 0 = 1 ; then
17740
 
  BUILD_TEST_TRUE=
17741
 
  BUILD_TEST_FALSE='#'
17742
 
else
17743
 
  BUILD_TEST_TRUE='#'
17744
 
  BUILD_TEST_FALSE=
17745
 
fi
17746
 
 
17747
 
else
17748
 
        CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
17749
 
        CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
17750
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17751
 
$as_echo "yes" >&6; }
17752
 
         if test 1 = 1 ; then
17753
 
  BUILD_TEST_TRUE=
17754
 
  BUILD_TEST_FALSE='#'
17755
 
else
17756
 
  BUILD_TEST_TRUE='#'
17757
 
  BUILD_TEST_FALSE=
17758
 
fi
17759
 
 
17760
 
fi
17761
 
 
17762
 
 
17763
 
# check for libgsm1 (doesn't use pkg-config)
17764
 
 
17765
 
# Check whether --with-gsm was given.
17766
 
if test "${with_gsm+set}" = set; then :
17767
 
  withval=$with_gsm;
17768
 
else
17769
 
  with_gsm=yes
17770
 
fi
17771
 
 
17772
 
 
17773
 
LIBGSM=
17774
 
if test "x$with_gsm" != xno; then :
17775
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
17776
 
if test "x$ac_cv_header_gsm_gsm_h" = x""yes; then :
17777
 
 
17778
 
else
17779
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17780
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17781
 
as_fn_error $? "Unable to find the libgsm1 headers (you may need to install the dev package).  You may use --without-gsm to compile without gsm codec support.
17782
 
See \`config.log' for more details" "$LINENO" 5 ; }
17783
 
fi
17784
 
 
17785
 
 
17786
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_decode in -lgsm" >&5
17787
 
$as_echo_n "checking for gsm_decode in -lgsm... " >&6; }
17788
 
if test "${ac_cv_lib_gsm_gsm_decode+set}" = set; then :
17789
 
  $as_echo_n "(cached) " >&6
17790
 
else
17791
 
  ac_check_lib_save_LIBS=$LIBS
17792
 
LIBS="-lgsm  $LIBS"
17793
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794
 
/* end confdefs.h.  */
17795
 
 
17796
 
/* Override any GCC internal prototype to avoid an error.
17797
 
   Use char because int might match the return type of a GCC
17798
 
   builtin and then its argument prototype would still apply.  */
17799
 
#ifdef __cplusplus
17800
 
extern "C"
17801
 
#endif
17802
 
char gsm_decode ();
17803
 
int
17804
 
main ()
17805
 
{
17806
 
return gsm_decode ();
17807
 
  ;
17808
 
  return 0;
17809
 
}
17810
 
_ACEOF
17811
 
if ac_fn_cxx_try_link "$LINENO"; then :
17812
 
  ac_cv_lib_gsm_gsm_decode=yes
17813
 
else
17814
 
  ac_cv_lib_gsm_gsm_decode=no
17815
 
fi
17816
 
rm -f core conftest.err conftest.$ac_objext \
17817
 
    conftest$ac_exeext conftest.$ac_ext
17818
 
LIBS=$ac_check_lib_save_LIBS
17819
 
fi
17820
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_decode" >&5
17821
 
$as_echo "$ac_cv_lib_gsm_gsm_decode" >&6; }
17822
 
if test "x$ac_cv_lib_gsm_gsm_decode" = x""yes; then :
17823
 
  cat >>confdefs.h <<_ACEOF
17824
 
#define HAVE_LIBGSM 1
17825
 
_ACEOF
17826
 
 
17827
 
  LIBS="-lgsm $LIBS"
17828
 
 
17829
 
else
17830
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17831
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17832
 
as_fn_error $? "libgsm link test failed.   You may use --without-gsm to compile without gsm codec support.
17833
 
See \`config.log' for more details" "$LINENO" 5 ; }
17834
 
 
17835
 
fi
17836
 
 
17837
 
 
17838
 
 
17839
 
fi
17840
 
 
17841
 
 
17842
 
$as_echo "#define HAVE_GSM test \"x\$with_gsm\" = \"xyes\"" >>confdefs.h
17843
 
 
17844
 
 if test "x$with_gsm" = "xyes" ; then
17845
 
  BUILD_GSM_TRUE=
17846
 
  BUILD_GSM_FALSE='#'
17847
 
else
17848
 
  BUILD_GSM_TRUE='#'
17849
 
  BUILD_GSM_FALSE=
17850
 
fi
17851
 
 
17852
 
 
17853
 
 
17854
 
# Check whether --with-speex was given.
17855
 
if test "${with_speex+set}" = set; then :
17856
 
  withval=$with_speex;
17857
 
else
17858
 
  with_speex=yes
17859
 
fi
17860
 
 
17861
 
 
17862
 
if test "x$with_speex" != xno; then :
17863
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
17864
 
if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
17865
 
 
17866
 
else
17867
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17868
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17869
 
as_fn_error $? "Unable to find the libspeex headers (you may need to install the dev package).  You may use --without-speex to compile without speex codec support.
17870
 
See \`config.log' for more details" "$LINENO" 5 ; }
17871
 
fi
17872
 
 
17873
 
 
17874
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_decode_int in -lspeex" >&5
17875
 
$as_echo_n "checking for speex_decode_int in -lspeex... " >&6; }
17876
 
if test "${ac_cv_lib_speex_speex_decode_int+set}" = set; then :
17877
 
  $as_echo_n "(cached) " >&6
17878
 
else
17879
 
  ac_check_lib_save_LIBS=$LIBS
17880
 
LIBS="-lspeex  $LIBS"
17881
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882
 
/* end confdefs.h.  */
17883
 
 
17884
 
/* Override any GCC internal prototype to avoid an error.
17885
 
   Use char because int might match the return type of a GCC
17886
 
   builtin and then its argument prototype would still apply.  */
17887
 
#ifdef __cplusplus
17888
 
extern "C"
17889
 
#endif
17890
 
char speex_decode_int ();
17891
 
int
17892
 
main ()
17893
 
{
17894
 
return speex_decode_int ();
17895
 
  ;
17896
 
  return 0;
17897
 
}
17898
 
_ACEOF
17899
 
if ac_fn_cxx_try_link "$LINENO"; then :
17900
 
  ac_cv_lib_speex_speex_decode_int=yes
17901
 
else
17902
 
  ac_cv_lib_speex_speex_decode_int=no
17903
 
fi
17904
 
rm -f core conftest.err conftest.$ac_objext \
17905
 
    conftest$ac_exeext conftest.$ac_ext
17906
 
LIBS=$ac_check_lib_save_LIBS
17907
 
fi
17908
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speex_speex_decode_int" >&5
17909
 
$as_echo "$ac_cv_lib_speex_speex_decode_int" >&6; }
17910
 
if test "x$ac_cv_lib_speex_speex_decode_int" = x""yes; then :
17911
 
  cat >>confdefs.h <<_ACEOF
17912
 
#define HAVE_LIBSPEEX 1
17913
 
_ACEOF
17914
 
 
17915
 
  LIBS="-lspeex $LIBS"
17916
 
 
17917
 
else
17918
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17919
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17920
 
as_fn_error $? "libspeex link test failed.   You may use --without-speex to compile without speex codec support.
17921
 
See \`config.log' for more details" "$LINENO" 5 ; }
17922
 
fi
17923
 
 
17924
 
 
17925
 
fi
17926
 
 
17927
 
 
17928
 
$as_echo "#define HAVE_SPEEX test \"x\$with_speex\" = \"xyes\"" >>confdefs.h
17929
 
 
17930
 
 if test "x$with_speex" = "xyes" ; then
17931
 
  BUILD_SPEEX_TRUE=
17932
 
  BUILD_SPEEX_FALSE='#'
17933
 
else
17934
 
  BUILD_SPEEX_TRUE='#'
17935
 
  BUILD_SPEEX_FALSE=
17936
 
fi
17937
 
 
17938
 
 
17939
 
ac_fn_cxx_check_header_mongrel "$LINENO" "speex/speex_preprocess.h" "ac_cv_header_speex_speex_preprocess_h" "$ac_includes_default"
17940
 
if test "x$ac_cv_header_speex_speex_preprocess_h" = x""yes; then :
17941
 
 
17942
 
else
17943
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17944
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17945
 
as_fn_error $? "Unable to find the libspeexdsp headers (you may need to install the libspeexdsp-dev package) used for Noise Suppression and Automatic Gain Control.
17946
 
See \`config.log' for more details" "$LINENO" 5 ; }
17947
 
fi
17948
 
 
17949
 
 
17950
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_preprocess_run in -lspeexdsp" >&5
17951
 
$as_echo_n "checking for speex_preprocess_run in -lspeexdsp... " >&6; }
17952
 
if test "${ac_cv_lib_speexdsp_speex_preprocess_run+set}" = set; then :
17953
 
  $as_echo_n "(cached) " >&6
17954
 
else
17955
 
  ac_check_lib_save_LIBS=$LIBS
17956
 
LIBS="-lspeexdsp  $LIBS"
17957
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958
 
/* end confdefs.h.  */
17959
 
 
17960
 
/* Override any GCC internal prototype to avoid an error.
17961
 
   Use char because int might match the return type of a GCC
17962
 
   builtin and then its argument prototype would still apply.  */
17963
 
#ifdef __cplusplus
17964
 
extern "C"
17965
 
#endif
17966
 
char speex_preprocess_run ();
17967
 
int
17968
 
main ()
17969
 
{
17970
 
return speex_preprocess_run ();
17971
 
  ;
17972
 
  return 0;
17973
 
}
17974
 
_ACEOF
17975
 
if ac_fn_cxx_try_link "$LINENO"; then :
17976
 
  ac_cv_lib_speexdsp_speex_preprocess_run=yes
17977
 
else
17978
 
  ac_cv_lib_speexdsp_speex_preprocess_run=no
17979
 
fi
17980
 
rm -f core conftest.err conftest.$ac_objext \
17981
 
    conftest$ac_exeext conftest.$ac_ext
17982
 
LIBS=$ac_check_lib_save_LIBS
17983
 
fi
17984
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speexdsp_speex_preprocess_run" >&5
17985
 
$as_echo "$ac_cv_lib_speexdsp_speex_preprocess_run" >&6; }
17986
 
if test "x$ac_cv_lib_speexdsp_speex_preprocess_run" = x""yes; then :
17987
 
  cat >>confdefs.h <<_ACEOF
17988
 
#define HAVE_LIBSPEEXDSP 1
17989
 
_ACEOF
17990
 
 
17991
 
  LIBS="-lspeexdsp $LIBS"
17992
 
 
17993
 
fi
17994
 
 
17995
 
 if test  "x$HAVE_SPEEXDSP" = xyes; then
17996
 
  ENABLE_SPEEXDSP_TRUE=
17997
 
  ENABLE_SPEEXDSP_FALSE='#'
17998
 
else
17999
 
  ENABLE_SPEEXDSP_TRUE='#'
18000
 
  ENABLE_SPEEXDSP_FALSE=
18001
 
fi
18002
 
 
18003
 
 
18004
 
 
18005
 
# check for libcelt
18006
 
 
18007
 
# Check whether --with-celt was given.
18008
 
if test "${with_celt+set}" = set; then :
18009
 
  withval=$with_celt;
18010
 
else
18011
 
  with_celt=yes
18012
 
fi
18013
 
 
18014
 
 
18015
 
if test "x$with_celt" != xno; then :
18016
 
    CELT_CFLAGS C compiler flags for CELT, overriding pkg-config
18017
 
  CELT_LIBS   linker flags for CELT, overriding pkg-config
18018
 
 
18019
 
pkg_failed=no
18020
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CELT" >&5
18021
 
$as_echo_n "checking for CELT... " >&6; }
18022
 
 
18023
 
if test -n "$CELT_CFLAGS"; then
18024
 
    pkg_cv_CELT_CFLAGS="$CELT_CFLAGS"
18025
 
 elif test -n "$PKG_CONFIG"; then
18026
 
    if test -n "$PKG_CONFIG" && \
18027
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.9.1\""; } >&5
18028
 
  ($PKG_CONFIG --exists --print-errors "celt >= 0.9.1") 2>&5
18029
 
  ac_status=$?
18030
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18031
 
  test $ac_status = 0; }; then
18032
 
  pkg_cv_CELT_CFLAGS=`$PKG_CONFIG --cflags "celt >= 0.9.1" 2>/dev/null`
18033
 
else
18034
 
  pkg_failed=yes
18035
 
fi
18036
 
 else
18037
 
    pkg_failed=untried
18038
 
fi
18039
 
if test -n "$CELT_LIBS"; then
18040
 
    pkg_cv_CELT_LIBS="$CELT_LIBS"
18041
 
 elif test -n "$PKG_CONFIG"; then
18042
 
    if test -n "$PKG_CONFIG" && \
18043
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.9.1\""; } >&5
18044
 
  ($PKG_CONFIG --exists --print-errors "celt >= 0.9.1") 2>&5
18045
 
  ac_status=$?
18046
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18047
 
  test $ac_status = 0; }; then
18048
 
  pkg_cv_CELT_LIBS=`$PKG_CONFIG --libs "celt >= 0.9.1" 2>/dev/null`
18049
 
else
18050
 
  pkg_failed=yes
18051
 
fi
18052
 
 else
18053
 
    pkg_failed=untried
18054
 
fi
18055
 
 
18056
 
 
18057
 
 
18058
 
if test $pkg_failed = yes; then
18059
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18060
 
$as_echo "no" >&6; }
18061
 
 
18062
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18063
 
        _pkg_short_errors_supported=yes
18064
 
else
18065
 
        _pkg_short_errors_supported=no
18066
 
fi
18067
 
        if test $_pkg_short_errors_supported = yes; then
18068
 
                CELT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "celt >= 0.9.1" 2>&1`
18069
 
        else
18070
 
                CELT_PKG_ERRORS=`$PKG_CONFIG --print-errors "celt >= 0.9.1" 2>&1`
18071
 
        fi
18072
 
        # Put the nasty error message in config.log where it belongs
18073
 
        echo "$CELT_PKG_ERRORS" >&5
18074
 
 
18075
 
 
18076
 
 
18077
 
pkg_failed=no
18078
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CELT" >&5
18079
 
$as_echo_n "checking for CELT... " >&6; }
18080
 
 
18081
 
if test -n "$CELT_CFLAGS"; then
18082
 
    pkg_cv_CELT_CFLAGS="$CELT_CFLAGS"
18083
 
 elif test -n "$PKG_CONFIG"; then
18084
 
    if test -n "$PKG_CONFIG" && \
18085
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.7.1\""; } >&5
18086
 
  ($PKG_CONFIG --exists --print-errors "celt >= 0.7.1") 2>&5
18087
 
  ac_status=$?
18088
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18089
 
  test $ac_status = 0; }; then
18090
 
  pkg_cv_CELT_CFLAGS=`$PKG_CONFIG --cflags "celt >= 0.7.1" 2>/dev/null`
18091
 
else
18092
 
  pkg_failed=yes
18093
 
fi
18094
 
 else
18095
 
    pkg_failed=untried
18096
 
fi
18097
 
if test -n "$CELT_LIBS"; then
18098
 
    pkg_cv_CELT_LIBS="$CELT_LIBS"
18099
 
 elif test -n "$PKG_CONFIG"; then
18100
 
    if test -n "$PKG_CONFIG" && \
18101
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.7.1\""; } >&5
18102
 
  ($PKG_CONFIG --exists --print-errors "celt >= 0.7.1") 2>&5
18103
 
  ac_status=$?
18104
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105
 
  test $ac_status = 0; }; then
18106
 
  pkg_cv_CELT_LIBS=`$PKG_CONFIG --libs "celt >= 0.7.1" 2>/dev/null`
18107
 
else
18108
 
  pkg_failed=yes
18109
 
fi
18110
 
 else
18111
 
    pkg_failed=untried
18112
 
fi
18113
 
 
18114
 
 
18115
 
 
18116
 
if test $pkg_failed = yes; then
18117
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18118
 
$as_echo "no" >&6; }
18119
 
 
18120
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18121
 
        _pkg_short_errors_supported=yes
18122
 
else
18123
 
        _pkg_short_errors_supported=no
18124
 
fi
18125
 
        if test $_pkg_short_errors_supported = yes; then
18126
 
                CELT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "celt >= 0.7.1" 2>&1`
18127
 
        else
18128
 
                CELT_PKG_ERRORS=`$PKG_CONFIG --print-errors "celt >= 0.7.1" 2>&1`
18129
 
        fi
18130
 
        # Put the nasty error message in config.log where it belongs
18131
 
        echo "$CELT_PKG_ERRORS" >&5
18132
 
 
18133
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18134
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18135
 
as_fn_error $? "libcelt link test failed.   You may use --without-celt to compile without celt codec support.
18136
 
See \`config.log' for more details" "$LINENO" 5 ; }
18137
 
elif test $pkg_failed = untried; then
18138
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139
 
$as_echo "no" >&6; }
18140
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18141
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18142
 
as_fn_error $? "libcelt link test failed.   You may use --without-celt to compile without celt codec support.
18143
 
See \`config.log' for more details" "$LINENO" 5 ; }
18144
 
else
18145
 
        CELT_CFLAGS=$pkg_cv_CELT_CFLAGS
18146
 
        CELT_LIBS=$pkg_cv_CELT_LIBS
18147
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18148
 
$as_echo "yes" >&6; }
18149
 
        with_celt_71=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: Using celt 0.7.1" >&5
18150
 
$as_echo "$as_me: Using celt 0.7.1" >&6;};
18151
 
fi
18152
 
 
18153
 
elif test $pkg_failed = untried; then
18154
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18155
 
$as_echo "no" >&6; }
18156
 
 
18157
 
 
18158
 
pkg_failed=no
18159
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CELT" >&5
18160
 
$as_echo_n "checking for CELT... " >&6; }
18161
 
 
18162
 
if test -n "$CELT_CFLAGS"; then
18163
 
    pkg_cv_CELT_CFLAGS="$CELT_CFLAGS"
18164
 
 elif test -n "$PKG_CONFIG"; then
18165
 
    if test -n "$PKG_CONFIG" && \
18166
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.7.1\""; } >&5
18167
 
  ($PKG_CONFIG --exists --print-errors "celt >= 0.7.1") 2>&5
18168
 
  ac_status=$?
18169
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170
 
  test $ac_status = 0; }; then
18171
 
  pkg_cv_CELT_CFLAGS=`$PKG_CONFIG --cflags "celt >= 0.7.1" 2>/dev/null`
18172
 
else
18173
 
  pkg_failed=yes
18174
 
fi
18175
 
 else
18176
 
    pkg_failed=untried
18177
 
fi
18178
 
if test -n "$CELT_LIBS"; then
18179
 
    pkg_cv_CELT_LIBS="$CELT_LIBS"
18180
 
 elif test -n "$PKG_CONFIG"; then
18181
 
    if test -n "$PKG_CONFIG" && \
18182
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.7.1\""; } >&5
18183
 
  ($PKG_CONFIG --exists --print-errors "celt >= 0.7.1") 2>&5
18184
 
  ac_status=$?
18185
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18186
 
  test $ac_status = 0; }; then
18187
 
  pkg_cv_CELT_LIBS=`$PKG_CONFIG --libs "celt >= 0.7.1" 2>/dev/null`
18188
 
else
18189
 
  pkg_failed=yes
18190
 
fi
18191
 
 else
18192
 
    pkg_failed=untried
18193
 
fi
18194
 
 
18195
 
 
18196
 
 
18197
 
if test $pkg_failed = yes; then
18198
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18199
 
$as_echo "no" >&6; }
18200
 
 
18201
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18202
 
        _pkg_short_errors_supported=yes
18203
 
else
18204
 
        _pkg_short_errors_supported=no
18205
 
fi
18206
 
        if test $_pkg_short_errors_supported = yes; then
18207
 
                CELT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "celt >= 0.7.1" 2>&1`
18208
 
        else
18209
 
                CELT_PKG_ERRORS=`$PKG_CONFIG --print-errors "celt >= 0.7.1" 2>&1`
18210
 
        fi
18211
 
        # Put the nasty error message in config.log where it belongs
18212
 
        echo "$CELT_PKG_ERRORS" >&5
18213
 
 
18214
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18215
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18216
 
as_fn_error $? "libcelt link test failed.   You may use --without-celt to compile without celt codec support.
18217
 
See \`config.log' for more details" "$LINENO" 5 ; }
18218
 
elif test $pkg_failed = untried; then
18219
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220
 
$as_echo "no" >&6; }
18221
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18222
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18223
 
as_fn_error $? "libcelt link test failed.   You may use --without-celt to compile without celt codec support.
18224
 
See \`config.log' for more details" "$LINENO" 5 ; }
18225
 
else
18226
 
        CELT_CFLAGS=$pkg_cv_CELT_CFLAGS
18227
 
        CELT_LIBS=$pkg_cv_CELT_LIBS
18228
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18229
 
$as_echo "yes" >&6; }
18230
 
        with_celt_71=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: Using celt 0.7.1" >&5
18231
 
$as_echo "$as_me: Using celt 0.7.1" >&6;};
18232
 
fi
18233
 
 
18234
 
else
18235
 
        CELT_CFLAGS=$pkg_cv_CELT_CFLAGS
18236
 
        CELT_LIBS=$pkg_cv_CELT_LIBS
18237
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18238
 
$as_echo "yes" >&6; }
18239
 
 
18240
 
                        with_celt_91=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: Using celt 0.9.1" >&5
18241
 
$as_echo "$as_me: Using celt 0.9.1" >&6;};
18242
 
 
18243
 
fi
18244
 
 
18245
 
fi
18246
 
 
18247
 
# AC_SUBST(BUILD_CELT)
18248
 
# AM_CONDITIONAL(BUILD_CELT, test "x$with_celt" = "xyes" )
18249
 
 if test "x$with_celt_91" = "xyes" ; then
18250
 
  BUILD_CELT_91_TRUE=
18251
 
  BUILD_CELT_91_FALSE='#'
18252
 
else
18253
 
  BUILD_CELT_91_TRUE='#'
18254
 
  BUILD_CELT_91_FALSE=
18255
 
fi
18256
 
 
18257
 
 if test "x$with_celt_71" = "xyes" ; then
18258
 
  BUILD_CELT_71_TRUE=
18259
 
  BUILD_CELT_71_FALSE='#'
18260
 
else
18261
 
  BUILD_CELT_71_TRUE='#'
18262
 
  BUILD_CELT_71_FALSE=
18263
 
fi
18264
 
 
18265
 
 
18266
 
 
18267
 
 
18268
 
# Check whether --with-iax2 was given.
18269
 
if test "${with_iax2+set}" = set; then :
18270
 
  withval=$with_iax2;
18271
 
else
18272
 
  with_iax2=yes
18273
 
fi
18274
 
 
18275
 
 
18276
 
 
18277
 
$as_echo "#define HAVE_IAX test \"x\$with_iax2\" = \"xyes\"" >>confdefs.h
18278
 
 
18279
 
 if test "x$with_iax2" = "xyes" ; then
18280
 
  USE_IAX_TRUE=
18281
 
  USE_IAX_FALSE='#'
18282
 
else
18283
 
  USE_IAX_TRUE='#'
18284
 
  USE_IAX_FALSE=
18285
 
fi
18286
 
 
18287
 
 
18288
 
 
18289
 
# Check whether --with-networkmanager was given.
18290
 
if test "${with_networkmanager+set}" = set; then :
18291
 
  withval=$with_networkmanager;
18292
 
else
18293
 
  with_networkmanager=yes
18294
 
fi
18295
 
 
18296
 
 
18297
 
 if test "x$with_networkmanager" = "xyes" ; then
18298
 
  USE_NETWORKMANAGER_TRUE=
18299
 
  USE_NETWORKMANAGER_FALSE='#'
18300
 
else
18301
 
  USE_NETWORKMANAGER_TRUE='#'
18302
 
  USE_NETWORKMANAGER_FALSE=
18303
 
fi
18304
 
 
18305
 
 
18306
 
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
18307
 
# ----------------------------------------------------------------------------
18308
 
 
18309
 
        # Acutally perform the doxygen check
18310
 
 
18311
 
                # Check whether --enable-doxygen was given.
18312
 
if test "${enable_doxygen+set}" = set; then :
18313
 
  enableval=$enable_doxygen;
18314
 
fi
18315
 
 
18316
 
                # Check whether --enable-dot was given.
18317
 
if test "${enable_dot+set}" = set; then :
18318
 
  enableval=$enable_dot;
18319
 
fi
18320
 
 
18321
 
                # Check whether --enable-html-docs was given.
18322
 
if test "${enable_html_docs+set}" = set; then :
18323
 
  enableval=$enable_html_docs;
18324
 
else
18325
 
   enable_html_docs=yes
18326
 
fi
18327
 
 
18328
 
                # Check whether --enable-latex-docs was given.
18329
 
if test "${enable_latex_docs+set}" = set; then :
18330
 
  enableval=$enable_latex_docs;
18331
 
else
18332
 
   enable_latex_docs=no
18333
 
fi
18334
 
 
18335
 
                if test "x$enable_doxygen" = xno; then
18336
 
                enable_doc=no
18337
 
                else
18338
 
                # Extract the first word of "doxygen", so it can be a program name with args.
18339
 
set dummy doxygen; ac_word=$2
18340
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18341
 
$as_echo_n "checking for $ac_word... " >&6; }
18342
 
if test "${ac_cv_path_DOXYGEN+set}" = set; then :
18343
 
  $as_echo_n "(cached) " >&6
18344
 
else
18345
 
  case $DOXYGEN in
18346
 
  [\\/]* | ?:[\\/]*)
18347
 
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18348
 
  ;;
18349
 
  *)
18350
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18351
 
for as_dir in $PATH
18352
 
do
18353
 
  IFS=$as_save_IFS
18354
 
  test -z "$as_dir" && as_dir=.
18355
 
    for ac_exec_ext in '' $ac_executable_extensions; do
18356
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18357
 
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18358
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18359
 
    break 2
18360
 
  fi
18361
 
done
18362
 
  done
18363
 
IFS=$as_save_IFS
18364
 
 
18365
 
  ;;
18366
 
esac
18367
 
fi
18368
 
DOXYGEN=$ac_cv_path_DOXYGEN
18369
 
if test -n "$DOXYGEN"; then
18370
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18371
 
$as_echo "$DOXYGEN" >&6; }
18372
 
else
18373
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18374
 
$as_echo "no" >&6; }
18375
 
fi
18376
 
 
18377
 
 
18378
 
                if test x$DOXYGEN = x; then
18379
 
                if test "x$enable_doxygen" = xyes; then
18380
 
                as_fn_error $? "could not find doxygen" "$LINENO" 5
18381
 
                fi
18382
 
                enable_doc=no
18383
 
                else
18384
 
                enable_doc=yes
18385
 
                # Extract the first word of "dot", so it can be a program name with args.
18386
 
set dummy dot; ac_word=$2
18387
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18388
 
$as_echo_n "checking for $ac_word... " >&6; }
18389
 
if test "${ac_cv_path_DOT+set}" = set; then :
18390
 
  $as_echo_n "(cached) " >&6
18391
 
else
18392
 
  case $DOT in
18393
 
  [\\/]* | ?:[\\/]*)
18394
 
  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18395
 
  ;;
18396
 
  *)
18397
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398
 
for as_dir in $PATH
18399
 
do
18400
 
  IFS=$as_save_IFS
18401
 
  test -z "$as_dir" && as_dir=.
18402
 
    for ac_exec_ext in '' $ac_executable_extensions; do
18403
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18404
 
    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18405
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18406
 
    break 2
18407
 
  fi
18408
 
done
18409
 
  done
18410
 
IFS=$as_save_IFS
18411
 
 
18412
 
  ;;
18413
 
esac
18414
 
fi
18415
 
DOT=$ac_cv_path_DOT
18416
 
if test -n "$DOT"; then
18417
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18418
 
$as_echo "$DOT" >&6; }
18419
 
else
18420
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18421
 
$as_echo "no" >&6; }
18422
 
fi
18423
 
 
18424
 
 
18425
 
                fi
18426
 
                fi
18427
 
                 if test x$enable_doc = xyes; then
18428
 
  DOC_TRUE=
18429
 
  DOC_FALSE='#'
18430
 
else
18431
 
  DOC_TRUE='#'
18432
 
  DOC_FALSE=
18433
 
fi
18434
 
 
18435
 
 
18436
 
        if test x$DOT = x; then
18437
 
        if test "x$enable_dot" = xyes; then
18438
 
        as_fn_error $? "could not find dot" "$LINENO" 5
18439
 
        fi
18440
 
        enable_dot=no
18441
 
        else
18442
 
        enable_dot=yes
18443
 
        fi
18444
 
         if test x$enable_doc = xtrue; then
18445
 
  ENABLE_DOXYGEN_TRUE=
18446
 
  ENABLE_DOXYGEN_FALSE='#'
18447
 
else
18448
 
  ENABLE_DOXYGEN_TRUE='#'
18449
 
  ENABLE_DOXYGEN_FALSE=
18450
 
fi
18451
 
 
18452
 
 
18453
 
 
18454
 
 
18455
 
 
18456
 
 
18457
 
                sflphone_datadir=$datadir/sflphone
18458
 
 
18459
 
 
18460
 
                DBUS_SERVICES_DIR="$datadir/dbus-1/services"
18461
 
 
18462
 
 
18463
 
cat >>confdefs.h <<_ACEOF
18464
 
#define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
18465
 
_ACEOF
18466
 
 
18467
 
 
18468
 
# Go!
18469
 
 
18470
 
 
18471
 
        cat >confcache <<\_ACEOF
18472
 
# This file is a shell script that caches the results of configure
18473
 
# tests run on this system so they can be shared between configure
18474
 
# scripts and configure runs, see configure's option --config-cache.
18475
 
# It is not useful on other systems.  If it contains results you don't
18476
 
# want to keep, you may remove or edit it.
18477
 
#
18478
 
# config.status only pays attention to the cache file if you give it
18479
 
# the --recheck option to rerun configure.
18480
 
#
18481
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
18482
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
18483
 
# following values.
18484
 
 
18485
 
_ACEOF
18486
 
 
18487
 
# The following way of writing the cache mishandles newlines in values,
18488
 
# but we know of no workaround that is simple, portable, and efficient.
18489
 
# So, we kill variables containing newlines.
18490
 
# Ultrix sh set writes to stderr and can't be redirected directly,
18491
 
# and sets the high bit in the cache file unless we assign to the vars.
18492
 
(
18493
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18494
 
    eval ac_val=\$$ac_var
18495
 
    case $ac_val in #(
18496
 
    *${as_nl}*)
18497
 
      case $ac_var in #(
18498
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18499
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18500
 
      esac
18501
 
      case $ac_var in #(
18502
 
      _ | IFS | as_nl) ;; #(
18503
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18504
 
      *) { eval $ac_var=; unset $ac_var;} ;;
18505
 
      esac ;;
18506
 
    esac
18507
 
  done
18508
 
 
18509
 
  (set) 2>&1 |
18510
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18511
 
    *${as_nl}ac_space=\ *)
18512
 
      # `set' does not quote correctly, so add quotes: double-quote
18513
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
18514
 
      sed -n \
18515
 
        "s/'/'\\\\''/g;
18516
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18517
 
      ;; #(
18518
 
    *)
18519
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
18520
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18521
 
      ;;
18522
 
    esac |
18523
 
    sort
18524
 
) |
18525
 
  sed '
18526
 
     /^ac_cv_env_/b end
18527
 
     t clear
18528
 
     :clear
18529
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18530
 
     t end
18531
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18532
 
     :end' >>confcache
18533
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18534
 
  if test -w "$cache_file"; then
18535
 
    test "x$cache_file" != "x/dev/null" &&
18536
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18537
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
18538
 
    cat confcache >$cache_file
18539
 
  else
18540
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18541
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18542
 
  fi
18543
 
fi
18544
 
rm -f confcache
18545
 
 
18546
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
18547
 
# Let make expand exec_prefix.
18548
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18549
 
 
18550
 
DEFS=-DHAVE_CONFIG_H
18551
 
 
18552
 
ac_libobjs=
18553
 
ac_ltlibobjs=
18554
 
U=
18555
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18556
 
  # 1. Remove the extension, and $U if already installed.
18557
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18558
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18559
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18560
 
  #    will be set to the directory where LIBOBJS objects are built.
18561
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18562
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18563
 
done
18564
 
LIBOBJS=$ac_libobjs
18565
 
 
18566
 
LTLIBOBJS=$ac_ltlibobjs
18567
 
 
18568
 
 
18569
 
 if test -n "$EXEEXT"; then
18570
 
  am__EXEEXT_TRUE=
18571
 
  am__EXEEXT_FALSE='#'
18572
 
else
18573
 
  am__EXEEXT_TRUE='#'
18574
 
  am__EXEEXT_FALSE=
18575
 
fi
18576
 
 
18577
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18578
 
  as_fn_error $? "conditional \"AMDEP\" was never defined.
18579
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18580
 
fi
18581
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18582
 
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18583
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18584
 
fi
18585
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18586
 
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18587
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18588
 
fi
18589
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18590
 
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18591
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18592
 
fi
18593
 
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
18594
 
  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
18595
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18596
 
fi
18597
 
if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then
18598
 
  as_fn_error $? "conditional \"BUILD_TEST\" was never defined.
18599
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18600
 
fi
18601
 
if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then
18602
 
  as_fn_error $? "conditional \"BUILD_TEST\" was never defined.
18603
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18604
 
fi
18605
 
if test -z "${BUILD_GSM_TRUE}" && test -z "${BUILD_GSM_FALSE}"; then
18606
 
  as_fn_error $? "conditional \"BUILD_GSM\" was never defined.
18607
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18608
 
fi
18609
 
if test -z "${BUILD_SPEEX_TRUE}" && test -z "${BUILD_SPEEX_FALSE}"; then
18610
 
  as_fn_error $? "conditional \"BUILD_SPEEX\" was never defined.
18611
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18612
 
fi
18613
 
if test -z "${ENABLE_SPEEXDSP_TRUE}" && test -z "${ENABLE_SPEEXDSP_FALSE}"; then
18614
 
  as_fn_error $? "conditional \"ENABLE_SPEEXDSP\" was never defined.
18615
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18616
 
fi
18617
 
if test -z "${BUILD_CELT_91_TRUE}" && test -z "${BUILD_CELT_91_FALSE}"; then
18618
 
  as_fn_error $? "conditional \"BUILD_CELT_91\" was never defined.
18619
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18620
 
fi
18621
 
if test -z "${BUILD_CELT_71_TRUE}" && test -z "${BUILD_CELT_71_FALSE}"; then
18622
 
  as_fn_error $? "conditional \"BUILD_CELT_71\" was never defined.
18623
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18624
 
fi
18625
 
if test -z "${USE_IAX_TRUE}" && test -z "${USE_IAX_FALSE}"; then
18626
 
  as_fn_error $? "conditional \"USE_IAX\" was never defined.
18627
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18628
 
fi
18629
 
if test -z "${USE_NETWORKMANAGER_TRUE}" && test -z "${USE_NETWORKMANAGER_FALSE}"; then
18630
 
  as_fn_error $? "conditional \"USE_NETWORKMANAGER\" was never defined.
18631
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18632
 
fi
18633
 
if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
18634
 
  as_fn_error $? "conditional \"DOC\" was never defined.
18635
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18636
 
fi
18637
 
if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
18638
 
  as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
18639
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18640
 
fi
18641
 
 
18642
 
: ${CONFIG_STATUS=./config.status}
18643
 
ac_write_fail=0
18644
 
ac_clean_files_save=$ac_clean_files
18645
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18646
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18647
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18648
 
as_write_fail=0
18649
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18650
 
#! $SHELL
18651
 
# Generated by $as_me.
18652
 
# Run this file to recreate the current configuration.
18653
 
# Compiler output produced by configure, useful for debugging
18654
 
# configure, is in config.log if it exists.
18655
 
 
18656
 
debug=false
18657
 
ac_cs_recheck=false
18658
 
ac_cs_silent=false
18659
 
 
18660
 
SHELL=\${CONFIG_SHELL-$SHELL}
18661
 
export SHELL
18662
 
_ASEOF
18663
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18664
 
## -------------------- ##
18665
 
## M4sh Initialization. ##
18666
 
## -------------------- ##
18667
 
 
18668
 
# Be more Bourne compatible
18669
 
DUALCASE=1; export DUALCASE # for MKS sh
18670
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18671
 
  emulate sh
18672
 
  NULLCMD=:
18673
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18674
 
  # is contrary to our usage.  Disable this feature.
18675
 
  alias -g '${1+"$@"}'='"$@"'
18676
 
  setopt NO_GLOB_SUBST
18677
 
else
18678
 
  case `(set -o) 2>/dev/null` in #(
18679
 
  *posix*) :
18680
 
    set -o posix ;; #(
18681
 
  *) :
18682
 
     ;;
18683
 
esac
18684
 
fi
18685
 
 
18686
 
 
18687
 
as_nl='
18688
 
'
18689
 
export as_nl
18690
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
18691
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18692
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18693
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18694
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
18695
 
# but without wasting forks for bash or zsh.
18696
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
18697
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18698
 
  as_echo='print -r --'
18699
 
  as_echo_n='print -rn --'
18700
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18701
 
  as_echo='printf %s\n'
18702
 
  as_echo_n='printf %s'
18703
 
else
18704
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18705
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18706
 
    as_echo_n='/usr/ucb/echo -n'
18707
 
  else
18708
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18709
 
    as_echo_n_body='eval
18710
 
      arg=$1;
18711
 
      case $arg in #(
18712
 
      *"$as_nl"*)
18713
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
18714
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18715
 
      esac;
18716
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18717
 
    '
18718
 
    export as_echo_n_body
18719
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
18720
 
  fi
18721
 
  export as_echo_body
18722
 
  as_echo='sh -c $as_echo_body as_echo'
18723
 
fi
18724
 
 
18725
 
# The user is always right.
18726
 
if test "${PATH_SEPARATOR+set}" != set; then
18727
 
  PATH_SEPARATOR=:
18728
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18729
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18730
 
      PATH_SEPARATOR=';'
18731
 
  }
18732
 
fi
18733
 
 
18734
 
 
18735
 
# IFS
18736
 
# We need space, tab and new line, in precisely that order.  Quoting is
18737
 
# there to prevent editors from complaining about space-tab.
18738
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18739
 
# splitting by setting IFS to empty value.)
18740
 
IFS=" ""        $as_nl"
18741
 
 
18742
 
# Find who we are.  Look in the path if we contain no directory separator.
18743
 
case $0 in #((
18744
 
  *[\\/]* ) as_myself=$0 ;;
18745
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746
 
for as_dir in $PATH
18747
 
do
18748
 
  IFS=$as_save_IFS
18749
 
  test -z "$as_dir" && as_dir=.
18750
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18751
 
  done
18752
 
IFS=$as_save_IFS
18753
 
 
18754
 
     ;;
18755
 
esac
18756
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
18757
 
# in which case we are not to be found in the path.
18758
 
if test "x$as_myself" = x; then
18759
 
  as_myself=$0
18760
 
fi
18761
 
if test ! -f "$as_myself"; then
18762
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18763
 
  exit 1
18764
 
fi
18765
 
 
18766
 
# Unset variables that we do not need and which cause bugs (e.g. in
18767
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18768
 
# suppresses any "Segmentation fault" message there.  '((' could
18769
 
# trigger a bug in pdksh 5.2.14.
18770
 
for as_var in BASH_ENV ENV MAIL MAILPATH
18771
 
do eval test x\${$as_var+set} = xset \
18772
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18773
 
done
18774
 
PS1='$ '
18775
 
PS2='> '
18776
 
PS4='+ '
18777
 
 
18778
 
# NLS nuisances.
18779
 
LC_ALL=C
18780
 
export LC_ALL
18781
 
LANGUAGE=C
18782
 
export LANGUAGE
18783
 
 
18784
 
# CDPATH.
18785
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18786
 
 
18787
 
 
18788
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
18789
 
# ----------------------------------------
18790
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18791
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18792
 
# script with STATUS, using 1 if that was 0.
18793
 
as_fn_error ()
18794
 
{
18795
 
  as_status=$1; test $as_status -eq 0 && as_status=1
18796
 
  if test "$4"; then
18797
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18798
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18799
 
  fi
18800
 
  $as_echo "$as_me: error: $2" >&2
18801
 
  as_fn_exit $as_status
18802
 
} # as_fn_error
18803
 
 
18804
 
 
18805
 
# as_fn_set_status STATUS
18806
 
# -----------------------
18807
 
# Set $? to STATUS, without forking.
18808
 
as_fn_set_status ()
18809
 
{
18810
 
  return $1
18811
 
} # as_fn_set_status
18812
 
 
18813
 
# as_fn_exit STATUS
18814
 
# -----------------
18815
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18816
 
as_fn_exit ()
18817
 
{
18818
 
  set +e
18819
 
  as_fn_set_status $1
18820
 
  exit $1
18821
 
} # as_fn_exit
18822
 
 
18823
 
# as_fn_unset VAR
18824
 
# ---------------
18825
 
# Portably unset VAR.
18826
 
as_fn_unset ()
18827
 
{
18828
 
  { eval $1=; unset $1;}
18829
 
}
18830
 
as_unset=as_fn_unset
18831
 
# as_fn_append VAR VALUE
18832
 
# ----------------------
18833
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
18834
 
# advantage of any shell optimizations that allow amortized linear growth over
18835
 
# repeated appends, instead of the typical quadratic growth present in naive
18836
 
# implementations.
18837
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18838
 
  eval 'as_fn_append ()
18839
 
  {
18840
 
    eval $1+=\$2
18841
 
  }'
18842
 
else
18843
 
  as_fn_append ()
18844
 
  {
18845
 
    eval $1=\$$1\$2
18846
 
  }
18847
 
fi # as_fn_append
18848
 
 
18849
 
# as_fn_arith ARG...
18850
 
# ------------------
18851
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
18852
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
18853
 
# must be portable across $(()) and expr.
18854
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18855
 
  eval 'as_fn_arith ()
18856
 
  {
18857
 
    as_val=$(( $* ))
18858
 
  }'
18859
 
else
18860
 
  as_fn_arith ()
18861
 
  {
18862
 
    as_val=`expr "$@" || test $? -eq 1`
18863
 
  }
18864
 
fi # as_fn_arith
18865
 
 
18866
 
 
18867
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
18868
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18869
 
  as_expr=expr
18870
 
else
18871
 
  as_expr=false
18872
 
fi
18873
 
 
18874
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18875
 
  as_basename=basename
18876
 
else
18877
 
  as_basename=false
18878
 
fi
18879
 
 
18880
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18881
 
  as_dirname=dirname
18882
 
else
18883
 
  as_dirname=false
18884
 
fi
18885
 
 
18886
 
as_me=`$as_basename -- "$0" ||
18887
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18888
 
         X"$0" : 'X\(//\)$' \| \
18889
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18890
 
$as_echo X/"$0" |
18891
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
18892
 
            s//\1/
18893
 
            q
18894
 
          }
18895
 
          /^X\/\(\/\/\)$/{
18896
 
            s//\1/
18897
 
            q
18898
 
          }
18899
 
          /^X\/\(\/\).*/{
18900
 
            s//\1/
18901
 
            q
18902
 
          }
18903
 
          s/.*/./; q'`
18904
 
 
18905
 
# Avoid depending upon Character Ranges.
18906
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18907
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18908
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18909
 
as_cr_digits='0123456789'
18910
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
18911
 
 
18912
 
ECHO_C= ECHO_N= ECHO_T=
18913
 
case `echo -n x` in #(((((
18914
 
-n*)
18915
 
  case `echo 'xy\c'` in
18916
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18917
 
  xy)  ECHO_C='\c';;
18918
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18919
 
       ECHO_T=' ';;
18920
 
  esac;;
18921
 
*)
18922
 
  ECHO_N='-n';;
18923
 
esac
18924
 
 
18925
 
rm -f conf$$ conf$$.exe conf$$.file
18926
 
if test -d conf$$.dir; then
18927
 
  rm -f conf$$.dir/conf$$.file
18928
 
else
18929
 
  rm -f conf$$.dir
18930
 
  mkdir conf$$.dir 2>/dev/null
18931
 
fi
18932
 
if (echo >conf$$.file) 2>/dev/null; then
18933
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18934
 
    as_ln_s='ln -s'
18935
 
    # ... but there are two gotchas:
18936
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18937
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18938
 
    # In both cases, we have to default to `cp -p'.
18939
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18940
 
      as_ln_s='cp -p'
18941
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
18942
 
    as_ln_s=ln
18943
 
  else
18944
 
    as_ln_s='cp -p'
18945
 
  fi
18946
 
else
18947
 
  as_ln_s='cp -p'
18948
 
fi
18949
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18950
 
rmdir conf$$.dir 2>/dev/null
18951
 
 
18952
 
 
18953
 
# as_fn_mkdir_p
18954
 
# -------------
18955
 
# Create "$as_dir" as a directory, including parents if necessary.
18956
 
as_fn_mkdir_p ()
18957
 
{
18958
 
 
18959
 
  case $as_dir in #(
18960
 
  -*) as_dir=./$as_dir;;
18961
 
  esac
18962
 
  test -d "$as_dir" || eval $as_mkdir_p || {
18963
 
    as_dirs=
18964
 
    while :; do
18965
 
      case $as_dir in #(
18966
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18967
 
      *) as_qdir=$as_dir;;
18968
 
      esac
18969
 
      as_dirs="'$as_qdir' $as_dirs"
18970
 
      as_dir=`$as_dirname -- "$as_dir" ||
18971
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18972
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
18973
 
         X"$as_dir" : 'X\(//\)$' \| \
18974
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18975
 
$as_echo X"$as_dir" |
18976
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18977
 
            s//\1/
18978
 
            q
18979
 
          }
18980
 
          /^X\(\/\/\)[^/].*/{
18981
 
            s//\1/
18982
 
            q
18983
 
          }
18984
 
          /^X\(\/\/\)$/{
18985
 
            s//\1/
18986
 
            q
18987
 
          }
18988
 
          /^X\(\/\).*/{
18989
 
            s//\1/
18990
 
            q
18991
 
          }
18992
 
          s/.*/./; q'`
18993
 
      test -d "$as_dir" && break
18994
 
    done
18995
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
18996
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18997
 
 
18998
 
 
18999
 
} # as_fn_mkdir_p
19000
 
if mkdir -p . 2>/dev/null; then
19001
 
  as_mkdir_p='mkdir -p "$as_dir"'
19002
 
else
19003
 
  test -d ./-p && rmdir ./-p
19004
 
  as_mkdir_p=false
19005
 
fi
19006
 
 
19007
 
if test -x / >/dev/null 2>&1; then
19008
 
  as_test_x='test -x'
19009
 
else
19010
 
  if ls -dL / >/dev/null 2>&1; then
19011
 
    as_ls_L_option=L
19012
 
  else
19013
 
    as_ls_L_option=
19014
 
  fi
19015
 
  as_test_x='
19016
 
    eval sh -c '\''
19017
 
      if test -d "$1"; then
19018
 
        test -d "$1/.";
19019
 
      else
19020
 
        case $1 in #(
19021
 
        -*)set "./$1";;
19022
 
        esac;
19023
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19024
 
        ???[sx]*):;;*)false;;esac;fi
19025
 
    '\'' sh
19026
 
  '
19027
 
fi
19028
 
as_executable_p=$as_test_x
19029
 
 
19030
 
# Sed expression to map a string onto a valid CPP name.
19031
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19032
 
 
19033
 
# Sed expression to map a string onto a valid variable name.
19034
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19035
 
 
19036
 
 
19037
 
exec 6>&1
19038
 
## ----------------------------------- ##
19039
 
## Main body of $CONFIG_STATUS script. ##
19040
 
## ----------------------------------- ##
19041
 
_ASEOF
19042
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19043
 
 
19044
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19045
 
# Save the log message, to keep $0 and so on meaningful, and to
19046
 
# report actual input values of CONFIG_FILES etc. instead of their
19047
 
# values after options handling.
19048
 
ac_log="
19049
 
This file was extended by sflphone $as_me 0.9.13, which was
19050
 
generated by GNU Autoconf 2.67.  Invocation command line was
19051
 
 
19052
 
  CONFIG_FILES    = $CONFIG_FILES
19053
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
19054
 
  CONFIG_LINKS    = $CONFIG_LINKS
19055
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
19056
 
  $ $0 $@
19057
 
 
19058
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
19059
 
"
19060
 
 
19061
 
_ACEOF
19062
 
 
19063
 
case $ac_config_files in *"
19064
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
19065
 
esac
19066
 
 
19067
 
case $ac_config_headers in *"
19068
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19069
 
esac
19070
 
 
19071
 
 
19072
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19073
 
# Files that config.status was made for.
19074
 
config_files="$ac_config_files"
19075
 
config_headers="$ac_config_headers"
19076
 
config_commands="$ac_config_commands"
19077
 
 
19078
 
_ACEOF
19079
 
 
19080
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19081
 
ac_cs_usage="\
19082
 
\`$as_me' instantiates files and other configuration actions
19083
 
from templates according to the current configuration.  Unless the files
19084
 
and actions are specified as TAGs, all are instantiated by default.
19085
 
 
19086
 
Usage: $0 [OPTION]... [TAG]...
19087
 
 
19088
 
  -h, --help       print this help, then exit
19089
 
  -V, --version    print version number and configuration settings, then exit
19090
 
      --config     print configuration, then exit
19091
 
  -q, --quiet, --silent
19092
 
                   do not print progress messages
19093
 
  -d, --debug      don't remove temporary files
19094
 
      --recheck    update $as_me by reconfiguring in the same conditions
19095
 
      --file=FILE[:TEMPLATE]
19096
 
                   instantiate the configuration file FILE
19097
 
      --header=FILE[:TEMPLATE]
19098
 
                   instantiate the configuration header FILE
19099
 
 
19100
 
Configuration files:
19101
 
$config_files
19102
 
 
19103
 
Configuration headers:
19104
 
$config_headers
19105
 
 
19106
 
Configuration commands:
19107
 
$config_commands
19108
 
 
19109
 
Report bugs to <sflphoneteam@savoirfairelinux.com>."
19110
 
 
19111
 
_ACEOF
19112
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19113
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19114
 
ac_cs_version="\\
19115
 
sflphone config.status 0.9.13
19116
 
configured by $0, generated by GNU Autoconf 2.67,
19117
 
  with options \\"\$ac_cs_config\\"
19118
 
 
19119
 
Copyright (C) 2010 Free Software Foundation, Inc.
19120
 
This config.status script is free software; the Free Software Foundation
19121
 
gives unlimited permission to copy, distribute and modify it."
19122
 
 
19123
 
ac_pwd='$ac_pwd'
19124
 
srcdir='$srcdir'
19125
 
INSTALL='$INSTALL'
19126
 
MKDIR_P='$MKDIR_P'
19127
 
AWK='$AWK'
19128
 
test -n "\$AWK" || AWK=awk
19129
 
_ACEOF
19130
 
 
19131
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19132
 
# The default lists apply if the user does not specify any file.
19133
 
ac_need_defaults=:
19134
 
while test $# != 0
19135
 
do
19136
 
  case $1 in
19137
 
  --*=?*)
19138
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19139
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19140
 
    ac_shift=:
19141
 
    ;;
19142
 
  --*=)
19143
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19144
 
    ac_optarg=
19145
 
    ac_shift=:
19146
 
    ;;
19147
 
  *)
19148
 
    ac_option=$1
19149
 
    ac_optarg=$2
19150
 
    ac_shift=shift
19151
 
    ;;
19152
 
  esac
19153
 
 
19154
 
  case $ac_option in
19155
 
  # Handling of the options.
19156
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19157
 
    ac_cs_recheck=: ;;
19158
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19159
 
    $as_echo "$ac_cs_version"; exit ;;
19160
 
  --config | --confi | --conf | --con | --co | --c )
19161
 
    $as_echo "$ac_cs_config"; exit ;;
19162
 
  --debug | --debu | --deb | --de | --d | -d )
19163
 
    debug=: ;;
19164
 
  --file | --fil | --fi | --f )
19165
 
    $ac_shift
19166
 
    case $ac_optarg in
19167
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19168
 
    '') as_fn_error $? "missing file argument" ;;
19169
 
    esac
19170
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
19171
 
    ac_need_defaults=false;;
19172
 
  --header | --heade | --head | --hea )
19173
 
    $ac_shift
19174
 
    case $ac_optarg in
19175
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19176
 
    esac
19177
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19178
 
    ac_need_defaults=false;;
19179
 
  --he | --h)
19180
 
    # Conflict between --help and --header
19181
 
    as_fn_error $? "ambiguous option: \`$1'
19182
 
Try \`$0 --help' for more information.";;
19183
 
  --help | --hel | -h )
19184
 
    $as_echo "$ac_cs_usage"; exit ;;
19185
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19186
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19187
 
    ac_cs_silent=: ;;
19188
 
 
19189
 
  # This is an error.
19190
 
  -*) as_fn_error $? "unrecognized option: \`$1'
19191
 
Try \`$0 --help' for more information." ;;
19192
 
 
19193
 
  *) as_fn_append ac_config_targets " $1"
19194
 
     ac_need_defaults=false ;;
19195
 
 
19196
 
  esac
19197
 
  shift
19198
 
done
19199
 
 
19200
 
ac_configure_extra_args=
19201
 
 
19202
 
if $ac_cs_silent; then
19203
 
  exec 6>/dev/null
19204
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
19205
 
fi
19206
 
 
19207
 
_ACEOF
19208
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19209
 
if \$ac_cs_recheck; then
19210
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19211
 
  shift
19212
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19213
 
  CONFIG_SHELL='$SHELL'
19214
 
  export CONFIG_SHELL
19215
 
  exec "\$@"
19216
 
fi
19217
 
 
19218
 
_ACEOF
19219
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19220
 
exec 5>>config.log
19221
 
{
19222
 
  echo
19223
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19224
 
## Running $as_me. ##
19225
 
_ASBOX
19226
 
  $as_echo "$ac_log"
19227
 
} >&5
19228
 
 
19229
 
_ACEOF
19230
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19231
 
#
19232
 
# INIT-COMMANDS
19233
 
#
19234
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19235
 
 
19236
 
 
19237
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
19238
 
# if CDPATH is set.
19239
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19240
 
 
19241
 
sed_quote_subst='$sed_quote_subst'
19242
 
double_quote_subst='$double_quote_subst'
19243
 
delay_variable_subst='$delay_variable_subst'
19244
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19245
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19246
 
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19247
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19248
 
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19249
 
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19250
 
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19251
 
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19252
 
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19253
 
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19254
 
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19255
 
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19256
 
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19257
 
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19258
 
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19259
 
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19260
 
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19261
 
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19262
 
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19263
 
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19264
 
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19265
 
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19266
 
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19267
 
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19268
 
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19269
 
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19270
 
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19271
 
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19272
 
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19273
 
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19274
 
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19275
 
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19276
 
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19277
 
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19278
 
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19279
 
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19280
 
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19281
 
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19282
 
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19283
 
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19284
 
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19285
 
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19286
 
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19287
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19288
 
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"`'
19289
 
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"`'
19290
 
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19291
 
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19292
 
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19293
 
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19294
 
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19295
 
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19296
 
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19297
 
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19298
 
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19299
 
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19300
 
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19301
 
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19302
 
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19303
 
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19304
 
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19305
 
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19306
 
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19307
 
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19308
 
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19309
 
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19310
 
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19311
 
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19312
 
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19313
 
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19314
 
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19315
 
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19316
 
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19317
 
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19318
 
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19319
 
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19320
 
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19321
 
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19322
 
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19323
 
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19324
 
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19325
 
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19326
 
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19327
 
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19328
 
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19329
 
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19330
 
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19331
 
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19332
 
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19333
 
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19334
 
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19335
 
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19336
 
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19337
 
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19338
 
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19339
 
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19340
 
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19341
 
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19342
 
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19343
 
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19344
 
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19345
 
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19346
 
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19347
 
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19348
 
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19349
 
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19350
 
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19351
 
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19352
 
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19353
 
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19354
 
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19355
 
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19356
 
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19357
 
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19358
 
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19359
 
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19360
 
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19361
 
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19362
 
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19363
 
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19364
 
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19365
 
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19366
 
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19367
 
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19368
 
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19369
 
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19370
 
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19371
 
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19372
 
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19373
 
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19374
 
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19375
 
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19376
 
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19377
 
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19378
 
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19379
 
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19380
 
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19381
 
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19382
 
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19383
 
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19384
 
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19385
 
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19386
 
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19387
 
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19388
 
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19389
 
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19390
 
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19391
 
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19392
 
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19393
 
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19394
 
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19395
 
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19396
 
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19397
 
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19398
 
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19399
 
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19400
 
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19401
 
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19402
 
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19403
 
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19404
 
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19405
 
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19406
 
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19407
 
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19408
 
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19409
 
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19410
 
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19411
 
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19412
 
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19413
 
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19414
 
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19415
 
 
19416
 
LTCC='$LTCC'
19417
 
LTCFLAGS='$LTCFLAGS'
19418
 
compiler='$compiler_DEFAULT'
19419
 
 
19420
 
# Quote evaled strings.
19421
 
for var in SED \
19422
 
GREP \
19423
 
EGREP \
19424
 
FGREP \
19425
 
LD \
19426
 
NM \
19427
 
LN_S \
19428
 
lt_SP2NL \
19429
 
lt_NL2SP \
19430
 
reload_flag \
19431
 
OBJDUMP \
19432
 
deplibs_check_method \
19433
 
file_magic_cmd \
19434
 
AR \
19435
 
AR_FLAGS \
19436
 
STRIP \
19437
 
RANLIB \
19438
 
CC \
19439
 
CFLAGS \
19440
 
compiler \
19441
 
lt_cv_sys_global_symbol_pipe \
19442
 
lt_cv_sys_global_symbol_to_cdecl \
19443
 
lt_cv_sys_global_symbol_to_c_name_address \
19444
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19445
 
SHELL \
19446
 
ECHO \
19447
 
lt_prog_compiler_no_builtin_flag \
19448
 
lt_prog_compiler_wl \
19449
 
lt_prog_compiler_pic \
19450
 
lt_prog_compiler_static \
19451
 
lt_cv_prog_compiler_c_o \
19452
 
need_locks \
19453
 
DSYMUTIL \
19454
 
NMEDIT \
19455
 
LIPO \
19456
 
OTOOL \
19457
 
OTOOL64 \
19458
 
shrext_cmds \
19459
 
export_dynamic_flag_spec \
19460
 
whole_archive_flag_spec \
19461
 
compiler_needs_object \
19462
 
with_gnu_ld \
19463
 
allow_undefined_flag \
19464
 
no_undefined_flag \
19465
 
hardcode_libdir_flag_spec \
19466
 
hardcode_libdir_flag_spec_ld \
19467
 
hardcode_libdir_separator \
19468
 
fix_srcfile_path \
19469
 
exclude_expsyms \
19470
 
include_expsyms \
19471
 
file_list_spec \
19472
 
variables_saved_for_relink \
19473
 
libname_spec \
19474
 
library_names_spec \
19475
 
soname_spec \
19476
 
finish_eval \
19477
 
old_striplib \
19478
 
striplib \
19479
 
compiler_lib_search_dirs \
19480
 
predep_objects \
19481
 
postdep_objects \
19482
 
predeps \
19483
 
postdeps \
19484
 
compiler_lib_search_path \
19485
 
LD_CXX \
19486
 
compiler_CXX \
19487
 
lt_prog_compiler_no_builtin_flag_CXX \
19488
 
lt_prog_compiler_wl_CXX \
19489
 
lt_prog_compiler_pic_CXX \
19490
 
lt_prog_compiler_static_CXX \
19491
 
lt_cv_prog_compiler_c_o_CXX \
19492
 
export_dynamic_flag_spec_CXX \
19493
 
whole_archive_flag_spec_CXX \
19494
 
compiler_needs_object_CXX \
19495
 
with_gnu_ld_CXX \
19496
 
allow_undefined_flag_CXX \
19497
 
no_undefined_flag_CXX \
19498
 
hardcode_libdir_flag_spec_CXX \
19499
 
hardcode_libdir_flag_spec_ld_CXX \
19500
 
hardcode_libdir_separator_CXX \
19501
 
fix_srcfile_path_CXX \
19502
 
exclude_expsyms_CXX \
19503
 
include_expsyms_CXX \
19504
 
file_list_spec_CXX \
19505
 
compiler_lib_search_dirs_CXX \
19506
 
predep_objects_CXX \
19507
 
postdep_objects_CXX \
19508
 
predeps_CXX \
19509
 
postdeps_CXX \
19510
 
compiler_lib_search_path_CXX; do
19511
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19512
 
    *[\\\\\\\`\\"\\\$]*)
19513
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19514
 
      ;;
19515
 
    *)
19516
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19517
 
      ;;
19518
 
    esac
19519
 
done
19520
 
 
19521
 
# Double-quote double-evaled strings.
19522
 
for var in reload_cmds \
19523
 
old_postinstall_cmds \
19524
 
old_postuninstall_cmds \
19525
 
old_archive_cmds \
19526
 
extract_expsyms_cmds \
19527
 
old_archive_from_new_cmds \
19528
 
old_archive_from_expsyms_cmds \
19529
 
archive_cmds \
19530
 
archive_expsym_cmds \
19531
 
module_cmds \
19532
 
module_expsym_cmds \
19533
 
export_symbols_cmds \
19534
 
prelink_cmds \
19535
 
postinstall_cmds \
19536
 
postuninstall_cmds \
19537
 
finish_cmds \
19538
 
sys_lib_search_path_spec \
19539
 
sys_lib_dlsearch_path_spec \
19540
 
old_archive_cmds_CXX \
19541
 
old_archive_from_new_cmds_CXX \
19542
 
old_archive_from_expsyms_cmds_CXX \
19543
 
archive_cmds_CXX \
19544
 
archive_expsym_cmds_CXX \
19545
 
module_cmds_CXX \
19546
 
module_expsym_cmds_CXX \
19547
 
export_symbols_cmds_CXX \
19548
 
prelink_cmds_CXX; do
19549
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19550
 
    *[\\\\\\\`\\"\\\$]*)
19551
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19552
 
      ;;
19553
 
    *)
19554
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19555
 
      ;;
19556
 
    esac
19557
 
done
19558
 
 
19559
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
19560
 
case \$lt_ECHO in
19561
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19562
 
  ;;
19563
 
esac
19564
 
 
19565
 
ac_aux_dir='$ac_aux_dir'
19566
 
xsi_shell='$xsi_shell'
19567
 
lt_shell_append='$lt_shell_append'
19568
 
 
19569
 
# See if we are running on zsh, and set the options which allow our
19570
 
# commands through without removal of \ escapes INIT.
19571
 
if test -n "\${ZSH_VERSION+set}" ; then
19572
 
   setopt NO_GLOB_SUBST
19573
 
fi
19574
 
 
19575
 
 
19576
 
    PACKAGE='$PACKAGE'
19577
 
    VERSION='$VERSION'
19578
 
    TIMESTAMP='$TIMESTAMP'
19579
 
    RM='$RM'
19580
 
    ofile='$ofile'
19581
 
 
19582
 
 
19583
 
 
19584
 
 
19585
 
 
19586
 
 
19587
 
_ACEOF
19588
 
 
19589
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19590
 
 
19591
 
# Handling of arguments.
19592
 
for ac_config_target in $ac_config_targets
19593
 
do
19594
 
  case $ac_config_target in
19595
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19596
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19597
 
    "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19598
 
    "libs/utilspp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/utilspp/Makefile" ;;
19599
 
    "libs/utilspp/functor/Makefile") CONFIG_FILES="$CONFIG_FILES libs/utilspp/functor/Makefile" ;;
19600
 
    "libs/utilspp/singleton/Makefile") CONFIG_FILES="$CONFIG_FILES libs/utilspp/singleton/Makefile" ;;
19601
 
    "libs/dbus-c++/Makefile") CONFIG_FILES="$CONFIG_FILES libs/dbus-c++/Makefile" ;;
19602
 
    "libs/dbus-c++/src/Makefile") CONFIG_FILES="$CONFIG_FILES libs/dbus-c++/src/Makefile" ;;
19603
 
    "libs/dbus-c++/tools/Makefile") CONFIG_FILES="$CONFIG_FILES libs/dbus-c++/tools/Makefile" ;;
19604
 
    "libs/dbus-c++/data/Makefile") CONFIG_FILES="$CONFIG_FILES libs/dbus-c++/data/Makefile" ;;
19605
 
    "libs/iax2/Makefile") CONFIG_FILES="$CONFIG_FILES libs/iax2/Makefile" ;;
19606
 
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19607
 
    "src/sip/Makefile") CONFIG_FILES="$CONFIG_FILES src/sip/Makefile" ;;
19608
 
    "src/im/Makefile") CONFIG_FILES="$CONFIG_FILES src/im/Makefile" ;;
19609
 
    "src/iax/Makefile") CONFIG_FILES="$CONFIG_FILES src/iax/Makefile" ;;
19610
 
    "src/audio/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/Makefile" ;;
19611
 
    "src/audio/audiortp/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/audiortp/Makefile" ;;
19612
 
    "src/audio/pulseaudio/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/pulseaudio/Makefile" ;;
19613
 
    "src/audio/alsa/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/alsa/Makefile" ;;
19614
 
    "src/audio/sound/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/sound/Makefile" ;;
19615
 
    "src/audio/codecs/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/codecs/Makefile" ;;
19616
 
    "src/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
19617
 
    "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
19618
 
    "src/plug-in/Makefile") CONFIG_FILES="$CONFIG_FILES src/plug-in/Makefile" ;;
19619
 
    "src/plug-in/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/plug-in/test/Makefile" ;;
19620
 
    "src/hooks/Makefile") CONFIG_FILES="$CONFIG_FILES src/hooks/Makefile" ;;
19621
 
    "src/history/Makefile") CONFIG_FILES="$CONFIG_FILES src/history/Makefile" ;;
19622
 
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19623
 
    "ringtones/Makefile") CONFIG_FILES="$CONFIG_FILES ringtones/Makefile" ;;
19624
 
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19625
 
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19626
 
    "doc/dbus-api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dbus-api/Makefile" ;;
19627
 
    "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
19628
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19629
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19630
 
 
19631
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19632
 
  esac
19633
 
done
19634
 
 
19635
 
 
19636
 
# If the user did not use the arguments to specify the items to instantiate,
19637
 
# then the envvar interface is used.  Set only those that are not.
19638
 
# We use the long form for the default assignment because of an extremely
19639
 
# bizarre bug on SunOS 4.1.3.
19640
 
if $ac_need_defaults; then
19641
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19642
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19643
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19644
 
fi
19645
 
 
19646
 
# Have a temporary directory for convenience.  Make it in the build tree
19647
 
# simply because there is no reason against having it here, and in addition,
19648
 
# creating and moving files from /tmp can sometimes cause problems.
19649
 
# Hook for its removal unless debugging.
19650
 
# Note that there is a small window in which the directory will not be cleaned:
19651
 
# after its creation but before its name has been assigned to `$tmp'.
19652
 
$debug ||
19653
 
{
19654
 
  tmp=
19655
 
  trap 'exit_status=$?
19656
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19657
 
' 0
19658
 
  trap 'as_fn_exit 1' 1 2 13 15
19659
 
}
19660
 
# Create a (secure) tmp directory for tmp files.
19661
 
 
19662
 
{
19663
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19664
 
  test -n "$tmp" && test -d "$tmp"
19665
 
}  ||
19666
 
{
19667
 
  tmp=./conf$$-$RANDOM
19668
 
  (umask 077 && mkdir "$tmp")
19669
 
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19670
 
 
19671
 
# Set up the scripts for CONFIG_FILES section.
19672
 
# No need to generate them if there are no CONFIG_FILES.
19673
 
# This happens for instance with `./config.status config.h'.
19674
 
if test -n "$CONFIG_FILES"; then
19675
 
 
19676
 
 
19677
 
ac_cr=`echo X | tr X '\015'`
19678
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
19679
 
# But we know of no other shell where ac_cr would be empty at this
19680
 
# point, so we can use a bashism as a fallback.
19681
 
if test "x$ac_cr" = x; then
19682
 
  eval ac_cr=\$\'\\r\'
19683
 
fi
19684
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19685
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19686
 
  ac_cs_awk_cr='\\r'
19687
 
else
19688
 
  ac_cs_awk_cr=$ac_cr
19689
 
fi
19690
 
 
19691
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
19692
 
_ACEOF
19693
 
 
19694
 
 
19695
 
{
19696
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
19697
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19698
 
  echo "_ACEOF"
19699
 
} >conf$$subs.sh ||
19700
 
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19701
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19702
 
ac_delim='%!_!# '
19703
 
for ac_last_try in false false false false false :; do
19704
 
  . ./conf$$subs.sh ||
19705
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19706
 
 
19707
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19708
 
  if test $ac_delim_n = $ac_delim_num; then
19709
 
    break
19710
 
  elif $ac_last_try; then
19711
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19712
 
  else
19713
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19714
 
  fi
19715
 
done
19716
 
rm -f conf$$subs.sh
19717
 
 
19718
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19719
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19720
 
_ACEOF
19721
 
sed -n '
19722
 
h
19723
 
s/^/S["/; s/!.*/"]=/
19724
 
p
19725
 
g
19726
 
s/^[^!]*!//
19727
 
:repl
19728
 
t repl
19729
 
s/'"$ac_delim"'$//
19730
 
t delim
19731
 
:nl
19732
 
h
19733
 
s/\(.\{148\}\)..*/\1/
19734
 
t more1
19735
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19736
 
p
19737
 
n
19738
 
b repl
19739
 
:more1
19740
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19741
 
p
19742
 
g
19743
 
s/.\{148\}//
19744
 
t nl
19745
 
:delim
19746
 
h
19747
 
s/\(.\{148\}\)..*/\1/
19748
 
t more2
19749
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
19750
 
p
19751
 
b
19752
 
:more2
19753
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19754
 
p
19755
 
g
19756
 
s/.\{148\}//
19757
 
t delim
19758
 
' <conf$$subs.awk | sed '
19759
 
/^[^""]/{
19760
 
  N
19761
 
  s/\n//
19762
 
}
19763
 
' >>$CONFIG_STATUS || ac_write_fail=1
19764
 
rm -f conf$$subs.awk
19765
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19766
 
_ACAWK
19767
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19768
 
  for (key in S) S_is_set[key] = 1
19769
 
  FS = ""
19770
 
 
19771
 
}
19772
 
{
19773
 
  line = $ 0
19774
 
  nfields = split(line, field, "@")
19775
 
  substed = 0
19776
 
  len = length(field[1])
19777
 
  for (i = 2; i < nfields; i++) {
19778
 
    key = field[i]
19779
 
    keylen = length(key)
19780
 
    if (S_is_set[key]) {
19781
 
      value = S[key]
19782
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19783
 
      len += length(value) + length(field[++i])
19784
 
      substed = 1
19785
 
    } else
19786
 
      len += 1 + keylen
19787
 
  }
19788
 
 
19789
 
  print line
19790
 
}
19791
 
 
19792
 
_ACAWK
19793
 
_ACEOF
19794
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19795
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19796
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19797
 
else
19798
 
  cat
19799
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19800
 
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19801
 
_ACEOF
19802
 
 
19803
 
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19804
 
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19805
 
# trailing colons and then remove the whole line if VPATH becomes empty
19806
 
# (actually we leave an empty line to preserve line numbers).
19807
 
if test "x$srcdir" = x.; then
19808
 
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19809
 
h
19810
 
s///
19811
 
s/^/:/
19812
 
s/[      ]*$/:/
19813
 
s/:\$(srcdir):/:/g
19814
 
s/:\${srcdir}:/:/g
19815
 
s/:@srcdir@:/:/g
19816
 
s/^:*//
19817
 
s/:*$//
19818
 
x
19819
 
s/\(=[   ]*\).*/\1/
19820
 
G
19821
 
s/\n//
19822
 
s/^[^=]*=[       ]*$//
19823
 
}'
19824
 
fi
19825
 
 
19826
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19827
 
fi # test -n "$CONFIG_FILES"
19828
 
 
19829
 
# Set up the scripts for CONFIG_HEADERS section.
19830
 
# No need to generate them if there are no CONFIG_HEADERS.
19831
 
# This happens for instance with `./config.status Makefile'.
19832
 
if test -n "$CONFIG_HEADERS"; then
19833
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
19834
 
BEGIN {
19835
 
_ACEOF
19836
 
 
19837
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
19838
 
# here-document in config.status, that substitutes the proper values into
19839
 
# config.h.in to produce config.h.
19840
 
 
19841
 
# Create a delimiter string that does not exist in confdefs.h, to ease
19842
 
# handling of long lines.
19843
 
ac_delim='%!_!# '
19844
 
for ac_last_try in false false :; do
19845
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19846
 
  if test -z "$ac_t"; then
19847
 
    break
19848
 
  elif $ac_last_try; then
19849
 
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19850
 
  else
19851
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19852
 
  fi
19853
 
done
19854
 
 
19855
 
# For the awk script, D is an array of macro values keyed by name,
19856
 
# likewise P contains macro parameters if any.  Preserve backslash
19857
 
# newline sequences.
19858
 
 
19859
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19860
 
sed -n '
19861
 
s/.\{148\}/&'"$ac_delim"'/g
19862
 
t rset
19863
 
:rset
19864
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
19865
 
t def
19866
 
d
19867
 
:def
19868
 
s/\\$//
19869
 
t bsnl
19870
 
s/["\\]/\\&/g
19871
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19872
 
D["\1"]=" \3"/p
19873
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19874
 
d
19875
 
:bsnl
19876
 
s/["\\]/\\&/g
19877
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19878
 
D["\1"]=" \3\\\\\\n"\\/p
19879
 
t cont
19880
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19881
 
t cont
19882
 
d
19883
 
:cont
19884
 
n
19885
 
s/.\{148\}/&'"$ac_delim"'/g
19886
 
t clear
19887
 
:clear
19888
 
s/\\$//
19889
 
t bsnlc
19890
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19891
 
d
19892
 
:bsnlc
19893
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19894
 
b cont
19895
 
' <confdefs.h | sed '
19896
 
s/'"$ac_delim"'/"\\\
19897
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19898
 
 
19899
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19900
 
  for (key in D) D_is_set[key] = 1
19901
 
  FS = ""
19902
 
}
19903
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19904
 
  line = \$ 0
19905
 
  split(line, arg, " ")
19906
 
  if (arg[1] == "#") {
19907
 
    defundef = arg[2]
19908
 
    mac1 = arg[3]
19909
 
  } else {
19910
 
    defundef = substr(arg[1], 2)
19911
 
    mac1 = arg[2]
19912
 
  }
19913
 
  split(mac1, mac2, "(") #)
19914
 
  macro = mac2[1]
19915
 
  prefix = substr(line, 1, index(line, defundef) - 1)
19916
 
  if (D_is_set[macro]) {
19917
 
    # Preserve the white space surrounding the "#".
19918
 
    print prefix "define", macro P[macro] D[macro]
19919
 
    next
19920
 
  } else {
19921
 
    # Replace #undef with comments.  This is necessary, for example,
19922
 
    # in the case of _POSIX_SOURCE, which is predefined and required
19923
 
    # on some systems where configure will not decide to define it.
19924
 
    if (defundef == "undef") {
19925
 
      print "/*", prefix defundef, macro, "*/"
19926
 
      next
19927
 
    }
19928
 
  }
19929
 
}
19930
 
{ print }
19931
 
_ACAWK
19932
 
_ACEOF
19933
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19934
 
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19935
 
fi # test -n "$CONFIG_HEADERS"
19936
 
 
19937
 
 
19938
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19939
 
shift
19940
 
for ac_tag
19941
 
do
19942
 
  case $ac_tag in
19943
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
19944
 
  esac
19945
 
  case $ac_mode$ac_tag in
19946
 
  :[FHL]*:*);;
19947
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
19948
 
  :[FH]-) ac_tag=-:-;;
19949
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19950
 
  esac
19951
 
  ac_save_IFS=$IFS
19952
 
  IFS=:
19953
 
  set x $ac_tag
19954
 
  IFS=$ac_save_IFS
19955
 
  shift
19956
 
  ac_file=$1
19957
 
  shift
19958
 
 
19959
 
  case $ac_mode in
19960
 
  :L) ac_source=$1;;
19961
 
  :[FH])
19962
 
    ac_file_inputs=
19963
 
    for ac_f
19964
 
    do
19965
 
      case $ac_f in
19966
 
      -) ac_f="$tmp/stdin";;
19967
 
      *) # Look for the file first in the build tree, then in the source tree
19968
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
19969
 
         # because $ac_f cannot contain `:'.
19970
 
         test -f "$ac_f" ||
19971
 
           case $ac_f in
19972
 
           [\\/$]*) false;;
19973
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19974
 
           esac ||
19975
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
19976
 
      esac
19977
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19978
 
      as_fn_append ac_file_inputs " '$ac_f'"
19979
 
    done
19980
 
 
19981
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
19982
 
    # use $as_me), people would be surprised to read:
19983
 
    #    /* config.h.  Generated by config.status.  */
19984
 
    configure_input='Generated from '`
19985
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19986
 
        `' by configure.'
19987
 
    if test x"$ac_file" != x-; then
19988
 
      configure_input="$ac_file.  $configure_input"
19989
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19990
 
$as_echo "$as_me: creating $ac_file" >&6;}
19991
 
    fi
19992
 
    # Neutralize special characters interpreted by sed in replacement strings.
19993
 
    case $configure_input in #(
19994
 
    *\&* | *\|* | *\\* )
19995
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
19996
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19997
 
    *) ac_sed_conf_input=$configure_input;;
19998
 
    esac
19999
 
 
20000
 
    case $ac_tag in
20001
 
    *:-:* | *:-) cat >"$tmp/stdin" \
20002
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
20003
 
    esac
20004
 
    ;;
20005
 
  esac
20006
 
 
20007
 
  ac_dir=`$as_dirname -- "$ac_file" ||
20008
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20009
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
20010
 
         X"$ac_file" : 'X\(//\)$' \| \
20011
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20012
 
$as_echo X"$ac_file" |
20013
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20014
 
            s//\1/
20015
 
            q
20016
 
          }
20017
 
          /^X\(\/\/\)[^/].*/{
20018
 
            s//\1/
20019
 
            q
20020
 
          }
20021
 
          /^X\(\/\/\)$/{
20022
 
            s//\1/
20023
 
            q
20024
 
          }
20025
 
          /^X\(\/\).*/{
20026
 
            s//\1/
20027
 
            q
20028
 
          }
20029
 
          s/.*/./; q'`
20030
 
  as_dir="$ac_dir"; as_fn_mkdir_p
20031
 
  ac_builddir=.
20032
 
 
20033
 
case "$ac_dir" in
20034
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20035
 
*)
20036
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20037
 
  # A ".." for each directory in $ac_dir_suffix.
20038
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20039
 
  case $ac_top_builddir_sub in
20040
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20041
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20042
 
  esac ;;
20043
 
esac
20044
 
ac_abs_top_builddir=$ac_pwd
20045
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20046
 
# for backward compatibility:
20047
 
ac_top_builddir=$ac_top_build_prefix
20048
 
 
20049
 
case $srcdir in
20050
 
  .)  # We are building in place.
20051
 
    ac_srcdir=.
20052
 
    ac_top_srcdir=$ac_top_builddir_sub
20053
 
    ac_abs_top_srcdir=$ac_pwd ;;
20054
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
20055
 
    ac_srcdir=$srcdir$ac_dir_suffix;
20056
 
    ac_top_srcdir=$srcdir
20057
 
    ac_abs_top_srcdir=$srcdir ;;
20058
 
  *) # Relative name.
20059
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20060
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20061
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20062
 
esac
20063
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20064
 
 
20065
 
 
20066
 
  case $ac_mode in
20067
 
  :F)
20068
 
  #
20069
 
  # CONFIG_FILE
20070
 
  #
20071
 
 
20072
 
  case $INSTALL in
20073
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20074
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20075
 
  esac
20076
 
  ac_MKDIR_P=$MKDIR_P
20077
 
  case $MKDIR_P in
20078
 
  [\\/$]* | ?:[\\/]* ) ;;
20079
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20080
 
  esac
20081
 
_ACEOF
20082
 
 
20083
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084
 
# If the template does not know about datarootdir, expand it.
20085
 
# FIXME: This hack should be removed a few years after 2.60.
20086
 
ac_datarootdir_hack=; ac_datarootdir_seen=
20087
 
ac_sed_dataroot='
20088
 
/datarootdir/ {
20089
 
  p
20090
 
  q
20091
 
}
20092
 
/@datadir@/p
20093
 
/@docdir@/p
20094
 
/@infodir@/p
20095
 
/@localedir@/p
20096
 
/@mandir@/p'
20097
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20098
 
*datarootdir*) ac_datarootdir_seen=yes;;
20099
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20100
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20101
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20102
 
_ACEOF
20103
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20104
 
  ac_datarootdir_hack='
20105
 
  s&@datadir@&$datadir&g
20106
 
  s&@docdir@&$docdir&g
20107
 
  s&@infodir@&$infodir&g
20108
 
  s&@localedir@&$localedir&g
20109
 
  s&@mandir@&$mandir&g
20110
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
20111
 
esac
20112
 
_ACEOF
20113
 
 
20114
 
# Neutralize VPATH when `$srcdir' = `.'.
20115
 
# Shell code in configure.ac might set extrasub.
20116
 
# FIXME: do we really want to maintain this feature?
20117
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20118
 
ac_sed_extra="$ac_vpsub
20119
 
$extrasub
20120
 
_ACEOF
20121
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20122
 
:t
20123
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20124
 
s|@configure_input@|$ac_sed_conf_input|;t t
20125
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
20126
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
20127
 
s&@srcdir@&$ac_srcdir&;t t
20128
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20129
 
s&@top_srcdir@&$ac_top_srcdir&;t t
20130
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20131
 
s&@builddir@&$ac_builddir&;t t
20132
 
s&@abs_builddir@&$ac_abs_builddir&;t t
20133
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20134
 
s&@INSTALL@&$ac_INSTALL&;t t
20135
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
20136
 
$ac_datarootdir_hack
20137
 
"
20138
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20139
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20140
 
 
20141
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20142
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20143
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20144
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20145
 
which seems to be undefined.  Please make sure it is defined" >&5
20146
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20147
 
which seems to be undefined.  Please make sure it is defined" >&2;}
20148
 
 
20149
 
  rm -f "$tmp/stdin"
20150
 
  case $ac_file in
20151
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
20152
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20153
 
  esac \
20154
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20155
 
 ;;
20156
 
  :H)
20157
 
  #
20158
 
  # CONFIG_HEADER
20159
 
  #
20160
 
  if test x"$ac_file" != x-; then
20161
 
    {
20162
 
      $as_echo "/* $configure_input  */" \
20163
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20164
 
    } >"$tmp/config.h" \
20165
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20166
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20167
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20168
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
20169
 
    else
20170
 
      rm -f "$ac_file"
20171
 
      mv "$tmp/config.h" "$ac_file" \
20172
 
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20173
 
    fi
20174
 
  else
20175
 
    $as_echo "/* $configure_input  */" \
20176
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20177
 
      || as_fn_error $? "could not create -" "$LINENO" 5
20178
 
  fi
20179
 
# Compute "$ac_file"'s index in $config_headers.
20180
 
_am_arg="$ac_file"
20181
 
_am_stamp_count=1
20182
 
for _am_header in $config_headers :; do
20183
 
  case $_am_header in
20184
 
    $_am_arg | $_am_arg:* )
20185
 
      break ;;
20186
 
    * )
20187
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20188
 
  esac
20189
 
done
20190
 
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20191
 
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20192
 
         X"$_am_arg" : 'X\(//\)[^/]' \| \
20193
 
         X"$_am_arg" : 'X\(//\)$' \| \
20194
 
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20195
 
$as_echo X"$_am_arg" |
20196
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20197
 
            s//\1/
20198
 
            q
20199
 
          }
20200
 
          /^X\(\/\/\)[^/].*/{
20201
 
            s//\1/
20202
 
            q
20203
 
          }
20204
 
          /^X\(\/\/\)$/{
20205
 
            s//\1/
20206
 
            q
20207
 
          }
20208
 
          /^X\(\/\).*/{
20209
 
            s//\1/
20210
 
            q
20211
 
          }
20212
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
20213
 
 ;;
20214
 
 
20215
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20216
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
20217
 
 ;;
20218
 
  esac
20219
 
 
20220
 
 
20221
 
  case $ac_file$ac_mode in
20222
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20223
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20224
 
  # are listed without --file.  Let's play safe and only enable the eval
20225
 
  # if we detect the quoting.
20226
 
  case $CONFIG_FILES in
20227
 
  *\'*) eval set x "$CONFIG_FILES" ;;
20228
 
  *)   set x $CONFIG_FILES ;;
20229
 
  esac
20230
 
  shift
20231
 
  for mf
20232
 
  do
20233
 
    # Strip MF so we end up with the name of the file.
20234
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20235
 
    # Check whether this is an Automake generated Makefile or not.
20236
 
    # We used to match only the files named `Makefile.in', but
20237
 
    # some people rename them; so instead we look at the file content.
20238
 
    # Grep'ing the first line is not enough: some people post-process
20239
 
    # each Makefile.in and add a new line on top of each file to say so.
20240
 
    # Grep'ing the whole file is not good either: AIX grep has a line
20241
 
    # limit of 2048, but all sed's we know have understand at least 4000.
20242
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20243
 
      dirpart=`$as_dirname -- "$mf" ||
20244
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20245
 
         X"$mf" : 'X\(//\)[^/]' \| \
20246
 
         X"$mf" : 'X\(//\)$' \| \
20247
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20248
 
$as_echo X"$mf" |
20249
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20250
 
            s//\1/
20251
 
            q
20252
 
          }
20253
 
          /^X\(\/\/\)[^/].*/{
20254
 
            s//\1/
20255
 
            q
20256
 
          }
20257
 
          /^X\(\/\/\)$/{
20258
 
            s//\1/
20259
 
            q
20260
 
          }
20261
 
          /^X\(\/\).*/{
20262
 
            s//\1/
20263
 
            q
20264
 
          }
20265
 
          s/.*/./; q'`
20266
 
    else
20267
 
      continue
20268
 
    fi
20269
 
    # Extract the definition of DEPDIR, am__include, and am__quote
20270
 
    # from the Makefile without running `make'.
20271
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20272
 
    test -z "$DEPDIR" && continue
20273
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20274
 
    test -z "am__include" && continue
20275
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20276
 
    # When using ansi2knr, U may be empty or an underscore; expand it
20277
 
    U=`sed -n 's/^U = //p' < "$mf"`
20278
 
    # Find all dependency output files, they are included files with
20279
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20280
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
20281
 
    # expansion.
20282
 
    for file in `sed -n "
20283
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20284
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20285
 
      # Make sure the directory exists.
20286
 
      test -f "$dirpart/$file" && continue
20287
 
      fdir=`$as_dirname -- "$file" ||
20288
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20289
 
         X"$file" : 'X\(//\)[^/]' \| \
20290
 
         X"$file" : 'X\(//\)$' \| \
20291
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20292
 
$as_echo X"$file" |
20293
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20294
 
            s//\1/
20295
 
            q
20296
 
          }
20297
 
          /^X\(\/\/\)[^/].*/{
20298
 
            s//\1/
20299
 
            q
20300
 
          }
20301
 
          /^X\(\/\/\)$/{
20302
 
            s//\1/
20303
 
            q
20304
 
          }
20305
 
          /^X\(\/\).*/{
20306
 
            s//\1/
20307
 
            q
20308
 
          }
20309
 
          s/.*/./; q'`
20310
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20311
 
      # echo "creating $dirpart/$file"
20312
 
      echo '# dummy' > "$dirpart/$file"
20313
 
    done
20314
 
  done
20315
 
}
20316
 
 ;;
20317
 
    "libtool":C)
20318
 
 
20319
 
    # See if we are running on zsh, and set the options which allow our
20320
 
    # commands through without removal of \ escapes.
20321
 
    if test -n "${ZSH_VERSION+set}" ; then
20322
 
      setopt NO_GLOB_SUBST
20323
 
    fi
20324
 
 
20325
 
    cfgfile="${ofile}T"
20326
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20327
 
    $RM "$cfgfile"
20328
 
 
20329
 
    cat <<_LT_EOF >> "$cfgfile"
20330
 
#! $SHELL
20331
 
 
20332
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20333
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20334
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20335
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20336
 
#
20337
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20338
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
20339
 
#   Written by Gordon Matzigkeit, 1996
20340
 
#
20341
 
#   This file is part of GNU Libtool.
20342
 
#
20343
 
# GNU Libtool is free software; you can redistribute it and/or
20344
 
# modify it under the terms of the GNU General Public License as
20345
 
# published by the Free Software Foundation; either version 2 of
20346
 
# the License, or (at your option) any later version.
20347
 
#
20348
 
# As a special exception to the GNU General Public License,
20349
 
# if you distribute this file as part of a program or library that
20350
 
# is built using GNU Libtool, you may include this file under the
20351
 
# same distribution terms that you use for the rest of that program.
20352
 
#
20353
 
# GNU Libtool is distributed in the hope that it will be useful,
20354
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20355
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20356
 
# GNU General Public License for more details.
20357
 
#
20358
 
# You should have received a copy of the GNU General Public License
20359
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
20360
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20361
 
# obtained by writing to the Free Software Foundation, Inc.,
20362
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20363
 
 
20364
 
 
20365
 
# The names of the tagged configurations supported by this script.
20366
 
available_tags="CXX "
20367
 
 
20368
 
# ### BEGIN LIBTOOL CONFIG
20369
 
 
20370
 
# Which release of libtool.m4 was used?
20371
 
macro_version=$macro_version
20372
 
macro_revision=$macro_revision
20373
 
 
20374
 
# Whether or not to build shared libraries.
20375
 
build_libtool_libs=$enable_shared
20376
 
 
20377
 
# Whether or not to build static libraries.
20378
 
build_old_libs=$enable_static
20379
 
 
20380
 
# What type of objects to build.
20381
 
pic_mode=$pic_mode
20382
 
 
20383
 
# Whether or not to optimize for fast installation.
20384
 
fast_install=$enable_fast_install
20385
 
 
20386
 
# The host system.
20387
 
host_alias=$host_alias
20388
 
host=$host
20389
 
host_os=$host_os
20390
 
 
20391
 
# The build system.
20392
 
build_alias=$build_alias
20393
 
build=$build
20394
 
build_os=$build_os
20395
 
 
20396
 
# A sed program that does not truncate output.
20397
 
SED=$lt_SED
20398
 
 
20399
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20400
 
Xsed="\$SED -e 1s/^X//"
20401
 
 
20402
 
# A grep program that handles long lines.
20403
 
GREP=$lt_GREP
20404
 
 
20405
 
# An ERE matcher.
20406
 
EGREP=$lt_EGREP
20407
 
 
20408
 
# A literal string matcher.
20409
 
FGREP=$lt_FGREP
20410
 
 
20411
 
# A BSD- or MS-compatible name lister.
20412
 
NM=$lt_NM
20413
 
 
20414
 
# Whether we need soft or hard links.
20415
 
LN_S=$lt_LN_S
20416
 
 
20417
 
# What is the maximum length of a command?
20418
 
max_cmd_len=$max_cmd_len
20419
 
 
20420
 
# Object file suffix (normally "o").
20421
 
objext=$ac_objext
20422
 
 
20423
 
# Executable file suffix (normally "").
20424
 
exeext=$exeext
20425
 
 
20426
 
# whether the shell understands "unset".
20427
 
lt_unset=$lt_unset
20428
 
 
20429
 
# turn spaces into newlines.
20430
 
SP2NL=$lt_lt_SP2NL
20431
 
 
20432
 
# turn newlines into spaces.
20433
 
NL2SP=$lt_lt_NL2SP
20434
 
 
20435
 
# How to create reloadable object files.
20436
 
reload_flag=$lt_reload_flag
20437
 
reload_cmds=$lt_reload_cmds
20438
 
 
20439
 
# An object symbol dumper.
20440
 
OBJDUMP=$lt_OBJDUMP
20441
 
 
20442
 
# Method to check whether dependent libraries are shared objects.
20443
 
deplibs_check_method=$lt_deplibs_check_method
20444
 
 
20445
 
# Command to use when deplibs_check_method == "file_magic".
20446
 
file_magic_cmd=$lt_file_magic_cmd
20447
 
 
20448
 
# The archiver.
20449
 
AR=$lt_AR
20450
 
AR_FLAGS=$lt_AR_FLAGS
20451
 
 
20452
 
# A symbol stripping program.
20453
 
STRIP=$lt_STRIP
20454
 
 
20455
 
# Commands used to install an old-style archive.
20456
 
RANLIB=$lt_RANLIB
20457
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20458
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20459
 
 
20460
 
# A C compiler.
20461
 
LTCC=$lt_CC
20462
 
 
20463
 
# LTCC compiler flags.
20464
 
LTCFLAGS=$lt_CFLAGS
20465
 
 
20466
 
# Take the output of nm and produce a listing of raw symbols and C names.
20467
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20468
 
 
20469
 
# Transform the output of nm in a proper C declaration.
20470
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20471
 
 
20472
 
# Transform the output of nm in a C name address pair.
20473
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20474
 
 
20475
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
20476
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20477
 
 
20478
 
# The name of the directory that contains temporary libtool files.
20479
 
objdir=$objdir
20480
 
 
20481
 
# Shell to use when invoking shell scripts.
20482
 
SHELL=$lt_SHELL
20483
 
 
20484
 
# An echo program that does not interpret backslashes.
20485
 
ECHO=$lt_ECHO
20486
 
 
20487
 
# Used to examine libraries when file_magic_cmd begins with "file".
20488
 
MAGIC_CMD=$MAGIC_CMD
20489
 
 
20490
 
# Must we lock files when doing compilation?
20491
 
need_locks=$lt_need_locks
20492
 
 
20493
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20494
 
DSYMUTIL=$lt_DSYMUTIL
20495
 
 
20496
 
# Tool to change global to local symbols on Mac OS X.
20497
 
NMEDIT=$lt_NMEDIT
20498
 
 
20499
 
# Tool to manipulate fat objects and archives on Mac OS X.
20500
 
LIPO=$lt_LIPO
20501
 
 
20502
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20503
 
OTOOL=$lt_OTOOL
20504
 
 
20505
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20506
 
OTOOL64=$lt_OTOOL64
20507
 
 
20508
 
# Old archive suffix (normally "a").
20509
 
libext=$libext
20510
 
 
20511
 
# Shared library suffix (normally ".so").
20512
 
shrext_cmds=$lt_shrext_cmds
20513
 
 
20514
 
# The commands to extract the exported symbol list from a shared archive.
20515
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20516
 
 
20517
 
# Variables whose values should be saved in libtool wrapper scripts and
20518
 
# restored at link time.
20519
 
variables_saved_for_relink=$lt_variables_saved_for_relink
20520
 
 
20521
 
# Do we need the "lib" prefix for modules?
20522
 
need_lib_prefix=$need_lib_prefix
20523
 
 
20524
 
# Do we need a version for libraries?
20525
 
need_version=$need_version
20526
 
 
20527
 
# Library versioning type.
20528
 
version_type=$version_type
20529
 
 
20530
 
# Shared library runtime path variable.
20531
 
runpath_var=$runpath_var
20532
 
 
20533
 
# Shared library path variable.
20534
 
shlibpath_var=$shlibpath_var
20535
 
 
20536
 
# Is shlibpath searched before the hard-coded library search path?
20537
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20538
 
 
20539
 
# Format of library name prefix.
20540
 
libname_spec=$lt_libname_spec
20541
 
 
20542
 
# List of archive names.  First name is the real one, the rest are links.
20543
 
# The last name is the one that the linker finds with -lNAME
20544
 
library_names_spec=$lt_library_names_spec
20545
 
 
20546
 
# The coded name of the library, if different from the real name.
20547
 
soname_spec=$lt_soname_spec
20548
 
 
20549
 
# Command to use after installation of a shared archive.
20550
 
postinstall_cmds=$lt_postinstall_cmds
20551
 
 
20552
 
# Command to use after uninstallation of a shared archive.
20553
 
postuninstall_cmds=$lt_postuninstall_cmds
20554
 
 
20555
 
# Commands used to finish a libtool library installation in a directory.
20556
 
finish_cmds=$lt_finish_cmds
20557
 
 
20558
 
# As "finish_cmds", except a single script fragment to be evaled but
20559
 
# not shown.
20560
 
finish_eval=$lt_finish_eval
20561
 
 
20562
 
# Whether we should hardcode library paths into libraries.
20563
 
hardcode_into_libs=$hardcode_into_libs
20564
 
 
20565
 
# Compile-time system search path for libraries.
20566
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20567
 
 
20568
 
# Run-time system search path for libraries.
20569
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20570
 
 
20571
 
# Whether dlopen is supported.
20572
 
dlopen_support=$enable_dlopen
20573
 
 
20574
 
# Whether dlopen of programs is supported.
20575
 
dlopen_self=$enable_dlopen_self
20576
 
 
20577
 
# Whether dlopen of statically linked programs is supported.
20578
 
dlopen_self_static=$enable_dlopen_self_static
20579
 
 
20580
 
# Commands to strip libraries.
20581
 
old_striplib=$lt_old_striplib
20582
 
striplib=$lt_striplib
20583
 
 
20584
 
 
20585
 
# The linker used to build libraries.
20586
 
LD=$lt_LD
20587
 
 
20588
 
# Commands used to build an old-style archive.
20589
 
old_archive_cmds=$lt_old_archive_cmds
20590
 
 
20591
 
# A language specific compiler.
20592
 
CC=$lt_compiler
20593
 
 
20594
 
# Is the compiler the GNU compiler?
20595
 
with_gcc=$GCC
20596
 
 
20597
 
# Compiler flag to turn off builtin functions.
20598
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20599
 
 
20600
 
# How to pass a linker flag through the compiler.
20601
 
wl=$lt_lt_prog_compiler_wl
20602
 
 
20603
 
# Additional compiler flags for building library objects.
20604
 
pic_flag=$lt_lt_prog_compiler_pic
20605
 
 
20606
 
# Compiler flag to prevent dynamic linking.
20607
 
link_static_flag=$lt_lt_prog_compiler_static
20608
 
 
20609
 
# Does compiler simultaneously support -c and -o options?
20610
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20611
 
 
20612
 
# Whether or not to add -lc for building shared libraries.
20613
 
build_libtool_need_lc=$archive_cmds_need_lc
20614
 
 
20615
 
# Whether or not to disallow shared libs when runtime libs are static.
20616
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20617
 
 
20618
 
# Compiler flag to allow reflexive dlopens.
20619
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20620
 
 
20621
 
# Compiler flag to generate shared objects directly from archives.
20622
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
20623
 
 
20624
 
# Whether the compiler copes with passing no objects directly.
20625
 
compiler_needs_object=$lt_compiler_needs_object
20626
 
 
20627
 
# Create an old-style archive from a shared archive.
20628
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20629
 
 
20630
 
# Create a temporary old-style archive to link instead of a shared archive.
20631
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20632
 
 
20633
 
# Commands used to build a shared archive.
20634
 
archive_cmds=$lt_archive_cmds
20635
 
archive_expsym_cmds=$lt_archive_expsym_cmds
20636
 
 
20637
 
# Commands used to build a loadable module if different from building
20638
 
# a shared archive.
20639
 
module_cmds=$lt_module_cmds
20640
 
module_expsym_cmds=$lt_module_expsym_cmds
20641
 
 
20642
 
# Whether we are building with GNU ld or not.
20643
 
with_gnu_ld=$lt_with_gnu_ld
20644
 
 
20645
 
# Flag that allows shared libraries with undefined symbols to be built.
20646
 
allow_undefined_flag=$lt_allow_undefined_flag
20647
 
 
20648
 
# Flag that enforces no undefined symbols.
20649
 
no_undefined_flag=$lt_no_undefined_flag
20650
 
 
20651
 
# Flag to hardcode \$libdir into a binary during linking.
20652
 
# This must work even if \$libdir does not exist
20653
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20654
 
 
20655
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
20656
 
# during linking.  This must work even if \$libdir does not exist.
20657
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20658
 
 
20659
 
# Whether we need a single "-rpath" flag with a separated argument.
20660
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
20661
 
 
20662
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20663
 
# DIR into the resulting binary.
20664
 
hardcode_direct=$hardcode_direct
20665
 
 
20666
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20667
 
# DIR into the resulting binary and the resulting library dependency is
20668
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20669
 
# library is relocated.
20670
 
hardcode_direct_absolute=$hardcode_direct_absolute
20671
 
 
20672
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20673
 
# into the resulting binary.
20674
 
hardcode_minus_L=$hardcode_minus_L
20675
 
 
20676
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20677
 
# into the resulting binary.
20678
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
20679
 
 
20680
 
# Set to "yes" if building a shared library automatically hardcodes DIR
20681
 
# into the library and all subsequent libraries and executables linked
20682
 
# against it.
20683
 
hardcode_automatic=$hardcode_automatic
20684
 
 
20685
 
# Set to yes if linker adds runtime paths of dependent libraries
20686
 
# to runtime path list.
20687
 
inherit_rpath=$inherit_rpath
20688
 
 
20689
 
# Whether libtool must link a program against all its dependency libraries.
20690
 
link_all_deplibs=$link_all_deplibs
20691
 
 
20692
 
# Fix the shell variable \$srcfile for the compiler.
20693
 
fix_srcfile_path=$lt_fix_srcfile_path
20694
 
 
20695
 
# Set to "yes" if exported symbols are required.
20696
 
always_export_symbols=$always_export_symbols
20697
 
 
20698
 
# The commands to list exported symbols.
20699
 
export_symbols_cmds=$lt_export_symbols_cmds
20700
 
 
20701
 
# Symbols that should not be listed in the preloaded symbols.
20702
 
exclude_expsyms=$lt_exclude_expsyms
20703
 
 
20704
 
# Symbols that must always be exported.
20705
 
include_expsyms=$lt_include_expsyms
20706
 
 
20707
 
# Commands necessary for linking programs (against libraries) with templates.
20708
 
prelink_cmds=$lt_prelink_cmds
20709
 
 
20710
 
# Specify filename containing input files.
20711
 
file_list_spec=$lt_file_list_spec
20712
 
 
20713
 
# How to hardcode a shared library path into an executable.
20714
 
hardcode_action=$hardcode_action
20715
 
 
20716
 
# The directories searched by this compiler when creating a shared library.
20717
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20718
 
 
20719
 
# Dependencies to place before and after the objects being linked to
20720
 
# create a shared library.
20721
 
predep_objects=$lt_predep_objects
20722
 
postdep_objects=$lt_postdep_objects
20723
 
predeps=$lt_predeps
20724
 
postdeps=$lt_postdeps
20725
 
 
20726
 
# The library search path used internally by the compiler when linking
20727
 
# a shared library.
20728
 
compiler_lib_search_path=$lt_compiler_lib_search_path
20729
 
 
20730
 
# ### END LIBTOOL CONFIG
20731
 
 
20732
 
_LT_EOF
20733
 
 
20734
 
  case $host_os in
20735
 
  aix3*)
20736
 
    cat <<\_LT_EOF >> "$cfgfile"
20737
 
# AIX sometimes has problems with the GCC collect2 program.  For some
20738
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
20739
 
# vanish in a puff of smoke.
20740
 
if test "X${COLLECT_NAMES+set}" != Xset; then
20741
 
  COLLECT_NAMES=
20742
 
  export COLLECT_NAMES
20743
 
fi
20744
 
_LT_EOF
20745
 
    ;;
20746
 
  esac
20747
 
 
20748
 
 
20749
 
ltmain="$ac_aux_dir/ltmain.sh"
20750
 
 
20751
 
 
20752
 
  # We use sed instead of cat because bash on DJGPP gets confused if
20753
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20754
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
20755
 
  # is reportedly fixed, but why not run on old versions too?
20756
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20757
 
    || (rm -f "$cfgfile"; exit 1)
20758
 
 
20759
 
  case $xsi_shell in
20760
 
  yes)
20761
 
    cat << \_LT_EOF >> "$cfgfile"
20762
 
 
20763
 
# func_dirname file append nondir_replacement
20764
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20765
 
# otherwise set result to NONDIR_REPLACEMENT.
20766
 
func_dirname ()
20767
 
{
20768
 
  case ${1} in
20769
 
    */*) func_dirname_result="${1%/*}${2}" ;;
20770
 
    *  ) func_dirname_result="${3}" ;;
20771
 
  esac
20772
 
}
20773
 
 
20774
 
# func_basename file
20775
 
func_basename ()
20776
 
{
20777
 
  func_basename_result="${1##*/}"
20778
 
}
20779
 
 
20780
 
# func_dirname_and_basename file append nondir_replacement
20781
 
# perform func_basename and func_dirname in a single function
20782
 
# call:
20783
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
20784
 
#             add APPEND to the result, otherwise set result
20785
 
#             to NONDIR_REPLACEMENT.
20786
 
#             value returned in "$func_dirname_result"
20787
 
#   basename: Compute filename of FILE.
20788
 
#             value retuned in "$func_basename_result"
20789
 
# Implementation must be kept synchronized with func_dirname
20790
 
# and func_basename. For efficiency, we do not delegate to
20791
 
# those functions but instead duplicate the functionality here.
20792
 
func_dirname_and_basename ()
20793
 
{
20794
 
  case ${1} in
20795
 
    */*) func_dirname_result="${1%/*}${2}" ;;
20796
 
    *  ) func_dirname_result="${3}" ;;
20797
 
  esac
20798
 
  func_basename_result="${1##*/}"
20799
 
}
20800
 
 
20801
 
# func_stripname prefix suffix name
20802
 
# strip PREFIX and SUFFIX off of NAME.
20803
 
# PREFIX and SUFFIX must not contain globbing or regex special
20804
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
20805
 
# dot (in which case that matches only a dot).
20806
 
func_stripname ()
20807
 
{
20808
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20809
 
  # positional parameters, so assign one to ordinary parameter first.
20810
 
  func_stripname_result=${3}
20811
 
  func_stripname_result=${func_stripname_result#"${1}"}
20812
 
  func_stripname_result=${func_stripname_result%"${2}"}
20813
 
}
20814
 
 
20815
 
# func_opt_split
20816
 
func_opt_split ()
20817
 
{
20818
 
  func_opt_split_opt=${1%%=*}
20819
 
  func_opt_split_arg=${1#*=}
20820
 
}
20821
 
 
20822
 
# func_lo2o object
20823
 
func_lo2o ()
20824
 
{
20825
 
  case ${1} in
20826
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20827
 
    *)    func_lo2o_result=${1} ;;
20828
 
  esac
20829
 
}
20830
 
 
20831
 
# func_xform libobj-or-source
20832
 
func_xform ()
20833
 
{
20834
 
  func_xform_result=${1%.*}.lo
20835
 
}
20836
 
 
20837
 
# func_arith arithmetic-term...
20838
 
func_arith ()
20839
 
{
20840
 
  func_arith_result=$(( $* ))
20841
 
}
20842
 
 
20843
 
# func_len string
20844
 
# STRING may not start with a hyphen.
20845
 
func_len ()
20846
 
{
20847
 
  func_len_result=${#1}
20848
 
}
20849
 
 
20850
 
_LT_EOF
20851
 
    ;;
20852
 
  *) # Bourne compatible functions.
20853
 
    cat << \_LT_EOF >> "$cfgfile"
20854
 
 
20855
 
# func_dirname file append nondir_replacement
20856
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20857
 
# otherwise set result to NONDIR_REPLACEMENT.
20858
 
func_dirname ()
20859
 
{
20860
 
  # Extract subdirectory from the argument.
20861
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20862
 
  if test "X$func_dirname_result" = "X${1}"; then
20863
 
    func_dirname_result="${3}"
20864
 
  else
20865
 
    func_dirname_result="$func_dirname_result${2}"
20866
 
  fi
20867
 
}
20868
 
 
20869
 
# func_basename file
20870
 
func_basename ()
20871
 
{
20872
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20873
 
}
20874
 
 
20875
 
 
20876
 
# func_stripname prefix suffix name
20877
 
# strip PREFIX and SUFFIX off of NAME.
20878
 
# PREFIX and SUFFIX must not contain globbing or regex special
20879
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
20880
 
# dot (in which case that matches only a dot).
20881
 
# func_strip_suffix prefix name
20882
 
func_stripname ()
20883
 
{
20884
 
  case ${2} in
20885
 
    .*) func_stripname_result=`$ECHO "X${3}" \
20886
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20887
 
    *)  func_stripname_result=`$ECHO "X${3}" \
20888
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20889
 
  esac
20890
 
}
20891
 
 
20892
 
# sed scripts:
20893
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20894
 
my_sed_long_arg='1s/^-[^=]*=//'
20895
 
 
20896
 
# func_opt_split
20897
 
func_opt_split ()
20898
 
{
20899
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20900
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20901
 
}
20902
 
 
20903
 
# func_lo2o object
20904
 
func_lo2o ()
20905
 
{
20906
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20907
 
}
20908
 
 
20909
 
# func_xform libobj-or-source
20910
 
func_xform ()
20911
 
{
20912
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20913
 
}
20914
 
 
20915
 
# func_arith arithmetic-term...
20916
 
func_arith ()
20917
 
{
20918
 
  func_arith_result=`expr "$@"`
20919
 
}
20920
 
 
20921
 
# func_len string
20922
 
# STRING may not start with a hyphen.
20923
 
func_len ()
20924
 
{
20925
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20926
 
}
20927
 
 
20928
 
_LT_EOF
20929
 
esac
20930
 
 
20931
 
case $lt_shell_append in
20932
 
  yes)
20933
 
    cat << \_LT_EOF >> "$cfgfile"
20934
 
 
20935
 
# func_append var value
20936
 
# Append VALUE to the end of shell variable VAR.
20937
 
func_append ()
20938
 
{
20939
 
  eval "$1+=\$2"
20940
 
}
20941
 
_LT_EOF
20942
 
    ;;
20943
 
  *)
20944
 
    cat << \_LT_EOF >> "$cfgfile"
20945
 
 
20946
 
# func_append var value
20947
 
# Append VALUE to the end of shell variable VAR.
20948
 
func_append ()
20949
 
{
20950
 
  eval "$1=\$$1\$2"
20951
 
}
20952
 
 
20953
 
_LT_EOF
20954
 
    ;;
20955
 
  esac
20956
 
 
20957
 
 
20958
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20959
 
    || (rm -f "$cfgfile"; exit 1)
20960
 
 
20961
 
  mv -f "$cfgfile" "$ofile" ||
20962
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20963
 
  chmod +x "$ofile"
20964
 
 
20965
 
 
20966
 
    cat <<_LT_EOF >> "$ofile"
20967
 
 
20968
 
# ### BEGIN LIBTOOL TAG CONFIG: CXX
20969
 
 
20970
 
# The linker used to build libraries.
20971
 
LD=$lt_LD_CXX
20972
 
 
20973
 
# Commands used to build an old-style archive.
20974
 
old_archive_cmds=$lt_old_archive_cmds_CXX
20975
 
 
20976
 
# A language specific compiler.
20977
 
CC=$lt_compiler_CXX
20978
 
 
20979
 
# Is the compiler the GNU compiler?
20980
 
with_gcc=$GCC_CXX
20981
 
 
20982
 
# Compiler flag to turn off builtin functions.
20983
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20984
 
 
20985
 
# How to pass a linker flag through the compiler.
20986
 
wl=$lt_lt_prog_compiler_wl_CXX
20987
 
 
20988
 
# Additional compiler flags for building library objects.
20989
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
20990
 
 
20991
 
# Compiler flag to prevent dynamic linking.
20992
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
20993
 
 
20994
 
# Does compiler simultaneously support -c and -o options?
20995
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20996
 
 
20997
 
# Whether or not to add -lc for building shared libraries.
20998
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
20999
 
 
21000
 
# Whether or not to disallow shared libs when runtime libs are static.
21001
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21002
 
 
21003
 
# Compiler flag to allow reflexive dlopens.
21004
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21005
 
 
21006
 
# Compiler flag to generate shared objects directly from archives.
21007
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21008
 
 
21009
 
# Whether the compiler copes with passing no objects directly.
21010
 
compiler_needs_object=$lt_compiler_needs_object_CXX
21011
 
 
21012
 
# Create an old-style archive from a shared archive.
21013
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21014
 
 
21015
 
# Create a temporary old-style archive to link instead of a shared archive.
21016
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21017
 
 
21018
 
# Commands used to build a shared archive.
21019
 
archive_cmds=$lt_archive_cmds_CXX
21020
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21021
 
 
21022
 
# Commands used to build a loadable module if different from building
21023
 
# a shared archive.
21024
 
module_cmds=$lt_module_cmds_CXX
21025
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
21026
 
 
21027
 
# Whether we are building with GNU ld or not.
21028
 
with_gnu_ld=$lt_with_gnu_ld_CXX
21029
 
 
21030
 
# Flag that allows shared libraries with undefined symbols to be built.
21031
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
21032
 
 
21033
 
# Flag that enforces no undefined symbols.
21034
 
no_undefined_flag=$lt_no_undefined_flag_CXX
21035
 
 
21036
 
# Flag to hardcode \$libdir into a binary during linking.
21037
 
# This must work even if \$libdir does not exist
21038
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21039
 
 
21040
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
21041
 
# during linking.  This must work even if \$libdir does not exist.
21042
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21043
 
 
21044
 
# Whether we need a single "-rpath" flag with a separated argument.
21045
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21046
 
 
21047
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21048
 
# DIR into the resulting binary.
21049
 
hardcode_direct=$hardcode_direct_CXX
21050
 
 
21051
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21052
 
# DIR into the resulting binary and the resulting library dependency is
21053
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21054
 
# library is relocated.
21055
 
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21056
 
 
21057
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21058
 
# into the resulting binary.
21059
 
hardcode_minus_L=$hardcode_minus_L_CXX
21060
 
 
21061
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21062
 
# into the resulting binary.
21063
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21064
 
 
21065
 
# Set to "yes" if building a shared library automatically hardcodes DIR
21066
 
# into the library and all subsequent libraries and executables linked
21067
 
# against it.
21068
 
hardcode_automatic=$hardcode_automatic_CXX
21069
 
 
21070
 
# Set to yes if linker adds runtime paths of dependent libraries
21071
 
# to runtime path list.
21072
 
inherit_rpath=$inherit_rpath_CXX
21073
 
 
21074
 
# Whether libtool must link a program against all its dependency libraries.
21075
 
link_all_deplibs=$link_all_deplibs_CXX
21076
 
 
21077
 
# Fix the shell variable \$srcfile for the compiler.
21078
 
fix_srcfile_path=$lt_fix_srcfile_path_CXX
21079
 
 
21080
 
# Set to "yes" if exported symbols are required.
21081
 
always_export_symbols=$always_export_symbols_CXX
21082
 
 
21083
 
# The commands to list exported symbols.
21084
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
21085
 
 
21086
 
# Symbols that should not be listed in the preloaded symbols.
21087
 
exclude_expsyms=$lt_exclude_expsyms_CXX
21088
 
 
21089
 
# Symbols that must always be exported.
21090
 
include_expsyms=$lt_include_expsyms_CXX
21091
 
 
21092
 
# Commands necessary for linking programs (against libraries) with templates.
21093
 
prelink_cmds=$lt_prelink_cmds_CXX
21094
 
 
21095
 
# Specify filename containing input files.
21096
 
file_list_spec=$lt_file_list_spec_CXX
21097
 
 
21098
 
# How to hardcode a shared library path into an executable.
21099
 
hardcode_action=$hardcode_action_CXX
21100
 
 
21101
 
# The directories searched by this compiler when creating a shared library.
21102
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21103
 
 
21104
 
# Dependencies to place before and after the objects being linked to
21105
 
# create a shared library.
21106
 
predep_objects=$lt_predep_objects_CXX
21107
 
postdep_objects=$lt_postdep_objects_CXX
21108
 
predeps=$lt_predeps_CXX
21109
 
postdeps=$lt_postdeps_CXX
21110
 
 
21111
 
# The library search path used internally by the compiler when linking
21112
 
# a shared library.
21113
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21114
 
 
21115
 
# ### END LIBTOOL TAG CONFIG: CXX
21116
 
_LT_EOF
21117
 
 
21118
 
 ;;
21119
 
 
21120
 
  esac
21121
 
done # for ac_tag
21122
 
 
21123
 
 
21124
 
as_fn_exit 0
21125
 
_ACEOF
21126
 
ac_clean_files=$ac_clean_files_save
21127
 
 
21128
 
test $ac_write_fail = 0 ||
21129
 
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21130
 
 
21131
 
 
21132
 
# configure is writing to config.log, and then calls config.status.
21133
 
# config.status does its own redirection, appending to config.log.
21134
 
# Unfortunately, on DOS this fails, as config.log is still kept open
21135
 
# by configure, so config.status won't be able to write to it; its
21136
 
# output is simply discarded.  So we exec the FD to /dev/null,
21137
 
# effectively closing config.log, so it can be properly (re)opened and
21138
 
# appended to by config.status.  When coming back to configure, we
21139
 
# need to make the FD available again.
21140
 
if test "$no_create" != yes; then
21141
 
  ac_cs_success=:
21142
 
  ac_config_status_args=
21143
 
  test "$silent" = yes &&
21144
 
    ac_config_status_args="$ac_config_status_args --quiet"
21145
 
  exec 5>/dev/null
21146
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21147
 
  exec 5>>config.log
21148
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21149
 
  # would make configure fail if this is the last instruction.
21150
 
  $ac_cs_success || as_fn_exit 1
21151
 
fi
21152
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21153
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21154
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21155
 
fi
21156
 
 
21157
 
 
21158
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration done! Please make sure that pjsip library (libs/pjproject) has already been compiled. Run \`make' to build the software." >&5
21159
 
$as_echo "$as_me: Configuration done! Please make sure that pjsip library (libs/pjproject) has already been compiled. Run \`make' to build the software." >&6;}