~ubuntu-branches/ubuntu/wily/ekiga/wily

« back to all changes in this revision

Viewing changes to .pc/powerpcspe.patch/configure

  • Committer: Package Import Robot
  • Author(s): Eugen Dedu, Eugen Dedu, Emilio Pozuelo Monfort
  • Date: 2014-01-18 11:28:19 UTC
  • mfrom: (7.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20140118112819-oupqta6qugwsrgyo
Tags: 4.0.1-3
[ Eugen Dedu ]
* Install README.security in doc directory (Closes: #712033)
* Fix debian svn/vcs information
* Fix FTBFS on powerpcspe (Closes: 701565)
* Fix FTBFS with recent boost libraries (Closes: 735791)

[ Emilio Pozuelo Monfort ]
* debian/rules:
  + Disable silent rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.69 for ekiga 4.0.1.
 
4
#
 
5
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=ekiga>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
 
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    PATH=/empty FPATH=/empty; export PATH FPATH
 
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
209
test \$(( 1 + 1 )) = 2 || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in #(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
278
$0: http://bugzilla.gnome.org/enter_bug.cgi?product=ekiga
 
279
$0: about your system, including any error possibly output
 
280
$0: before this message. Then install a modern shell, or
 
281
$0: manually run the script under such a shell if you do
 
282
$0: have one."
 
283
  fi
 
284
  exit 1
 
285
fi
 
286
fi
 
287
fi
 
288
SHELL=${CONFIG_SHELL-/bin/sh}
 
289
export SHELL
 
290
# Unset more variables known to interfere with behavior of common tools.
 
291
CLICOLOR_FORCE= GREP_OPTIONS=
 
292
unset CLICOLOR_FORCE GREP_OPTIONS
 
293
 
 
294
## --------------------- ##
 
295
## M4sh Shell Functions. ##
 
296
## --------------------- ##
 
297
# as_fn_unset VAR
 
298
# ---------------
 
299
# Portably unset VAR.
 
300
as_fn_unset ()
 
301
{
 
302
  { eval $1=; unset $1;}
 
303
}
 
304
as_unset=as_fn_unset
 
305
 
 
306
# as_fn_set_status STATUS
 
307
# -----------------------
 
308
# Set $? to STATUS, without forking.
 
309
as_fn_set_status ()
 
310
{
 
311
  return $1
 
312
} # as_fn_set_status
 
313
 
 
314
# as_fn_exit STATUS
 
315
# -----------------
 
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
317
as_fn_exit ()
 
318
{
 
319
  set +e
 
320
  as_fn_set_status $1
 
321
  exit $1
 
322
} # as_fn_exit
 
323
 
 
324
# as_fn_mkdir_p
 
325
# -------------
 
326
# Create "$as_dir" as a directory, including parents if necessary.
 
327
as_fn_mkdir_p ()
 
328
{
 
329
 
 
330
  case $as_dir in #(
 
331
  -*) as_dir=./$as_dir;;
 
332
  esac
 
333
  test -d "$as_dir" || eval $as_mkdir_p || {
 
334
    as_dirs=
 
335
    while :; do
 
336
      case $as_dir in #(
 
337
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
338
      *) as_qdir=$as_dir;;
 
339
      esac
 
340
      as_dirs="'$as_qdir' $as_dirs"
 
341
      as_dir=`$as_dirname -- "$as_dir" ||
 
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
343
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
344
         X"$as_dir" : 'X\(//\)$' \| \
 
345
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
346
$as_echo X"$as_dir" |
 
347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
348
            s//\1/
 
349
            q
 
350
          }
 
351
          /^X\(\/\/\)[^/].*/{
 
352
            s//\1/
 
353
            q
 
354
          }
 
355
          /^X\(\/\/\)$/{
 
356
            s//\1/
 
357
            q
 
358
          }
 
359
          /^X\(\/\).*/{
 
360
            s//\1/
 
361
            q
 
362
          }
 
363
          s/.*/./; q'`
 
364
      test -d "$as_dir" && break
 
365
    done
 
366
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
367
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
368
 
 
369
 
 
370
} # as_fn_mkdir_p
 
371
 
 
372
# as_fn_executable_p FILE
 
373
# -----------------------
 
374
# Test if FILE is an executable regular file.
 
375
as_fn_executable_p ()
 
376
{
 
377
  test -f "$1" && test -x "$1"
 
378
} # as_fn_executable_p
 
379
# as_fn_append VAR VALUE
 
380
# ----------------------
 
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
382
# advantage of any shell optimizations that allow amortized linear growth over
 
383
# repeated appends, instead of the typical quadratic growth present in naive
 
384
# implementations.
 
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
386
  eval 'as_fn_append ()
 
387
  {
 
388
    eval $1+=\$2
 
389
  }'
 
390
else
 
391
  as_fn_append ()
 
392
  {
 
393
    eval $1=\$$1\$2
 
394
  }
 
395
fi # as_fn_append
 
396
 
 
397
# as_fn_arith ARG...
 
398
# ------------------
 
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
401
# must be portable across $(()) and expr.
 
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
403
  eval 'as_fn_arith ()
 
404
  {
 
405
    as_val=$(( $* ))
 
406
  }'
 
407
else
 
408
  as_fn_arith ()
 
409
  {
 
410
    as_val=`expr "$@" || test $? -eq 1`
 
411
  }
 
412
fi # as_fn_arith
 
413
 
 
414
 
 
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
416
# ----------------------------------------
 
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
419
# script with STATUS, using 1 if that was 0.
 
420
as_fn_error ()
 
421
{
 
422
  as_status=$1; test $as_status -eq 0 && as_status=1
 
423
  if test "$4"; then
 
424
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
425
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
426
  fi
 
427
  $as_echo "$as_me: error: $2" >&2
 
428
  as_fn_exit $as_status
 
429
} # as_fn_error
 
430
 
 
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
432
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
433
  as_expr=expr
 
434
else
 
435
  as_expr=false
 
436
fi
 
437
 
 
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
439
  as_basename=basename
 
440
else
 
441
  as_basename=false
 
442
fi
 
443
 
 
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
445
  as_dirname=dirname
 
446
else
 
447
  as_dirname=false
 
448
fi
 
449
 
 
450
as_me=`$as_basename -- "$0" ||
 
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
452
         X"$0" : 'X\(//\)$' \| \
 
453
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
454
$as_echo X/"$0" |
 
455
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
456
            s//\1/
 
457
            q
 
458
          }
 
459
          /^X\/\(\/\/\)$/{
 
460
            s//\1/
 
461
            q
 
462
          }
 
463
          /^X\/\(\/\).*/{
 
464
            s//\1/
 
465
            q
 
466
          }
 
467
          s/.*/./; q'`
 
468
 
 
469
# Avoid depending upon Character Ranges.
 
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
473
as_cr_digits='0123456789'
 
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
475
 
 
476
 
 
477
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
478
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
479
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
480
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
481
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
482
  sed -n '
 
483
    p
 
484
    /[$]LINENO/=
 
485
  ' <$as_myself |
 
486
    sed '
 
487
      s/[$]LINENO.*/&-/
 
488
      t lineno
 
489
      b
 
490
      :lineno
 
491
      N
 
492
      :loop
 
493
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
494
      t loop
 
495
      s/-\n.*//
 
496
    ' >$as_me.lineno &&
 
497
  chmod +x "$as_me.lineno" ||
 
498
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
499
 
 
500
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
501
  # already done that, so ensure we don't try to do so again and fall
 
502
  # in an infinite loop.  This has already happened in practice.
 
503
  _as_can_reexec=no; export _as_can_reexec
 
504
  # Don't try to exec as it changes $[0], causing all sort of problems
 
505
  # (the dirname of $[0] is not the place where we might find the
 
506
  # original and so on.  Autoconf is especially sensitive to this).
 
507
  . "./$as_me.lineno"
 
508
  # Exit status is that of the last command.
 
509
  exit
 
510
}
 
511
 
 
512
ECHO_C= ECHO_N= ECHO_T=
 
513
case `echo -n x` in #(((((
 
514
-n*)
 
515
  case `echo 'xy\c'` in
 
516
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
517
  xy)  ECHO_C='\c';;
 
518
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
519
       ECHO_T=' ';;
 
520
  esac;;
 
521
*)
 
522
  ECHO_N='-n';;
 
523
esac
 
524
 
 
525
rm -f conf$$ conf$$.exe conf$$.file
 
526
if test -d conf$$.dir; then
 
527
  rm -f conf$$.dir/conf$$.file
 
528
else
 
529
  rm -f conf$$.dir
 
530
  mkdir conf$$.dir 2>/dev/null
 
531
fi
 
532
if (echo >conf$$.file) 2>/dev/null; then
 
533
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
534
    as_ln_s='ln -s'
 
535
    # ... but there are two gotchas:
 
536
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
537
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
538
    # In both cases, we have to default to `cp -pR'.
 
539
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
540
      as_ln_s='cp -pR'
 
541
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
542
    as_ln_s=ln
 
543
  else
 
544
    as_ln_s='cp -pR'
 
545
  fi
 
546
else
 
547
  as_ln_s='cp -pR'
 
548
fi
 
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
550
rmdir conf$$.dir 2>/dev/null
 
551
 
 
552
if mkdir -p . 2>/dev/null; then
 
553
  as_mkdir_p='mkdir -p "$as_dir"'
 
554
else
 
555
  test -d ./-p && rmdir ./-p
 
556
  as_mkdir_p=false
 
557
fi
 
558
 
 
559
as_test_x='test -x'
 
560
as_executable_p=as_fn_executable_p
 
561
 
 
562
# Sed expression to map a string onto a valid CPP name.
 
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
564
 
 
565
# Sed expression to map a string onto a valid variable name.
 
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
567
 
 
568
SHELL=${CONFIG_SHELL-/bin/sh}
 
569
 
 
570
 
 
571
test -n "$DJDIR" || exec 7<&0 </dev/null
 
572
exec 6>&1
 
573
 
 
574
# Name of the host.
 
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
576
# so uname gets run too.
 
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
578
 
 
579
#
 
580
# Initializations.
 
581
#
 
582
ac_default_prefix=/usr/local
 
583
ac_clean_files=
 
584
ac_config_libobj_dir=.
 
585
LIBOBJS=
 
586
cross_compiling=no
 
587
subdirs=
 
588
MFLAGS=
 
589
MAKEFLAGS=
 
590
 
 
591
# Identity of this package.
 
592
PACKAGE_NAME='ekiga'
 
593
PACKAGE_TARNAME='ekiga'
 
594
PACKAGE_VERSION='4.0.1'
 
595
PACKAGE_STRING='ekiga 4.0.1'
 
596
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=ekiga'
 
597
PACKAGE_URL=''
 
598
 
 
599
ac_unique_file="src/ekiga.cpp"
 
600
# Factoring default headers for most tests.
 
601
ac_includes_default="\
 
602
#include <stdio.h>
 
603
#ifdef HAVE_SYS_TYPES_H
 
604
# include <sys/types.h>
 
605
#endif
 
606
#ifdef HAVE_SYS_STAT_H
 
607
# include <sys/stat.h>
 
608
#endif
 
609
#ifdef STDC_HEADERS
 
610
# include <stdlib.h>
 
611
# include <stddef.h>
 
612
#else
 
613
# ifdef HAVE_STDLIB_H
 
614
#  include <stdlib.h>
 
615
# endif
 
616
#endif
 
617
#ifdef HAVE_STRING_H
 
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
619
#  include <memory.h>
 
620
# endif
 
621
# include <string.h>
 
622
#endif
 
623
#ifdef HAVE_STRINGS_H
 
624
# include <strings.h>
 
625
#endif
 
626
#ifdef HAVE_INTTYPES_H
 
627
# include <inttypes.h>
 
628
#endif
 
629
#ifdef HAVE_STDINT_H
 
630
# include <stdint.h>
 
631
#endif
 
632
#ifdef HAVE_UNISTD_H
 
633
# include <unistd.h>
 
634
#endif"
 
635
 
 
636
ac_subst_vars='am__EXEEXT_FALSE
 
637
am__EXEEXT_TRUE
 
638
LTLIBOBJS
 
639
LIBOBJS
 
640
STACKLIB_LDFLAGS
 
641
PLUGIN_DIR
 
642
PLUGINS_LIBTOOL_FLAGS
 
643
plugindir
 
644
stacklibdir
 
645
gnomeconfdir
 
646
gnomedatadir
 
647
MKINSTALLDIRS
 
648
POSUB
 
649
POFILES
 
650
PO_IN_DATADIR_FALSE
 
651
PO_IN_DATADIR_TRUE
 
652
INTLLIBS
 
653
INSTOBJEXT
 
654
GMOFILES
 
655
CATOBJEXT
 
656
CATALOGS
 
657
MSGFMT_OPTS
 
658
GETTEXT_PACKAGE
 
659
DEBUG_FALSE
 
660
DEBUG_TRUE
 
661
HAVE_H323_FALSE
 
662
HAVE_H323_TRUE
 
663
OPAL_LIBS
 
664
OPAL_CFLAGS
 
665
PTLIB_LIBS
 
666
PTLIB_CFLAGS
 
667
SK_CONFIG
 
668
HAVE_GNOME_DOC_UTILS_FALSE
 
669
HAVE_GNOME_DOC_UTILS_TRUE
 
670
DISTCHECK_CONFIGURE_FLAGS
 
671
ENABLE_SK_FALSE
 
672
ENABLE_SK_TRUE
 
673
DOC_USER_FORMATS
 
674
OMF_DIR
 
675
HELP_DIR
 
676
HAVE_LOUDMOUTH_FALSE
 
677
HAVE_LOUDMOUTH_TRUE
 
678
LOUDMOUTH_LIBS
 
679
LOUDMOUTH_CFLAGS
 
680
HAVE_XCAP_FALSE
 
681
HAVE_XCAP_TRUE
 
682
SOUP_LIBS
 
683
SOUP_CFLAGS
 
684
HAVE_KAB_FALSE
 
685
HAVE_KAB_TRUE
 
686
KAB_LIBS
 
687
KAB_CFLAGS
 
688
HAVE_KDE_FALSE
 
689
HAVE_KDE_TRUE
 
690
KDE_LIBS
 
691
KDE_CFLAGS
 
692
HAVE_GSTREAMER_FALSE
 
693
HAVE_GSTREAMER_TRUE
 
694
GSTREAMER_LIBS
 
695
GSTREAMER_CFLAGS
 
696
HAVE_AVAHI_FALSE
 
697
HAVE_AVAHI_TRUE
 
698
AVAHI_LIBS
 
699
AVAHI_CFLAGS
 
700
HAVE_V4L_FALSE
 
701
HAVE_V4L_TRUE
 
702
INSTALL_DBUS_SERVICE_FALSE
 
703
INSTALL_DBUS_SERVICE_TRUE
 
704
HAVE_DBUS_FALSE
 
705
HAVE_DBUS_TRUE
 
706
DBUS_LIBS
 
707
DBUS_CFLAGS
 
708
HAVE_DX_FALSE
 
709
HAVE_DX_TRUE
 
710
DX_CFLAGS
 
711
DX_LIBS
 
712
HAVE_XV_FALSE
 
713
HAVE_XV_TRUE
 
714
XV_LIBS
 
715
XV_CFLAGS
 
716
HAVE_SHM_FALSE
 
717
HAVE_SHM_TRUE
 
718
SHM_LIBS
 
719
USE_MMX_FALSE
 
720
USE_MMX_TRUE
 
721
am__fastdepCCAS_FALSE
 
722
am__fastdepCCAS_TRUE
 
723
CCASDEPMODE
 
724
CCASFLAGS
 
725
CCAS
 
726
HAVE_LDAP_FALSE
 
727
HAVE_LDAP_TRUE
 
728
LDAP_LIBS
 
729
LDAP_CFLAGS
 
730
HAVE_NOTIFY_FALSE
 
731
HAVE_NOTIFY_TRUE
 
732
NOTIFY_LIBS
 
733
NOTIFY_CFLAGS
 
734
HAVE_EDS_FALSE
 
735
HAVE_EDS_TRUE
 
736
EDS_LIBS
 
737
EDS_CFLAGS
 
738
HAVE_GCONF_FALSE
 
739
HAVE_GCONF_TRUE
 
740
GCONF_SCHEMAS_INSTALL_FALSE
 
741
GCONF_SCHEMAS_INSTALL_TRUE
 
742
GCONF_SCHEMA_FILE_DIR
 
743
GCONF_SCHEMA_CONFIG_SOURCE
 
744
GCONF_LIBS
 
745
GCONF_CFLAGS
 
746
XML_LIBS
 
747
XML_CFLAGS
 
748
BOOST_LIBS
 
749
BOOST_SIGNALS_LIB
 
750
BOOST_LDFLAGS
 
751
BOOST_CPPFLAGS
 
752
GLIB_LIBS
 
753
GLIB_CFLAGS
 
754
GTK_LIBS
 
755
GTK_CFLAGS
 
756
DATADIRNAME
 
757
ALL_LINGUAS
 
758
INTLTOOL_PERL
 
759
GMSGFMT
 
760
MSGFMT
 
761
MSGMERGE
 
762
XGETTEXT
 
763
INTLTOOL_POLICY_RULE
 
764
INTLTOOL_SERVICE_RULE
 
765
INTLTOOL_THEME_RULE
 
766
INTLTOOL_SCHEMAS_RULE
 
767
INTLTOOL_CAVES_RULE
 
768
INTLTOOL_XML_NOMERGE_RULE
 
769
INTLTOOL_XML_RULE
 
770
INTLTOOL_KBD_RULE
 
771
INTLTOOL_XAM_RULE
 
772
INTLTOOL_UI_RULE
 
773
INTLTOOL_SOUNDLIST_RULE
 
774
INTLTOOL_SHEET_RULE
 
775
INTLTOOL_SERVER_RULE
 
776
INTLTOOL_PONG_RULE
 
777
INTLTOOL_OAF_RULE
 
778
INTLTOOL_PROP_RULE
 
779
INTLTOOL_KEYS_RULE
 
780
INTLTOOL_DIRECTORY_RULE
 
781
INTLTOOL_DESKTOP_RULE
 
782
intltool__v_merge_options_0
 
783
intltool__v_merge_options_
 
784
INTLTOOL_V_MERGE_OPTIONS
 
785
INTLTOOL__v_MERGE_0
 
786
INTLTOOL__v_MERGE_
 
787
INTLTOOL_V_MERGE
 
788
INTLTOOL_EXTRACT
 
789
INTLTOOL_MERGE
 
790
INTLTOOL_UPDATE
 
791
USE_NLS
 
792
WIN32_FALSE
 
793
WIN32_TRUE
 
794
CXXCPP
 
795
CPP
 
796
OTOOL64
 
797
OTOOL
 
798
LIPO
 
799
NMEDIT
 
800
DSYMUTIL
 
801
MANIFEST_TOOL
 
802
RANLIB
 
803
am__fastdepCXX_FALSE
 
804
am__fastdepCXX_TRUE
 
805
CXXDEPMODE
 
806
ac_ct_CXX
 
807
CXXFLAGS
 
808
CXX
 
809
ac_ct_AR
 
810
AR
 
811
DLLTOOL
 
812
OBJDUMP
 
813
LN_S
 
814
NM
 
815
ac_ct_DUMPBIN
 
816
DUMPBIN
 
817
LD
 
818
FGREP
 
819
EGREP
 
820
GREP
 
821
SED
 
822
am__fastdepCC_FALSE
 
823
am__fastdepCC_TRUE
 
824
CCDEPMODE
 
825
am__nodep
 
826
AMDEPBACKSLASH
 
827
AMDEP_FALSE
 
828
AMDEP_TRUE
 
829
am__quote
 
830
am__include
 
831
DEPDIR
 
832
OBJEXT
 
833
EXEEXT
 
834
ac_ct_CC
 
835
CPPFLAGS
 
836
LDFLAGS
 
837
CFLAGS
 
838
CC
 
839
LIBTOOL
 
840
PKG_CONFIG_LIBDIR
 
841
PKG_CONFIG_PATH
 
842
PKG_CONFIG
 
843
AM_BACKSLASH
 
844
AM_DEFAULT_VERBOSITY
 
845
AM_DEFAULT_V
 
846
AM_V
 
847
MAINT
 
848
MAINTAINER_MODE_FALSE
 
849
MAINTAINER_MODE_TRUE
 
850
am__untar
 
851
am__tar
 
852
AMTAR
 
853
am__leading_dot
 
854
SET_MAKE
 
855
AWK
 
856
mkdir_p
 
857
MKDIR_P
 
858
INSTALL_STRIP_PROGRAM
 
859
STRIP
 
860
install_sh
 
861
MAKEINFO
 
862
AUTOHEADER
 
863
AUTOMAKE
 
864
AUTOCONF
 
865
ACLOCAL
 
866
VERSION
 
867
PACKAGE
 
868
CYGPATH_W
 
869
am__isrc
 
870
INSTALL_DATA
 
871
INSTALL_SCRIPT
 
872
INSTALL_PROGRAM
 
873
target_os
 
874
target_vendor
 
875
target_cpu
 
876
target
 
877
host_os
 
878
host_vendor
 
879
host_cpu
 
880
host
 
881
build_os
 
882
build_vendor
 
883
build_cpu
 
884
build
 
885
target_alias
 
886
host_alias
 
887
build_alias
 
888
LIBS
 
889
ECHO_T
 
890
ECHO_N
 
891
ECHO_C
 
892
DEFS
 
893
mandir
 
894
localedir
 
895
libdir
 
896
psdir
 
897
pdfdir
 
898
dvidir
 
899
htmldir
 
900
infodir
 
901
docdir
 
902
oldincludedir
 
903
includedir
 
904
localstatedir
 
905
sharedstatedir
 
906
sysconfdir
 
907
datadir
 
908
datarootdir
 
909
libexecdir
 
910
sbindir
 
911
bindir
 
912
program_transform_name
 
913
prefix
 
914
exec_prefix
 
915
PACKAGE_URL
 
916
PACKAGE_BUGREPORT
 
917
PACKAGE_STRING
 
918
PACKAGE_VERSION
 
919
PACKAGE_TARNAME
 
920
PACKAGE_NAME
 
921
PATH_SEPARATOR
 
922
SHELL'
 
923
ac_subst_files=''
 
924
ac_user_opts='
 
925
enable_option_checking
 
926
enable_maintainer_mode
 
927
enable_silent_rules
 
928
enable_static
 
929
enable_shared
 
930
with_pic
 
931
enable_fast_install
 
932
enable_dependency_tracking
 
933
with_gnu_ld
 
934
with_sysroot
 
935
enable_libtool_lock
 
936
with_endianess
 
937
enable_nls
 
938
enable_gtk_debug
 
939
with_boost
 
940
with_boost_libdir
 
941
with_boost_signals
 
942
enable_gconf
 
943
with_gconf_source
 
944
with_gconf_schema_file_dir
 
945
enable_schemas_install
 
946
enable_eds
 
947
enable_notify
 
948
enable_ldap
 
949
with_ldap_dir
 
950
with_libsasl2_dir
 
951
enable_mmx
 
952
enable_shm
 
953
enable_xv
 
954
with_directx_dir
 
955
enable_dbus
 
956
enable_dbus_service
 
957
enable_avahi
 
958
enable_gstreamer
 
959
enable_kde
 
960
enable_kab
 
961
enable_xcap
 
962
enable_loudmouth
 
963
with_help_dir
 
964
with_omf_dir
 
965
with_help_formats
 
966
enable_scrollkeeper
 
967
enable_gdu
 
968
enable_opal_debug
 
969
enable_static_libs
 
970
enable_h323
 
971
enable_debug
 
972
'
 
973
      ac_precious_vars='build_alias
 
974
host_alias
 
975
target_alias
 
976
PKG_CONFIG
 
977
PKG_CONFIG_PATH
 
978
PKG_CONFIG_LIBDIR
 
979
CC
 
980
CFLAGS
 
981
LDFLAGS
 
982
LIBS
 
983
CPPFLAGS
 
984
CXX
 
985
CXXFLAGS
 
986
CCC
 
987
CPP
 
988
CXXCPP
 
989
GTK_CFLAGS
 
990
GTK_LIBS
 
991
GLIB_CFLAGS
 
992
GLIB_LIBS
 
993
XML_CFLAGS
 
994
XML_LIBS
 
995
GCONF_CFLAGS
 
996
GCONF_LIBS
 
997
EDS_CFLAGS
 
998
EDS_LIBS
 
999
NOTIFY_CFLAGS
 
1000
NOTIFY_LIBS
 
1001
CCAS
 
1002
CCASFLAGS
 
1003
XV_CFLAGS
 
1004
XV_LIBS
 
1005
DBUS_CFLAGS
 
1006
DBUS_LIBS
 
1007
AVAHI_CFLAGS
 
1008
AVAHI_LIBS
 
1009
GSTREAMER_CFLAGS
 
1010
GSTREAMER_LIBS
 
1011
KDE_CFLAGS
 
1012
KDE_LIBS
 
1013
SOUP_CFLAGS
 
1014
SOUP_LIBS
 
1015
LOUDMOUTH_CFLAGS
 
1016
LOUDMOUTH_LIBS
 
1017
PTLIB_CFLAGS
 
1018
PTLIB_LIBS
 
1019
OPAL_CFLAGS
 
1020
OPAL_LIBS'
 
1021
 
 
1022
 
 
1023
# Initialize some variables set by options.
 
1024
ac_init_help=
 
1025
ac_init_version=false
 
1026
ac_unrecognized_opts=
 
1027
ac_unrecognized_sep=
 
1028
# The variables have the same names as the options, with
 
1029
# dashes changed to underlines.
 
1030
cache_file=/dev/null
 
1031
exec_prefix=NONE
 
1032
no_create=
 
1033
no_recursion=
 
1034
prefix=NONE
 
1035
program_prefix=NONE
 
1036
program_suffix=NONE
 
1037
program_transform_name=s,x,x,
 
1038
silent=
 
1039
site=
 
1040
srcdir=
 
1041
verbose=
 
1042
x_includes=NONE
 
1043
x_libraries=NONE
 
1044
 
 
1045
# Installation directory options.
 
1046
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1047
# and all the variables that are supposed to be based on exec_prefix
 
1048
# by default will actually change.
 
1049
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1050
# (The list follows the same order as the GNU Coding Standards.)
 
1051
bindir='${exec_prefix}/bin'
 
1052
sbindir='${exec_prefix}/sbin'
 
1053
libexecdir='${exec_prefix}/libexec'
 
1054
datarootdir='${prefix}/share'
 
1055
datadir='${datarootdir}'
 
1056
sysconfdir='${prefix}/etc'
 
1057
sharedstatedir='${prefix}/com'
 
1058
localstatedir='${prefix}/var'
 
1059
includedir='${prefix}/include'
 
1060
oldincludedir='/usr/include'
 
1061
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1062
infodir='${datarootdir}/info'
 
1063
htmldir='${docdir}'
 
1064
dvidir='${docdir}'
 
1065
pdfdir='${docdir}'
 
1066
psdir='${docdir}'
 
1067
libdir='${exec_prefix}/lib'
 
1068
localedir='${datarootdir}/locale'
 
1069
mandir='${datarootdir}/man'
 
1070
 
 
1071
ac_prev=
 
1072
ac_dashdash=
 
1073
for ac_option
 
1074
do
 
1075
  # If the previous option needs an argument, assign it.
 
1076
  if test -n "$ac_prev"; then
 
1077
    eval $ac_prev=\$ac_option
 
1078
    ac_prev=
 
1079
    continue
 
1080
  fi
 
1081
 
 
1082
  case $ac_option in
 
1083
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1084
  *=)   ac_optarg= ;;
 
1085
  *)    ac_optarg=yes ;;
 
1086
  esac
 
1087
 
 
1088
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1089
 
 
1090
  case $ac_dashdash$ac_option in
 
1091
  --)
 
1092
    ac_dashdash=yes ;;
 
1093
 
 
1094
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1095
    ac_prev=bindir ;;
 
1096
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1097
    bindir=$ac_optarg ;;
 
1098
 
 
1099
  -build | --build | --buil | --bui | --bu)
 
1100
    ac_prev=build_alias ;;
 
1101
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1102
    build_alias=$ac_optarg ;;
 
1103
 
 
1104
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1105
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1106
    ac_prev=cache_file ;;
 
1107
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1108
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1109
    cache_file=$ac_optarg ;;
 
1110
 
 
1111
  --config-cache | -C)
 
1112
    cache_file=config.cache ;;
 
1113
 
 
1114
  -datadir | --datadir | --datadi | --datad)
 
1115
    ac_prev=datadir ;;
 
1116
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1117
    datadir=$ac_optarg ;;
 
1118
 
 
1119
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1120
  | --dataroo | --dataro | --datar)
 
1121
    ac_prev=datarootdir ;;
 
1122
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1123
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1124
    datarootdir=$ac_optarg ;;
 
1125
 
 
1126
  -disable-* | --disable-*)
 
1127
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1128
    # Reject names that are not valid shell variable names.
 
1129
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1130
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1131
    ac_useropt_orig=$ac_useropt
 
1132
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1133
    case $ac_user_opts in
 
1134
      *"
 
1135
"enable_$ac_useropt"
 
1136
"*) ;;
 
1137
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1138
         ac_unrecognized_sep=', ';;
 
1139
    esac
 
1140
    eval enable_$ac_useropt=no ;;
 
1141
 
 
1142
  -docdir | --docdir | --docdi | --doc | --do)
 
1143
    ac_prev=docdir ;;
 
1144
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1145
    docdir=$ac_optarg ;;
 
1146
 
 
1147
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1148
    ac_prev=dvidir ;;
 
1149
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1150
    dvidir=$ac_optarg ;;
 
1151
 
 
1152
  -enable-* | --enable-*)
 
1153
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1154
    # Reject names that are not valid shell variable names.
 
1155
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1156
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1157
    ac_useropt_orig=$ac_useropt
 
1158
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1159
    case $ac_user_opts in
 
1160
      *"
 
1161
"enable_$ac_useropt"
 
1162
"*) ;;
 
1163
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1164
         ac_unrecognized_sep=', ';;
 
1165
    esac
 
1166
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1167
 
 
1168
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1169
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1170
  | --exec | --exe | --ex)
 
1171
    ac_prev=exec_prefix ;;
 
1172
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1173
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1174
  | --exec=* | --exe=* | --ex=*)
 
1175
    exec_prefix=$ac_optarg ;;
 
1176
 
 
1177
  -gas | --gas | --ga | --g)
 
1178
    # Obsolete; use --with-gas.
 
1179
    with_gas=yes ;;
 
1180
 
 
1181
  -help | --help | --hel | --he | -h)
 
1182
    ac_init_help=long ;;
 
1183
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1184
    ac_init_help=recursive ;;
 
1185
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1186
    ac_init_help=short ;;
 
1187
 
 
1188
  -host | --host | --hos | --ho)
 
1189
    ac_prev=host_alias ;;
 
1190
  -host=* | --host=* | --hos=* | --ho=*)
 
1191
    host_alias=$ac_optarg ;;
 
1192
 
 
1193
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1194
    ac_prev=htmldir ;;
 
1195
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1196
  | --ht=*)
 
1197
    htmldir=$ac_optarg ;;
 
1198
 
 
1199
  -includedir | --includedir | --includedi | --included | --include \
 
1200
  | --includ | --inclu | --incl | --inc)
 
1201
    ac_prev=includedir ;;
 
1202
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1203
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1204
    includedir=$ac_optarg ;;
 
1205
 
 
1206
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1207
    ac_prev=infodir ;;
 
1208
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1209
    infodir=$ac_optarg ;;
 
1210
 
 
1211
  -libdir | --libdir | --libdi | --libd)
 
1212
    ac_prev=libdir ;;
 
1213
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1214
    libdir=$ac_optarg ;;
 
1215
 
 
1216
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1217
  | --libexe | --libex | --libe)
 
1218
    ac_prev=libexecdir ;;
 
1219
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1220
  | --libexe=* | --libex=* | --libe=*)
 
1221
    libexecdir=$ac_optarg ;;
 
1222
 
 
1223
  -localedir | --localedir | --localedi | --localed | --locale)
 
1224
    ac_prev=localedir ;;
 
1225
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1226
    localedir=$ac_optarg ;;
 
1227
 
 
1228
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1229
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1230
    ac_prev=localstatedir ;;
 
1231
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1232
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1233
    localstatedir=$ac_optarg ;;
 
1234
 
 
1235
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1236
    ac_prev=mandir ;;
 
1237
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1238
    mandir=$ac_optarg ;;
 
1239
 
 
1240
  -nfp | --nfp | --nf)
 
1241
    # Obsolete; use --without-fp.
 
1242
    with_fp=no ;;
 
1243
 
 
1244
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1245
  | --no-cr | --no-c | -n)
 
1246
    no_create=yes ;;
 
1247
 
 
1248
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1249
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1250
    no_recursion=yes ;;
 
1251
 
 
1252
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1253
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1254
  | --oldin | --oldi | --old | --ol | --o)
 
1255
    ac_prev=oldincludedir ;;
 
1256
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1257
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1258
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1259
    oldincludedir=$ac_optarg ;;
 
1260
 
 
1261
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1262
    ac_prev=prefix ;;
 
1263
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1264
    prefix=$ac_optarg ;;
 
1265
 
 
1266
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1267
  | --program-pre | --program-pr | --program-p)
 
1268
    ac_prev=program_prefix ;;
 
1269
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1270
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1271
    program_prefix=$ac_optarg ;;
 
1272
 
 
1273
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1274
  | --program-suf | --program-su | --program-s)
 
1275
    ac_prev=program_suffix ;;
 
1276
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1277
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1278
    program_suffix=$ac_optarg ;;
 
1279
 
 
1280
  -program-transform-name | --program-transform-name \
 
1281
  | --program-transform-nam | --program-transform-na \
 
1282
  | --program-transform-n | --program-transform- \
 
1283
  | --program-transform | --program-transfor \
 
1284
  | --program-transfo | --program-transf \
 
1285
  | --program-trans | --program-tran \
 
1286
  | --progr-tra | --program-tr | --program-t)
 
1287
    ac_prev=program_transform_name ;;
 
1288
  -program-transform-name=* | --program-transform-name=* \
 
1289
  | --program-transform-nam=* | --program-transform-na=* \
 
1290
  | --program-transform-n=* | --program-transform-=* \
 
1291
  | --program-transform=* | --program-transfor=* \
 
1292
  | --program-transfo=* | --program-transf=* \
 
1293
  | --program-trans=* | --program-tran=* \
 
1294
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1295
    program_transform_name=$ac_optarg ;;
 
1296
 
 
1297
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1298
    ac_prev=pdfdir ;;
 
1299
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1300
    pdfdir=$ac_optarg ;;
 
1301
 
 
1302
  -psdir | --psdir | --psdi | --psd | --ps)
 
1303
    ac_prev=psdir ;;
 
1304
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1305
    psdir=$ac_optarg ;;
 
1306
 
 
1307
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1308
  | -silent | --silent | --silen | --sile | --sil)
 
1309
    silent=yes ;;
 
1310
 
 
1311
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1312
    ac_prev=sbindir ;;
 
1313
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1314
  | --sbi=* | --sb=*)
 
1315
    sbindir=$ac_optarg ;;
 
1316
 
 
1317
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1318
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1319
  | --sharedst | --shareds | --shared | --share | --shar \
 
1320
  | --sha | --sh)
 
1321
    ac_prev=sharedstatedir ;;
 
1322
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1323
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1324
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1325
  | --sha=* | --sh=*)
 
1326
    sharedstatedir=$ac_optarg ;;
 
1327
 
 
1328
  -site | --site | --sit)
 
1329
    ac_prev=site ;;
 
1330
  -site=* | --site=* | --sit=*)
 
1331
    site=$ac_optarg ;;
 
1332
 
 
1333
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1334
    ac_prev=srcdir ;;
 
1335
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1336
    srcdir=$ac_optarg ;;
 
1337
 
 
1338
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1339
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1340
    ac_prev=sysconfdir ;;
 
1341
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1342
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1343
    sysconfdir=$ac_optarg ;;
 
1344
 
 
1345
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1346
    ac_prev=target_alias ;;
 
1347
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1348
    target_alias=$ac_optarg ;;
 
1349
 
 
1350
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1351
    verbose=yes ;;
 
1352
 
 
1353
  -version | --version | --versio | --versi | --vers | -V)
 
1354
    ac_init_version=: ;;
 
1355
 
 
1356
  -with-* | --with-*)
 
1357
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1358
    # Reject names that are not valid shell variable names.
 
1359
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1360
      as_fn_error $? "invalid package name: $ac_useropt"
 
1361
    ac_useropt_orig=$ac_useropt
 
1362
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1363
    case $ac_user_opts in
 
1364
      *"
 
1365
"with_$ac_useropt"
 
1366
"*) ;;
 
1367
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1368
         ac_unrecognized_sep=', ';;
 
1369
    esac
 
1370
    eval with_$ac_useropt=\$ac_optarg ;;
 
1371
 
 
1372
  -without-* | --without-*)
 
1373
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1374
    # Reject names that are not valid shell variable names.
 
1375
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1376
      as_fn_error $? "invalid package name: $ac_useropt"
 
1377
    ac_useropt_orig=$ac_useropt
 
1378
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1379
    case $ac_user_opts in
 
1380
      *"
 
1381
"with_$ac_useropt"
 
1382
"*) ;;
 
1383
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1384
         ac_unrecognized_sep=', ';;
 
1385
    esac
 
1386
    eval with_$ac_useropt=no ;;
 
1387
 
 
1388
  --x)
 
1389
    # Obsolete; use --with-x.
 
1390
    with_x=yes ;;
 
1391
 
 
1392
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1393
  | --x-incl | --x-inc | --x-in | --x-i)
 
1394
    ac_prev=x_includes ;;
 
1395
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1396
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1397
    x_includes=$ac_optarg ;;
 
1398
 
 
1399
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1400
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1401
    ac_prev=x_libraries ;;
 
1402
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1403
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1404
    x_libraries=$ac_optarg ;;
 
1405
 
 
1406
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1407
Try \`$0 --help' for more information"
 
1408
    ;;
 
1409
 
 
1410
  *=*)
 
1411
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1412
    # Reject names that are not valid shell variable names.
 
1413
    case $ac_envvar in #(
 
1414
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1415
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1416
    esac
 
1417
    eval $ac_envvar=\$ac_optarg
 
1418
    export $ac_envvar ;;
 
1419
 
 
1420
  *)
 
1421
    # FIXME: should be removed in autoconf 3.0.
 
1422
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1423
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1424
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1425
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1426
    ;;
 
1427
 
 
1428
  esac
 
1429
done
 
1430
 
 
1431
if test -n "$ac_prev"; then
 
1432
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1433
  as_fn_error $? "missing argument to $ac_option"
 
1434
fi
 
1435
 
 
1436
if test -n "$ac_unrecognized_opts"; then
 
1437
  case $enable_option_checking in
 
1438
    no) ;;
 
1439
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1440
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1441
  esac
 
1442
fi
 
1443
 
 
1444
# Check all directory arguments for consistency.
 
1445
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1446
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1447
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1448
                libdir localedir mandir
 
1449
do
 
1450
  eval ac_val=\$$ac_var
 
1451
  # Remove trailing slashes.
 
1452
  case $ac_val in
 
1453
    */ )
 
1454
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1455
      eval $ac_var=\$ac_val;;
 
1456
  esac
 
1457
  # Be sure to have absolute directory names.
 
1458
  case $ac_val in
 
1459
    [\\/$]* | ?:[\\/]* )  continue;;
 
1460
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1461
  esac
 
1462
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1463
done
 
1464
 
 
1465
# There might be people who depend on the old broken behavior: `$host'
 
1466
# used to hold the argument of --host etc.
 
1467
# FIXME: To remove some day.
 
1468
build=$build_alias
 
1469
host=$host_alias
 
1470
target=$target_alias
 
1471
 
 
1472
# FIXME: To remove some day.
 
1473
if test "x$host_alias" != x; then
 
1474
  if test "x$build_alias" = x; then
 
1475
    cross_compiling=maybe
 
1476
  elif test "x$build_alias" != "x$host_alias"; then
 
1477
    cross_compiling=yes
 
1478
  fi
 
1479
fi
 
1480
 
 
1481
ac_tool_prefix=
 
1482
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1483
 
 
1484
test "$silent" = yes && exec 6>/dev/null
 
1485
 
 
1486
 
 
1487
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1488
ac_ls_di=`ls -di .` &&
 
1489
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1490
  as_fn_error $? "working directory cannot be determined"
 
1491
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1492
  as_fn_error $? "pwd does not report name of working directory"
 
1493
 
 
1494
 
 
1495
# Find the source files, if location was not specified.
 
1496
if test -z "$srcdir"; then
 
1497
  ac_srcdir_defaulted=yes
 
1498
  # Try the directory containing this script, then the parent directory.
 
1499
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1500
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1501
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1502
         X"$as_myself" : 'X\(//\)$' \| \
 
1503
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1504
$as_echo X"$as_myself" |
 
1505
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1506
            s//\1/
 
1507
            q
 
1508
          }
 
1509
          /^X\(\/\/\)[^/].*/{
 
1510
            s//\1/
 
1511
            q
 
1512
          }
 
1513
          /^X\(\/\/\)$/{
 
1514
            s//\1/
 
1515
            q
 
1516
          }
 
1517
          /^X\(\/\).*/{
 
1518
            s//\1/
 
1519
            q
 
1520
          }
 
1521
          s/.*/./; q'`
 
1522
  srcdir=$ac_confdir
 
1523
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1524
    srcdir=..
 
1525
  fi
 
1526
else
 
1527
  ac_srcdir_defaulted=no
 
1528
fi
 
1529
if test ! -r "$srcdir/$ac_unique_file"; then
 
1530
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1531
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1532
fi
 
1533
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1534
ac_abs_confdir=`(
 
1535
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1536
        pwd)`
 
1537
# When building in place, set srcdir=.
 
1538
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1539
  srcdir=.
 
1540
fi
 
1541
# Remove unnecessary trailing slashes from srcdir.
 
1542
# Double slashes in file names in object file debugging info
 
1543
# mess up M-x gdb in Emacs.
 
1544
case $srcdir in
 
1545
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1546
esac
 
1547
for ac_var in $ac_precious_vars; do
 
1548
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1549
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1550
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1551
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1552
done
 
1553
 
 
1554
#
 
1555
# Report the --help message.
 
1556
#
 
1557
if test "$ac_init_help" = "long"; then
 
1558
  # Omit some internal or obsolete options to make the list less imposing.
 
1559
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1560
  cat <<_ACEOF
 
1561
\`configure' configures ekiga 4.0.1 to adapt to many kinds of systems.
 
1562
 
 
1563
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1564
 
 
1565
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1566
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1567
 
 
1568
Defaults for the options are specified in brackets.
 
1569
 
 
1570
Configuration:
 
1571
  -h, --help              display this help and exit
 
1572
      --help=short        display options specific to this package
 
1573
      --help=recursive    display the short help of all the included packages
 
1574
  -V, --version           display version information and exit
 
1575
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1576
      --cache-file=FILE   cache test results in FILE [disabled]
 
1577
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1578
  -n, --no-create         do not create output files
 
1579
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1580
 
 
1581
Installation directories:
 
1582
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1583
                          [$ac_default_prefix]
 
1584
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1585
                          [PREFIX]
 
1586
 
 
1587
By default, \`make install' will install all the files in
 
1588
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1589
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1590
for instance \`--prefix=\$HOME'.
 
1591
 
 
1592
For better control, use the options below.
 
1593
 
 
1594
Fine tuning of the installation directories:
 
1595
  --bindir=DIR            user executables [EPREFIX/bin]
 
1596
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1597
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1598
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1599
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1600
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1601
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1602
  --includedir=DIR        C header files [PREFIX/include]
 
1603
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1604
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1605
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1606
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1607
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1608
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1609
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ekiga]
 
1610
  --htmldir=DIR           html documentation [DOCDIR]
 
1611
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1612
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1613
  --psdir=DIR             ps documentation [DOCDIR]
 
1614
_ACEOF
 
1615
 
 
1616
  cat <<\_ACEOF
 
1617
 
 
1618
Program names:
 
1619
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1620
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1621
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1622
 
 
1623
System types:
 
1624
  --build=BUILD     configure for building on BUILD [guessed]
 
1625
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1626
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1627
_ACEOF
 
1628
fi
 
1629
 
 
1630
if test -n "$ac_init_help"; then
 
1631
  case $ac_init_help in
 
1632
     short | recursive ) echo "Configuration of ekiga 4.0.1:";;
 
1633
   esac
 
1634
  cat <<\_ACEOF
 
1635
 
 
1636
Optional Features:
 
1637
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1638
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1639
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1640
  --disable-maintainer-mode  disable make rules and dependencies not useful
 
1641
                          (and sometimes confusing) to the casual installer
 
1642
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1643
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1644
  --enable-static[=PKGS]  build static libraries [default=no]
 
1645
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1646
  --enable-fast-install[=PKGS]
 
1647
                          optimize for fast installation [default=yes]
 
1648
  --disable-dependency-tracking  speeds up one-time build
 
1649
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1650
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1651
  --disable-nls           do not use Native Language Support
 
1652
  --enable-gtk-debug      enable GTK+ debug flags (default is disabled)
 
1653
  --enable-gconf          enable GConf support (default is enabled)
 
1654
  --disable-schemas-install
 
1655
                          Disable the schemas installation
 
1656
  --enable-eds            enable evolution-data-server addressbook support
 
1657
                          (default is enabled)
 
1658
  --enable-notify         enable libnotify support (default is enabled)
 
1659
  --enable-ldap           enable LDAP addressbook support (default is enabled)
 
1660
  --enable-mmx            enable MMX acceleration (default is enabled)
 
1661
  --enable-shm            enable SHM support (default is enabled)
 
1662
  --disable-xv            enable XVideo hardware acceleration (default is
 
1663
                          enabled)
 
1664
  --enable-dbus           enable DBUS support (default is enabled)
 
1665
  --enable-dbus-service   enable DBUS service installation (default is
 
1666
                          enabled)
 
1667
  --enable-avahi          enable mDNS support (default is disabled)
 
1668
  --enable-gstreamer      enable experimental GStreamer support (default is
 
1669
                          disabled)
 
1670
  --enable-kde            enable experimental KDE support (default is
 
1671
                          disabled)
 
1672
  --enable-kab            enable experimental KAddressBook support (default is
 
1673
                          disabled)
 
1674
  --enable-xcap           enable experimental XCAP support (default is
 
1675
                          disabled)
 
1676
  --enable-loudmouth      enable experimental Loudmouth support (default is
 
1677
                          disabled)
 
1678
  --disable-scrollkeeper  do not make updates to the scrollkeeper database
 
1679
  --enable-gdu            enable GNOME-Doc-Utils support, i.e. help file
 
1680
                          generation (default is enabled)
 
1681
  --enable-opal-debug     link to debug versions of opal and ptlib (opal_d and
 
1682
                          ptlib_d) (default is disabled)
 
1683
  --enable-static-libs    link to opal and ptlib static libraries (default is
 
1684
                          disabled)
 
1685
  --enable-h323           enable H.323 support (default same as opal)
 
1686
  --enable-debug          compile with debug support (default is disabled)
 
1687
 
 
1688
Optional Packages:
 
1689
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1690
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1691
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1692
                          both]
 
1693
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1694
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1695
                        (or the compiler's sysroot if not specified).
 
1696
  --with-endianess=big|little
 
1697
                          endianess of target system
 
1698
  --with-boost[=ARG]      use Boost library from a standard location
 
1699
                          (ARG=yes), from the specified location (ARG=<path>),
 
1700
                          or disable it (ARG=no) [ARG=yes]
 
1701
  --with-boost-libdir=LIB_DIR
 
1702
                          Force given directory for boost libraries. Note that
 
1703
                          this will override library path detection, so use
 
1704
                          this parameter only if default library detection
 
1705
                          fails and you know exactly where your boost
 
1706
                          libraries are located.
 
1707
  --with-boost-signals[=special-lib]
 
1708
                          use the Signals library from boost - it is possible
 
1709
                          to specify a certain library for the linker e.g.
 
1710
                          --with-boost-signals=boost_signals-gcc-mt-d
 
1711
  --with-gconf-source=sourceaddress
 
1712
                          Config database for installing schema files.
 
1713
  --with-gconf-schema-file-dir=dir
 
1714
                          Directory for installing schema files.
 
1715
  --with-ldap-dir=PFX     location of LDAP
 
1716
  --with-libsasl2-dir=PFX location of LIBSASL2
 
1717
  --with-directx-dir=PFX  location of DirectDraw
 
1718
  --with-help-dir=DIR     path to help docs
 
1719
  --with-omf-dir=DIR      path to OMF files
 
1720
  --with-help-formats=FORMATS
 
1721
                          list of formats
 
1722
 
 
1723
Some influential environment variables:
 
1724
  PKG_CONFIG  path to pkg-config utility
 
1725
  PKG_CONFIG_PATH
 
1726
              directories to add to pkg-config's search path
 
1727
  PKG_CONFIG_LIBDIR
 
1728
              path overriding pkg-config's built-in search path
 
1729
  CC          C compiler command
 
1730
  CFLAGS      C compiler flags
 
1731
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1732
              nonstandard directory <lib dir>
 
1733
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1734
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1735
              you have headers in a nonstandard directory <include dir>
 
1736
  CXX         C++ compiler command
 
1737
  CXXFLAGS    C++ compiler flags
 
1738
  CPP         C preprocessor
 
1739
  CXXCPP      C++ preprocessor
 
1740
  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
 
1741
  GTK_LIBS    linker flags for GTK, overriding pkg-config
 
1742
  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
 
1743
  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
 
1744
  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
 
1745
  XML_LIBS    linker flags for XML, overriding pkg-config
 
1746
  GCONF_CFLAGS
 
1747
              C compiler flags for GCONF, overriding pkg-config
 
1748
  GCONF_LIBS  linker flags for GCONF, overriding pkg-config
 
1749
  EDS_CFLAGS  C compiler flags for EDS, overriding pkg-config
 
1750
  EDS_LIBS    linker flags for EDS, overriding pkg-config
 
1751
  NOTIFY_CFLAGS
 
1752
              C compiler flags for NOTIFY, overriding pkg-config
 
1753
  NOTIFY_LIBS linker flags for NOTIFY, overriding pkg-config
 
1754
  CCAS        assembler compiler command (defaults to CC)
 
1755
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 
1756
  XV_CFLAGS   C compiler flags for XV, overriding pkg-config
 
1757
  XV_LIBS     linker flags for XV, overriding pkg-config
 
1758
  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
 
1759
  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
 
1760
  AVAHI_CFLAGS
 
1761
              C compiler flags for AVAHI, overriding pkg-config
 
1762
  AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config
 
1763
  GSTREAMER_CFLAGS
 
1764
              C compiler flags for GSTREAMER, overriding pkg-config
 
1765
  GSTREAMER_LIBS
 
1766
              linker flags for GSTREAMER, overriding pkg-config
 
1767
  KDE_CFLAGS  C compiler flags for KDE, overriding pkg-config
 
1768
  KDE_LIBS    linker flags for KDE, overriding pkg-config
 
1769
  SOUP_CFLAGS C compiler flags for SOUP, overriding pkg-config
 
1770
  SOUP_LIBS   linker flags for SOUP, overriding pkg-config
 
1771
  LOUDMOUTH_CFLAGS
 
1772
              C compiler flags for LOUDMOUTH, overriding pkg-config
 
1773
  LOUDMOUTH_LIBS
 
1774
              linker flags for LOUDMOUTH, overriding pkg-config
 
1775
  PTLIB_CFLAGS
 
1776
              C compiler flags for PTLIB, overriding pkg-config
 
1777
  PTLIB_LIBS  linker flags for PTLIB, overriding pkg-config
 
1778
  OPAL_CFLAGS C compiler flags for OPAL, overriding pkg-config
 
1779
  OPAL_LIBS   linker flags for OPAL, overriding pkg-config
 
1780
 
 
1781
Use these variables to override the choices made by `configure' or to help
 
1782
it to find libraries and programs with nonstandard names/locations.
 
1783
 
 
1784
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=ekiga>.
 
1785
_ACEOF
 
1786
ac_status=$?
 
1787
fi
 
1788
 
 
1789
if test "$ac_init_help" = "recursive"; then
 
1790
  # If there are subdirs, report their specific --help.
 
1791
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1792
    test -d "$ac_dir" ||
 
1793
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1794
      continue
 
1795
    ac_builddir=.
 
1796
 
 
1797
case "$ac_dir" in
 
1798
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1799
*)
 
1800
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1801
  # A ".." for each directory in $ac_dir_suffix.
 
1802
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1803
  case $ac_top_builddir_sub in
 
1804
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1805
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1806
  esac ;;
 
1807
esac
 
1808
ac_abs_top_builddir=$ac_pwd
 
1809
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1810
# for backward compatibility:
 
1811
ac_top_builddir=$ac_top_build_prefix
 
1812
 
 
1813
case $srcdir in
 
1814
  .)  # We are building in place.
 
1815
    ac_srcdir=.
 
1816
    ac_top_srcdir=$ac_top_builddir_sub
 
1817
    ac_abs_top_srcdir=$ac_pwd ;;
 
1818
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1819
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1820
    ac_top_srcdir=$srcdir
 
1821
    ac_abs_top_srcdir=$srcdir ;;
 
1822
  *) # Relative name.
 
1823
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1824
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1825
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1826
esac
 
1827
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1828
 
 
1829
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1830
    # Check for guested configure.
 
1831
    if test -f "$ac_srcdir/configure.gnu"; then
 
1832
      echo &&
 
1833
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1834
    elif test -f "$ac_srcdir/configure"; then
 
1835
      echo &&
 
1836
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1837
    else
 
1838
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1839
    fi || ac_status=$?
 
1840
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1841
  done
 
1842
fi
 
1843
 
 
1844
test -n "$ac_init_help" && exit $ac_status
 
1845
if $ac_init_version; then
 
1846
  cat <<\_ACEOF
 
1847
ekiga configure 4.0.1
 
1848
generated by GNU Autoconf 2.69
 
1849
 
 
1850
Copyright (C) 2012 Free Software Foundation, Inc.
 
1851
This configure script is free software; the Free Software Foundation
 
1852
gives unlimited permission to copy, distribute and modify it.
 
1853
_ACEOF
 
1854
  exit
 
1855
fi
 
1856
 
 
1857
## ------------------------ ##
 
1858
## Autoconf initialization. ##
 
1859
## ------------------------ ##
 
1860
 
 
1861
# ac_fn_c_try_compile LINENO
 
1862
# --------------------------
 
1863
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1864
ac_fn_c_try_compile ()
 
1865
{
 
1866
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1867
  rm -f conftest.$ac_objext
 
1868
  if { { ac_try="$ac_compile"
 
1869
case "(($ac_try" in
 
1870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1871
  *) ac_try_echo=$ac_try;;
 
1872
esac
 
1873
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1874
$as_echo "$ac_try_echo"; } >&5
 
1875
  (eval "$ac_compile") 2>conftest.err
 
1876
  ac_status=$?
 
1877
  if test -s conftest.err; then
 
1878
    grep -v '^ *+' conftest.err >conftest.er1
 
1879
    cat conftest.er1 >&5
 
1880
    mv -f conftest.er1 conftest.err
 
1881
  fi
 
1882
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1883
  test $ac_status = 0; } && {
 
1884
         test -z "$ac_c_werror_flag" ||
 
1885
         test ! -s conftest.err
 
1886
       } && test -s conftest.$ac_objext; then :
 
1887
  ac_retval=0
 
1888
else
 
1889
  $as_echo "$as_me: failed program was:" >&5
 
1890
sed 's/^/| /' conftest.$ac_ext >&5
 
1891
 
 
1892
        ac_retval=1
 
1893
fi
 
1894
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1895
  as_fn_set_status $ac_retval
 
1896
 
 
1897
} # ac_fn_c_try_compile
 
1898
 
 
1899
# ac_fn_cxx_try_compile LINENO
 
1900
# ----------------------------
 
1901
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1902
ac_fn_cxx_try_compile ()
 
1903
{
 
1904
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1905
  rm -f conftest.$ac_objext
 
1906
  if { { ac_try="$ac_compile"
 
1907
case "(($ac_try" in
 
1908
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1909
  *) ac_try_echo=$ac_try;;
 
1910
esac
 
1911
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1912
$as_echo "$ac_try_echo"; } >&5
 
1913
  (eval "$ac_compile") 2>conftest.err
 
1914
  ac_status=$?
 
1915
  if test -s conftest.err; then
 
1916
    grep -v '^ *+' conftest.err >conftest.er1
 
1917
    cat conftest.er1 >&5
 
1918
    mv -f conftest.er1 conftest.err
 
1919
  fi
 
1920
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1921
  test $ac_status = 0; } && {
 
1922
         test -z "$ac_cxx_werror_flag" ||
 
1923
         test ! -s conftest.err
 
1924
       } && test -s conftest.$ac_objext; then :
 
1925
  ac_retval=0
 
1926
else
 
1927
  $as_echo "$as_me: failed program was:" >&5
 
1928
sed 's/^/| /' conftest.$ac_ext >&5
 
1929
 
 
1930
        ac_retval=1
 
1931
fi
 
1932
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1933
  as_fn_set_status $ac_retval
 
1934
 
 
1935
} # ac_fn_cxx_try_compile
 
1936
 
 
1937
# ac_fn_c_try_link LINENO
 
1938
# -----------------------
 
1939
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1940
ac_fn_c_try_link ()
 
1941
{
 
1942
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1943
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1944
  if { { ac_try="$ac_link"
 
1945
case "(($ac_try" in
 
1946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1947
  *) ac_try_echo=$ac_try;;
 
1948
esac
 
1949
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1950
$as_echo "$ac_try_echo"; } >&5
 
1951
  (eval "$ac_link") 2>conftest.err
 
1952
  ac_status=$?
 
1953
  if test -s conftest.err; then
 
1954
    grep -v '^ *+' conftest.err >conftest.er1
 
1955
    cat conftest.er1 >&5
 
1956
    mv -f conftest.er1 conftest.err
 
1957
  fi
 
1958
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1959
  test $ac_status = 0; } && {
 
1960
         test -z "$ac_c_werror_flag" ||
 
1961
         test ! -s conftest.err
 
1962
       } && test -s conftest$ac_exeext && {
 
1963
         test "$cross_compiling" = yes ||
 
1964
         test -x conftest$ac_exeext
 
1965
       }; then :
 
1966
  ac_retval=0
 
1967
else
 
1968
  $as_echo "$as_me: failed program was:" >&5
 
1969
sed 's/^/| /' conftest.$ac_ext >&5
 
1970
 
 
1971
        ac_retval=1
 
1972
fi
 
1973
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1974
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1975
  # interfere with the next link command; also delete a directory that is
 
1976
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1977
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1978
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1979
  as_fn_set_status $ac_retval
 
1980
 
 
1981
} # ac_fn_c_try_link
 
1982
 
 
1983
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1984
# -------------------------------------------------------
 
1985
# Tests whether HEADER exists and can be compiled using the include files in
 
1986
# INCLUDES, setting the cache variable VAR accordingly.
 
1987
ac_fn_c_check_header_compile ()
 
1988
{
 
1989
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1990
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1991
$as_echo_n "checking for $2... " >&6; }
 
1992
if eval \${$3+:} false; then :
 
1993
  $as_echo_n "(cached) " >&6
 
1994
else
 
1995
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1996
/* end confdefs.h.  */
 
1997
$4
 
1998
#include <$2>
 
1999
_ACEOF
 
2000
if ac_fn_c_try_compile "$LINENO"; then :
 
2001
  eval "$3=yes"
 
2002
else
 
2003
  eval "$3=no"
 
2004
fi
 
2005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2006
fi
 
2007
eval ac_res=\$$3
 
2008
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2009
$as_echo "$ac_res" >&6; }
 
2010
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2011
 
 
2012
} # ac_fn_c_check_header_compile
 
2013
 
 
2014
# ac_fn_c_try_cpp LINENO
 
2015
# ----------------------
 
2016
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2017
ac_fn_c_try_cpp ()
 
2018
{
 
2019
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2020
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2021
case "(($ac_try" in
 
2022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2023
  *) ac_try_echo=$ac_try;;
 
2024
esac
 
2025
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2026
$as_echo "$ac_try_echo"; } >&5
 
2027
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2028
  ac_status=$?
 
2029
  if test -s conftest.err; then
 
2030
    grep -v '^ *+' conftest.err >conftest.er1
 
2031
    cat conftest.er1 >&5
 
2032
    mv -f conftest.er1 conftest.err
 
2033
  fi
 
2034
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2035
  test $ac_status = 0; } > conftest.i && {
 
2036
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2037
         test ! -s conftest.err
 
2038
       }; then :
 
2039
  ac_retval=0
 
2040
else
 
2041
  $as_echo "$as_me: failed program was:" >&5
 
2042
sed 's/^/| /' conftest.$ac_ext >&5
 
2043
 
 
2044
    ac_retval=1
 
2045
fi
 
2046
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2047
  as_fn_set_status $ac_retval
 
2048
 
 
2049
} # ac_fn_c_try_cpp
 
2050
 
 
2051
# ac_fn_c_try_run LINENO
 
2052
# ----------------------
 
2053
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
2054
# that executables *can* be run.
 
2055
ac_fn_c_try_run ()
 
2056
{
 
2057
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2058
  if { { ac_try="$ac_link"
 
2059
case "(($ac_try" in
 
2060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2061
  *) ac_try_echo=$ac_try;;
 
2062
esac
 
2063
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2064
$as_echo "$ac_try_echo"; } >&5
 
2065
  (eval "$ac_link") 2>&5
 
2066
  ac_status=$?
 
2067
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2068
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
2069
  { { case "(($ac_try" in
 
2070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2071
  *) ac_try_echo=$ac_try;;
 
2072
esac
 
2073
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2074
$as_echo "$ac_try_echo"; } >&5
 
2075
  (eval "$ac_try") 2>&5
 
2076
  ac_status=$?
 
2077
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2078
  test $ac_status = 0; }; }; then :
 
2079
  ac_retval=0
 
2080
else
 
2081
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
2082
       $as_echo "$as_me: failed program was:" >&5
 
2083
sed 's/^/| /' conftest.$ac_ext >&5
 
2084
 
 
2085
       ac_retval=$ac_status
 
2086
fi
 
2087
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2088
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2089
  as_fn_set_status $ac_retval
 
2090
 
 
2091
} # ac_fn_c_try_run
 
2092
 
 
2093
# ac_fn_c_check_func LINENO FUNC VAR
 
2094
# ----------------------------------
 
2095
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2096
ac_fn_c_check_func ()
 
2097
{
 
2098
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2099
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2100
$as_echo_n "checking for $2... " >&6; }
 
2101
if eval \${$3+:} false; then :
 
2102
  $as_echo_n "(cached) " >&6
 
2103
else
 
2104
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2105
/* end confdefs.h.  */
 
2106
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2107
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2108
#define $2 innocuous_$2
 
2109
 
 
2110
/* System header to define __stub macros and hopefully few prototypes,
 
2111
    which can conflict with char $2 (); below.
 
2112
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2113
    <limits.h> exists even on freestanding compilers.  */
 
2114
 
 
2115
#ifdef __STDC__
 
2116
# include <limits.h>
 
2117
#else
 
2118
# include <assert.h>
 
2119
#endif
 
2120
 
 
2121
#undef $2
 
2122
 
 
2123
/* Override any GCC internal prototype to avoid an error.
 
2124
   Use char because int might match the return type of a GCC
 
2125
   builtin and then its argument prototype would still apply.  */
 
2126
#ifdef __cplusplus
 
2127
extern "C"
 
2128
#endif
 
2129
char $2 ();
 
2130
/* The GNU C library defines this for functions which it implements
 
2131
    to always fail with ENOSYS.  Some functions are actually named
 
2132
    something starting with __ and the normal name is an alias.  */
 
2133
#if defined __stub_$2 || defined __stub___$2
 
2134
choke me
 
2135
#endif
 
2136
 
 
2137
int
 
2138
main ()
 
2139
{
 
2140
return $2 ();
 
2141
  ;
 
2142
  return 0;
 
2143
}
 
2144
_ACEOF
 
2145
if ac_fn_c_try_link "$LINENO"; then :
 
2146
  eval "$3=yes"
 
2147
else
 
2148
  eval "$3=no"
 
2149
fi
 
2150
rm -f core conftest.err conftest.$ac_objext \
 
2151
    conftest$ac_exeext conftest.$ac_ext
 
2152
fi
 
2153
eval ac_res=\$$3
 
2154
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2155
$as_echo "$ac_res" >&6; }
 
2156
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2157
 
 
2158
} # ac_fn_c_check_func
 
2159
 
 
2160
# ac_fn_cxx_try_cpp LINENO
 
2161
# ------------------------
 
2162
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2163
ac_fn_cxx_try_cpp ()
 
2164
{
 
2165
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2166
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2167
case "(($ac_try" in
 
2168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2169
  *) ac_try_echo=$ac_try;;
 
2170
esac
 
2171
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2172
$as_echo "$ac_try_echo"; } >&5
 
2173
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2174
  ac_status=$?
 
2175
  if test -s conftest.err; then
 
2176
    grep -v '^ *+' conftest.err >conftest.er1
 
2177
    cat conftest.er1 >&5
 
2178
    mv -f conftest.er1 conftest.err
 
2179
  fi
 
2180
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2181
  test $ac_status = 0; } > conftest.i && {
 
2182
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
2183
         test ! -s conftest.err
 
2184
       }; then :
 
2185
  ac_retval=0
 
2186
else
 
2187
  $as_echo "$as_me: failed program was:" >&5
 
2188
sed 's/^/| /' conftest.$ac_ext >&5
 
2189
 
 
2190
    ac_retval=1
 
2191
fi
 
2192
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2193
  as_fn_set_status $ac_retval
 
2194
 
 
2195
} # ac_fn_cxx_try_cpp
 
2196
 
 
2197
# ac_fn_cxx_try_link LINENO
 
2198
# -------------------------
 
2199
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2200
ac_fn_cxx_try_link ()
 
2201
{
 
2202
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2203
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2204
  if { { ac_try="$ac_link"
 
2205
case "(($ac_try" in
 
2206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2207
  *) ac_try_echo=$ac_try;;
 
2208
esac
 
2209
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2210
$as_echo "$ac_try_echo"; } >&5
 
2211
  (eval "$ac_link") 2>conftest.err
 
2212
  ac_status=$?
 
2213
  if test -s conftest.err; then
 
2214
    grep -v '^ *+' conftest.err >conftest.er1
 
2215
    cat conftest.er1 >&5
 
2216
    mv -f conftest.er1 conftest.err
 
2217
  fi
 
2218
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2219
  test $ac_status = 0; } && {
 
2220
         test -z "$ac_cxx_werror_flag" ||
 
2221
         test ! -s conftest.err
 
2222
       } && test -s conftest$ac_exeext && {
 
2223
         test "$cross_compiling" = yes ||
 
2224
         test -x conftest$ac_exeext
 
2225
       }; then :
 
2226
  ac_retval=0
 
2227
else
 
2228
  $as_echo "$as_me: failed program was:" >&5
 
2229
sed 's/^/| /' conftest.$ac_ext >&5
 
2230
 
 
2231
        ac_retval=1
 
2232
fi
 
2233
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2234
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2235
  # interfere with the next link command; also delete a directory that is
 
2236
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2237
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2238
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2239
  as_fn_set_status $ac_retval
 
2240
 
 
2241
} # ac_fn_cxx_try_link
 
2242
 
 
2243
# ac_fn_cxx_try_run LINENO
 
2244
# ------------------------
 
2245
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
2246
# that executables *can* be run.
 
2247
ac_fn_cxx_try_run ()
 
2248
{
 
2249
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2250
  if { { ac_try="$ac_link"
 
2251
case "(($ac_try" in
 
2252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2253
  *) ac_try_echo=$ac_try;;
 
2254
esac
 
2255
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2256
$as_echo "$ac_try_echo"; } >&5
 
2257
  (eval "$ac_link") 2>&5
 
2258
  ac_status=$?
 
2259
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2260
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
2261
  { { case "(($ac_try" in
 
2262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2263
  *) ac_try_echo=$ac_try;;
 
2264
esac
 
2265
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2266
$as_echo "$ac_try_echo"; } >&5
 
2267
  (eval "$ac_try") 2>&5
 
2268
  ac_status=$?
 
2269
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2270
  test $ac_status = 0; }; }; then :
 
2271
  ac_retval=0
 
2272
else
 
2273
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
2274
       $as_echo "$as_me: failed program was:" >&5
 
2275
sed 's/^/| /' conftest.$ac_ext >&5
 
2276
 
 
2277
       ac_retval=$ac_status
 
2278
fi
 
2279
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2280
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2281
  as_fn_set_status $ac_retval
 
2282
 
 
2283
} # ac_fn_cxx_try_run
 
2284
 
 
2285
# ac_fn_cxx_check_func LINENO FUNC VAR
 
2286
# ------------------------------------
 
2287
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2288
ac_fn_cxx_check_func ()
 
2289
{
 
2290
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2291
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2292
$as_echo_n "checking for $2... " >&6; }
 
2293
if eval \${$3+:} false; then :
 
2294
  $as_echo_n "(cached) " >&6
 
2295
else
 
2296
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2297
/* end confdefs.h.  */
 
2298
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2299
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2300
#define $2 innocuous_$2
 
2301
 
 
2302
/* System header to define __stub macros and hopefully few prototypes,
 
2303
    which can conflict with char $2 (); below.
 
2304
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2305
    <limits.h> exists even on freestanding compilers.  */
 
2306
 
 
2307
#ifdef __STDC__
 
2308
# include <limits.h>
 
2309
#else
 
2310
# include <assert.h>
 
2311
#endif
 
2312
 
 
2313
#undef $2
 
2314
 
 
2315
/* Override any GCC internal prototype to avoid an error.
 
2316
   Use char because int might match the return type of a GCC
 
2317
   builtin and then its argument prototype would still apply.  */
 
2318
#ifdef __cplusplus
 
2319
extern "C"
 
2320
#endif
 
2321
char $2 ();
 
2322
/* The GNU C library defines this for functions which it implements
 
2323
    to always fail with ENOSYS.  Some functions are actually named
 
2324
    something starting with __ and the normal name is an alias.  */
 
2325
#if defined __stub_$2 || defined __stub___$2
 
2326
choke me
 
2327
#endif
 
2328
 
 
2329
int
 
2330
main ()
 
2331
{
 
2332
return $2 ();
 
2333
  ;
 
2334
  return 0;
 
2335
}
 
2336
_ACEOF
 
2337
if ac_fn_cxx_try_link "$LINENO"; then :
 
2338
  eval "$3=yes"
 
2339
else
 
2340
  eval "$3=no"
 
2341
fi
 
2342
rm -f core conftest.err conftest.$ac_objext \
 
2343
    conftest$ac_exeext conftest.$ac_ext
 
2344
fi
 
2345
eval ac_res=\$$3
 
2346
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2347
$as_echo "$ac_res" >&6; }
 
2348
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2349
 
 
2350
} # ac_fn_cxx_check_func
 
2351
 
 
2352
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
 
2353
# ---------------------------------------------------------
 
2354
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
2355
# the include files in INCLUDES and setting the cache variable VAR
 
2356
# accordingly.
 
2357
ac_fn_cxx_check_header_mongrel ()
 
2358
{
 
2359
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2360
  if eval \${$3+:} false; then :
 
2361
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2362
$as_echo_n "checking for $2... " >&6; }
 
2363
if eval \${$3+:} false; then :
 
2364
  $as_echo_n "(cached) " >&6
 
2365
fi
 
2366
eval ac_res=\$$3
 
2367
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2368
$as_echo "$ac_res" >&6; }
 
2369
else
 
2370
  # Is the header compilable?
 
2371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
2372
$as_echo_n "checking $2 usability... " >&6; }
 
2373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2374
/* end confdefs.h.  */
 
2375
$4
 
2376
#include <$2>
 
2377
_ACEOF
 
2378
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2379
  ac_header_compiler=yes
 
2380
else
 
2381
  ac_header_compiler=no
 
2382
fi
 
2383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
2385
$as_echo "$ac_header_compiler" >&6; }
 
2386
 
 
2387
# Is the header present?
 
2388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
2389
$as_echo_n "checking $2 presence... " >&6; }
 
2390
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2391
/* end confdefs.h.  */
 
2392
#include <$2>
 
2393
_ACEOF
 
2394
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
2395
  ac_header_preproc=yes
 
2396
else
 
2397
  ac_header_preproc=no
 
2398
fi
 
2399
rm -f conftest.err conftest.i conftest.$ac_ext
 
2400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2401
$as_echo "$ac_header_preproc" >&6; }
 
2402
 
 
2403
# So?  What about this header?
 
2404
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
 
2405
  yes:no: )
 
2406
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2407
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2408
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2409
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2410
    ;;
 
2411
  no:yes:* )
 
2412
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2413
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2414
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2415
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2416
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2417
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2418
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2419
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2420
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2421
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2422
( $as_echo "## -------------------------------------------------------------------- ##
 
2423
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=ekiga ##
 
2424
## -------------------------------------------------------------------- ##"
 
2425
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2426
    ;;
 
2427
esac
 
2428
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2429
$as_echo_n "checking for $2... " >&6; }
 
2430
if eval \${$3+:} false; then :
 
2431
  $as_echo_n "(cached) " >&6
 
2432
else
 
2433
  eval "$3=\$ac_header_compiler"
 
2434
fi
 
2435
eval ac_res=\$$3
 
2436
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2437
$as_echo "$ac_res" >&6; }
 
2438
fi
 
2439
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2440
 
 
2441
} # ac_fn_cxx_check_header_mongrel
 
2442
cat >config.log <<_ACEOF
 
2443
This file contains any messages produced by compilers while
 
2444
running configure, to aid debugging if configure makes a mistake.
 
2445
 
 
2446
It was created by ekiga $as_me 4.0.1, which was
 
2447
generated by GNU Autoconf 2.69.  Invocation command line was
 
2448
 
 
2449
  $ $0 $@
 
2450
 
 
2451
_ACEOF
 
2452
exec 5>>config.log
 
2453
{
 
2454
cat <<_ASUNAME
 
2455
## --------- ##
 
2456
## Platform. ##
 
2457
## --------- ##
 
2458
 
 
2459
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2460
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2461
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2462
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2463
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2464
 
 
2465
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2466
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2467
 
 
2468
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2469
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2470
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2471
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2472
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2473
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2474
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2475
 
 
2476
_ASUNAME
 
2477
 
 
2478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2479
for as_dir in $PATH
 
2480
do
 
2481
  IFS=$as_save_IFS
 
2482
  test -z "$as_dir" && as_dir=.
 
2483
    $as_echo "PATH: $as_dir"
 
2484
  done
 
2485
IFS=$as_save_IFS
 
2486
 
 
2487
} >&5
 
2488
 
 
2489
cat >&5 <<_ACEOF
 
2490
 
 
2491
 
 
2492
## ----------- ##
 
2493
## Core tests. ##
 
2494
## ----------- ##
 
2495
 
 
2496
_ACEOF
 
2497
 
 
2498
 
 
2499
# Keep a trace of the command line.
 
2500
# Strip out --no-create and --no-recursion so they do not pile up.
 
2501
# Strip out --silent because we don't want to record it for future runs.
 
2502
# Also quote any args containing shell meta-characters.
 
2503
# Make two passes to allow for proper duplicate-argument suppression.
 
2504
ac_configure_args=
 
2505
ac_configure_args0=
 
2506
ac_configure_args1=
 
2507
ac_must_keep_next=false
 
2508
for ac_pass in 1 2
 
2509
do
 
2510
  for ac_arg
 
2511
  do
 
2512
    case $ac_arg in
 
2513
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2514
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2515
    | -silent | --silent | --silen | --sile | --sil)
 
2516
      continue ;;
 
2517
    *\'*)
 
2518
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2519
    esac
 
2520
    case $ac_pass in
 
2521
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2522
    2)
 
2523
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2524
      if test $ac_must_keep_next = true; then
 
2525
        ac_must_keep_next=false # Got value, back to normal.
 
2526
      else
 
2527
        case $ac_arg in
 
2528
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2529
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2530
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2531
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2532
            case "$ac_configure_args0 " in
 
2533
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2534
            esac
 
2535
            ;;
 
2536
          -* ) ac_must_keep_next=true ;;
 
2537
        esac
 
2538
      fi
 
2539
      as_fn_append ac_configure_args " '$ac_arg'"
 
2540
      ;;
 
2541
    esac
 
2542
  done
 
2543
done
 
2544
{ ac_configure_args0=; unset ac_configure_args0;}
 
2545
{ ac_configure_args1=; unset ac_configure_args1;}
 
2546
 
 
2547
# When interrupted or exit'd, cleanup temporary files, and complete
 
2548
# config.log.  We remove comments because anyway the quotes in there
 
2549
# would cause problems or look ugly.
 
2550
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2551
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2552
trap 'exit_status=$?
 
2553
  # Save into config.log some information that might help in debugging.
 
2554
  {
 
2555
    echo
 
2556
 
 
2557
    $as_echo "## ---------------- ##
 
2558
## Cache variables. ##
 
2559
## ---------------- ##"
 
2560
    echo
 
2561
    # The following way of writing the cache mishandles newlines in values,
 
2562
(
 
2563
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2564
    eval ac_val=\$$ac_var
 
2565
    case $ac_val in #(
 
2566
    *${as_nl}*)
 
2567
      case $ac_var in #(
 
2568
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2569
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2570
      esac
 
2571
      case $ac_var in #(
 
2572
      _ | IFS | as_nl) ;; #(
 
2573
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2574
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2575
      esac ;;
 
2576
    esac
 
2577
  done
 
2578
  (set) 2>&1 |
 
2579
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2580
    *${as_nl}ac_space=\ *)
 
2581
      sed -n \
 
2582
        "s/'\''/'\''\\\\'\'''\''/g;
 
2583
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2584
      ;; #(
 
2585
    *)
 
2586
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2587
      ;;
 
2588
    esac |
 
2589
    sort
 
2590
)
 
2591
    echo
 
2592
 
 
2593
    $as_echo "## ----------------- ##
 
2594
## Output variables. ##
 
2595
## ----------------- ##"
 
2596
    echo
 
2597
    for ac_var in $ac_subst_vars
 
2598
    do
 
2599
      eval ac_val=\$$ac_var
 
2600
      case $ac_val in
 
2601
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2602
      esac
 
2603
      $as_echo "$ac_var='\''$ac_val'\''"
 
2604
    done | sort
 
2605
    echo
 
2606
 
 
2607
    if test -n "$ac_subst_files"; then
 
2608
      $as_echo "## ------------------- ##
 
2609
## File substitutions. ##
 
2610
## ------------------- ##"
 
2611
      echo
 
2612
      for ac_var in $ac_subst_files
 
2613
      do
 
2614
        eval ac_val=\$$ac_var
 
2615
        case $ac_val in
 
2616
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2617
        esac
 
2618
        $as_echo "$ac_var='\''$ac_val'\''"
 
2619
      done | sort
 
2620
      echo
 
2621
    fi
 
2622
 
 
2623
    if test -s confdefs.h; then
 
2624
      $as_echo "## ----------- ##
 
2625
## confdefs.h. ##
 
2626
## ----------- ##"
 
2627
      echo
 
2628
      cat confdefs.h
 
2629
      echo
 
2630
    fi
 
2631
    test "$ac_signal" != 0 &&
 
2632
      $as_echo "$as_me: caught signal $ac_signal"
 
2633
    $as_echo "$as_me: exit $exit_status"
 
2634
  } >&5
 
2635
  rm -f core *.core core.conftest.* &&
 
2636
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2637
    exit $exit_status
 
2638
' 0
 
2639
for ac_signal in 1 2 13 15; do
 
2640
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2641
done
 
2642
ac_signal=0
 
2643
 
 
2644
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2645
rm -f -r conftest* confdefs.h
 
2646
 
 
2647
$as_echo "/* confdefs.h */" > confdefs.h
 
2648
 
 
2649
# Predefined preprocessor variables.
 
2650
 
 
2651
cat >>confdefs.h <<_ACEOF
 
2652
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2653
_ACEOF
 
2654
 
 
2655
cat >>confdefs.h <<_ACEOF
 
2656
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2657
_ACEOF
 
2658
 
 
2659
cat >>confdefs.h <<_ACEOF
 
2660
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2661
_ACEOF
 
2662
 
 
2663
cat >>confdefs.h <<_ACEOF
 
2664
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2665
_ACEOF
 
2666
 
 
2667
cat >>confdefs.h <<_ACEOF
 
2668
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2669
_ACEOF
 
2670
 
 
2671
cat >>confdefs.h <<_ACEOF
 
2672
#define PACKAGE_URL "$PACKAGE_URL"
 
2673
_ACEOF
 
2674
 
 
2675
 
 
2676
# Let the site file select an alternate cache file if it wants to.
 
2677
# Prefer an explicitly selected file to automatically selected ones.
 
2678
ac_site_file1=NONE
 
2679
ac_site_file2=NONE
 
2680
if test -n "$CONFIG_SITE"; then
 
2681
  # We do not want a PATH search for config.site.
 
2682
  case $CONFIG_SITE in #((
 
2683
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2684
    */*) ac_site_file1=$CONFIG_SITE;;
 
2685
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2686
  esac
 
2687
elif test "x$prefix" != xNONE; then
 
2688
  ac_site_file1=$prefix/share/config.site
 
2689
  ac_site_file2=$prefix/etc/config.site
 
2690
else
 
2691
  ac_site_file1=$ac_default_prefix/share/config.site
 
2692
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2693
fi
 
2694
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2695
do
 
2696
  test "x$ac_site_file" = xNONE && continue
 
2697
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2698
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2699
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2700
    sed 's/^/| /' "$ac_site_file" >&5
 
2701
    . "$ac_site_file" \
 
2702
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2703
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2704
as_fn_error $? "failed to load site script $ac_site_file
 
2705
See \`config.log' for more details" "$LINENO" 5; }
 
2706
  fi
 
2707
done
 
2708
 
 
2709
if test -r "$cache_file"; then
 
2710
  # Some versions of bash will fail to source /dev/null (special files
 
2711
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2712
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2713
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2714
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2715
    case $cache_file in
 
2716
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2717
      *)                      . "./$cache_file";;
 
2718
    esac
 
2719
  fi
 
2720
else
 
2721
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2722
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2723
  >$cache_file
 
2724
fi
 
2725
 
 
2726
# Check that the precious variables saved in the cache have kept the same
 
2727
# value.
 
2728
ac_cache_corrupted=false
 
2729
for ac_var in $ac_precious_vars; do
 
2730
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2731
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2732
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2733
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2734
  case $ac_old_set,$ac_new_set in
 
2735
    set,)
 
2736
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2737
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2738
      ac_cache_corrupted=: ;;
 
2739
    ,set)
 
2740
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2741
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2742
      ac_cache_corrupted=: ;;
 
2743
    ,);;
 
2744
    *)
 
2745
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2746
        # differences in whitespace do not lead to failure.
 
2747
        ac_old_val_w=`echo x $ac_old_val`
 
2748
        ac_new_val_w=`echo x $ac_new_val`
 
2749
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2750
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2751
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2752
          ac_cache_corrupted=:
 
2753
        else
 
2754
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2755
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2756
          eval $ac_var=\$ac_old_val
 
2757
        fi
 
2758
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2759
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2760
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2761
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2762
      fi;;
 
2763
  esac
 
2764
  # Pass precious variables to config.status.
 
2765
  if test "$ac_new_set" = set; then
 
2766
    case $ac_new_val in
 
2767
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2768
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2769
    esac
 
2770
    case " $ac_configure_args " in
 
2771
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2772
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2773
    esac
 
2774
  fi
 
2775
done
 
2776
if $ac_cache_corrupted; then
 
2777
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2778
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2779
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2780
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2781
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2782
fi
 
2783
## -------------------- ##
 
2784
## Main body of script. ##
 
2785
## -------------------- ##
 
2786
 
 
2787
ac_ext=c
 
2788
ac_cpp='$CPP $CPPFLAGS'
 
2789
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2790
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2791
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2792
 
 
2793
 
 
2794
 
 
2795
ac_aux_dir=
 
2796
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2797
  if test -f "$ac_dir/install-sh"; then
 
2798
    ac_aux_dir=$ac_dir
 
2799
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2800
    break
 
2801
  elif test -f "$ac_dir/install.sh"; then
 
2802
    ac_aux_dir=$ac_dir
 
2803
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2804
    break
 
2805
  elif test -f "$ac_dir/shtool"; then
 
2806
    ac_aux_dir=$ac_dir
 
2807
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2808
    break
 
2809
  fi
 
2810
done
 
2811
if test -z "$ac_aux_dir"; then
 
2812
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2813
fi
 
2814
 
 
2815
# These three variables are undocumented and unsupported,
 
2816
# and are intended to be withdrawn in a future Autoconf release.
 
2817
# They can cause serious problems if a builder's source tree is in a directory
 
2818
# whose full name contains unusual characters.
 
2819
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2820
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2821
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2822
 
 
2823
 
 
2824
# Make sure we can run config.sub.
 
2825
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2826
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2827
 
 
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2829
$as_echo_n "checking build system type... " >&6; }
 
2830
if ${ac_cv_build+:} false; then :
 
2831
  $as_echo_n "(cached) " >&6
 
2832
else
 
2833
  ac_build_alias=$build_alias
 
2834
test "x$ac_build_alias" = x &&
 
2835
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2836
test "x$ac_build_alias" = x &&
 
2837
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2838
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2839
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2840
 
 
2841
fi
 
2842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2843
$as_echo "$ac_cv_build" >&6; }
 
2844
case $ac_cv_build in
 
2845
*-*-*) ;;
 
2846
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2847
esac
 
2848
build=$ac_cv_build
 
2849
ac_save_IFS=$IFS; IFS='-'
 
2850
set x $ac_cv_build
 
2851
shift
 
2852
build_cpu=$1
 
2853
build_vendor=$2
 
2854
shift; shift
 
2855
# Remember, the first character of IFS is used to create $*,
 
2856
# except with old shells:
 
2857
build_os=$*
 
2858
IFS=$ac_save_IFS
 
2859
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2860
 
 
2861
 
 
2862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2863
$as_echo_n "checking host system type... " >&6; }
 
2864
if ${ac_cv_host+:} false; then :
 
2865
  $as_echo_n "(cached) " >&6
 
2866
else
 
2867
  if test "x$host_alias" = x; then
 
2868
  ac_cv_host=$ac_cv_build
 
2869
else
 
2870
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2871
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2872
fi
 
2873
 
 
2874
fi
 
2875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2876
$as_echo "$ac_cv_host" >&6; }
 
2877
case $ac_cv_host in
 
2878
*-*-*) ;;
 
2879
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
2880
esac
 
2881
host=$ac_cv_host
 
2882
ac_save_IFS=$IFS; IFS='-'
 
2883
set x $ac_cv_host
 
2884
shift
 
2885
host_cpu=$1
 
2886
host_vendor=$2
 
2887
shift; shift
 
2888
# Remember, the first character of IFS is used to create $*,
 
2889
# except with old shells:
 
2890
host_os=$*
 
2891
IFS=$ac_save_IFS
 
2892
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2893
 
 
2894
 
 
2895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
2896
$as_echo_n "checking target system type... " >&6; }
 
2897
if ${ac_cv_target+:} false; then :
 
2898
  $as_echo_n "(cached) " >&6
 
2899
else
 
2900
  if test "x$target_alias" = x; then
 
2901
  ac_cv_target=$ac_cv_host
 
2902
else
 
2903
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2904
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2905
fi
 
2906
 
 
2907
fi
 
2908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
2909
$as_echo "$ac_cv_target" >&6; }
 
2910
case $ac_cv_target in
 
2911
*-*-*) ;;
 
2912
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
 
2913
esac
 
2914
target=$ac_cv_target
 
2915
ac_save_IFS=$IFS; IFS='-'
 
2916
set x $ac_cv_target
 
2917
shift
 
2918
target_cpu=$1
 
2919
target_vendor=$2
 
2920
shift; shift
 
2921
# Remember, the first character of IFS is used to create $*,
 
2922
# except with old shells:
 
2923
target_os=$*
 
2924
IFS=$ac_save_IFS
 
2925
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2926
 
 
2927
 
 
2928
# The aliases save the names the user supplied, while $host etc.
 
2929
# will get canonicalized.
 
2930
test -n "$target_alias" &&
 
2931
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2932
    NONENONEs,x,x, &&
 
2933
  program_prefix=${target_alias}-
 
2934
 
 
2935
 
 
2936
 
 
2937
am__api_version='1.11'
 
2938
 
 
2939
# Find a good install program.  We prefer a C program (faster),
 
2940
# so one script is as good as another.  But avoid the broken or
 
2941
# incompatible versions:
 
2942
# SysV /etc/install, /usr/sbin/install
 
2943
# SunOS /usr/etc/install
 
2944
# IRIX /sbin/install
 
2945
# AIX /bin/install
 
2946
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2947
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2948
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2949
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2950
# OS/2's system install, which has a completely different semantic
 
2951
# ./install, which can be erroneously created by make from ./install.sh.
 
2952
# Reject install programs that cannot install multiple files.
 
2953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2954
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2955
if test -z "$INSTALL"; then
 
2956
if ${ac_cv_path_install+:} false; then :
 
2957
  $as_echo_n "(cached) " >&6
 
2958
else
 
2959
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2960
for as_dir in $PATH
 
2961
do
 
2962
  IFS=$as_save_IFS
 
2963
  test -z "$as_dir" && as_dir=.
 
2964
    # Account for people who put trailing slashes in PATH elements.
 
2965
case $as_dir/ in #((
 
2966
  ./ | .// | /[cC]/* | \
 
2967
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2968
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2969
  /usr/ucb/* ) ;;
 
2970
  *)
 
2971
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2972
    # Don't use installbsd from OSF since it installs stuff as root
 
2973
    # by default.
 
2974
    for ac_prog in ginstall scoinst install; do
 
2975
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2976
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2977
          if test $ac_prog = install &&
 
2978
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2979
            # AIX install.  It has an incompatible calling convention.
 
2980
            :
 
2981
          elif test $ac_prog = install &&
 
2982
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2983
            # program-specific install script used by HP pwplus--don't use.
 
2984
            :
 
2985
          else
 
2986
            rm -rf conftest.one conftest.two conftest.dir
 
2987
            echo one > conftest.one
 
2988
            echo two > conftest.two
 
2989
            mkdir conftest.dir
 
2990
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2991
              test -s conftest.one && test -s conftest.two &&
 
2992
              test -s conftest.dir/conftest.one &&
 
2993
              test -s conftest.dir/conftest.two
 
2994
            then
 
2995
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2996
              break 3
 
2997
            fi
 
2998
          fi
 
2999
        fi
 
3000
      done
 
3001
    done
 
3002
    ;;
 
3003
esac
 
3004
 
 
3005
  done
 
3006
IFS=$as_save_IFS
 
3007
 
 
3008
rm -rf conftest.one conftest.two conftest.dir
 
3009
 
 
3010
fi
 
3011
  if test "${ac_cv_path_install+set}" = set; then
 
3012
    INSTALL=$ac_cv_path_install
 
3013
  else
 
3014
    # As a last resort, use the slow shell script.  Don't cache a
 
3015
    # value for INSTALL within a source directory, because that will
 
3016
    # break other packages using the cache if that directory is
 
3017
    # removed, or if the value is a relative name.
 
3018
    INSTALL=$ac_install_sh
 
3019
  fi
 
3020
fi
 
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3022
$as_echo "$INSTALL" >&6; }
 
3023
 
 
3024
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3025
# It thinks the first close brace ends the variable substitution.
 
3026
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3027
 
 
3028
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3029
 
 
3030
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3031
 
 
3032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
3033
$as_echo_n "checking whether build environment is sane... " >&6; }
 
3034
# Just in case
 
3035
sleep 1
 
3036
echo timestamp > conftest.file
 
3037
# Reject unsafe characters in $srcdir or the absolute working directory
 
3038
# name.  Accept space and tab only in the latter.
 
3039
am_lf='
 
3040
'
 
3041
case `pwd` in
 
3042
  *[\\\"\#\$\&\'\`$am_lf]*)
 
3043
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
3044
esac
 
3045
case $srcdir in
 
3046
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
3047
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
3048
esac
 
3049
 
 
3050
# Do `set' in a subshell so we don't clobber the current shell's
 
3051
# arguments.  Must try -L first in case configure is actually a
 
3052
# symlink; some systems play weird games with the mod time of symlinks
 
3053
# (eg FreeBSD returns the mod time of the symlink's containing
 
3054
# directory).
 
3055
if (
 
3056
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
3057
   if test "$*" = "X"; then
 
3058
      # -L didn't work.
 
3059
      set X `ls -t "$srcdir/configure" conftest.file`
 
3060
   fi
 
3061
   rm -f conftest.file
 
3062
   if test "$*" != "X $srcdir/configure conftest.file" \
 
3063
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
3064
 
 
3065
      # If neither matched, then we have a broken ls.  This can happen
 
3066
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3067
      # broken ls alias from the environment.  This has actually
 
3068
      # happened.  Such a system could not be considered "sane".
 
3069
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
3070
alias in your environment" "$LINENO" 5
 
3071
   fi
 
3072
 
 
3073
   test "$2" = conftest.file
 
3074
   )
 
3075
then
 
3076
   # Ok.
 
3077
   :
 
3078
else
 
3079
   as_fn_error $? "newly created file is older than distributed files!
 
3080
Check your system clock" "$LINENO" 5
 
3081
fi
 
3082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3083
$as_echo "yes" >&6; }
 
3084
test "$program_prefix" != NONE &&
 
3085
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
3086
# Use a double $ so make ignores it.
 
3087
test "$program_suffix" != NONE &&
 
3088
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
3089
# Double any \ or $.
 
3090
# By default was `s,x,x', remove it if useless.
 
3091
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
3092
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
3093
 
 
3094
# expand $ac_aux_dir to an absolute path
 
3095
am_aux_dir=`cd $ac_aux_dir && pwd`
 
3096
 
 
3097
if test x"${MISSING+set}" != xset; then
 
3098
  case $am_aux_dir in
 
3099
  *\ * | *\     *)
 
3100
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
3101
  *)
 
3102
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
3103
  esac
 
3104
fi
 
3105
# Use eval to expand $SHELL
 
3106
if eval "$MISSING --run true"; then
 
3107
  am_missing_run="$MISSING --run "
 
3108
else
 
3109
  am_missing_run=
 
3110
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
3111
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
3112
fi
 
3113
 
 
3114
if test x"${install_sh}" != xset; then
 
3115
  case $am_aux_dir in
 
3116
  *\ * | *\     *)
 
3117
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
3118
  *)
 
3119
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
3120
  esac
 
3121
fi
 
3122
 
 
3123
# Installed binaries are usually stripped using `strip' when the user
 
3124
# run `make install-strip'.  However `strip' might not be the right
 
3125
# tool to use in cross-compilation environments, therefore Automake
 
3126
# will honor the `STRIP' environment variable to overrule this program.
 
3127
if test "$cross_compiling" != no; then
 
3128
  if test -n "$ac_tool_prefix"; then
 
3129
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3130
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3132
$as_echo_n "checking for $ac_word... " >&6; }
 
3133
if ${ac_cv_prog_STRIP+:} false; then :
 
3134
  $as_echo_n "(cached) " >&6
 
3135
else
 
3136
  if test -n "$STRIP"; then
 
3137
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3138
else
 
3139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3140
for as_dir in $PATH
 
3141
do
 
3142
  IFS=$as_save_IFS
 
3143
  test -z "$as_dir" && as_dir=.
 
3144
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3145
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3146
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3147
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3148
    break 2
 
3149
  fi
 
3150
done
 
3151
  done
 
3152
IFS=$as_save_IFS
 
3153
 
 
3154
fi
 
3155
fi
 
3156
STRIP=$ac_cv_prog_STRIP
 
3157
if test -n "$STRIP"; then
 
3158
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
3159
$as_echo "$STRIP" >&6; }
 
3160
else
 
3161
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3162
$as_echo "no" >&6; }
 
3163
fi
 
3164
 
 
3165
 
 
3166
fi
 
3167
if test -z "$ac_cv_prog_STRIP"; then
 
3168
  ac_ct_STRIP=$STRIP
 
3169
  # Extract the first word of "strip", so it can be a program name with args.
 
3170
set dummy strip; ac_word=$2
 
3171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3172
$as_echo_n "checking for $ac_word... " >&6; }
 
3173
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
3174
  $as_echo_n "(cached) " >&6
 
3175
else
 
3176
  if test -n "$ac_ct_STRIP"; then
 
3177
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3178
else
 
3179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3180
for as_dir in $PATH
 
3181
do
 
3182
  IFS=$as_save_IFS
 
3183
  test -z "$as_dir" && as_dir=.
 
3184
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3185
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3186
    ac_cv_prog_ac_ct_STRIP="strip"
 
3187
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3188
    break 2
 
3189
  fi
 
3190
done
 
3191
  done
 
3192
IFS=$as_save_IFS
 
3193
 
 
3194
fi
 
3195
fi
 
3196
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3197
if test -n "$ac_ct_STRIP"; then
 
3198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
3199
$as_echo "$ac_ct_STRIP" >&6; }
 
3200
else
 
3201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3202
$as_echo "no" >&6; }
 
3203
fi
 
3204
 
 
3205
  if test "x$ac_ct_STRIP" = x; then
 
3206
    STRIP=":"
 
3207
  else
 
3208
    case $cross_compiling:$ac_tool_warned in
 
3209
yes:)
 
3210
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3211
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3212
ac_tool_warned=yes ;;
 
3213
esac
 
3214
    STRIP=$ac_ct_STRIP
 
3215
  fi
 
3216
else
 
3217
  STRIP="$ac_cv_prog_STRIP"
 
3218
fi
 
3219
 
 
3220
fi
 
3221
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3222
 
 
3223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
3224
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
3225
if test -z "$MKDIR_P"; then
 
3226
  if ${ac_cv_path_mkdir+:} false; then :
 
3227
  $as_echo_n "(cached) " >&6
 
3228
else
 
3229
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3230
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3231
do
 
3232
  IFS=$as_save_IFS
 
3233
  test -z "$as_dir" && as_dir=.
 
3234
    for ac_prog in mkdir gmkdir; do
 
3235
         for ac_exec_ext in '' $ac_executable_extensions; do
 
3236
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
3237
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
3238
             'mkdir (GNU coreutils) '* | \
 
3239
             'mkdir (coreutils) '* | \
 
3240
             'mkdir (fileutils) '4.1*)
 
3241
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
3242
               break 3;;
 
3243
           esac
 
3244
         done
 
3245
       done
 
3246
  done
 
3247
IFS=$as_save_IFS
 
3248
 
 
3249
fi
 
3250
 
 
3251
  test -d ./--version && rmdir ./--version
 
3252
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3253
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3254
  else
 
3255
    # As a last resort, use the slow shell script.  Don't cache a
 
3256
    # value for MKDIR_P within a source directory, because that will
 
3257
    # break other packages using the cache if that directory is
 
3258
    # removed, or if the value is a relative name.
 
3259
    MKDIR_P="$ac_install_sh -d"
 
3260
  fi
 
3261
fi
 
3262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3263
$as_echo "$MKDIR_P" >&6; }
 
3264
 
 
3265
mkdir_p="$MKDIR_P"
 
3266
case $mkdir_p in
 
3267
  [\\/$]* | ?:[\\/]*) ;;
 
3268
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
3269
esac
 
3270
 
 
3271
for ac_prog in gawk mawk nawk awk
 
3272
do
 
3273
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3274
set dummy $ac_prog; ac_word=$2
 
3275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3276
$as_echo_n "checking for $ac_word... " >&6; }
 
3277
if ${ac_cv_prog_AWK+:} false; then :
 
3278
  $as_echo_n "(cached) " >&6
 
3279
else
 
3280
  if test -n "$AWK"; then
 
3281
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3282
else
 
3283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3284
for as_dir in $PATH
 
3285
do
 
3286
  IFS=$as_save_IFS
 
3287
  test -z "$as_dir" && as_dir=.
 
3288
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3289
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3290
    ac_cv_prog_AWK="$ac_prog"
 
3291
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3292
    break 2
 
3293
  fi
 
3294
done
 
3295
  done
 
3296
IFS=$as_save_IFS
 
3297
 
 
3298
fi
 
3299
fi
 
3300
AWK=$ac_cv_prog_AWK
 
3301
if test -n "$AWK"; then
 
3302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3303
$as_echo "$AWK" >&6; }
 
3304
else
 
3305
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3306
$as_echo "no" >&6; }
 
3307
fi
 
3308
 
 
3309
 
 
3310
  test -n "$AWK" && break
 
3311
done
 
3312
 
 
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3314
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3315
set x ${MAKE-make}
 
3316
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3317
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
3318
  $as_echo_n "(cached) " >&6
 
3319
else
 
3320
  cat >conftest.make <<\_ACEOF
 
3321
SHELL = /bin/sh
 
3322
all:
 
3323
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3324
_ACEOF
 
3325
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3326
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3327
  *@@@%%%=?*=@@@%%%*)
 
3328
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3329
  *)
 
3330
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3331
esac
 
3332
rm -f conftest.make
 
3333
fi
 
3334
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3336
$as_echo "yes" >&6; }
 
3337
  SET_MAKE=
 
3338
else
 
3339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3340
$as_echo "no" >&6; }
 
3341
  SET_MAKE="MAKE=${MAKE-make}"
 
3342
fi
 
3343
 
 
3344
rm -rf .tst 2>/dev/null
 
3345
mkdir .tst 2>/dev/null
 
3346
if test -d .tst; then
 
3347
  am__leading_dot=.
 
3348
else
 
3349
  am__leading_dot=_
 
3350
fi
 
3351
rmdir .tst 2>/dev/null
 
3352
 
 
3353
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3354
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3355
  # is not polluted with repeated "-I."
 
3356
  am__isrc=' -I$(srcdir)'
 
3357
  # test to see if srcdir already configured
 
3358
  if test -f $srcdir/config.status; then
 
3359
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3360
  fi
 
3361
fi
 
3362
 
 
3363
# test whether we have cygpath
 
3364
if test -z "$CYGPATH_W"; then
 
3365
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3366
    CYGPATH_W='cygpath -w'
 
3367
  else
 
3368
    CYGPATH_W=echo
 
3369
  fi
 
3370
fi
 
3371
 
 
3372
 
 
3373
# Define the identity of the package.
 
3374
 PACKAGE='ekiga'
 
3375
 VERSION='4.0.1'
 
3376
 
 
3377
 
 
3378
cat >>confdefs.h <<_ACEOF
 
3379
#define PACKAGE "$PACKAGE"
 
3380
_ACEOF
 
3381
 
 
3382
 
 
3383
cat >>confdefs.h <<_ACEOF
 
3384
#define VERSION "$VERSION"
 
3385
_ACEOF
 
3386
 
 
3387
# Some tools Automake needs.
 
3388
 
 
3389
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3390
 
 
3391
 
 
3392
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3393
 
 
3394
 
 
3395
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3396
 
 
3397
 
 
3398
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3399
 
 
3400
 
 
3401
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3402
 
 
3403
# We need awk for the "check" target.  The system "awk" is bad on
 
3404
# some platforms.
 
3405
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
3406
# in the wild :-(  We should find a proper way to deprecate it ...
 
3407
AMTAR='$${TAR-tar}'
 
3408
 
 
3409
 
 
3410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
 
3411
$as_echo_n "checking how to create a ustar tar archive... " >&6; }
 
3412
# Loop over all known methods to create a tar archive until one works.
 
3413
_am_tools='gnutar plaintar pax cpio none'
 
3414
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
 
3415
# Do not fold the above two line into one, because Tru64 sh and
 
3416
# Solaris sh will not grok spaces in the rhs of `-'.
 
3417
for _am_tool in $_am_tools
 
3418
do
 
3419
  case $_am_tool in
 
3420
  gnutar)
 
3421
    for _am_tar in tar gnutar gtar;
 
3422
    do
 
3423
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
 
3424
   ($_am_tar --version) >&5 2>&5
 
3425
   ac_status=$?
 
3426
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3427
   (exit $ac_status); } && break
 
3428
    done
 
3429
    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
 
3430
    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
 
3431
    am__untar="$_am_tar -xf -"
 
3432
    ;;
 
3433
  plaintar)
 
3434
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
3435
    # ustar tarball either.
 
3436
    (tar --version) >/dev/null 2>&1 && continue
 
3437
    am__tar='tar chf - "$$tardir"'
 
3438
    am__tar_='tar chf - "$tardir"'
 
3439
    am__untar='tar xf -'
 
3440
    ;;
 
3441
  pax)
 
3442
    am__tar='pax -L -x ustar -w "$$tardir"'
 
3443
    am__tar_='pax -L -x ustar -w "$tardir"'
 
3444
    am__untar='pax -r'
 
3445
    ;;
 
3446
  cpio)
 
3447
    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
 
3448
    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
 
3449
    am__untar='cpio -i -H ustar -d'
 
3450
    ;;
 
3451
  none)
 
3452
    am__tar=false
 
3453
    am__tar_=false
 
3454
    am__untar=false
 
3455
    ;;
 
3456
  esac
 
3457
 
 
3458
  # If the value was cached, stop now.  We just wanted to have am__tar
 
3459
  # and am__untar set.
 
3460
  test -n "${am_cv_prog_tar_ustar}" && break
 
3461
 
 
3462
  # tar/untar a dummy directory, and stop if the command works
 
3463
  rm -rf conftest.dir
 
3464
  mkdir conftest.dir
 
3465
  echo GrepMe > conftest.dir/file
 
3466
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
 
3467
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
 
3468
   ac_status=$?
 
3469
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3470
   (exit $ac_status); }
 
3471
  rm -rf conftest.dir
 
3472
  if test -s conftest.tar; then
 
3473
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
 
3474
   ($am__untar <conftest.tar) >&5 2>&5
 
3475
   ac_status=$?
 
3476
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3477
   (exit $ac_status); }
 
3478
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
3479
  fi
 
3480
done
 
3481
rm -rf conftest.dir
 
3482
 
 
3483
if ${am_cv_prog_tar_ustar+:} false; then :
 
3484
  $as_echo_n "(cached) " >&6
 
3485
else
 
3486
  am_cv_prog_tar_ustar=$_am_tool
 
3487
fi
 
3488
 
 
3489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
 
3490
$as_echo "$am_cv_prog_tar_ustar" >&6; }
 
3491
 
 
3492
 
 
3493
 
 
3494
 
 
3495
 
 
3496
 
 
3497
 
 
3498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
3499
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
3500
    # Check whether --enable-maintainer-mode was given.
 
3501
if test "${enable_maintainer_mode+set}" = set; then :
 
3502
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
3503
else
 
3504
  USE_MAINTAINER_MODE=yes
 
3505
fi
 
3506
 
 
3507
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
3508
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
3509
   if test $USE_MAINTAINER_MODE = yes; then
 
3510
  MAINTAINER_MODE_TRUE=
 
3511
  MAINTAINER_MODE_FALSE='#'
 
3512
else
 
3513
  MAINTAINER_MODE_TRUE='#'
 
3514
  MAINTAINER_MODE_FALSE=
 
3515
fi
 
3516
 
 
3517
  MAINT=$MAINTAINER_MODE_TRUE
 
3518
 
 
3519
 
 
3520
ac_config_headers="$ac_config_headers config.h"
 
3521
 
 
3522
 
 
3523
# Check whether --enable-silent-rules was given.
 
3524
if test "${enable_silent_rules+set}" = set; then :
 
3525
  enableval=$enable_silent_rules;
 
3526
fi
 
3527
 
 
3528
case $enable_silent_rules in
 
3529
yes) AM_DEFAULT_VERBOSITY=0;;
 
3530
no)  AM_DEFAULT_VERBOSITY=1;;
 
3531
*)   AM_DEFAULT_VERBOSITY=0;;
 
3532
esac
 
3533
am_make=${MAKE-make}
 
3534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
3535
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
3536
if ${am_cv_make_support_nested_variables+:} false; then :
 
3537
  $as_echo_n "(cached) " >&6
 
3538
else
 
3539
  if $as_echo 'TRUE=$(BAR$(V))
 
3540
BAR0=false
 
3541
BAR1=true
 
3542
V=1
 
3543
am__doit:
 
3544
        @$(TRUE)
 
3545
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
3546
  am_cv_make_support_nested_variables=yes
 
3547
else
 
3548
  am_cv_make_support_nested_variables=no
 
3549
fi
 
3550
fi
 
3551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
3552
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
3553
if test $am_cv_make_support_nested_variables = yes; then
 
3554
    AM_V='$(V)'
 
3555
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
3556
else
 
3557
  AM_V=$AM_DEFAULT_VERBOSITY
 
3558
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
3559
fi
 
3560
AM_BACKSLASH='\'
 
3561
 
 
3562
 
 
3563
ac_ext=cpp
 
3564
ac_cpp='$CXXCPP $CPPFLAGS'
 
3565
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3566
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3567
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3568
 
 
3569
 
 
3570
 
 
3571
MAJOR_VERSION=4
 
3572
MINOR_VERSION=0
 
3573
BUILD_TYPE=ReleaseCode
 
3574
BUILD_NUMBER=1
 
3575
 
 
3576
PTLIB_REC_VERSION="2.10.10"
 
3577
OPAL_REC_VERSION="3.10.10"
 
3578
 
 
3579
 
 
3580
cat >>confdefs.h <<_ACEOF
 
3581
#define MAJOR_VERSION $MAJOR_VERSION
 
3582
_ACEOF
 
3583
 
 
3584
 
 
3585
cat >>confdefs.h <<_ACEOF
 
3586
#define MINOR_VERSION $MINOR_VERSION
 
3587
_ACEOF
 
3588
 
 
3589
 
 
3590
cat >>confdefs.h <<_ACEOF
 
3591
#define BUILD_TYPE $BUILD_TYPE
 
3592
_ACEOF
 
3593
 
 
3594
 
 
3595
cat >>confdefs.h <<_ACEOF
 
3596
#define BUILD_NUMBER $BUILD_NUMBER
 
3597
_ACEOF
 
3598
 
 
3599
 
 
3600
 
 
3601
 
 
3602
 
 
3603
 
 
3604
 
 
3605
 
 
3606
 
 
3607
 
 
3608
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
3609
        if test -n "$ac_tool_prefix"; then
 
3610
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
3611
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
3612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3613
$as_echo_n "checking for $ac_word... " >&6; }
 
3614
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
3615
  $as_echo_n "(cached) " >&6
 
3616
else
 
3617
  case $PKG_CONFIG in
 
3618
  [\\/]* | ?:[\\/]*)
 
3619
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
3620
  ;;
 
3621
  *)
 
3622
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3623
for as_dir in $PATH
 
3624
do
 
3625
  IFS=$as_save_IFS
 
3626
  test -z "$as_dir" && as_dir=.
 
3627
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3628
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3629
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
3630
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3631
    break 2
 
3632
  fi
 
3633
done
 
3634
  done
 
3635
IFS=$as_save_IFS
 
3636
 
 
3637
  ;;
 
3638
esac
 
3639
fi
 
3640
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
3641
if test -n "$PKG_CONFIG"; then
 
3642
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
3643
$as_echo "$PKG_CONFIG" >&6; }
 
3644
else
 
3645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3646
$as_echo "no" >&6; }
 
3647
fi
 
3648
 
 
3649
 
 
3650
fi
 
3651
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
3652
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
3653
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
3654
set dummy pkg-config; ac_word=$2
 
3655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3656
$as_echo_n "checking for $ac_word... " >&6; }
 
3657
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
3658
  $as_echo_n "(cached) " >&6
 
3659
else
 
3660
  case $ac_pt_PKG_CONFIG in
 
3661
  [\\/]* | ?:[\\/]*)
 
3662
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
3663
  ;;
 
3664
  *)
 
3665
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3666
for as_dir in $PATH
 
3667
do
 
3668
  IFS=$as_save_IFS
 
3669
  test -z "$as_dir" && as_dir=.
 
3670
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3671
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3672
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
3673
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3674
    break 2
 
3675
  fi
 
3676
done
 
3677
  done
 
3678
IFS=$as_save_IFS
 
3679
 
 
3680
  ;;
 
3681
esac
 
3682
fi
 
3683
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
3684
if test -n "$ac_pt_PKG_CONFIG"; then
 
3685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
3686
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
3687
else
 
3688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3689
$as_echo "no" >&6; }
 
3690
fi
 
3691
 
 
3692
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
3693
    PKG_CONFIG=""
 
3694
  else
 
3695
    case $cross_compiling:$ac_tool_warned in
 
3696
yes:)
 
3697
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3698
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3699
ac_tool_warned=yes ;;
 
3700
esac
 
3701
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
3702
  fi
 
3703
else
 
3704
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
3705
fi
 
3706
 
 
3707
fi
 
3708
if test -n "$PKG_CONFIG"; then
 
3709
        _pkg_min_version=0.9.0
 
3710
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
3711
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
3712
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
3713
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3714
$as_echo "yes" >&6; }
 
3715
        else
 
3716
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3717
$as_echo "no" >&6; }
 
3718
                PKG_CONFIG=""
 
3719
        fi
 
3720
fi
 
3721
 
 
3722
case `pwd` in
 
3723
  *\ * | *\     *)
 
3724
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
3725
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
3726
esac
 
3727
 
 
3728
 
 
3729
 
 
3730
macro_version='2.4.2'
 
3731
macro_revision='1.3337'
 
3732
 
 
3733
 
 
3734
 
 
3735
 
 
3736
 
 
3737
 
 
3738
 
 
3739
 
 
3740
 
 
3741
 
 
3742
 
 
3743
 
 
3744
 
 
3745
ltmain="$ac_aux_dir/ltmain.sh"
 
3746
 
 
3747
# Backslashify metacharacters that are still active within
 
3748
# double-quoted strings.
 
3749
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
3750
 
 
3751
# Same as above, but do not quote variable references.
 
3752
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
3753
 
 
3754
# Sed substitution to delay expansion of an escaped shell variable in a
 
3755
# double_quote_subst'ed string.
 
3756
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
3757
 
 
3758
# Sed substitution to delay expansion of an escaped single quote.
 
3759
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
3760
 
 
3761
# Sed substitution to avoid accidental globbing in evaled expressions
 
3762
no_glob_subst='s/\*/\\\*/g'
 
3763
 
 
3764
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3765
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3766
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3767
 
 
3768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
3769
$as_echo_n "checking how to print strings... " >&6; }
 
3770
# Test print first, because it will be a builtin if present.
 
3771
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
3772
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3773
  ECHO='print -r --'
 
3774
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3775
  ECHO='printf %s\n'
 
3776
else
 
3777
  # Use this function as a fallback that always works.
 
3778
  func_fallback_echo ()
 
3779
  {
 
3780
    eval 'cat <<_LTECHO_EOF
 
3781
$1
 
3782
_LTECHO_EOF'
 
3783
  }
 
3784
  ECHO='func_fallback_echo'
 
3785
fi
 
3786
 
 
3787
# func_echo_all arg...
 
3788
# Invoke $ECHO with all args, space-separated.
 
3789
func_echo_all ()
 
3790
{
 
3791
    $ECHO ""
 
3792
}
 
3793
 
 
3794
case "$ECHO" in
 
3795
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
3796
$as_echo "printf" >&6; } ;;
 
3797
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
3798
$as_echo "print -r" >&6; } ;;
 
3799
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
3800
$as_echo "cat" >&6; } ;;
 
3801
esac
 
3802
 
 
3803
 
 
3804
 
 
3805
 
 
3806
 
 
3807
 
 
3808
 
 
3809
 
 
3810
 
 
3811
 
 
3812
 
 
3813
 
 
3814
 
 
3815
 
 
3816
DEPDIR="${am__leading_dot}deps"
 
3817
 
 
3818
ac_config_commands="$ac_config_commands depfiles"
 
3819
 
 
3820
 
 
3821
am_make=${MAKE-make}
 
3822
cat > confinc << 'END'
 
3823
am__doit:
 
3824
        @echo this is the am__doit target
 
3825
.PHONY: am__doit
 
3826
END
 
3827
# If we don't find an include directive, just comment out the code.
 
3828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3829
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3830
am__include="#"
 
3831
am__quote=
 
3832
_am_result=none
 
3833
# First try GNU make style include.
 
3834
echo "include confinc" > confmf
 
3835
# Ignore all kinds of additional output from `make'.
 
3836
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3837
*the\ am__doit\ target*)
 
3838
  am__include=include
 
3839
  am__quote=
 
3840
  _am_result=GNU
 
3841
  ;;
 
3842
esac
 
3843
# Now try BSD make style include.
 
3844
if test "$am__include" = "#"; then
 
3845
   echo '.include "confinc"' > confmf
 
3846
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3847
   *the\ am__doit\ target*)
 
3848
     am__include=.include
 
3849
     am__quote="\""
 
3850
     _am_result=BSD
 
3851
     ;;
 
3852
   esac
 
3853
fi
 
3854
 
 
3855
 
 
3856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3857
$as_echo "$_am_result" >&6; }
 
3858
rm -f confinc confmf
 
3859
 
 
3860
# Check whether --enable-dependency-tracking was given.
 
3861
if test "${enable_dependency_tracking+set}" = set; then :
 
3862
  enableval=$enable_dependency_tracking;
 
3863
fi
 
3864
 
 
3865
if test "x$enable_dependency_tracking" != xno; then
 
3866
  am_depcomp="$ac_aux_dir/depcomp"
 
3867
  AMDEPBACKSLASH='\'
 
3868
  am__nodep='_no'
 
3869
fi
 
3870
 if test "x$enable_dependency_tracking" != xno; then
 
3871
  AMDEP_TRUE=
 
3872
  AMDEP_FALSE='#'
 
3873
else
 
3874
  AMDEP_TRUE='#'
 
3875
  AMDEP_FALSE=
 
3876
fi
 
3877
 
 
3878
 
 
3879
ac_ext=c
 
3880
ac_cpp='$CPP $CPPFLAGS'
 
3881
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3882
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3883
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3884
if test -n "$ac_tool_prefix"; then
 
3885
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3886
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3888
$as_echo_n "checking for $ac_word... " >&6; }
 
3889
if ${ac_cv_prog_CC+:} false; then :
 
3890
  $as_echo_n "(cached) " >&6
 
3891
else
 
3892
  if test -n "$CC"; then
 
3893
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3894
else
 
3895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3896
for as_dir in $PATH
 
3897
do
 
3898
  IFS=$as_save_IFS
 
3899
  test -z "$as_dir" && as_dir=.
 
3900
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3901
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3902
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3903
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3904
    break 2
 
3905
  fi
 
3906
done
 
3907
  done
 
3908
IFS=$as_save_IFS
 
3909
 
 
3910
fi
 
3911
fi
 
3912
CC=$ac_cv_prog_CC
 
3913
if test -n "$CC"; then
 
3914
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3915
$as_echo "$CC" >&6; }
 
3916
else
 
3917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3918
$as_echo "no" >&6; }
 
3919
fi
 
3920
 
 
3921
 
 
3922
fi
 
3923
if test -z "$ac_cv_prog_CC"; then
 
3924
  ac_ct_CC=$CC
 
3925
  # Extract the first word of "gcc", so it can be a program name with args.
 
3926
set dummy gcc; ac_word=$2
 
3927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3928
$as_echo_n "checking for $ac_word... " >&6; }
 
3929
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3930
  $as_echo_n "(cached) " >&6
 
3931
else
 
3932
  if test -n "$ac_ct_CC"; then
 
3933
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3934
else
 
3935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3936
for as_dir in $PATH
 
3937
do
 
3938
  IFS=$as_save_IFS
 
3939
  test -z "$as_dir" && as_dir=.
 
3940
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3941
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3942
    ac_cv_prog_ac_ct_CC="gcc"
 
3943
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3944
    break 2
 
3945
  fi
 
3946
done
 
3947
  done
 
3948
IFS=$as_save_IFS
 
3949
 
 
3950
fi
 
3951
fi
 
3952
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3953
if test -n "$ac_ct_CC"; then
 
3954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3955
$as_echo "$ac_ct_CC" >&6; }
 
3956
else
 
3957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3958
$as_echo "no" >&6; }
 
3959
fi
 
3960
 
 
3961
  if test "x$ac_ct_CC" = x; then
 
3962
    CC=""
 
3963
  else
 
3964
    case $cross_compiling:$ac_tool_warned in
 
3965
yes:)
 
3966
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3968
ac_tool_warned=yes ;;
 
3969
esac
 
3970
    CC=$ac_ct_CC
 
3971
  fi
 
3972
else
 
3973
  CC="$ac_cv_prog_CC"
 
3974
fi
 
3975
 
 
3976
if test -z "$CC"; then
 
3977
          if test -n "$ac_tool_prefix"; then
 
3978
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3979
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3981
$as_echo_n "checking for $ac_word... " >&6; }
 
3982
if ${ac_cv_prog_CC+:} false; then :
 
3983
  $as_echo_n "(cached) " >&6
 
3984
else
 
3985
  if test -n "$CC"; then
 
3986
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3987
else
 
3988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3989
for as_dir in $PATH
 
3990
do
 
3991
  IFS=$as_save_IFS
 
3992
  test -z "$as_dir" && as_dir=.
 
3993
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3994
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3995
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3996
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3997
    break 2
 
3998
  fi
 
3999
done
 
4000
  done
 
4001
IFS=$as_save_IFS
 
4002
 
 
4003
fi
 
4004
fi
 
4005
CC=$ac_cv_prog_CC
 
4006
if test -n "$CC"; then
 
4007
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4008
$as_echo "$CC" >&6; }
 
4009
else
 
4010
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4011
$as_echo "no" >&6; }
 
4012
fi
 
4013
 
 
4014
 
 
4015
  fi
 
4016
fi
 
4017
if test -z "$CC"; then
 
4018
  # Extract the first word of "cc", so it can be a program name with args.
 
4019
set dummy cc; ac_word=$2
 
4020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4021
$as_echo_n "checking for $ac_word... " >&6; }
 
4022
if ${ac_cv_prog_CC+:} false; then :
 
4023
  $as_echo_n "(cached) " >&6
 
4024
else
 
4025
  if test -n "$CC"; then
 
4026
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4027
else
 
4028
  ac_prog_rejected=no
 
4029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4030
for as_dir in $PATH
 
4031
do
 
4032
  IFS=$as_save_IFS
 
4033
  test -z "$as_dir" && as_dir=.
 
4034
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4035
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4036
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4037
       ac_prog_rejected=yes
 
4038
       continue
 
4039
     fi
 
4040
    ac_cv_prog_CC="cc"
 
4041
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4042
    break 2
 
4043
  fi
 
4044
done
 
4045
  done
 
4046
IFS=$as_save_IFS
 
4047
 
 
4048
if test $ac_prog_rejected = yes; then
 
4049
  # We found a bogon in the path, so make sure we never use it.
 
4050
  set dummy $ac_cv_prog_CC
 
4051
  shift
 
4052
  if test $# != 0; then
 
4053
    # We chose a different compiler from the bogus one.
 
4054
    # However, it has the same basename, so the bogon will be chosen
 
4055
    # first if we set CC to just the basename; use the full file name.
 
4056
    shift
 
4057
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4058
  fi
 
4059
fi
 
4060
fi
 
4061
fi
 
4062
CC=$ac_cv_prog_CC
 
4063
if test -n "$CC"; then
 
4064
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4065
$as_echo "$CC" >&6; }
 
4066
else
 
4067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4068
$as_echo "no" >&6; }
 
4069
fi
 
4070
 
 
4071
 
 
4072
fi
 
4073
if test -z "$CC"; then
 
4074
  if test -n "$ac_tool_prefix"; then
 
4075
  for ac_prog in cl.exe
 
4076
  do
 
4077
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4078
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4080
$as_echo_n "checking for $ac_word... " >&6; }
 
4081
if ${ac_cv_prog_CC+:} false; then :
 
4082
  $as_echo_n "(cached) " >&6
 
4083
else
 
4084
  if test -n "$CC"; then
 
4085
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4086
else
 
4087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4088
for as_dir in $PATH
 
4089
do
 
4090
  IFS=$as_save_IFS
 
4091
  test -z "$as_dir" && as_dir=.
 
4092
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4093
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4094
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4095
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4096
    break 2
 
4097
  fi
 
4098
done
 
4099
  done
 
4100
IFS=$as_save_IFS
 
4101
 
 
4102
fi
 
4103
fi
 
4104
CC=$ac_cv_prog_CC
 
4105
if test -n "$CC"; then
 
4106
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4107
$as_echo "$CC" >&6; }
 
4108
else
 
4109
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4110
$as_echo "no" >&6; }
 
4111
fi
 
4112
 
 
4113
 
 
4114
    test -n "$CC" && break
 
4115
  done
 
4116
fi
 
4117
if test -z "$CC"; then
 
4118
  ac_ct_CC=$CC
 
4119
  for ac_prog in cl.exe
 
4120
do
 
4121
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4122
set dummy $ac_prog; ac_word=$2
 
4123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4124
$as_echo_n "checking for $ac_word... " >&6; }
 
4125
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4126
  $as_echo_n "(cached) " >&6
 
4127
else
 
4128
  if test -n "$ac_ct_CC"; then
 
4129
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4130
else
 
4131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4132
for as_dir in $PATH
 
4133
do
 
4134
  IFS=$as_save_IFS
 
4135
  test -z "$as_dir" && as_dir=.
 
4136
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4137
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4138
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4139
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4140
    break 2
 
4141
  fi
 
4142
done
 
4143
  done
 
4144
IFS=$as_save_IFS
 
4145
 
 
4146
fi
 
4147
fi
 
4148
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4149
if test -n "$ac_ct_CC"; then
 
4150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4151
$as_echo "$ac_ct_CC" >&6; }
 
4152
else
 
4153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4154
$as_echo "no" >&6; }
 
4155
fi
 
4156
 
 
4157
 
 
4158
  test -n "$ac_ct_CC" && break
 
4159
done
 
4160
 
 
4161
  if test "x$ac_ct_CC" = x; then
 
4162
    CC=""
 
4163
  else
 
4164
    case $cross_compiling:$ac_tool_warned in
 
4165
yes:)
 
4166
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4167
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4168
ac_tool_warned=yes ;;
 
4169
esac
 
4170
    CC=$ac_ct_CC
 
4171
  fi
 
4172
fi
 
4173
 
 
4174
fi
 
4175
 
 
4176
 
 
4177
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4178
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4179
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4180
See \`config.log' for more details" "$LINENO" 5; }
 
4181
 
 
4182
# Provide some information about the compiler.
 
4183
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4184
set X $ac_compile
 
4185
ac_compiler=$2
 
4186
for ac_option in --version -v -V -qversion; do
 
4187
  { { ac_try="$ac_compiler $ac_option >&5"
 
4188
case "(($ac_try" in
 
4189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4190
  *) ac_try_echo=$ac_try;;
 
4191
esac
 
4192
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4193
$as_echo "$ac_try_echo"; } >&5
 
4194
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4195
  ac_status=$?
 
4196
  if test -s conftest.err; then
 
4197
    sed '10a\
 
4198
... rest of stderr output deleted ...
 
4199
         10q' conftest.err >conftest.er1
 
4200
    cat conftest.er1 >&5
 
4201
  fi
 
4202
  rm -f conftest.er1 conftest.err
 
4203
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4204
  test $ac_status = 0; }
 
4205
done
 
4206
 
 
4207
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4208
/* end confdefs.h.  */
 
4209
 
 
4210
int
 
4211
main ()
 
4212
{
 
4213
 
 
4214
  ;
 
4215
  return 0;
 
4216
}
 
4217
_ACEOF
 
4218
ac_clean_files_save=$ac_clean_files
 
4219
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
4220
# Try to create an executable without -o first, disregard a.out.
 
4221
# It will help us diagnose broken compilers, and finding out an intuition
 
4222
# of exeext.
 
4223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
4224
$as_echo_n "checking whether the C compiler works... " >&6; }
 
4225
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
4226
 
 
4227
# The possible output files:
 
4228
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
4229
 
 
4230
ac_rmfiles=
 
4231
for ac_file in $ac_files
 
4232
do
 
4233
  case $ac_file in
 
4234
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4235
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
4236
  esac
 
4237
done
 
4238
rm -f $ac_rmfiles
 
4239
 
 
4240
if { { ac_try="$ac_link_default"
 
4241
case "(($ac_try" in
 
4242
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4243
  *) ac_try_echo=$ac_try;;
 
4244
esac
 
4245
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4246
$as_echo "$ac_try_echo"; } >&5
 
4247
  (eval "$ac_link_default") 2>&5
 
4248
  ac_status=$?
 
4249
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4250
  test $ac_status = 0; }; then :
 
4251
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
4252
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
4253
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
4254
# so that the user can short-circuit this test for compilers unknown to
 
4255
# Autoconf.
 
4256
for ac_file in $ac_files ''
 
4257
do
 
4258
  test -f "$ac_file" || continue
 
4259
  case $ac_file in
 
4260
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
4261
        ;;
 
4262
    [ab].out )
 
4263
        # We found the default executable, but exeext='' is most
 
4264
        # certainly right.
 
4265
        break;;
 
4266
    *.* )
 
4267
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
4268
        then :; else
 
4269
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4270
        fi
 
4271
        # We set ac_cv_exeext here because the later test for it is not
 
4272
        # safe: cross compilers may not add the suffix if given an `-o'
 
4273
        # argument, so we may need to know it at that point already.
 
4274
        # Even if this section looks crufty: it has the advantage of
 
4275
        # actually working.
 
4276
        break;;
 
4277
    * )
 
4278
        break;;
 
4279
  esac
 
4280
done
 
4281
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
4282
 
 
4283
else
 
4284
  ac_file=''
 
4285
fi
 
4286
if test -z "$ac_file"; then :
 
4287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4288
$as_echo "no" >&6; }
 
4289
$as_echo "$as_me: failed program was:" >&5
 
4290
sed 's/^/| /' conftest.$ac_ext >&5
 
4291
 
 
4292
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4293
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4294
as_fn_error 77 "C compiler cannot create executables
 
4295
See \`config.log' for more details" "$LINENO" 5; }
 
4296
else
 
4297
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4298
$as_echo "yes" >&6; }
 
4299
fi
 
4300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
4301
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
4302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
4303
$as_echo "$ac_file" >&6; }
 
4304
ac_exeext=$ac_cv_exeext
 
4305
 
 
4306
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
4307
ac_clean_files=$ac_clean_files_save
 
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
4309
$as_echo_n "checking for suffix of executables... " >&6; }
 
4310
if { { ac_try="$ac_link"
 
4311
case "(($ac_try" in
 
4312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4313
  *) ac_try_echo=$ac_try;;
 
4314
esac
 
4315
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4316
$as_echo "$ac_try_echo"; } >&5
 
4317
  (eval "$ac_link") 2>&5
 
4318
  ac_status=$?
 
4319
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4320
  test $ac_status = 0; }; then :
 
4321
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
4322
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
4323
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
4324
# `rm'.
 
4325
for ac_file in conftest.exe conftest conftest.*; do
 
4326
  test -f "$ac_file" || continue
 
4327
  case $ac_file in
 
4328
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4329
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4330
          break;;
 
4331
    * ) break;;
 
4332
  esac
 
4333
done
 
4334
else
 
4335
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4336
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4337
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
4338
See \`config.log' for more details" "$LINENO" 5; }
 
4339
fi
 
4340
rm -f conftest conftest$ac_cv_exeext
 
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
4342
$as_echo "$ac_cv_exeext" >&6; }
 
4343
 
 
4344
rm -f conftest.$ac_ext
 
4345
EXEEXT=$ac_cv_exeext
 
4346
ac_exeext=$EXEEXT
 
4347
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4348
/* end confdefs.h.  */
 
4349
#include <stdio.h>
 
4350
int
 
4351
main ()
 
4352
{
 
4353
FILE *f = fopen ("conftest.out", "w");
 
4354
 return ferror (f) || fclose (f) != 0;
 
4355
 
 
4356
  ;
 
4357
  return 0;
 
4358
}
 
4359
_ACEOF
 
4360
ac_clean_files="$ac_clean_files conftest.out"
 
4361
# Check that the compiler produces executables we can run.  If not, either
 
4362
# the compiler is broken, or we cross compile.
 
4363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
4364
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
4365
if test "$cross_compiling" != yes; then
 
4366
  { { ac_try="$ac_link"
 
4367
case "(($ac_try" in
 
4368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4369
  *) ac_try_echo=$ac_try;;
 
4370
esac
 
4371
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4372
$as_echo "$ac_try_echo"; } >&5
 
4373
  (eval "$ac_link") 2>&5
 
4374
  ac_status=$?
 
4375
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4376
  test $ac_status = 0; }
 
4377
  if { ac_try='./conftest$ac_cv_exeext'
 
4378
  { { case "(($ac_try" in
 
4379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4380
  *) ac_try_echo=$ac_try;;
 
4381
esac
 
4382
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4383
$as_echo "$ac_try_echo"; } >&5
 
4384
  (eval "$ac_try") 2>&5
 
4385
  ac_status=$?
 
4386
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4387
  test $ac_status = 0; }; }; then
 
4388
    cross_compiling=no
 
4389
  else
 
4390
    if test "$cross_compiling" = maybe; then
 
4391
        cross_compiling=yes
 
4392
    else
 
4393
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4394
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4395
as_fn_error $? "cannot run C compiled programs.
 
4396
If you meant to cross compile, use \`--host'.
 
4397
See \`config.log' for more details" "$LINENO" 5; }
 
4398
    fi
 
4399
  fi
 
4400
fi
 
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
4402
$as_echo "$cross_compiling" >&6; }
 
4403
 
 
4404
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
4405
ac_clean_files=$ac_clean_files_save
 
4406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
4407
$as_echo_n "checking for suffix of object files... " >&6; }
 
4408
if ${ac_cv_objext+:} false; then :
 
4409
  $as_echo_n "(cached) " >&6
 
4410
else
 
4411
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4412
/* end confdefs.h.  */
 
4413
 
 
4414
int
 
4415
main ()
 
4416
{
 
4417
 
 
4418
  ;
 
4419
  return 0;
 
4420
}
 
4421
_ACEOF
 
4422
rm -f conftest.o conftest.obj
 
4423
if { { ac_try="$ac_compile"
 
4424
case "(($ac_try" in
 
4425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4426
  *) ac_try_echo=$ac_try;;
 
4427
esac
 
4428
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4429
$as_echo "$ac_try_echo"; } >&5
 
4430
  (eval "$ac_compile") 2>&5
 
4431
  ac_status=$?
 
4432
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4433
  test $ac_status = 0; }; then :
 
4434
  for ac_file in conftest.o conftest.obj conftest.*; do
 
4435
  test -f "$ac_file" || continue;
 
4436
  case $ac_file in
 
4437
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
4438
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
4439
       break;;
 
4440
  esac
 
4441
done
 
4442
else
 
4443
  $as_echo "$as_me: failed program was:" >&5
 
4444
sed 's/^/| /' conftest.$ac_ext >&5
 
4445
 
 
4446
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4447
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4448
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
4449
See \`config.log' for more details" "$LINENO" 5; }
 
4450
fi
 
4451
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
4452
fi
 
4453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
4454
$as_echo "$ac_cv_objext" >&6; }
 
4455
OBJEXT=$ac_cv_objext
 
4456
ac_objext=$OBJEXT
 
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4458
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4459
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4460
  $as_echo_n "(cached) " >&6
 
4461
else
 
4462
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4463
/* end confdefs.h.  */
 
4464
 
 
4465
int
 
4466
main ()
 
4467
{
 
4468
#ifndef __GNUC__
 
4469
       choke me
 
4470
#endif
 
4471
 
 
4472
  ;
 
4473
  return 0;
 
4474
}
 
4475
_ACEOF
 
4476
if ac_fn_c_try_compile "$LINENO"; then :
 
4477
  ac_compiler_gnu=yes
 
4478
else
 
4479
  ac_compiler_gnu=no
 
4480
fi
 
4481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4482
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4483
 
 
4484
fi
 
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4486
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4487
if test $ac_compiler_gnu = yes; then
 
4488
  GCC=yes
 
4489
else
 
4490
  GCC=
 
4491
fi
 
4492
ac_test_CFLAGS=${CFLAGS+set}
 
4493
ac_save_CFLAGS=$CFLAGS
 
4494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4495
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4496
if ${ac_cv_prog_cc_g+:} false; then :
 
4497
  $as_echo_n "(cached) " >&6
 
4498
else
 
4499
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4500
   ac_c_werror_flag=yes
 
4501
   ac_cv_prog_cc_g=no
 
4502
   CFLAGS="-g"
 
4503
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4504
/* end confdefs.h.  */
 
4505
 
 
4506
int
 
4507
main ()
 
4508
{
 
4509
 
 
4510
  ;
 
4511
  return 0;
 
4512
}
 
4513
_ACEOF
 
4514
if ac_fn_c_try_compile "$LINENO"; then :
 
4515
  ac_cv_prog_cc_g=yes
 
4516
else
 
4517
  CFLAGS=""
 
4518
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4519
/* end confdefs.h.  */
 
4520
 
 
4521
int
 
4522
main ()
 
4523
{
 
4524
 
 
4525
  ;
 
4526
  return 0;
 
4527
}
 
4528
_ACEOF
 
4529
if ac_fn_c_try_compile "$LINENO"; then :
 
4530
 
 
4531
else
 
4532
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4533
         CFLAGS="-g"
 
4534
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4535
/* end confdefs.h.  */
 
4536
 
 
4537
int
 
4538
main ()
 
4539
{
 
4540
 
 
4541
  ;
 
4542
  return 0;
 
4543
}
 
4544
_ACEOF
 
4545
if ac_fn_c_try_compile "$LINENO"; then :
 
4546
  ac_cv_prog_cc_g=yes
 
4547
fi
 
4548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4549
fi
 
4550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4551
fi
 
4552
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4553
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4554
fi
 
4555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4556
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4557
if test "$ac_test_CFLAGS" = set; then
 
4558
  CFLAGS=$ac_save_CFLAGS
 
4559
elif test $ac_cv_prog_cc_g = yes; then
 
4560
  if test "$GCC" = yes; then
 
4561
    CFLAGS="-g -O2"
 
4562
  else
 
4563
    CFLAGS="-g"
 
4564
  fi
 
4565
else
 
4566
  if test "$GCC" = yes; then
 
4567
    CFLAGS="-O2"
 
4568
  else
 
4569
    CFLAGS=
 
4570
  fi
 
4571
fi
 
4572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4573
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4574
if ${ac_cv_prog_cc_c89+:} false; then :
 
4575
  $as_echo_n "(cached) " >&6
 
4576
else
 
4577
  ac_cv_prog_cc_c89=no
 
4578
ac_save_CC=$CC
 
4579
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4580
/* end confdefs.h.  */
 
4581
#include <stdarg.h>
 
4582
#include <stdio.h>
 
4583
struct stat;
 
4584
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4585
struct buf { int x; };
 
4586
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4587
static char *e (p, i)
 
4588
     char **p;
 
4589
     int i;
 
4590
{
 
4591
  return p[i];
 
4592
}
 
4593
static char *f (char * (*g) (char **, int), char **p, ...)
 
4594
{
 
4595
  char *s;
 
4596
  va_list v;
 
4597
  va_start (v,p);
 
4598
  s = g (p, va_arg (v,int));
 
4599
  va_end (v);
 
4600
  return s;
 
4601
}
 
4602
 
 
4603
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4604
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4605
   These don't provoke an error unfortunately, instead are silently treated
 
4606
   as 'x'.  The following induces an error, until -std is added to get
 
4607
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4608
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4609
   that's true only with -std.  */
 
4610
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4611
 
 
4612
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4613
   inside strings and character constants.  */
 
4614
#define FOO(x) 'x'
 
4615
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4616
 
 
4617
int test (int i, double x);
 
4618
struct s1 {int (*f) (int a);};
 
4619
struct s2 {int (*f) (double a);};
 
4620
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4621
int argc;
 
4622
char **argv;
 
4623
int
 
4624
main ()
 
4625
{
 
4626
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4627
  ;
 
4628
  return 0;
 
4629
}
 
4630
_ACEOF
 
4631
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4632
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4633
do
 
4634
  CC="$ac_save_CC $ac_arg"
 
4635
  if ac_fn_c_try_compile "$LINENO"; then :
 
4636
  ac_cv_prog_cc_c89=$ac_arg
 
4637
fi
 
4638
rm -f core conftest.err conftest.$ac_objext
 
4639
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4640
done
 
4641
rm -f conftest.$ac_ext
 
4642
CC=$ac_save_CC
 
4643
 
 
4644
fi
 
4645
# AC_CACHE_VAL
 
4646
case "x$ac_cv_prog_cc_c89" in
 
4647
  x)
 
4648
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4649
$as_echo "none needed" >&6; } ;;
 
4650
  xno)
 
4651
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4652
$as_echo "unsupported" >&6; } ;;
 
4653
  *)
 
4654
    CC="$CC $ac_cv_prog_cc_c89"
 
4655
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4656
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4657
esac
 
4658
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4659
 
 
4660
fi
 
4661
 
 
4662
ac_ext=cpp
 
4663
ac_cpp='$CXXCPP $CPPFLAGS'
 
4664
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4665
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4666
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4667
 
 
4668
depcc="$CC"   am_compiler_list=
 
4669
 
 
4670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4671
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4672
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4673
  $as_echo_n "(cached) " >&6
 
4674
else
 
4675
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4676
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4677
  # making bogus files that we don't know about and never remove.  For
 
4678
  # instance it was reported that on HP-UX the gcc test will end up
 
4679
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4680
  # in D'.
 
4681
  rm -rf conftest.dir
 
4682
  mkdir conftest.dir
 
4683
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4684
  # using a relative directory.
 
4685
  cp "$am_depcomp" conftest.dir
 
4686
  cd conftest.dir
 
4687
  # We will build objects and dependencies in a subdirectory because
 
4688
  # it helps to detect inapplicable dependency modes.  For instance
 
4689
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4690
  # side effect of compilation, but ICC will put the dependencies in
 
4691
  # the current directory while Tru64 will put them in the object
 
4692
  # directory.
 
4693
  mkdir sub
 
4694
 
 
4695
  am_cv_CC_dependencies_compiler_type=none
 
4696
  if test "$am_compiler_list" = ""; then
 
4697
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4698
  fi
 
4699
  am__universal=false
 
4700
  case " $depcc " in #(
 
4701
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4702
     esac
 
4703
 
 
4704
  for depmode in $am_compiler_list; do
 
4705
    # Setup a source with many dependencies, because some compilers
 
4706
    # like to wrap large dependency lists on column 80 (with \), and
 
4707
    # we should not choose a depcomp mode which is confused by this.
 
4708
    #
 
4709
    # We need to recreate these files for each test, as the compiler may
 
4710
    # overwrite some of them when testing with obscure command lines.
 
4711
    # This happens at least with the AIX C compiler.
 
4712
    : > sub/conftest.c
 
4713
    for i in 1 2 3 4 5 6; do
 
4714
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4715
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4716
      # Solaris 8's {/usr,}/bin/sh.
 
4717
      touch sub/conftst$i.h
 
4718
    done
 
4719
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4720
 
 
4721
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4722
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4723
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4724
    # versions had trouble with output in subdirs
 
4725
    am__obj=sub/conftest.${OBJEXT-o}
 
4726
    am__minus_obj="-o $am__obj"
 
4727
    case $depmode in
 
4728
    gcc)
 
4729
      # This depmode causes a compiler race in universal mode.
 
4730
      test "$am__universal" = false || continue
 
4731
      ;;
 
4732
    nosideeffect)
 
4733
      # after this tag, mechanisms are not by side-effect, so they'll
 
4734
      # only be used when explicitly requested
 
4735
      if test "x$enable_dependency_tracking" = xyes; then
 
4736
        continue
 
4737
      else
 
4738
        break
 
4739
      fi
 
4740
      ;;
 
4741
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4742
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4743
      # not run yet.  These depmodes are late enough in the game, and
 
4744
      # so weak that their functioning should not be impacted.
 
4745
      am__obj=conftest.${OBJEXT-o}
 
4746
      am__minus_obj=
 
4747
      ;;
 
4748
    none) break ;;
 
4749
    esac
 
4750
    if depmode=$depmode \
 
4751
       source=sub/conftest.c object=$am__obj \
 
4752
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4753
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4754
         >/dev/null 2>conftest.err &&
 
4755
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4756
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4757
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4758
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4759
      # icc doesn't choke on unknown options, it will just issue warnings
 
4760
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4761
      # that says an option was ignored or not supported.
 
4762
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4763
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4764
      # The diagnosis changed in icc 8.0:
 
4765
      #   icc: Command line remark: option '-MP' not supported
 
4766
      if (grep 'ignoring option' conftest.err ||
 
4767
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4768
        am_cv_CC_dependencies_compiler_type=$depmode
 
4769
        break
 
4770
      fi
 
4771
    fi
 
4772
  done
 
4773
 
 
4774
  cd ..
 
4775
  rm -rf conftest.dir
 
4776
else
 
4777
  am_cv_CC_dependencies_compiler_type=none
 
4778
fi
 
4779
 
 
4780
fi
 
4781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4782
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4783
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4784
 
 
4785
 if
 
4786
  test "x$enable_dependency_tracking" != xno \
 
4787
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4788
  am__fastdepCC_TRUE=
 
4789
  am__fastdepCC_FALSE='#'
 
4790
else
 
4791
  am__fastdepCC_TRUE='#'
 
4792
  am__fastdepCC_FALSE=
 
4793
fi
 
4794
 
 
4795
 
 
4796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4797
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4798
if ${ac_cv_path_SED+:} false; then :
 
4799
  $as_echo_n "(cached) " >&6
 
4800
else
 
4801
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4802
     for ac_i in 1 2 3 4 5 6 7; do
 
4803
       ac_script="$ac_script$as_nl$ac_script"
 
4804
     done
 
4805
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4806
     { ac_script=; unset ac_script;}
 
4807
     if test -z "$SED"; then
 
4808
  ac_path_SED_found=false
 
4809
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4810
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4811
for as_dir in $PATH
 
4812
do
 
4813
  IFS=$as_save_IFS
 
4814
  test -z "$as_dir" && as_dir=.
 
4815
    for ac_prog in sed gsed; do
 
4816
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4817
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4818
      as_fn_executable_p "$ac_path_SED" || continue
 
4819
# Check for GNU ac_path_SED and select it if it is found.
 
4820
  # Check for GNU $ac_path_SED
 
4821
case `"$ac_path_SED" --version 2>&1` in
 
4822
*GNU*)
 
4823
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4824
*)
 
4825
  ac_count=0
 
4826
  $as_echo_n 0123456789 >"conftest.in"
 
4827
  while :
 
4828
  do
 
4829
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4830
    mv "conftest.tmp" "conftest.in"
 
4831
    cp "conftest.in" "conftest.nl"
 
4832
    $as_echo '' >> "conftest.nl"
 
4833
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4834
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4835
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4836
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4837
      # Best one so far, save it but keep looking for a better one
 
4838
      ac_cv_path_SED="$ac_path_SED"
 
4839
      ac_path_SED_max=$ac_count
 
4840
    fi
 
4841
    # 10*(2^10) chars as input seems more than enough
 
4842
    test $ac_count -gt 10 && break
 
4843
  done
 
4844
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4845
esac
 
4846
 
 
4847
      $ac_path_SED_found && break 3
 
4848
    done
 
4849
  done
 
4850
  done
 
4851
IFS=$as_save_IFS
 
4852
  if test -z "$ac_cv_path_SED"; then
 
4853
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4854
  fi
 
4855
else
 
4856
  ac_cv_path_SED=$SED
 
4857
fi
 
4858
 
 
4859
fi
 
4860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4861
$as_echo "$ac_cv_path_SED" >&6; }
 
4862
 SED="$ac_cv_path_SED"
 
4863
  rm -f conftest.sed
 
4864
 
 
4865
test -z "$SED" && SED=sed
 
4866
Xsed="$SED -e 1s/^X//"
 
4867
 
 
4868
 
 
4869
 
 
4870
 
 
4871
 
 
4872
 
 
4873
 
 
4874
 
 
4875
 
 
4876
 
 
4877
 
 
4878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4879
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4880
if ${ac_cv_path_GREP+:} false; then :
 
4881
  $as_echo_n "(cached) " >&6
 
4882
else
 
4883
  if test -z "$GREP"; then
 
4884
  ac_path_GREP_found=false
 
4885
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4886
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4887
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4888
do
 
4889
  IFS=$as_save_IFS
 
4890
  test -z "$as_dir" && as_dir=.
 
4891
    for ac_prog in grep ggrep; do
 
4892
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4893
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4894
      as_fn_executable_p "$ac_path_GREP" || continue
 
4895
# Check for GNU ac_path_GREP and select it if it is found.
 
4896
  # Check for GNU $ac_path_GREP
 
4897
case `"$ac_path_GREP" --version 2>&1` in
 
4898
*GNU*)
 
4899
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4900
*)
 
4901
  ac_count=0
 
4902
  $as_echo_n 0123456789 >"conftest.in"
 
4903
  while :
 
4904
  do
 
4905
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4906
    mv "conftest.tmp" "conftest.in"
 
4907
    cp "conftest.in" "conftest.nl"
 
4908
    $as_echo 'GREP' >> "conftest.nl"
 
4909
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4910
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4911
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4912
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4913
      # Best one so far, save it but keep looking for a better one
 
4914
      ac_cv_path_GREP="$ac_path_GREP"
 
4915
      ac_path_GREP_max=$ac_count
 
4916
    fi
 
4917
    # 10*(2^10) chars as input seems more than enough
 
4918
    test $ac_count -gt 10 && break
 
4919
  done
 
4920
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4921
esac
 
4922
 
 
4923
      $ac_path_GREP_found && break 3
 
4924
    done
 
4925
  done
 
4926
  done
 
4927
IFS=$as_save_IFS
 
4928
  if test -z "$ac_cv_path_GREP"; then
 
4929
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4930
  fi
 
4931
else
 
4932
  ac_cv_path_GREP=$GREP
 
4933
fi
 
4934
 
 
4935
fi
 
4936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4937
$as_echo "$ac_cv_path_GREP" >&6; }
 
4938
 GREP="$ac_cv_path_GREP"
 
4939
 
 
4940
 
 
4941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4942
$as_echo_n "checking for egrep... " >&6; }
 
4943
if ${ac_cv_path_EGREP+:} false; then :
 
4944
  $as_echo_n "(cached) " >&6
 
4945
else
 
4946
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4947
   then ac_cv_path_EGREP="$GREP -E"
 
4948
   else
 
4949
     if test -z "$EGREP"; then
 
4950
  ac_path_EGREP_found=false
 
4951
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4952
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4953
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4954
do
 
4955
  IFS=$as_save_IFS
 
4956
  test -z "$as_dir" && as_dir=.
 
4957
    for ac_prog in egrep; do
 
4958
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4959
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4960
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4961
# Check for GNU ac_path_EGREP and select it if it is found.
 
4962
  # Check for GNU $ac_path_EGREP
 
4963
case `"$ac_path_EGREP" --version 2>&1` in
 
4964
*GNU*)
 
4965
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4966
*)
 
4967
  ac_count=0
 
4968
  $as_echo_n 0123456789 >"conftest.in"
 
4969
  while :
 
4970
  do
 
4971
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4972
    mv "conftest.tmp" "conftest.in"
 
4973
    cp "conftest.in" "conftest.nl"
 
4974
    $as_echo 'EGREP' >> "conftest.nl"
 
4975
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4976
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4977
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4978
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4979
      # Best one so far, save it but keep looking for a better one
 
4980
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4981
      ac_path_EGREP_max=$ac_count
 
4982
    fi
 
4983
    # 10*(2^10) chars as input seems more than enough
 
4984
    test $ac_count -gt 10 && break
 
4985
  done
 
4986
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4987
esac
 
4988
 
 
4989
      $ac_path_EGREP_found && break 3
 
4990
    done
 
4991
  done
 
4992
  done
 
4993
IFS=$as_save_IFS
 
4994
  if test -z "$ac_cv_path_EGREP"; then
 
4995
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4996
  fi
 
4997
else
 
4998
  ac_cv_path_EGREP=$EGREP
 
4999
fi
 
5000
 
 
5001
   fi
 
5002
fi
 
5003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5004
$as_echo "$ac_cv_path_EGREP" >&6; }
 
5005
 EGREP="$ac_cv_path_EGREP"
 
5006
 
 
5007
 
 
5008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5009
$as_echo_n "checking for fgrep... " >&6; }
 
5010
if ${ac_cv_path_FGREP+:} false; then :
 
5011
  $as_echo_n "(cached) " >&6
 
5012
else
 
5013
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5014
   then ac_cv_path_FGREP="$GREP -F"
 
5015
   else
 
5016
     if test -z "$FGREP"; then
 
5017
  ac_path_FGREP_found=false
 
5018
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5019
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5020
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5021
do
 
5022
  IFS=$as_save_IFS
 
5023
  test -z "$as_dir" && as_dir=.
 
5024
    for ac_prog in fgrep; do
 
5025
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5026
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5027
      as_fn_executable_p "$ac_path_FGREP" || continue
 
5028
# Check for GNU ac_path_FGREP and select it if it is found.
 
5029
  # Check for GNU $ac_path_FGREP
 
5030
case `"$ac_path_FGREP" --version 2>&1` in
 
5031
*GNU*)
 
5032
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5033
*)
 
5034
  ac_count=0
 
5035
  $as_echo_n 0123456789 >"conftest.in"
 
5036
  while :
 
5037
  do
 
5038
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5039
    mv "conftest.tmp" "conftest.in"
 
5040
    cp "conftest.in" "conftest.nl"
 
5041
    $as_echo 'FGREP' >> "conftest.nl"
 
5042
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5043
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5044
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5045
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5046
      # Best one so far, save it but keep looking for a better one
 
5047
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5048
      ac_path_FGREP_max=$ac_count
 
5049
    fi
 
5050
    # 10*(2^10) chars as input seems more than enough
 
5051
    test $ac_count -gt 10 && break
 
5052
  done
 
5053
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5054
esac
 
5055
 
 
5056
      $ac_path_FGREP_found && break 3
 
5057
    done
 
5058
  done
 
5059
  done
 
5060
IFS=$as_save_IFS
 
5061
  if test -z "$ac_cv_path_FGREP"; then
 
5062
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5063
  fi
 
5064
else
 
5065
  ac_cv_path_FGREP=$FGREP
 
5066
fi
 
5067
 
 
5068
   fi
 
5069
fi
 
5070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5071
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5072
 FGREP="$ac_cv_path_FGREP"
 
5073
 
 
5074
 
 
5075
test -z "$GREP" && GREP=grep
 
5076
 
 
5077
 
 
5078
 
 
5079
 
 
5080
 
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
 
 
5088
 
 
5089
 
 
5090
 
 
5091
 
 
5092
 
 
5093
 
 
5094
 
 
5095
# Check whether --with-gnu-ld was given.
 
5096
if test "${with_gnu_ld+set}" = set; then :
 
5097
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5098
else
 
5099
  with_gnu_ld=no
 
5100
fi
 
5101
 
 
5102
ac_prog=ld
 
5103
if test "$GCC" = yes; then
 
5104
  # Check if gcc -print-prog-name=ld gives a path.
 
5105
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5106
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5107
  case $host in
 
5108
  *-*-mingw*)
 
5109
    # gcc leaves a trailing carriage return which upsets mingw
 
5110
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5111
  *)
 
5112
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5113
  esac
 
5114
  case $ac_prog in
 
5115
    # Accept absolute paths.
 
5116
    [\\/]* | ?:[\\/]*)
 
5117
      re_direlt='/[^/][^/]*/\.\./'
 
5118
      # Canonicalize the pathname of ld
 
5119
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5120
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5121
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5122
      done
 
5123
      test -z "$LD" && LD="$ac_prog"
 
5124
      ;;
 
5125
  "")
 
5126
    # If it fails, then pretend we aren't using GCC.
 
5127
    ac_prog=ld
 
5128
    ;;
 
5129
  *)
 
5130
    # If it is relative, then search for the first ld in PATH.
 
5131
    with_gnu_ld=unknown
 
5132
    ;;
 
5133
  esac
 
5134
elif test "$with_gnu_ld" = yes; then
 
5135
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5136
$as_echo_n "checking for GNU ld... " >&6; }
 
5137
else
 
5138
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5139
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5140
fi
 
5141
if ${lt_cv_path_LD+:} false; then :
 
5142
  $as_echo_n "(cached) " >&6
 
5143
else
 
5144
  if test -z "$LD"; then
 
5145
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5146
  for ac_dir in $PATH; do
 
5147
    IFS="$lt_save_ifs"
 
5148
    test -z "$ac_dir" && ac_dir=.
 
5149
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5150
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5151
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5152
      # but apparently some variants of GNU ld only accept -v.
 
5153
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5154
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5155
      *GNU* | *'with BFD'*)
 
5156
        test "$with_gnu_ld" != no && break
 
5157
        ;;
 
5158
      *)
 
5159
        test "$with_gnu_ld" != yes && break
 
5160
        ;;
 
5161
      esac
 
5162
    fi
 
5163
  done
 
5164
  IFS="$lt_save_ifs"
 
5165
else
 
5166
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5167
fi
 
5168
fi
 
5169
 
 
5170
LD="$lt_cv_path_LD"
 
5171
if test -n "$LD"; then
 
5172
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5173
$as_echo "$LD" >&6; }
 
5174
else
 
5175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5176
$as_echo "no" >&6; }
 
5177
fi
 
5178
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5180
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5181
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5182
  $as_echo_n "(cached) " >&6
 
5183
else
 
5184
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5185
case `$LD -v 2>&1 </dev/null` in
 
5186
*GNU* | *'with BFD'*)
 
5187
  lt_cv_prog_gnu_ld=yes
 
5188
  ;;
 
5189
*)
 
5190
  lt_cv_prog_gnu_ld=no
 
5191
  ;;
 
5192
esac
 
5193
fi
 
5194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5195
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5196
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5197
 
 
5198
 
 
5199
 
 
5200
 
 
5201
 
 
5202
 
 
5203
 
 
5204
 
 
5205
 
 
5206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5207
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5208
if ${lt_cv_path_NM+:} false; then :
 
5209
  $as_echo_n "(cached) " >&6
 
5210
else
 
5211
  if test -n "$NM"; then
 
5212
  # Let the user override the test.
 
5213
  lt_cv_path_NM="$NM"
 
5214
else
 
5215
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5216
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5217
    lt_nm_to_check="$lt_nm_to_check nm"
 
5218
  fi
 
5219
  for lt_tmp_nm in $lt_nm_to_check; do
 
5220
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5221
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5222
      IFS="$lt_save_ifs"
 
5223
      test -z "$ac_dir" && ac_dir=.
 
5224
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5225
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5226
        # Check to see if the nm accepts a BSD-compat flag.
 
5227
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5228
        #   nm: unknown option "B" ignored
 
5229
        # Tru64's nm complains that /dev/null is an invalid object file
 
5230
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5231
        */dev/null* | *'Invalid file or object type'*)
 
5232
          lt_cv_path_NM="$tmp_nm -B"
 
5233
          break
 
5234
          ;;
 
5235
        *)
 
5236
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5237
          */dev/null*)
 
5238
            lt_cv_path_NM="$tmp_nm -p"
 
5239
            break
 
5240
            ;;
 
5241
          *)
 
5242
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5243
            continue # so that we can try to find one that supports BSD flags
 
5244
            ;;
 
5245
          esac
 
5246
          ;;
 
5247
        esac
 
5248
      fi
 
5249
    done
 
5250
    IFS="$lt_save_ifs"
 
5251
  done
 
5252
  : ${lt_cv_path_NM=no}
 
5253
fi
 
5254
fi
 
5255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5256
$as_echo "$lt_cv_path_NM" >&6; }
 
5257
if test "$lt_cv_path_NM" != "no"; then
 
5258
  NM="$lt_cv_path_NM"
 
5259
else
 
5260
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5261
  if test -n "$DUMPBIN"; then :
 
5262
    # Let the user override the test.
 
5263
  else
 
5264
    if test -n "$ac_tool_prefix"; then
 
5265
  for ac_prog in dumpbin "link -dump"
 
5266
  do
 
5267
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5268
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5270
$as_echo_n "checking for $ac_word... " >&6; }
 
5271
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5272
  $as_echo_n "(cached) " >&6
 
5273
else
 
5274
  if test -n "$DUMPBIN"; then
 
5275
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5276
else
 
5277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5278
for as_dir in $PATH
 
5279
do
 
5280
  IFS=$as_save_IFS
 
5281
  test -z "$as_dir" && as_dir=.
 
5282
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5283
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5284
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5285
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5286
    break 2
 
5287
  fi
 
5288
done
 
5289
  done
 
5290
IFS=$as_save_IFS
 
5291
 
 
5292
fi
 
5293
fi
 
5294
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5295
if test -n "$DUMPBIN"; then
 
5296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5297
$as_echo "$DUMPBIN" >&6; }
 
5298
else
 
5299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5300
$as_echo "no" >&6; }
 
5301
fi
 
5302
 
 
5303
 
 
5304
    test -n "$DUMPBIN" && break
 
5305
  done
 
5306
fi
 
5307
if test -z "$DUMPBIN"; then
 
5308
  ac_ct_DUMPBIN=$DUMPBIN
 
5309
  for ac_prog in dumpbin "link -dump"
 
5310
do
 
5311
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5312
set dummy $ac_prog; ac_word=$2
 
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5314
$as_echo_n "checking for $ac_word... " >&6; }
 
5315
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5316
  $as_echo_n "(cached) " >&6
 
5317
else
 
5318
  if test -n "$ac_ct_DUMPBIN"; then
 
5319
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5320
else
 
5321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5322
for as_dir in $PATH
 
5323
do
 
5324
  IFS=$as_save_IFS
 
5325
  test -z "$as_dir" && as_dir=.
 
5326
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5327
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5328
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5329
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5330
    break 2
 
5331
  fi
 
5332
done
 
5333
  done
 
5334
IFS=$as_save_IFS
 
5335
 
 
5336
fi
 
5337
fi
 
5338
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5339
if test -n "$ac_ct_DUMPBIN"; then
 
5340
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5341
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5342
else
 
5343
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5344
$as_echo "no" >&6; }
 
5345
fi
 
5346
 
 
5347
 
 
5348
  test -n "$ac_ct_DUMPBIN" && break
 
5349
done
 
5350
 
 
5351
  if test "x$ac_ct_DUMPBIN" = x; then
 
5352
    DUMPBIN=":"
 
5353
  else
 
5354
    case $cross_compiling:$ac_tool_warned in
 
5355
yes:)
 
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5357
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5358
ac_tool_warned=yes ;;
 
5359
esac
 
5360
    DUMPBIN=$ac_ct_DUMPBIN
 
5361
  fi
 
5362
fi
 
5363
 
 
5364
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5365
    *COFF*)
 
5366
      DUMPBIN="$DUMPBIN -symbols"
 
5367
      ;;
 
5368
    *)
 
5369
      DUMPBIN=:
 
5370
      ;;
 
5371
    esac
 
5372
  fi
 
5373
 
 
5374
  if test "$DUMPBIN" != ":"; then
 
5375
    NM="$DUMPBIN"
 
5376
  fi
 
5377
fi
 
5378
test -z "$NM" && NM=nm
 
5379
 
 
5380
 
 
5381
 
 
5382
 
 
5383
 
 
5384
 
 
5385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5386
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5387
if ${lt_cv_nm_interface+:} false; then :
 
5388
  $as_echo_n "(cached) " >&6
 
5389
else
 
5390
  lt_cv_nm_interface="BSD nm"
 
5391
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5392
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5393
  (eval "$ac_compile" 2>conftest.err)
 
5394
  cat conftest.err >&5
 
5395
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5396
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5397
  cat conftest.err >&5
 
5398
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5399
  cat conftest.out >&5
 
5400
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5401
    lt_cv_nm_interface="MS dumpbin"
 
5402
  fi
 
5403
  rm -f conftest*
 
5404
fi
 
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5406
$as_echo "$lt_cv_nm_interface" >&6; }
 
5407
 
 
5408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5409
$as_echo_n "checking whether ln -s works... " >&6; }
 
5410
LN_S=$as_ln_s
 
5411
if test "$LN_S" = "ln -s"; then
 
5412
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5413
$as_echo "yes" >&6; }
 
5414
else
 
5415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5416
$as_echo "no, using $LN_S" >&6; }
 
5417
fi
 
5418
 
 
5419
# find the maximum length of command line arguments
 
5420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5421
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5422
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5423
  $as_echo_n "(cached) " >&6
 
5424
else
 
5425
    i=0
 
5426
  teststring="ABCD"
 
5427
 
 
5428
  case $build_os in
 
5429
  msdosdjgpp*)
 
5430
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5431
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5432
    # during glob expansion).  Even if it were fixed, the result of this
 
5433
    # check would be larger than it should be.
 
5434
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5435
    ;;
 
5436
 
 
5437
  gnu*)
 
5438
    # Under GNU Hurd, this test is not required because there is
 
5439
    # no limit to the length of command line arguments.
 
5440
    # Libtool will interpret -1 as no limit whatsoever
 
5441
    lt_cv_sys_max_cmd_len=-1;
 
5442
    ;;
 
5443
 
 
5444
  cygwin* | mingw* | cegcc*)
 
5445
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5446
    # about 5 minutes as the teststring grows exponentially.
 
5447
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5448
    # you end up with a "frozen" computer, even though with patience
 
5449
    # the test eventually succeeds (with a max line length of 256k).
 
5450
    # Instead, let's just punt: use the minimum linelength reported by
 
5451
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5452
    lt_cv_sys_max_cmd_len=8192;
 
5453
    ;;
 
5454
 
 
5455
  mint*)
 
5456
    # On MiNT this can take a long time and run out of memory.
 
5457
    lt_cv_sys_max_cmd_len=8192;
 
5458
    ;;
 
5459
 
 
5460
  amigaos*)
 
5461
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5462
    # So we just punt and use a minimum line length of 8192.
 
5463
    lt_cv_sys_max_cmd_len=8192;
 
5464
    ;;
 
5465
 
 
5466
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5467
    # This has been around since 386BSD, at least.  Likely further.
 
5468
    if test -x /sbin/sysctl; then
 
5469
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5470
    elif test -x /usr/sbin/sysctl; then
 
5471
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5472
    else
 
5473
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5474
    fi
 
5475
    # And add a safety zone
 
5476
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5477
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5478
    ;;
 
5479
 
 
5480
  interix*)
 
5481
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5482
    lt_cv_sys_max_cmd_len=196608
 
5483
    ;;
 
5484
 
 
5485
  os2*)
 
5486
    # The test takes a long time on OS/2.
 
5487
    lt_cv_sys_max_cmd_len=8192
 
5488
    ;;
 
5489
 
 
5490
  osf*)
 
5491
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5492
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5493
    # nice to cause kernel panics so lets avoid the loop below.
 
5494
    # First set a reasonable default.
 
5495
    lt_cv_sys_max_cmd_len=16384
 
5496
    #
 
5497
    if test -x /sbin/sysconfig; then
 
5498
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5499
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5500
      esac
 
5501
    fi
 
5502
    ;;
 
5503
  sco3.2v5*)
 
5504
    lt_cv_sys_max_cmd_len=102400
 
5505
    ;;
 
5506
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5507
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5508
    if test -n "$kargmax"; then
 
5509
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5510
    else
 
5511
      lt_cv_sys_max_cmd_len=32768
 
5512
    fi
 
5513
    ;;
 
5514
  *)
 
5515
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5516
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
5517
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
5518
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5519
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5520
    else
 
5521
      # Make teststring a little bigger before we do anything with it.
 
5522
      # a 1K string should be a reasonable start.
 
5523
      for i in 1 2 3 4 5 6 7 8 ; do
 
5524
        teststring=$teststring$teststring
 
5525
      done
 
5526
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5527
      # If test is not a shell built-in, we'll probably end up computing a
 
5528
      # maximum length that is only half of the actual maximum length, but
 
5529
      # we can't tell.
 
5530
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5531
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5532
              test $i != 17 # 1/2 MB should be enough
 
5533
      do
 
5534
        i=`expr $i + 1`
 
5535
        teststring=$teststring$teststring
 
5536
      done
 
5537
      # Only check the string length outside the loop.
 
5538
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5539
      teststring=
 
5540
      # Add a significant safety factor because C++ compilers can tack on
 
5541
      # massive amounts of additional arguments before passing them to the
 
5542
      # linker.  It appears as though 1/2 is a usable value.
 
5543
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5544
    fi
 
5545
    ;;
 
5546
  esac
 
5547
 
 
5548
fi
 
5549
 
 
5550
if test -n $lt_cv_sys_max_cmd_len ; then
 
5551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5552
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5553
else
 
5554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5555
$as_echo "none" >&6; }
 
5556
fi
 
5557
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
 
 
5563
 
 
5564
: ${CP="cp -f"}
 
5565
: ${MV="mv -f"}
 
5566
: ${RM="rm -f"}
 
5567
 
 
5568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5569
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5570
# Try some XSI features
 
5571
xsi_shell=no
 
5572
( _lt_dummy="a/b/c"
 
5573
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5574
      = c,a/b,b/c, \
 
5575
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5576
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5577
  && xsi_shell=yes
 
5578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5579
$as_echo "$xsi_shell" >&6; }
 
5580
 
 
5581
 
 
5582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5583
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5584
lt_shell_append=no
 
5585
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5586
    >/dev/null 2>&1 \
 
5587
  && lt_shell_append=yes
 
5588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5589
$as_echo "$lt_shell_append" >&6; }
 
5590
 
 
5591
 
 
5592
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5593
  lt_unset=unset
 
5594
else
 
5595
  lt_unset=false
 
5596
fi
 
5597
 
 
5598
 
 
5599
 
 
5600
 
 
5601
 
 
5602
# test EBCDIC or ASCII
 
5603
case `echo X|tr X '\101'` in
 
5604
 A) # ASCII based system
 
5605
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5606
  lt_SP2NL='tr \040 \012'
 
5607
  lt_NL2SP='tr \015\012 \040\040'
 
5608
  ;;
 
5609
 *) # EBCDIC based system
 
5610
  lt_SP2NL='tr \100 \n'
 
5611
  lt_NL2SP='tr \r\n \100\100'
 
5612
  ;;
 
5613
esac
 
5614
 
 
5615
 
 
5616
 
 
5617
 
 
5618
 
 
5619
 
 
5620
 
 
5621
 
 
5622
 
 
5623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5624
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5625
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5626
  $as_echo_n "(cached) " >&6
 
5627
else
 
5628
  case $host in
 
5629
  *-*-mingw* )
 
5630
    case $build in
 
5631
      *-*-mingw* ) # actually msys
 
5632
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5633
        ;;
 
5634
      *-*-cygwin* )
 
5635
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5636
        ;;
 
5637
      * ) # otherwise, assume *nix
 
5638
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5639
        ;;
 
5640
    esac
 
5641
    ;;
 
5642
  *-*-cygwin* )
 
5643
    case $build in
 
5644
      *-*-mingw* ) # actually msys
 
5645
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5646
        ;;
 
5647
      *-*-cygwin* )
 
5648
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5649
        ;;
 
5650
      * ) # otherwise, assume *nix
 
5651
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5652
        ;;
 
5653
    esac
 
5654
    ;;
 
5655
  * ) # unhandled hosts (and "normal" native builds)
 
5656
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5657
    ;;
 
5658
esac
 
5659
 
 
5660
fi
 
5661
 
 
5662
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5664
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5665
 
 
5666
 
 
5667
 
 
5668
 
 
5669
 
 
5670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5671
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5672
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5673
  $as_echo_n "(cached) " >&6
 
5674
else
 
5675
  #assume ordinary cross tools, or native build.
 
5676
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5677
case $host in
 
5678
  *-*-mingw* )
 
5679
    case $build in
 
5680
      *-*-mingw* ) # actually msys
 
5681
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5682
        ;;
 
5683
    esac
 
5684
    ;;
 
5685
esac
 
5686
 
 
5687
fi
 
5688
 
 
5689
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5691
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5698
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5699
if ${lt_cv_ld_reload_flag+:} false; then :
 
5700
  $as_echo_n "(cached) " >&6
 
5701
else
 
5702
  lt_cv_ld_reload_flag='-r'
 
5703
fi
 
5704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5705
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5706
reload_flag=$lt_cv_ld_reload_flag
 
5707
case $reload_flag in
 
5708
"" | " "*) ;;
 
5709
*) reload_flag=" $reload_flag" ;;
 
5710
esac
 
5711
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5712
case $host_os in
 
5713
  cygwin* | mingw* | pw32* | cegcc*)
 
5714
    if test "$GCC" != yes; then
 
5715
      reload_cmds=false
 
5716
    fi
 
5717
    ;;
 
5718
  darwin*)
 
5719
    if test "$GCC" = yes; then
 
5720
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5721
    else
 
5722
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5723
    fi
 
5724
    ;;
 
5725
esac
 
5726
 
 
5727
 
 
5728
 
 
5729
 
 
5730
 
 
5731
 
 
5732
 
 
5733
 
 
5734
 
 
5735
if test -n "$ac_tool_prefix"; then
 
5736
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5737
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5739
$as_echo_n "checking for $ac_word... " >&6; }
 
5740
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5741
  $as_echo_n "(cached) " >&6
 
5742
else
 
5743
  if test -n "$OBJDUMP"; then
 
5744
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5745
else
 
5746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5747
for as_dir in $PATH
 
5748
do
 
5749
  IFS=$as_save_IFS
 
5750
  test -z "$as_dir" && as_dir=.
 
5751
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5752
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5753
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5754
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5755
    break 2
 
5756
  fi
 
5757
done
 
5758
  done
 
5759
IFS=$as_save_IFS
 
5760
 
 
5761
fi
 
5762
fi
 
5763
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5764
if test -n "$OBJDUMP"; then
 
5765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5766
$as_echo "$OBJDUMP" >&6; }
 
5767
else
 
5768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5769
$as_echo "no" >&6; }
 
5770
fi
 
5771
 
 
5772
 
 
5773
fi
 
5774
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5775
  ac_ct_OBJDUMP=$OBJDUMP
 
5776
  # Extract the first word of "objdump", so it can be a program name with args.
 
5777
set dummy objdump; ac_word=$2
 
5778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5779
$as_echo_n "checking for $ac_word... " >&6; }
 
5780
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5781
  $as_echo_n "(cached) " >&6
 
5782
else
 
5783
  if test -n "$ac_ct_OBJDUMP"; then
 
5784
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5785
else
 
5786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5787
for as_dir in $PATH
 
5788
do
 
5789
  IFS=$as_save_IFS
 
5790
  test -z "$as_dir" && as_dir=.
 
5791
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5792
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5793
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5794
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5795
    break 2
 
5796
  fi
 
5797
done
 
5798
  done
 
5799
IFS=$as_save_IFS
 
5800
 
 
5801
fi
 
5802
fi
 
5803
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5804
if test -n "$ac_ct_OBJDUMP"; then
 
5805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5806
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5807
else
 
5808
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5809
$as_echo "no" >&6; }
 
5810
fi
 
5811
 
 
5812
  if test "x$ac_ct_OBJDUMP" = x; then
 
5813
    OBJDUMP="false"
 
5814
  else
 
5815
    case $cross_compiling:$ac_tool_warned in
 
5816
yes:)
 
5817
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5818
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5819
ac_tool_warned=yes ;;
 
5820
esac
 
5821
    OBJDUMP=$ac_ct_OBJDUMP
 
5822
  fi
 
5823
else
 
5824
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5825
fi
 
5826
 
 
5827
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5828
 
 
5829
 
 
5830
 
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
 
 
5836
 
 
5837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5838
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5839
if ${lt_cv_deplibs_check_method+:} false; then :
 
5840
  $as_echo_n "(cached) " >&6
 
5841
else
 
5842
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5843
lt_cv_file_magic_test_file=
 
5844
lt_cv_deplibs_check_method='unknown'
 
5845
# Need to set the preceding variable on all platforms that support
 
5846
# interlibrary dependencies.
 
5847
# 'none' -- dependencies not supported.
 
5848
# `unknown' -- same as none, but documents that we really don't know.
 
5849
# 'pass_all' -- all dependencies passed with no checks.
 
5850
# 'test_compile' -- check by making test program.
 
5851
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5852
# which responds to the $file_magic_cmd with a given extended regex.
 
5853
# If you have `file' or equivalent on your system and you're not sure
 
5854
# whether `pass_all' will *always* work, you probably want this one.
 
5855
 
 
5856
case $host_os in
 
5857
aix[4-9]*)
 
5858
  lt_cv_deplibs_check_method=pass_all
 
5859
  ;;
 
5860
 
 
5861
beos*)
 
5862
  lt_cv_deplibs_check_method=pass_all
 
5863
  ;;
 
5864
 
 
5865
bsdi[45]*)
 
5866
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5867
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5868
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5869
  ;;
 
5870
 
 
5871
cygwin*)
 
5872
  # func_win32_libid is a shell function defined in ltmain.sh
 
5873
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5874
  lt_cv_file_magic_cmd='func_win32_libid'
 
5875
  ;;
 
5876
 
 
5877
mingw* | pw32*)
 
5878
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5879
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5880
  # unless we find 'file', for example because we are cross-compiling.
 
5881
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5882
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5883
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5884
    lt_cv_file_magic_cmd='func_win32_libid'
 
5885
  else
 
5886
    # Keep this pattern in sync with the one in func_win32_libid.
 
5887
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5888
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5889
  fi
 
5890
  ;;
 
5891
 
 
5892
cegcc*)
 
5893
  # use the weaker test based on 'objdump'. See mingw*.
 
5894
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5895
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5896
  ;;
 
5897
 
 
5898
darwin* | rhapsody*)
 
5899
  lt_cv_deplibs_check_method=pass_all
 
5900
  ;;
 
5901
 
 
5902
freebsd* | dragonfly*)
 
5903
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5904
    case $host_cpu in
 
5905
    i*86 )
 
5906
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5907
      # Let's accept both of them until this is cleared up.
 
5908
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5909
      lt_cv_file_magic_cmd=/usr/bin/file
 
5910
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5911
      ;;
 
5912
    esac
 
5913
  else
 
5914
    lt_cv_deplibs_check_method=pass_all
 
5915
  fi
 
5916
  ;;
 
5917
 
 
5918
haiku*)
 
5919
  lt_cv_deplibs_check_method=pass_all
 
5920
  ;;
 
5921
 
 
5922
hpux10.20* | hpux11*)
 
5923
  lt_cv_file_magic_cmd=/usr/bin/file
 
5924
  case $host_cpu in
 
5925
  ia64*)
 
5926
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5927
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5928
    ;;
 
5929
  hppa*64*)
 
5930
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
5931
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5932
    ;;
 
5933
  *)
 
5934
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5935
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5936
    ;;
 
5937
  esac
 
5938
  ;;
 
5939
 
 
5940
interix[3-9]*)
 
5941
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5942
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5943
  ;;
 
5944
 
 
5945
irix5* | irix6* | nonstopux*)
 
5946
  case $LD in
 
5947
  *-32|*"-32 ") libmagic=32-bit;;
 
5948
  *-n32|*"-n32 ") libmagic=N32;;
 
5949
  *-64|*"-64 ") libmagic=64-bit;;
 
5950
  *) libmagic=never-match;;
 
5951
  esac
 
5952
  lt_cv_deplibs_check_method=pass_all
 
5953
  ;;
 
5954
 
 
5955
# This must be glibc/ELF.
 
5956
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
5957
  lt_cv_deplibs_check_method=pass_all
 
5958
  ;;
 
5959
 
 
5960
netbsd* | netbsdelf*-gnu)
 
5961
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5962
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5963
  else
 
5964
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5965
  fi
 
5966
  ;;
 
5967
 
 
5968
newos6*)
 
5969
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5970
  lt_cv_file_magic_cmd=/usr/bin/file
 
5971
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5972
  ;;
 
5973
 
 
5974
*nto* | *qnx*)
 
5975
  lt_cv_deplibs_check_method=pass_all
 
5976
  ;;
 
5977
 
 
5978
openbsd*)
 
5979
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5980
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5981
  else
 
5982
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5983
  fi
 
5984
  ;;
 
5985
 
 
5986
osf3* | osf4* | osf5*)
 
5987
  lt_cv_deplibs_check_method=pass_all
 
5988
  ;;
 
5989
 
 
5990
rdos*)
 
5991
  lt_cv_deplibs_check_method=pass_all
 
5992
  ;;
 
5993
 
 
5994
solaris*)
 
5995
  lt_cv_deplibs_check_method=pass_all
 
5996
  ;;
 
5997
 
 
5998
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5999
  lt_cv_deplibs_check_method=pass_all
 
6000
  ;;
 
6001
 
 
6002
sysv4 | sysv4.3*)
 
6003
  case $host_vendor in
 
6004
  motorola)
 
6005
    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]'
 
6006
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6007
    ;;
 
6008
  ncr)
 
6009
    lt_cv_deplibs_check_method=pass_all
 
6010
    ;;
 
6011
  sequent)
 
6012
    lt_cv_file_magic_cmd='/bin/file'
 
6013
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6014
    ;;
 
6015
  sni)
 
6016
    lt_cv_file_magic_cmd='/bin/file'
 
6017
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6018
    lt_cv_file_magic_test_file=/lib/libc.so
 
6019
    ;;
 
6020
  siemens)
 
6021
    lt_cv_deplibs_check_method=pass_all
 
6022
    ;;
 
6023
  pc)
 
6024
    lt_cv_deplibs_check_method=pass_all
 
6025
    ;;
 
6026
  esac
 
6027
  ;;
 
6028
 
 
6029
tpf*)
 
6030
  lt_cv_deplibs_check_method=pass_all
 
6031
  ;;
 
6032
esac
 
6033
 
 
6034
fi
 
6035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6036
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6037
 
 
6038
file_magic_glob=
 
6039
want_nocaseglob=no
 
6040
if test "$build" = "$host"; then
 
6041
  case $host_os in
 
6042
  mingw* | pw32*)
 
6043
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6044
      want_nocaseglob=yes
 
6045
    else
 
6046
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6047
    fi
 
6048
    ;;
 
6049
  esac
 
6050
fi
 
6051
 
 
6052
file_magic_cmd=$lt_cv_file_magic_cmd
 
6053
deplibs_check_method=$lt_cv_deplibs_check_method
 
6054
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6055
 
 
6056
 
 
6057
 
 
6058
 
 
6059
 
 
6060
 
 
6061
 
 
6062
 
 
6063
 
 
6064
 
 
6065
 
 
6066
 
 
6067
 
 
6068
 
 
6069
 
 
6070
 
 
6071
 
 
6072
 
 
6073
 
 
6074
 
 
6075
 
 
6076
 
 
6077
if test -n "$ac_tool_prefix"; then
 
6078
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6079
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6081
$as_echo_n "checking for $ac_word... " >&6; }
 
6082
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6083
  $as_echo_n "(cached) " >&6
 
6084
else
 
6085
  if test -n "$DLLTOOL"; then
 
6086
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6087
else
 
6088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6089
for as_dir in $PATH
 
6090
do
 
6091
  IFS=$as_save_IFS
 
6092
  test -z "$as_dir" && as_dir=.
 
6093
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6094
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6095
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6096
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6097
    break 2
 
6098
  fi
 
6099
done
 
6100
  done
 
6101
IFS=$as_save_IFS
 
6102
 
 
6103
fi
 
6104
fi
 
6105
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6106
if test -n "$DLLTOOL"; then
 
6107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6108
$as_echo "$DLLTOOL" >&6; }
 
6109
else
 
6110
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6111
$as_echo "no" >&6; }
 
6112
fi
 
6113
 
 
6114
 
 
6115
fi
 
6116
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6117
  ac_ct_DLLTOOL=$DLLTOOL
 
6118
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6119
set dummy dlltool; ac_word=$2
 
6120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6121
$as_echo_n "checking for $ac_word... " >&6; }
 
6122
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6123
  $as_echo_n "(cached) " >&6
 
6124
else
 
6125
  if test -n "$ac_ct_DLLTOOL"; then
 
6126
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6127
else
 
6128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6129
for as_dir in $PATH
 
6130
do
 
6131
  IFS=$as_save_IFS
 
6132
  test -z "$as_dir" && as_dir=.
 
6133
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6134
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6135
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6136
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6137
    break 2
 
6138
  fi
 
6139
done
 
6140
  done
 
6141
IFS=$as_save_IFS
 
6142
 
 
6143
fi
 
6144
fi
 
6145
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6146
if test -n "$ac_ct_DLLTOOL"; then
 
6147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6148
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6149
else
 
6150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6151
$as_echo "no" >&6; }
 
6152
fi
 
6153
 
 
6154
  if test "x$ac_ct_DLLTOOL" = x; then
 
6155
    DLLTOOL="false"
 
6156
  else
 
6157
    case $cross_compiling:$ac_tool_warned in
 
6158
yes:)
 
6159
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6160
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6161
ac_tool_warned=yes ;;
 
6162
esac
 
6163
    DLLTOOL=$ac_ct_DLLTOOL
 
6164
  fi
 
6165
else
 
6166
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6167
fi
 
6168
 
 
6169
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6170
 
 
6171
 
 
6172
 
 
6173
 
 
6174
 
 
6175
 
 
6176
 
 
6177
 
 
6178
 
 
6179
 
 
6180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6181
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6182
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6183
  $as_echo_n "(cached) " >&6
 
6184
else
 
6185
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6186
 
 
6187
case $host_os in
 
6188
cygwin* | mingw* | pw32* | cegcc*)
 
6189
  # two different shell functions defined in ltmain.sh
 
6190
  # decide which to use based on capabilities of $DLLTOOL
 
6191
  case `$DLLTOOL --help 2>&1` in
 
6192
  *--identify-strict*)
 
6193
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6194
    ;;
 
6195
  *)
 
6196
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6197
    ;;
 
6198
  esac
 
6199
  ;;
 
6200
*)
 
6201
  # fallback: assume linklib IS sharedlib
 
6202
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6203
  ;;
 
6204
esac
 
6205
 
 
6206
fi
 
6207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6208
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6209
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6210
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6211
 
 
6212
 
 
6213
 
 
6214
 
 
6215
 
 
6216
 
 
6217
 
 
6218
ac_ext=cpp
 
6219
ac_cpp='$CXXCPP $CPPFLAGS'
 
6220
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6221
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6222
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6223
if test -z "$CXX"; then
 
6224
  if test -n "$CCC"; then
 
6225
    CXX=$CCC
 
6226
  else
 
6227
    if test -n "$ac_tool_prefix"; then
 
6228
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6229
  do
 
6230
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6231
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6233
$as_echo_n "checking for $ac_word... " >&6; }
 
6234
if ${ac_cv_prog_CXX+:} false; then :
 
6235
  $as_echo_n "(cached) " >&6
 
6236
else
 
6237
  if test -n "$CXX"; then
 
6238
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6239
else
 
6240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6241
for as_dir in $PATH
 
6242
do
 
6243
  IFS=$as_save_IFS
 
6244
  test -z "$as_dir" && as_dir=.
 
6245
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6246
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6247
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6248
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6249
    break 2
 
6250
  fi
 
6251
done
 
6252
  done
 
6253
IFS=$as_save_IFS
 
6254
 
 
6255
fi
 
6256
fi
 
6257
CXX=$ac_cv_prog_CXX
 
6258
if test -n "$CXX"; then
 
6259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
6260
$as_echo "$CXX" >&6; }
 
6261
else
 
6262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6263
$as_echo "no" >&6; }
 
6264
fi
 
6265
 
 
6266
 
 
6267
    test -n "$CXX" && break
 
6268
  done
 
6269
fi
 
6270
if test -z "$CXX"; then
 
6271
  ac_ct_CXX=$CXX
 
6272
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6273
do
 
6274
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6275
set dummy $ac_prog; ac_word=$2
 
6276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6277
$as_echo_n "checking for $ac_word... " >&6; }
 
6278
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
6279
  $as_echo_n "(cached) " >&6
 
6280
else
 
6281
  if test -n "$ac_ct_CXX"; then
 
6282
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6283
else
 
6284
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6285
for as_dir in $PATH
 
6286
do
 
6287
  IFS=$as_save_IFS
 
6288
  test -z "$as_dir" && as_dir=.
 
6289
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6290
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6291
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6292
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6293
    break 2
 
6294
  fi
 
6295
done
 
6296
  done
 
6297
IFS=$as_save_IFS
 
6298
 
 
6299
fi
 
6300
fi
 
6301
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
6302
if test -n "$ac_ct_CXX"; then
 
6303
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
6304
$as_echo "$ac_ct_CXX" >&6; }
 
6305
else
 
6306
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6307
$as_echo "no" >&6; }
 
6308
fi
 
6309
 
 
6310
 
 
6311
  test -n "$ac_ct_CXX" && break
 
6312
done
 
6313
 
 
6314
  if test "x$ac_ct_CXX" = x; then
 
6315
    CXX="g++"
 
6316
  else
 
6317
    case $cross_compiling:$ac_tool_warned in
 
6318
yes:)
 
6319
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6320
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6321
ac_tool_warned=yes ;;
 
6322
esac
 
6323
    CXX=$ac_ct_CXX
 
6324
  fi
 
6325
fi
 
6326
 
 
6327
  fi
 
6328
fi
 
6329
# Provide some information about the compiler.
 
6330
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
6331
set X $ac_compile
 
6332
ac_compiler=$2
 
6333
for ac_option in --version -v -V -qversion; do
 
6334
  { { ac_try="$ac_compiler $ac_option >&5"
 
6335
case "(($ac_try" in
 
6336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6337
  *) ac_try_echo=$ac_try;;
 
6338
esac
 
6339
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6340
$as_echo "$ac_try_echo"; } >&5
 
6341
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
6342
  ac_status=$?
 
6343
  if test -s conftest.err; then
 
6344
    sed '10a\
 
6345
... rest of stderr output deleted ...
 
6346
         10q' conftest.err >conftest.er1
 
6347
    cat conftest.er1 >&5
 
6348
  fi
 
6349
  rm -f conftest.er1 conftest.err
 
6350
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6351
  test $ac_status = 0; }
 
6352
done
 
6353
 
 
6354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
6355
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
6356
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
6357
  $as_echo_n "(cached) " >&6
 
6358
else
 
6359
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6360
/* end confdefs.h.  */
 
6361
 
 
6362
int
 
6363
main ()
 
6364
{
 
6365
#ifndef __GNUC__
 
6366
       choke me
 
6367
#endif
 
6368
 
 
6369
  ;
 
6370
  return 0;
 
6371
}
 
6372
_ACEOF
 
6373
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6374
  ac_compiler_gnu=yes
 
6375
else
 
6376
  ac_compiler_gnu=no
 
6377
fi
 
6378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6379
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6380
 
 
6381
fi
 
6382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
6383
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
6384
if test $ac_compiler_gnu = yes; then
 
6385
  GXX=yes
 
6386
else
 
6387
  GXX=
 
6388
fi
 
6389
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6390
ac_save_CXXFLAGS=$CXXFLAGS
 
6391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
6392
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
6393
if ${ac_cv_prog_cxx_g+:} false; then :
 
6394
  $as_echo_n "(cached) " >&6
 
6395
else
 
6396
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
6397
   ac_cxx_werror_flag=yes
 
6398
   ac_cv_prog_cxx_g=no
 
6399
   CXXFLAGS="-g"
 
6400
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6401
/* end confdefs.h.  */
 
6402
 
 
6403
int
 
6404
main ()
 
6405
{
 
6406
 
 
6407
  ;
 
6408
  return 0;
 
6409
}
 
6410
_ACEOF
 
6411
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6412
  ac_cv_prog_cxx_g=yes
 
6413
else
 
6414
  CXXFLAGS=""
 
6415
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6416
/* end confdefs.h.  */
 
6417
 
 
6418
int
 
6419
main ()
 
6420
{
 
6421
 
 
6422
  ;
 
6423
  return 0;
 
6424
}
 
6425
_ACEOF
 
6426
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6427
 
 
6428
else
 
6429
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6430
         CXXFLAGS="-g"
 
6431
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6432
/* end confdefs.h.  */
 
6433
 
 
6434
int
 
6435
main ()
 
6436
{
 
6437
 
 
6438
  ;
 
6439
  return 0;
 
6440
}
 
6441
_ACEOF
 
6442
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6443
  ac_cv_prog_cxx_g=yes
 
6444
fi
 
6445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6446
fi
 
6447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6448
fi
 
6449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6450
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6451
fi
 
6452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
6453
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
6454
if test "$ac_test_CXXFLAGS" = set; then
 
6455
  CXXFLAGS=$ac_save_CXXFLAGS
 
6456
elif test $ac_cv_prog_cxx_g = yes; then
 
6457
  if test "$GXX" = yes; then
 
6458
    CXXFLAGS="-g -O2"
 
6459
  else
 
6460
    CXXFLAGS="-g"
 
6461
  fi
 
6462
else
 
6463
  if test "$GXX" = yes; then
 
6464
    CXXFLAGS="-O2"
 
6465
  else
 
6466
    CXXFLAGS=
 
6467
  fi
 
6468
fi
 
6469
ac_ext=cpp
 
6470
ac_cpp='$CXXCPP $CPPFLAGS'
 
6471
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6472
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6473
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6474
 
 
6475
depcc="$CXX"  am_compiler_list=
 
6476
 
 
6477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
6478
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6479
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
6480
  $as_echo_n "(cached) " >&6
 
6481
else
 
6482
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6483
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6484
  # making bogus files that we don't know about and never remove.  For
 
6485
  # instance it was reported that on HP-UX the gcc test will end up
 
6486
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6487
  # in D'.
 
6488
  rm -rf conftest.dir
 
6489
  mkdir conftest.dir
 
6490
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6491
  # using a relative directory.
 
6492
  cp "$am_depcomp" conftest.dir
 
6493
  cd conftest.dir
 
6494
  # We will build objects and dependencies in a subdirectory because
 
6495
  # it helps to detect inapplicable dependency modes.  For instance
 
6496
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6497
  # side effect of compilation, but ICC will put the dependencies in
 
6498
  # the current directory while Tru64 will put them in the object
 
6499
  # directory.
 
6500
  mkdir sub
 
6501
 
 
6502
  am_cv_CXX_dependencies_compiler_type=none
 
6503
  if test "$am_compiler_list" = ""; then
 
6504
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6505
  fi
 
6506
  am__universal=false
 
6507
  case " $depcc " in #(
 
6508
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
6509
     esac
 
6510
 
 
6511
  for depmode in $am_compiler_list; do
 
6512
    # Setup a source with many dependencies, because some compilers
 
6513
    # like to wrap large dependency lists on column 80 (with \), and
 
6514
    # we should not choose a depcomp mode which is confused by this.
 
6515
    #
 
6516
    # We need to recreate these files for each test, as the compiler may
 
6517
    # overwrite some of them when testing with obscure command lines.
 
6518
    # This happens at least with the AIX C compiler.
 
6519
    : > sub/conftest.c
 
6520
    for i in 1 2 3 4 5 6; do
 
6521
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6522
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6523
      # Solaris 8's {/usr,}/bin/sh.
 
6524
      touch sub/conftst$i.h
 
6525
    done
 
6526
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6527
 
 
6528
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6529
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6530
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
6531
    # versions had trouble with output in subdirs
 
6532
    am__obj=sub/conftest.${OBJEXT-o}
 
6533
    am__minus_obj="-o $am__obj"
 
6534
    case $depmode in
 
6535
    gcc)
 
6536
      # This depmode causes a compiler race in universal mode.
 
6537
      test "$am__universal" = false || continue
 
6538
      ;;
 
6539
    nosideeffect)
 
6540
      # after this tag, mechanisms are not by side-effect, so they'll
 
6541
      # only be used when explicitly requested
 
6542
      if test "x$enable_dependency_tracking" = xyes; then
 
6543
        continue
 
6544
      else
 
6545
        break
 
6546
      fi
 
6547
      ;;
 
6548
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
6549
      # This compiler won't grok `-c -o', but also, the minuso test has
 
6550
      # not run yet.  These depmodes are late enough in the game, and
 
6551
      # so weak that their functioning should not be impacted.
 
6552
      am__obj=conftest.${OBJEXT-o}
 
6553
      am__minus_obj=
 
6554
      ;;
 
6555
    none) break ;;
 
6556
    esac
 
6557
    if depmode=$depmode \
 
6558
       source=sub/conftest.c object=$am__obj \
 
6559
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6560
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6561
         >/dev/null 2>conftest.err &&
 
6562
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6563
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6564
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6565
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6566
      # icc doesn't choke on unknown options, it will just issue warnings
 
6567
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6568
      # that says an option was ignored or not supported.
 
6569
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6570
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6571
      # The diagnosis changed in icc 8.0:
 
6572
      #   icc: Command line remark: option '-MP' not supported
 
6573
      if (grep 'ignoring option' conftest.err ||
 
6574
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6575
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6576
        break
 
6577
      fi
 
6578
    fi
 
6579
  done
 
6580
 
 
6581
  cd ..
 
6582
  rm -rf conftest.dir
 
6583
else
 
6584
  am_cv_CXX_dependencies_compiler_type=none
 
6585
fi
 
6586
 
 
6587
fi
 
6588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6589
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
6590
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6591
 
 
6592
 if
 
6593
  test "x$enable_dependency_tracking" != xno \
 
6594
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6595
  am__fastdepCXX_TRUE=
 
6596
  am__fastdepCXX_FALSE='#'
 
6597
else
 
6598
  am__fastdepCXX_TRUE='#'
 
6599
  am__fastdepCXX_FALSE=
 
6600
fi
 
6601
 
 
6602
 
 
6603
 
 
6604
if test -n "$ac_tool_prefix"; then
 
6605
  for ac_prog in ar
 
6606
  do
 
6607
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6608
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6610
$as_echo_n "checking for $ac_word... " >&6; }
 
6611
if ${ac_cv_prog_AR+:} false; then :
 
6612
  $as_echo_n "(cached) " >&6
 
6613
else
 
6614
  if test -n "$AR"; then
 
6615
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6616
else
 
6617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6618
for as_dir in $PATH
 
6619
do
 
6620
  IFS=$as_save_IFS
 
6621
  test -z "$as_dir" && as_dir=.
 
6622
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6623
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6624
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6625
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6626
    break 2
 
6627
  fi
 
6628
done
 
6629
  done
 
6630
IFS=$as_save_IFS
 
6631
 
 
6632
fi
 
6633
fi
 
6634
AR=$ac_cv_prog_AR
 
6635
if test -n "$AR"; then
 
6636
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6637
$as_echo "$AR" >&6; }
 
6638
else
 
6639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6640
$as_echo "no" >&6; }
 
6641
fi
 
6642
 
 
6643
 
 
6644
    test -n "$AR" && break
 
6645
  done
 
6646
fi
 
6647
if test -z "$AR"; then
 
6648
  ac_ct_AR=$AR
 
6649
  for ac_prog in ar
 
6650
do
 
6651
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6652
set dummy $ac_prog; ac_word=$2
 
6653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6654
$as_echo_n "checking for $ac_word... " >&6; }
 
6655
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6656
  $as_echo_n "(cached) " >&6
 
6657
else
 
6658
  if test -n "$ac_ct_AR"; then
 
6659
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6660
else
 
6661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6662
for as_dir in $PATH
 
6663
do
 
6664
  IFS=$as_save_IFS
 
6665
  test -z "$as_dir" && as_dir=.
 
6666
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6667
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6668
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6669
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6670
    break 2
 
6671
  fi
 
6672
done
 
6673
  done
 
6674
IFS=$as_save_IFS
 
6675
 
 
6676
fi
 
6677
fi
 
6678
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6679
if test -n "$ac_ct_AR"; then
 
6680
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6681
$as_echo "$ac_ct_AR" >&6; }
 
6682
else
 
6683
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6684
$as_echo "no" >&6; }
 
6685
fi
 
6686
 
 
6687
 
 
6688
  test -n "$ac_ct_AR" && break
 
6689
done
 
6690
 
 
6691
  if test "x$ac_ct_AR" = x; then
 
6692
    AR="false"
 
6693
  else
 
6694
    case $cross_compiling:$ac_tool_warned in
 
6695
yes:)
 
6696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6698
ac_tool_warned=yes ;;
 
6699
esac
 
6700
    AR=$ac_ct_AR
 
6701
  fi
 
6702
fi
 
6703
 
 
6704
: ${AR=ar}
 
6705
: ${AR_FLAGS=cru}
 
6706
 
 
6707
 
 
6708
 
 
6709
 
 
6710
 
 
6711
 
 
6712
 
 
6713
 
 
6714
 
 
6715
 
 
6716
 
 
6717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6718
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6719
if ${lt_cv_ar_at_file+:} false; then :
 
6720
  $as_echo_n "(cached) " >&6
 
6721
else
 
6722
  lt_cv_ar_at_file=no
 
6723
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6724
/* end confdefs.h.  */
 
6725
 
 
6726
int
 
6727
main ()
 
6728
{
 
6729
 
 
6730
  ;
 
6731
  return 0;
 
6732
}
 
6733
_ACEOF
 
6734
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6735
  echo conftest.$ac_objext > conftest.lst
 
6736
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6737
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6738
  (eval $lt_ar_try) 2>&5
 
6739
  ac_status=$?
 
6740
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6741
  test $ac_status = 0; }
 
6742
      if test "$ac_status" -eq 0; then
 
6743
        # Ensure the archiver fails upon bogus file names.
 
6744
        rm -f conftest.$ac_objext libconftest.a
 
6745
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6746
  (eval $lt_ar_try) 2>&5
 
6747
  ac_status=$?
 
6748
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6749
  test $ac_status = 0; }
 
6750
        if test "$ac_status" -ne 0; then
 
6751
          lt_cv_ar_at_file=@
 
6752
        fi
 
6753
      fi
 
6754
      rm -f conftest.* libconftest.a
 
6755
 
 
6756
fi
 
6757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6758
 
 
6759
fi
 
6760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6761
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6762
 
 
6763
if test "x$lt_cv_ar_at_file" = xno; then
 
6764
  archiver_list_spec=
 
6765
else
 
6766
  archiver_list_spec=$lt_cv_ar_at_file
 
6767
fi
 
6768
 
 
6769
 
 
6770
 
 
6771
 
 
6772
 
 
6773
 
 
6774
 
 
6775
if test -n "$ac_tool_prefix"; then
 
6776
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6777
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6779
$as_echo_n "checking for $ac_word... " >&6; }
 
6780
if ${ac_cv_prog_STRIP+:} false; then :
 
6781
  $as_echo_n "(cached) " >&6
 
6782
else
 
6783
  if test -n "$STRIP"; then
 
6784
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6785
else
 
6786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6787
for as_dir in $PATH
 
6788
do
 
6789
  IFS=$as_save_IFS
 
6790
  test -z "$as_dir" && as_dir=.
 
6791
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6792
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6793
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6794
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6795
    break 2
 
6796
  fi
 
6797
done
 
6798
  done
 
6799
IFS=$as_save_IFS
 
6800
 
 
6801
fi
 
6802
fi
 
6803
STRIP=$ac_cv_prog_STRIP
 
6804
if test -n "$STRIP"; then
 
6805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6806
$as_echo "$STRIP" >&6; }
 
6807
else
 
6808
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6809
$as_echo "no" >&6; }
 
6810
fi
 
6811
 
 
6812
 
 
6813
fi
 
6814
if test -z "$ac_cv_prog_STRIP"; then
 
6815
  ac_ct_STRIP=$STRIP
 
6816
  # Extract the first word of "strip", so it can be a program name with args.
 
6817
set dummy strip; ac_word=$2
 
6818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6819
$as_echo_n "checking for $ac_word... " >&6; }
 
6820
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6821
  $as_echo_n "(cached) " >&6
 
6822
else
 
6823
  if test -n "$ac_ct_STRIP"; then
 
6824
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6825
else
 
6826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6827
for as_dir in $PATH
 
6828
do
 
6829
  IFS=$as_save_IFS
 
6830
  test -z "$as_dir" && as_dir=.
 
6831
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6832
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6833
    ac_cv_prog_ac_ct_STRIP="strip"
 
6834
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6835
    break 2
 
6836
  fi
 
6837
done
 
6838
  done
 
6839
IFS=$as_save_IFS
 
6840
 
 
6841
fi
 
6842
fi
 
6843
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6844
if test -n "$ac_ct_STRIP"; then
 
6845
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6846
$as_echo "$ac_ct_STRIP" >&6; }
 
6847
else
 
6848
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6849
$as_echo "no" >&6; }
 
6850
fi
 
6851
 
 
6852
  if test "x$ac_ct_STRIP" = x; then
 
6853
    STRIP=":"
 
6854
  else
 
6855
    case $cross_compiling:$ac_tool_warned in
 
6856
yes:)
 
6857
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6858
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6859
ac_tool_warned=yes ;;
 
6860
esac
 
6861
    STRIP=$ac_ct_STRIP
 
6862
  fi
 
6863
else
 
6864
  STRIP="$ac_cv_prog_STRIP"
 
6865
fi
 
6866
 
 
6867
test -z "$STRIP" && STRIP=:
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
 
 
6873
 
 
6874
if test -n "$ac_tool_prefix"; then
 
6875
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6876
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6878
$as_echo_n "checking for $ac_word... " >&6; }
 
6879
if ${ac_cv_prog_RANLIB+:} false; then :
 
6880
  $as_echo_n "(cached) " >&6
 
6881
else
 
6882
  if test -n "$RANLIB"; then
 
6883
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6884
else
 
6885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6886
for as_dir in $PATH
 
6887
do
 
6888
  IFS=$as_save_IFS
 
6889
  test -z "$as_dir" && as_dir=.
 
6890
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6891
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6892
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6893
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6894
    break 2
 
6895
  fi
 
6896
done
 
6897
  done
 
6898
IFS=$as_save_IFS
 
6899
 
 
6900
fi
 
6901
fi
 
6902
RANLIB=$ac_cv_prog_RANLIB
 
6903
if test -n "$RANLIB"; then
 
6904
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6905
$as_echo "$RANLIB" >&6; }
 
6906
else
 
6907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6908
$as_echo "no" >&6; }
 
6909
fi
 
6910
 
 
6911
 
 
6912
fi
 
6913
if test -z "$ac_cv_prog_RANLIB"; then
 
6914
  ac_ct_RANLIB=$RANLIB
 
6915
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6916
set dummy ranlib; ac_word=$2
 
6917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6918
$as_echo_n "checking for $ac_word... " >&6; }
 
6919
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6920
  $as_echo_n "(cached) " >&6
 
6921
else
 
6922
  if test -n "$ac_ct_RANLIB"; then
 
6923
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6924
else
 
6925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6926
for as_dir in $PATH
 
6927
do
 
6928
  IFS=$as_save_IFS
 
6929
  test -z "$as_dir" && as_dir=.
 
6930
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6931
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6932
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6934
    break 2
 
6935
  fi
 
6936
done
 
6937
  done
 
6938
IFS=$as_save_IFS
 
6939
 
 
6940
fi
 
6941
fi
 
6942
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6943
if test -n "$ac_ct_RANLIB"; then
 
6944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6945
$as_echo "$ac_ct_RANLIB" >&6; }
 
6946
else
 
6947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6948
$as_echo "no" >&6; }
 
6949
fi
 
6950
 
 
6951
  if test "x$ac_ct_RANLIB" = x; then
 
6952
    RANLIB=":"
 
6953
  else
 
6954
    case $cross_compiling:$ac_tool_warned in
 
6955
yes:)
 
6956
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6957
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6958
ac_tool_warned=yes ;;
 
6959
esac
 
6960
    RANLIB=$ac_ct_RANLIB
 
6961
  fi
 
6962
else
 
6963
  RANLIB="$ac_cv_prog_RANLIB"
 
6964
fi
 
6965
 
 
6966
test -z "$RANLIB" && RANLIB=:
 
6967
 
 
6968
 
 
6969
 
 
6970
 
 
6971
 
 
6972
 
 
6973
# Determine commands to create old-style static archives.
 
6974
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6975
old_postinstall_cmds='chmod 644 $oldlib'
 
6976
old_postuninstall_cmds=
 
6977
 
 
6978
if test -n "$RANLIB"; then
 
6979
  case $host_os in
 
6980
  openbsd*)
 
6981
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6982
    ;;
 
6983
  *)
 
6984
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6985
    ;;
 
6986
  esac
 
6987
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6988
fi
 
6989
 
 
6990
case $host_os in
 
6991
  darwin*)
 
6992
    lock_old_archive_extraction=yes ;;
 
6993
  *)
 
6994
    lock_old_archive_extraction=no ;;
 
6995
esac
 
6996
 
 
6997
 
 
6998
 
 
6999
 
 
7000
 
 
7001
 
 
7002
 
 
7003
 
 
7004
 
 
7005
 
 
7006
 
 
7007
 
 
7008
 
 
7009
 
 
7010
 
 
7011
 
 
7012
 
 
7013
 
 
7014
 
 
7015
 
 
7016
 
 
7017
 
 
7018
 
 
7019
 
 
7020
 
 
7021
 
 
7022
 
 
7023
 
 
7024
 
 
7025
 
 
7026
 
 
7027
 
 
7028
 
 
7029
 
 
7030
 
 
7031
 
 
7032
 
 
7033
 
 
7034
 
 
7035
# If no C compiler was specified, use CC.
 
7036
LTCC=${LTCC-"$CC"}
 
7037
 
 
7038
# If no C compiler flags were specified, use CFLAGS.
 
7039
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7040
 
 
7041
# Allow CC to be a program name with arguments.
 
7042
compiler=$CC
 
7043
 
 
7044
 
 
7045
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
7047
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
7048
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
7049
  $as_echo_n "(cached) " >&6
 
7050
else
 
7051
 
 
7052
# These are sane defaults that work on at least a few old systems.
 
7053
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7054
 
 
7055
# Character class describing NM global symbol codes.
 
7056
symcode='[BCDEGRST]'
 
7057
 
 
7058
# Regexp to match symbols that can be accessed directly from C.
 
7059
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7060
 
 
7061
# Define system-specific variables.
 
7062
case $host_os in
 
7063
aix*)
 
7064
  symcode='[BCDT]'
 
7065
  ;;
 
7066
cygwin* | mingw* | pw32* | cegcc*)
 
7067
  symcode='[ABCDGISTW]'
 
7068
  ;;
 
7069
hpux*)
 
7070
  if test "$host_cpu" = ia64; then
 
7071
    symcode='[ABCDEGRST]'
 
7072
  fi
 
7073
  ;;
 
7074
irix* | nonstopux*)
 
7075
  symcode='[BCDEGRST]'
 
7076
  ;;
 
7077
osf*)
 
7078
  symcode='[BCDEGQRST]'
 
7079
  ;;
 
7080
solaris*)
 
7081
  symcode='[BDRT]'
 
7082
  ;;
 
7083
sco3.2v5*)
 
7084
  symcode='[DT]'
 
7085
  ;;
 
7086
sysv4.2uw2*)
 
7087
  symcode='[DT]'
 
7088
  ;;
 
7089
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7090
  symcode='[ABDT]'
 
7091
  ;;
 
7092
sysv4)
 
7093
  symcode='[DFNSTU]'
 
7094
  ;;
 
7095
esac
 
7096
 
 
7097
# If we're using GNU nm, then use its standard symbol codes.
 
7098
case `$NM -V 2>&1` in
 
7099
*GNU* | *'with BFD'*)
 
7100
  symcode='[ABCDGIRSTW]' ;;
 
7101
esac
 
7102
 
 
7103
# Transform an extracted symbol line into a proper C declaration.
 
7104
# Some systems (esp. on ia64) link data and code symbols differently,
 
7105
# so use this general approach.
 
7106
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7107
 
 
7108
# Transform an extracted symbol line into symbol name and symbol address
 
7109
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7110
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'"
 
7111
 
 
7112
# Handle CRLF in mingw tool chain
 
7113
opt_cr=
 
7114
case $build_os in
 
7115
mingw*)
 
7116
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7117
  ;;
 
7118
esac
 
7119
 
 
7120
# Try without a prefix underscore, then with it.
 
7121
for ac_symprfx in "" "_"; do
 
7122
 
 
7123
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7124
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7125
 
 
7126
  # Write the raw and C identifiers.
 
7127
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7128
    # Fake it for dumpbin and say T for any non-static function
 
7129
    # and D for any global variable.
 
7130
    # Also find C++ and __fastcall symbols from MSVC++,
 
7131
    # which start with @ or ?.
 
7132
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7133
"     {last_section=section; section=\$ 3};"\
 
7134
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
7135
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7136
"     \$ 0!~/External *\|/{next};"\
 
7137
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7138
"     {if(hide[section]) next};"\
 
7139
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7140
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7141
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7142
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7143
"     ' prfx=^$ac_symprfx"
 
7144
  else
 
7145
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7146
  fi
 
7147
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
7148
 
 
7149
  # Check to see that the pipe works correctly.
 
7150
  pipe_works=no
 
7151
 
 
7152
  rm -f conftest*
 
7153
  cat > conftest.$ac_ext <<_LT_EOF
 
7154
#ifdef __cplusplus
 
7155
extern "C" {
 
7156
#endif
 
7157
char nm_test_var;
 
7158
void nm_test_func(void);
 
7159
void nm_test_func(void){}
 
7160
#ifdef __cplusplus
 
7161
}
 
7162
#endif
 
7163
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7164
_LT_EOF
 
7165
 
 
7166
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7167
  (eval $ac_compile) 2>&5
 
7168
  ac_status=$?
 
7169
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7170
  test $ac_status = 0; }; then
 
7171
    # Now try to grab the symbols.
 
7172
    nlist=conftest.nm
 
7173
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
7174
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
7175
  ac_status=$?
 
7176
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7177
  test $ac_status = 0; } && test -s "$nlist"; then
 
7178
      # Try sorting and uniquifying the output.
 
7179
      if sort "$nlist" | uniq > "$nlist"T; then
 
7180
        mv -f "$nlist"T "$nlist"
 
7181
      else
 
7182
        rm -f "$nlist"T
 
7183
      fi
 
7184
 
 
7185
      # Make sure that we snagged all the symbols we need.
 
7186
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7187
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7188
          cat <<_LT_EOF > conftest.$ac_ext
 
7189
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
7190
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
7191
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
7192
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
7193
# define LT_DLSYM_CONST
 
7194
#elif defined(__osf__)
 
7195
/* This system does not cope well with relocations in const data.  */
 
7196
# define LT_DLSYM_CONST
 
7197
#else
 
7198
# define LT_DLSYM_CONST const
 
7199
#endif
 
7200
 
 
7201
#ifdef __cplusplus
 
7202
extern "C" {
 
7203
#endif
 
7204
 
 
7205
_LT_EOF
 
7206
          # Now generate the symbol file.
 
7207
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7208
 
 
7209
          cat <<_LT_EOF >> conftest.$ac_ext
 
7210
 
 
7211
/* The mapping between symbol names and symbols.  */
 
7212
LT_DLSYM_CONST struct {
 
7213
  const char *name;
 
7214
  void       *address;
 
7215
}
 
7216
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7217
{
 
7218
  { "@PROGRAM@", (void *) 0 },
 
7219
_LT_EOF
 
7220
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7221
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7222
  {0, (void *) 0}
 
7223
};
 
7224
 
 
7225
/* This works around a problem in FreeBSD linker */
 
7226
#ifdef FREEBSD_WORKAROUND
 
7227
static const void *lt_preloaded_setup() {
 
7228
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7229
}
 
7230
#endif
 
7231
 
 
7232
#ifdef __cplusplus
 
7233
}
 
7234
#endif
 
7235
_LT_EOF
 
7236
          # Now try linking the two files.
 
7237
          mv conftest.$ac_objext conftstm.$ac_objext
 
7238
          lt_globsym_save_LIBS=$LIBS
 
7239
          lt_globsym_save_CFLAGS=$CFLAGS
 
7240
          LIBS="conftstm.$ac_objext"
 
7241
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7242
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
7243
  (eval $ac_link) 2>&5
 
7244
  ac_status=$?
 
7245
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7246
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
7247
            pipe_works=yes
 
7248
          fi
 
7249
          LIBS=$lt_globsym_save_LIBS
 
7250
          CFLAGS=$lt_globsym_save_CFLAGS
 
7251
        else
 
7252
          echo "cannot find nm_test_func in $nlist" >&5
 
7253
        fi
 
7254
      else
 
7255
        echo "cannot find nm_test_var in $nlist" >&5
 
7256
      fi
 
7257
    else
 
7258
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7259
    fi
 
7260
  else
 
7261
    echo "$progname: failed program was:" >&5
 
7262
    cat conftest.$ac_ext >&5
 
7263
  fi
 
7264
  rm -rf conftest* conftst*
 
7265
 
 
7266
  # Do not use the global_symbol_pipe unless it works.
 
7267
  if test "$pipe_works" = yes; then
 
7268
    break
 
7269
  else
 
7270
    lt_cv_sys_global_symbol_pipe=
 
7271
  fi
 
7272
done
 
7273
 
 
7274
fi
 
7275
 
 
7276
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7277
  lt_cv_sys_global_symbol_to_cdecl=
 
7278
fi
 
7279
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7280
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7281
$as_echo "failed" >&6; }
 
7282
else
 
7283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7284
$as_echo "ok" >&6; }
 
7285
fi
 
7286
 
 
7287
# Response file support.
 
7288
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7289
  nm_file_list_spec='@'
 
7290
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7291
  nm_file_list_spec='@'
 
7292
fi
 
7293
 
 
7294
 
 
7295
 
 
7296
 
 
7297
 
 
7298
 
 
7299
 
 
7300
 
 
7301
 
 
7302
 
 
7303
 
 
7304
 
 
7305
 
 
7306
 
 
7307
 
 
7308
 
 
7309
 
 
7310
 
 
7311
 
 
7312
 
 
7313
 
 
7314
 
 
7315
 
 
7316
 
 
7317
 
 
7318
 
 
7319
 
 
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7321
$as_echo_n "checking for sysroot... " >&6; }
 
7322
 
 
7323
# Check whether --with-sysroot was given.
 
7324
if test "${with_sysroot+set}" = set; then :
 
7325
  withval=$with_sysroot;
 
7326
else
 
7327
  with_sysroot=no
 
7328
fi
 
7329
 
 
7330
 
 
7331
lt_sysroot=
 
7332
case ${with_sysroot} in #(
 
7333
 yes)
 
7334
   if test "$GCC" = yes; then
 
7335
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7336
   fi
 
7337
   ;; #(
 
7338
 /*)
 
7339
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
7340
   ;; #(
 
7341
 no|'')
 
7342
   ;; #(
 
7343
 *)
 
7344
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
7345
$as_echo "${with_sysroot}" >&6; }
 
7346
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7347
   ;;
 
7348
esac
 
7349
 
 
7350
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7351
$as_echo "${lt_sysroot:-no}" >&6; }
 
7352
 
 
7353
 
 
7354
 
 
7355
 
 
7356
 
 
7357
 
 
7358
# Check whether --enable-libtool-lock was given.
 
7359
if test "${enable_libtool_lock+set}" = set; then :
 
7360
  enableval=$enable_libtool_lock;
 
7361
fi
 
7362
 
 
7363
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7364
 
 
7365
# Some flags need to be propagated to the compiler or linker for good
 
7366
# libtool support.
 
7367
case $host in
 
7368
ia64-*-hpux*)
 
7369
  # Find out which ABI we are using.
 
7370
  echo 'int i;' > conftest.$ac_ext
 
7371
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7372
  (eval $ac_compile) 2>&5
 
7373
  ac_status=$?
 
7374
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7375
  test $ac_status = 0; }; then
 
7376
    case `/usr/bin/file conftest.$ac_objext` in
 
7377
      *ELF-32*)
 
7378
        HPUX_IA64_MODE="32"
 
7379
        ;;
 
7380
      *ELF-64*)
 
7381
        HPUX_IA64_MODE="64"
 
7382
        ;;
 
7383
    esac
 
7384
  fi
 
7385
  rm -rf conftest*
 
7386
  ;;
 
7387
*-*-irix6*)
 
7388
  # Find out which ABI we are using.
 
7389
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7390
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7391
  (eval $ac_compile) 2>&5
 
7392
  ac_status=$?
 
7393
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7394
  test $ac_status = 0; }; then
 
7395
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7396
      case `/usr/bin/file conftest.$ac_objext` in
 
7397
        *32-bit*)
 
7398
          LD="${LD-ld} -melf32bsmip"
 
7399
          ;;
 
7400
        *N32*)
 
7401
          LD="${LD-ld} -melf32bmipn32"
 
7402
          ;;
 
7403
        *64-bit*)
 
7404
          LD="${LD-ld} -melf64bmip"
 
7405
        ;;
 
7406
      esac
 
7407
    else
 
7408
      case `/usr/bin/file conftest.$ac_objext` in
 
7409
        *32-bit*)
 
7410
          LD="${LD-ld} -32"
 
7411
          ;;
 
7412
        *N32*)
 
7413
          LD="${LD-ld} -n32"
 
7414
          ;;
 
7415
        *64-bit*)
 
7416
          LD="${LD-ld} -64"
 
7417
          ;;
 
7418
      esac
 
7419
    fi
 
7420
  fi
 
7421
  rm -rf conftest*
 
7422
  ;;
 
7423
 
 
7424
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
7425
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7426
  # Find out which ABI we are using.
 
7427
  echo 'int i;' > conftest.$ac_ext
 
7428
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7429
  (eval $ac_compile) 2>&5
 
7430
  ac_status=$?
 
7431
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7432
  test $ac_status = 0; }; then
 
7433
    case `/usr/bin/file conftest.o` in
 
7434
      *32-bit*)
 
7435
        case $host in
 
7436
          x86_64-*kfreebsd*-gnu)
 
7437
            LD="${LD-ld} -m elf_i386_fbsd"
 
7438
            ;;
 
7439
          x86_64-*linux*)
 
7440
            case `/usr/bin/file conftest.o` in
 
7441
              *x86-64*)
 
7442
                LD="${LD-ld} -m elf32_x86_64"
 
7443
                ;;
 
7444
              *)
 
7445
                LD="${LD-ld} -m elf_i386"
 
7446
                ;;
 
7447
            esac
 
7448
            ;;
 
7449
          ppc64-*linux*|powerpc64-*linux*)
 
7450
            LD="${LD-ld} -m elf32ppclinux"
 
7451
            ;;
 
7452
          s390x-*linux*)
 
7453
            LD="${LD-ld} -m elf_s390"
 
7454
            ;;
 
7455
          sparc64-*linux*)
 
7456
            LD="${LD-ld} -m elf32_sparc"
 
7457
            ;;
 
7458
        esac
 
7459
        ;;
 
7460
      *64-bit*)
 
7461
        case $host in
 
7462
          x86_64-*kfreebsd*-gnu)
 
7463
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7464
            ;;
 
7465
          x86_64-*linux*)
 
7466
            LD="${LD-ld} -m elf_x86_64"
 
7467
            ;;
 
7468
          ppc*-*linux*|powerpc*-*linux*)
 
7469
            LD="${LD-ld} -m elf64ppc"
 
7470
            ;;
 
7471
          s390*-*linux*|s390*-*tpf*)
 
7472
            LD="${LD-ld} -m elf64_s390"
 
7473
            ;;
 
7474
          sparc*-*linux*)
 
7475
            LD="${LD-ld} -m elf64_sparc"
 
7476
            ;;
 
7477
        esac
 
7478
        ;;
 
7479
    esac
 
7480
  fi
 
7481
  rm -rf conftest*
 
7482
  ;;
 
7483
 
 
7484
*-*-sco3.2v5*)
 
7485
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7486
  SAVE_CFLAGS="$CFLAGS"
 
7487
  CFLAGS="$CFLAGS -belf"
 
7488
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7489
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7490
if ${lt_cv_cc_needs_belf+:} false; then :
 
7491
  $as_echo_n "(cached) " >&6
 
7492
else
 
7493
  ac_ext=c
 
7494
ac_cpp='$CPP $CPPFLAGS'
 
7495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7498
 
 
7499
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7500
/* end confdefs.h.  */
 
7501
 
 
7502
int
 
7503
main ()
 
7504
{
 
7505
 
 
7506
  ;
 
7507
  return 0;
 
7508
}
 
7509
_ACEOF
 
7510
if ac_fn_c_try_link "$LINENO"; then :
 
7511
  lt_cv_cc_needs_belf=yes
 
7512
else
 
7513
  lt_cv_cc_needs_belf=no
 
7514
fi
 
7515
rm -f core conftest.err conftest.$ac_objext \
 
7516
    conftest$ac_exeext conftest.$ac_ext
 
7517
     ac_ext=c
 
7518
ac_cpp='$CPP $CPPFLAGS'
 
7519
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7520
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7521
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7522
 
 
7523
fi
 
7524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7525
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7526
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7527
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7528
    CFLAGS="$SAVE_CFLAGS"
 
7529
  fi
 
7530
  ;;
 
7531
*-*solaris*)
 
7532
  # Find out which ABI we are using.
 
7533
  echo 'int i;' > conftest.$ac_ext
 
7534
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7535
  (eval $ac_compile) 2>&5
 
7536
  ac_status=$?
 
7537
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7538
  test $ac_status = 0; }; then
 
7539
    case `/usr/bin/file conftest.o` in
 
7540
    *64-bit*)
 
7541
      case $lt_cv_prog_gnu_ld in
 
7542
      yes*)
 
7543
        case $host in
 
7544
        i?86-*-solaris*)
 
7545
          LD="${LD-ld} -m elf_x86_64"
 
7546
          ;;
 
7547
        sparc*-*-solaris*)
 
7548
          LD="${LD-ld} -m elf64_sparc"
 
7549
          ;;
 
7550
        esac
 
7551
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7552
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7553
          LD="${LD-ld}_sol2"
 
7554
        fi
 
7555
        ;;
 
7556
      *)
 
7557
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7558
          LD="${LD-ld} -64"
 
7559
        fi
 
7560
        ;;
 
7561
      esac
 
7562
      ;;
 
7563
    esac
 
7564
  fi
 
7565
  rm -rf conftest*
 
7566
  ;;
 
7567
esac
 
7568
 
 
7569
need_locks="$enable_libtool_lock"
 
7570
 
 
7571
if test -n "$ac_tool_prefix"; then
 
7572
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7573
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7575
$as_echo_n "checking for $ac_word... " >&6; }
 
7576
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7577
  $as_echo_n "(cached) " >&6
 
7578
else
 
7579
  if test -n "$MANIFEST_TOOL"; then
 
7580
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7581
else
 
7582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7583
for as_dir in $PATH
 
7584
do
 
7585
  IFS=$as_save_IFS
 
7586
  test -z "$as_dir" && as_dir=.
 
7587
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7588
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7589
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7590
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7591
    break 2
 
7592
  fi
 
7593
done
 
7594
  done
 
7595
IFS=$as_save_IFS
 
7596
 
 
7597
fi
 
7598
fi
 
7599
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7600
if test -n "$MANIFEST_TOOL"; then
 
7601
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7602
$as_echo "$MANIFEST_TOOL" >&6; }
 
7603
else
 
7604
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7605
$as_echo "no" >&6; }
 
7606
fi
 
7607
 
 
7608
 
 
7609
fi
 
7610
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7611
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7612
  # Extract the first word of "mt", so it can be a program name with args.
 
7613
set dummy mt; ac_word=$2
 
7614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7615
$as_echo_n "checking for $ac_word... " >&6; }
 
7616
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7617
  $as_echo_n "(cached) " >&6
 
7618
else
 
7619
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7620
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7621
else
 
7622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7623
for as_dir in $PATH
 
7624
do
 
7625
  IFS=$as_save_IFS
 
7626
  test -z "$as_dir" && as_dir=.
 
7627
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7628
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7629
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7630
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7631
    break 2
 
7632
  fi
 
7633
done
 
7634
  done
 
7635
IFS=$as_save_IFS
 
7636
 
 
7637
fi
 
7638
fi
 
7639
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7640
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7642
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7643
else
 
7644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7645
$as_echo "no" >&6; }
 
7646
fi
 
7647
 
 
7648
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7649
    MANIFEST_TOOL=":"
 
7650
  else
 
7651
    case $cross_compiling:$ac_tool_warned in
 
7652
yes:)
 
7653
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7654
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7655
ac_tool_warned=yes ;;
 
7656
esac
 
7657
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7658
  fi
 
7659
else
 
7660
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7661
fi
 
7662
 
 
7663
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7665
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7666
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7667
  $as_echo_n "(cached) " >&6
 
7668
else
 
7669
  lt_cv_path_mainfest_tool=no
 
7670
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7671
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7672
  cat conftest.err >&5
 
7673
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7674
    lt_cv_path_mainfest_tool=yes
 
7675
  fi
 
7676
  rm -f conftest*
 
7677
fi
 
7678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7679
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7680
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7681
  MANIFEST_TOOL=:
 
7682
fi
 
7683
 
 
7684
 
 
7685
 
 
7686
 
 
7687
 
 
7688
 
 
7689
  case $host_os in
 
7690
    rhapsody* | darwin*)
 
7691
    if test -n "$ac_tool_prefix"; then
 
7692
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7693
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7695
$as_echo_n "checking for $ac_word... " >&6; }
 
7696
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7697
  $as_echo_n "(cached) " >&6
 
7698
else
 
7699
  if test -n "$DSYMUTIL"; then
 
7700
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7701
else
 
7702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7703
for as_dir in $PATH
 
7704
do
 
7705
  IFS=$as_save_IFS
 
7706
  test -z "$as_dir" && as_dir=.
 
7707
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7708
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7709
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7710
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7711
    break 2
 
7712
  fi
 
7713
done
 
7714
  done
 
7715
IFS=$as_save_IFS
 
7716
 
 
7717
fi
 
7718
fi
 
7719
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7720
if test -n "$DSYMUTIL"; then
 
7721
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7722
$as_echo "$DSYMUTIL" >&6; }
 
7723
else
 
7724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7725
$as_echo "no" >&6; }
 
7726
fi
 
7727
 
 
7728
 
 
7729
fi
 
7730
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7731
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7732
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7733
set dummy dsymutil; ac_word=$2
 
7734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7735
$as_echo_n "checking for $ac_word... " >&6; }
 
7736
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7737
  $as_echo_n "(cached) " >&6
 
7738
else
 
7739
  if test -n "$ac_ct_DSYMUTIL"; then
 
7740
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7741
else
 
7742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7743
for as_dir in $PATH
 
7744
do
 
7745
  IFS=$as_save_IFS
 
7746
  test -z "$as_dir" && as_dir=.
 
7747
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7748
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7749
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7750
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7751
    break 2
 
7752
  fi
 
7753
done
 
7754
  done
 
7755
IFS=$as_save_IFS
 
7756
 
 
7757
fi
 
7758
fi
 
7759
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7760
if test -n "$ac_ct_DSYMUTIL"; then
 
7761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7762
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7763
else
 
7764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7765
$as_echo "no" >&6; }
 
7766
fi
 
7767
 
 
7768
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7769
    DSYMUTIL=":"
 
7770
  else
 
7771
    case $cross_compiling:$ac_tool_warned in
 
7772
yes:)
 
7773
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7774
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7775
ac_tool_warned=yes ;;
 
7776
esac
 
7777
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7778
  fi
 
7779
else
 
7780
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7781
fi
 
7782
 
 
7783
    if test -n "$ac_tool_prefix"; then
 
7784
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7785
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7787
$as_echo_n "checking for $ac_word... " >&6; }
 
7788
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7789
  $as_echo_n "(cached) " >&6
 
7790
else
 
7791
  if test -n "$NMEDIT"; then
 
7792
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7793
else
 
7794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7795
for as_dir in $PATH
 
7796
do
 
7797
  IFS=$as_save_IFS
 
7798
  test -z "$as_dir" && as_dir=.
 
7799
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7800
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7801
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7802
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7803
    break 2
 
7804
  fi
 
7805
done
 
7806
  done
 
7807
IFS=$as_save_IFS
 
7808
 
 
7809
fi
 
7810
fi
 
7811
NMEDIT=$ac_cv_prog_NMEDIT
 
7812
if test -n "$NMEDIT"; then
 
7813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7814
$as_echo "$NMEDIT" >&6; }
 
7815
else
 
7816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7817
$as_echo "no" >&6; }
 
7818
fi
 
7819
 
 
7820
 
 
7821
fi
 
7822
if test -z "$ac_cv_prog_NMEDIT"; then
 
7823
  ac_ct_NMEDIT=$NMEDIT
 
7824
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7825
set dummy nmedit; ac_word=$2
 
7826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7827
$as_echo_n "checking for $ac_word... " >&6; }
 
7828
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7829
  $as_echo_n "(cached) " >&6
 
7830
else
 
7831
  if test -n "$ac_ct_NMEDIT"; then
 
7832
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7833
else
 
7834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7835
for as_dir in $PATH
 
7836
do
 
7837
  IFS=$as_save_IFS
 
7838
  test -z "$as_dir" && as_dir=.
 
7839
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7840
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7841
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7842
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7843
    break 2
 
7844
  fi
 
7845
done
 
7846
  done
 
7847
IFS=$as_save_IFS
 
7848
 
 
7849
fi
 
7850
fi
 
7851
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7852
if test -n "$ac_ct_NMEDIT"; then
 
7853
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7854
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7855
else
 
7856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7857
$as_echo "no" >&6; }
 
7858
fi
 
7859
 
 
7860
  if test "x$ac_ct_NMEDIT" = x; then
 
7861
    NMEDIT=":"
 
7862
  else
 
7863
    case $cross_compiling:$ac_tool_warned in
 
7864
yes:)
 
7865
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7866
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7867
ac_tool_warned=yes ;;
 
7868
esac
 
7869
    NMEDIT=$ac_ct_NMEDIT
 
7870
  fi
 
7871
else
 
7872
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7873
fi
 
7874
 
 
7875
    if test -n "$ac_tool_prefix"; then
 
7876
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7877
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7879
$as_echo_n "checking for $ac_word... " >&6; }
 
7880
if ${ac_cv_prog_LIPO+:} false; then :
 
7881
  $as_echo_n "(cached) " >&6
 
7882
else
 
7883
  if test -n "$LIPO"; then
 
7884
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7885
else
 
7886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7887
for as_dir in $PATH
 
7888
do
 
7889
  IFS=$as_save_IFS
 
7890
  test -z "$as_dir" && as_dir=.
 
7891
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7892
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7893
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7894
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7895
    break 2
 
7896
  fi
 
7897
done
 
7898
  done
 
7899
IFS=$as_save_IFS
 
7900
 
 
7901
fi
 
7902
fi
 
7903
LIPO=$ac_cv_prog_LIPO
 
7904
if test -n "$LIPO"; then
 
7905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7906
$as_echo "$LIPO" >&6; }
 
7907
else
 
7908
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7909
$as_echo "no" >&6; }
 
7910
fi
 
7911
 
 
7912
 
 
7913
fi
 
7914
if test -z "$ac_cv_prog_LIPO"; then
 
7915
  ac_ct_LIPO=$LIPO
 
7916
  # Extract the first word of "lipo", so it can be a program name with args.
 
7917
set dummy lipo; ac_word=$2
 
7918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7919
$as_echo_n "checking for $ac_word... " >&6; }
 
7920
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7921
  $as_echo_n "(cached) " >&6
 
7922
else
 
7923
  if test -n "$ac_ct_LIPO"; then
 
7924
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7925
else
 
7926
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7927
for as_dir in $PATH
 
7928
do
 
7929
  IFS=$as_save_IFS
 
7930
  test -z "$as_dir" && as_dir=.
 
7931
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7932
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7933
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7934
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7935
    break 2
 
7936
  fi
 
7937
done
 
7938
  done
 
7939
IFS=$as_save_IFS
 
7940
 
 
7941
fi
 
7942
fi
 
7943
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7944
if test -n "$ac_ct_LIPO"; then
 
7945
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7946
$as_echo "$ac_ct_LIPO" >&6; }
 
7947
else
 
7948
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7949
$as_echo "no" >&6; }
 
7950
fi
 
7951
 
 
7952
  if test "x$ac_ct_LIPO" = x; then
 
7953
    LIPO=":"
 
7954
  else
 
7955
    case $cross_compiling:$ac_tool_warned in
 
7956
yes:)
 
7957
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7958
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7959
ac_tool_warned=yes ;;
 
7960
esac
 
7961
    LIPO=$ac_ct_LIPO
 
7962
  fi
 
7963
else
 
7964
  LIPO="$ac_cv_prog_LIPO"
 
7965
fi
 
7966
 
 
7967
    if test -n "$ac_tool_prefix"; then
 
7968
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7969
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7971
$as_echo_n "checking for $ac_word... " >&6; }
 
7972
if ${ac_cv_prog_OTOOL+:} false; then :
 
7973
  $as_echo_n "(cached) " >&6
 
7974
else
 
7975
  if test -n "$OTOOL"; then
 
7976
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7977
else
 
7978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7979
for as_dir in $PATH
 
7980
do
 
7981
  IFS=$as_save_IFS
 
7982
  test -z "$as_dir" && as_dir=.
 
7983
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7984
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7985
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7986
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7987
    break 2
 
7988
  fi
 
7989
done
 
7990
  done
 
7991
IFS=$as_save_IFS
 
7992
 
 
7993
fi
 
7994
fi
 
7995
OTOOL=$ac_cv_prog_OTOOL
 
7996
if test -n "$OTOOL"; then
 
7997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7998
$as_echo "$OTOOL" >&6; }
 
7999
else
 
8000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8001
$as_echo "no" >&6; }
 
8002
fi
 
8003
 
 
8004
 
 
8005
fi
 
8006
if test -z "$ac_cv_prog_OTOOL"; then
 
8007
  ac_ct_OTOOL=$OTOOL
 
8008
  # Extract the first word of "otool", so it can be a program name with args.
 
8009
set dummy otool; ac_word=$2
 
8010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8011
$as_echo_n "checking for $ac_word... " >&6; }
 
8012
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
8013
  $as_echo_n "(cached) " >&6
 
8014
else
 
8015
  if test -n "$ac_ct_OTOOL"; then
 
8016
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
8017
else
 
8018
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8019
for as_dir in $PATH
 
8020
do
 
8021
  IFS=$as_save_IFS
 
8022
  test -z "$as_dir" && as_dir=.
 
8023
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8024
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8025
    ac_cv_prog_ac_ct_OTOOL="otool"
 
8026
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8027
    break 2
 
8028
  fi
 
8029
done
 
8030
  done
 
8031
IFS=$as_save_IFS
 
8032
 
 
8033
fi
 
8034
fi
 
8035
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
8036
if test -n "$ac_ct_OTOOL"; then
 
8037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
8038
$as_echo "$ac_ct_OTOOL" >&6; }
 
8039
else
 
8040
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8041
$as_echo "no" >&6; }
 
8042
fi
 
8043
 
 
8044
  if test "x$ac_ct_OTOOL" = x; then
 
8045
    OTOOL=":"
 
8046
  else
 
8047
    case $cross_compiling:$ac_tool_warned in
 
8048
yes:)
 
8049
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8050
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8051
ac_tool_warned=yes ;;
 
8052
esac
 
8053
    OTOOL=$ac_ct_OTOOL
 
8054
  fi
 
8055
else
 
8056
  OTOOL="$ac_cv_prog_OTOOL"
 
8057
fi
 
8058
 
 
8059
    if test -n "$ac_tool_prefix"; then
 
8060
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
8061
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
8062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8063
$as_echo_n "checking for $ac_word... " >&6; }
 
8064
if ${ac_cv_prog_OTOOL64+:} false; then :
 
8065
  $as_echo_n "(cached) " >&6
 
8066
else
 
8067
  if test -n "$OTOOL64"; then
 
8068
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
8069
else
 
8070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8071
for as_dir in $PATH
 
8072
do
 
8073
  IFS=$as_save_IFS
 
8074
  test -z "$as_dir" && as_dir=.
 
8075
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8076
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8077
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
8078
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8079
    break 2
 
8080
  fi
 
8081
done
 
8082
  done
 
8083
IFS=$as_save_IFS
 
8084
 
 
8085
fi
 
8086
fi
 
8087
OTOOL64=$ac_cv_prog_OTOOL64
 
8088
if test -n "$OTOOL64"; then
 
8089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
8090
$as_echo "$OTOOL64" >&6; }
 
8091
else
 
8092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8093
$as_echo "no" >&6; }
 
8094
fi
 
8095
 
 
8096
 
 
8097
fi
 
8098
if test -z "$ac_cv_prog_OTOOL64"; then
 
8099
  ac_ct_OTOOL64=$OTOOL64
 
8100
  # Extract the first word of "otool64", so it can be a program name with args.
 
8101
set dummy otool64; ac_word=$2
 
8102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8103
$as_echo_n "checking for $ac_word... " >&6; }
 
8104
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
8105
  $as_echo_n "(cached) " >&6
 
8106
else
 
8107
  if test -n "$ac_ct_OTOOL64"; then
 
8108
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
8109
else
 
8110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8111
for as_dir in $PATH
 
8112
do
 
8113
  IFS=$as_save_IFS
 
8114
  test -z "$as_dir" && as_dir=.
 
8115
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8116
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8117
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
8118
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8119
    break 2
 
8120
  fi
 
8121
done
 
8122
  done
 
8123
IFS=$as_save_IFS
 
8124
 
 
8125
fi
 
8126
fi
 
8127
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
8128
if test -n "$ac_ct_OTOOL64"; then
 
8129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
8130
$as_echo "$ac_ct_OTOOL64" >&6; }
 
8131
else
 
8132
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8133
$as_echo "no" >&6; }
 
8134
fi
 
8135
 
 
8136
  if test "x$ac_ct_OTOOL64" = x; then
 
8137
    OTOOL64=":"
 
8138
  else
 
8139
    case $cross_compiling:$ac_tool_warned in
 
8140
yes:)
 
8141
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8142
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8143
ac_tool_warned=yes ;;
 
8144
esac
 
8145
    OTOOL64=$ac_ct_OTOOL64
 
8146
  fi
 
8147
else
 
8148
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8149
fi
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
 
 
8155
 
 
8156
 
 
8157
 
 
8158
 
 
8159
 
 
8160
 
 
8161
 
 
8162
 
 
8163
 
 
8164
 
 
8165
 
 
8166
 
 
8167
 
 
8168
 
 
8169
 
 
8170
 
 
8171
 
 
8172
 
 
8173
 
 
8174
 
 
8175
 
 
8176
 
 
8177
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
8178
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
8179
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
8180
  $as_echo_n "(cached) " >&6
 
8181
else
 
8182
  lt_cv_apple_cc_single_mod=no
 
8183
      if test -z "${LT_MULTI_MODULE}"; then
 
8184
        # By default we will add the -single_module flag. You can override
 
8185
        # by either setting the environment variable LT_MULTI_MODULE
 
8186
        # non-empty at configure time, or by adding -multi_module to the
 
8187
        # link flags.
 
8188
        rm -rf libconftest.dylib*
 
8189
        echo "int foo(void){return 1;}" > conftest.c
 
8190
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8191
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8192
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8193
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8194
        _lt_result=$?
 
8195
        # If there is a non-empty error log, and "single_module"
 
8196
        # appears in it, assume the flag caused a linker warning
 
8197
        if test -s conftest.err && $GREP single_module conftest.err; then
 
8198
          cat conftest.err >&5
 
8199
        # Otherwise, if the output was created with a 0 exit code from
 
8200
        # the compiler, it worked.
 
8201
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
8202
          lt_cv_apple_cc_single_mod=yes
 
8203
        else
 
8204
          cat conftest.err >&5
 
8205
        fi
 
8206
        rm -rf libconftest.dylib*
 
8207
        rm -f conftest.*
 
8208
      fi
 
8209
fi
 
8210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
8211
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
8212
 
 
8213
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
8214
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
8215
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
8216
  $as_echo_n "(cached) " >&6
 
8217
else
 
8218
  lt_cv_ld_exported_symbols_list=no
 
8219
      save_LDFLAGS=$LDFLAGS
 
8220
      echo "_main" > conftest.sym
 
8221
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
8222
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8223
/* end confdefs.h.  */
 
8224
 
 
8225
int
 
8226
main ()
 
8227
{
 
8228
 
 
8229
  ;
 
8230
  return 0;
 
8231
}
 
8232
_ACEOF
 
8233
if ac_fn_c_try_link "$LINENO"; then :
 
8234
  lt_cv_ld_exported_symbols_list=yes
 
8235
else
 
8236
  lt_cv_ld_exported_symbols_list=no
 
8237
fi
 
8238
rm -f core conftest.err conftest.$ac_objext \
 
8239
    conftest$ac_exeext conftest.$ac_ext
 
8240
        LDFLAGS="$save_LDFLAGS"
 
8241
 
 
8242
fi
 
8243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8244
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8245
 
 
8246
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8247
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
8248
if ${lt_cv_ld_force_load+:} false; then :
 
8249
  $as_echo_n "(cached) " >&6
 
8250
else
 
8251
  lt_cv_ld_force_load=no
 
8252
      cat > conftest.c << _LT_EOF
 
8253
int forced_loaded() { return 2;}
 
8254
_LT_EOF
 
8255
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8256
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8257
      echo "$AR cru libconftest.a conftest.o" >&5
 
8258
      $AR cru libconftest.a conftest.o 2>&5
 
8259
      echo "$RANLIB libconftest.a" >&5
 
8260
      $RANLIB libconftest.a 2>&5
 
8261
      cat > conftest.c << _LT_EOF
 
8262
int main() { return 0;}
 
8263
_LT_EOF
 
8264
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8265
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8266
      _lt_result=$?
 
8267
      if test -s conftest.err && $GREP force_load conftest.err; then
 
8268
        cat conftest.err >&5
 
8269
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
8270
        lt_cv_ld_force_load=yes
 
8271
      else
 
8272
        cat conftest.err >&5
 
8273
      fi
 
8274
        rm -f conftest.err libconftest.a conftest conftest.c
 
8275
        rm -rf conftest.dSYM
 
8276
 
 
8277
fi
 
8278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8279
$as_echo "$lt_cv_ld_force_load" >&6; }
 
8280
    case $host_os in
 
8281
    rhapsody* | darwin1.[012])
 
8282
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
8283
    darwin1.*)
 
8284
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8285
    darwin*) # darwin 5.x on
 
8286
      # if running on 10.5 or later, the deployment target defaults
 
8287
      # to the OS version, if on x86, and 10.4, the deployment
 
8288
      # target defaults to 10.4. Don't you love it?
 
8289
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8290
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8291
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8292
        10.[012]*)
 
8293
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8294
        10.*)
 
8295
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8296
      esac
 
8297
    ;;
 
8298
  esac
 
8299
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8300
      _lt_dar_single_mod='$single_module'
 
8301
    fi
 
8302
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8303
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8304
    else
 
8305
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8306
    fi
 
8307
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
8308
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8309
    else
 
8310
      _lt_dsymutil=
 
8311
    fi
 
8312
    ;;
 
8313
  esac
 
8314
 
 
8315
ac_ext=c
 
8316
ac_cpp='$CPP $CPPFLAGS'
 
8317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
8321
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
8322
# On Suns, sometimes $CPP names a directory.
 
8323
if test -n "$CPP" && test -d "$CPP"; then
 
8324
  CPP=
 
8325
fi
 
8326
if test -z "$CPP"; then
 
8327
  if ${ac_cv_prog_CPP+:} false; then :
 
8328
  $as_echo_n "(cached) " >&6
 
8329
else
 
8330
      # Double quotes because CPP needs to be expanded
 
8331
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
8332
    do
 
8333
      ac_preproc_ok=false
 
8334
for ac_c_preproc_warn_flag in '' yes
 
8335
do
 
8336
  # Use a header file that comes with gcc, so configuring glibc
 
8337
  # with a fresh cross-compiler works.
 
8338
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8339
  # <limits.h> exists even on freestanding compilers.
 
8340
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
8341
  # not just through cpp. "Syntax error" is here to catch this case.
 
8342
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8343
/* end confdefs.h.  */
 
8344
#ifdef __STDC__
 
8345
# include <limits.h>
 
8346
#else
 
8347
# include <assert.h>
 
8348
#endif
 
8349
                     Syntax error
 
8350
_ACEOF
 
8351
if ac_fn_c_try_cpp "$LINENO"; then :
 
8352
 
 
8353
else
 
8354
  # Broken: fails on valid input.
 
8355
continue
 
8356
fi
 
8357
rm -f conftest.err conftest.i conftest.$ac_ext
 
8358
 
 
8359
  # OK, works on sane cases.  Now check whether nonexistent headers
 
8360
  # can be detected and how.
 
8361
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8362
/* end confdefs.h.  */
 
8363
#include <ac_nonexistent.h>
 
8364
_ACEOF
 
8365
if ac_fn_c_try_cpp "$LINENO"; then :
 
8366
  # Broken: success on invalid input.
 
8367
continue
 
8368
else
 
8369
  # Passes both tests.
 
8370
ac_preproc_ok=:
 
8371
break
 
8372
fi
 
8373
rm -f conftest.err conftest.i conftest.$ac_ext
 
8374
 
 
8375
done
 
8376
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
8377
rm -f conftest.i conftest.err conftest.$ac_ext
 
8378
if $ac_preproc_ok; then :
 
8379
  break
 
8380
fi
 
8381
 
 
8382
    done
 
8383
    ac_cv_prog_CPP=$CPP
 
8384
 
 
8385
fi
 
8386
  CPP=$ac_cv_prog_CPP
 
8387
else
 
8388
  ac_cv_prog_CPP=$CPP
 
8389
fi
 
8390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
8391
$as_echo "$CPP" >&6; }
 
8392
ac_preproc_ok=false
 
8393
for ac_c_preproc_warn_flag in '' yes
 
8394
do
 
8395
  # Use a header file that comes with gcc, so configuring glibc
 
8396
  # with a fresh cross-compiler works.
 
8397
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8398
  # <limits.h> exists even on freestanding compilers.
 
8399
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
8400
  # not just through cpp. "Syntax error" is here to catch this case.
 
8401
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8402
/* end confdefs.h.  */
 
8403
#ifdef __STDC__
 
8404
# include <limits.h>
 
8405
#else
 
8406
# include <assert.h>
 
8407
#endif
 
8408
                     Syntax error
 
8409
_ACEOF
 
8410
if ac_fn_c_try_cpp "$LINENO"; then :
 
8411
 
 
8412
else
 
8413
  # Broken: fails on valid input.
 
8414
continue
 
8415
fi
 
8416
rm -f conftest.err conftest.i conftest.$ac_ext
 
8417
 
 
8418
  # OK, works on sane cases.  Now check whether nonexistent headers
 
8419
  # can be detected and how.
 
8420
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8421
/* end confdefs.h.  */
 
8422
#include <ac_nonexistent.h>
 
8423
_ACEOF
 
8424
if ac_fn_c_try_cpp "$LINENO"; then :
 
8425
  # Broken: success on invalid input.
 
8426
continue
 
8427
else
 
8428
  # Passes both tests.
 
8429
ac_preproc_ok=:
 
8430
break
 
8431
fi
 
8432
rm -f conftest.err conftest.i conftest.$ac_ext
 
8433
 
 
8434
done
 
8435
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
8436
rm -f conftest.i conftest.err conftest.$ac_ext
 
8437
if $ac_preproc_ok; then :
 
8438
 
 
8439
else
 
8440
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
8441
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
8442
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
8443
See \`config.log' for more details" "$LINENO" 5; }
 
8444
fi
 
8445
 
 
8446
ac_ext=c
 
8447
ac_cpp='$CPP $CPPFLAGS'
 
8448
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8449
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8450
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8451
 
 
8452
 
 
8453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
8454
$as_echo_n "checking for ANSI C header files... " >&6; }
 
8455
if ${ac_cv_header_stdc+:} false; then :
 
8456
  $as_echo_n "(cached) " >&6
 
8457
else
 
8458
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8459
/* end confdefs.h.  */
 
8460
#include <stdlib.h>
 
8461
#include <stdarg.h>
 
8462
#include <string.h>
 
8463
#include <float.h>
 
8464
 
 
8465
int
 
8466
main ()
 
8467
{
 
8468
 
 
8469
  ;
 
8470
  return 0;
 
8471
}
 
8472
_ACEOF
 
8473
if ac_fn_c_try_compile "$LINENO"; then :
 
8474
  ac_cv_header_stdc=yes
 
8475
else
 
8476
  ac_cv_header_stdc=no
 
8477
fi
 
8478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8479
 
 
8480
if test $ac_cv_header_stdc = yes; then
 
8481
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8482
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8483
/* end confdefs.h.  */
 
8484
#include <string.h>
 
8485
 
 
8486
_ACEOF
 
8487
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8488
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8489
 
 
8490
else
 
8491
  ac_cv_header_stdc=no
 
8492
fi
 
8493
rm -f conftest*
 
8494
 
 
8495
fi
 
8496
 
 
8497
if test $ac_cv_header_stdc = yes; then
 
8498
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8499
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8500
/* end confdefs.h.  */
 
8501
#include <stdlib.h>
 
8502
 
 
8503
_ACEOF
 
8504
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8505
  $EGREP "free" >/dev/null 2>&1; then :
 
8506
 
 
8507
else
 
8508
  ac_cv_header_stdc=no
 
8509
fi
 
8510
rm -f conftest*
 
8511
 
 
8512
fi
 
8513
 
 
8514
if test $ac_cv_header_stdc = yes; then
 
8515
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8516
  if test "$cross_compiling" = yes; then :
 
8517
  :
 
8518
else
 
8519
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8520
/* end confdefs.h.  */
 
8521
#include <ctype.h>
 
8522
#include <stdlib.h>
 
8523
#if ((' ' & 0x0FF) == 0x020)
 
8524
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8525
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8526
#else
 
8527
# define ISLOWER(c) \
 
8528
                   (('a' <= (c) && (c) <= 'i') \
 
8529
                     || ('j' <= (c) && (c) <= 'r') \
 
8530
                     || ('s' <= (c) && (c) <= 'z'))
 
8531
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8532
#endif
 
8533
 
 
8534
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8535
int
 
8536
main ()
 
8537
{
 
8538
  int i;
 
8539
  for (i = 0; i < 256; i++)
 
8540
    if (XOR (islower (i), ISLOWER (i))
 
8541
        || toupper (i) != TOUPPER (i))
 
8542
      return 2;
 
8543
  return 0;
 
8544
}
 
8545
_ACEOF
 
8546
if ac_fn_c_try_run "$LINENO"; then :
 
8547
 
 
8548
else
 
8549
  ac_cv_header_stdc=no
 
8550
fi
 
8551
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8552
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8553
fi
 
8554
 
 
8555
fi
 
8556
fi
 
8557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8558
$as_echo "$ac_cv_header_stdc" >&6; }
 
8559
if test $ac_cv_header_stdc = yes; then
 
8560
 
 
8561
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
8562
 
 
8563
fi
 
8564
 
 
8565
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8566
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8567
                  inttypes.h stdint.h unistd.h
 
8568
do :
 
8569
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8570
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8571
"
 
8572
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8573
  cat >>confdefs.h <<_ACEOF
 
8574
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8575
_ACEOF
 
8576
 
 
8577
fi
 
8578
 
 
8579
done
 
8580
 
 
8581
 
 
8582
for ac_header in dlfcn.h
 
8583
do :
 
8584
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8585
"
 
8586
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8587
  cat >>confdefs.h <<_ACEOF
 
8588
#define HAVE_DLFCN_H 1
 
8589
_ACEOF
 
8590
 
 
8591
fi
 
8592
 
 
8593
done
 
8594
 
 
8595
 
 
8596
 
 
8597
func_stripname_cnf ()
 
8598
{
 
8599
  case ${2} in
 
8600
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
8601
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8602
  esac
 
8603
} # func_stripname_cnf
 
8604
 
 
8605
 
 
8606
 
 
8607
 
 
8608
 
 
8609
# Set options
 
8610
enable_dlopen=yes
 
8611
# Check whether --enable-static was given.
 
8612
if test "${enable_static+set}" = set; then :
 
8613
  enableval=$enable_static; p=${PACKAGE-default}
 
8614
    case $enableval in
 
8615
    yes) enable_static=yes ;;
 
8616
    no) enable_static=no ;;
 
8617
    *)
 
8618
     enable_static=no
 
8619
      # Look at the argument we got.  We use all the common list separators.
 
8620
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8621
      for pkg in $enableval; do
 
8622
        IFS="$lt_save_ifs"
 
8623
        if test "X$pkg" = "X$p"; then
 
8624
          enable_static=yes
 
8625
        fi
 
8626
      done
 
8627
      IFS="$lt_save_ifs"
 
8628
      ;;
 
8629
    esac
 
8630
else
 
8631
  enable_static=no
 
8632
fi
 
8633
 
 
8634
 
 
8635
 
 
8636
 
 
8637
 
 
8638
 
 
8639
 
 
8640
 
 
8641
 
 
8642
 
 
8643
 
 
8644
  enable_win32_dll=no
 
8645
 
 
8646
 
 
8647
            # Check whether --enable-shared was given.
 
8648
if test "${enable_shared+set}" = set; then :
 
8649
  enableval=$enable_shared; p=${PACKAGE-default}
 
8650
    case $enableval in
 
8651
    yes) enable_shared=yes ;;
 
8652
    no) enable_shared=no ;;
 
8653
    *)
 
8654
      enable_shared=no
 
8655
      # Look at the argument we got.  We use all the common list separators.
 
8656
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8657
      for pkg in $enableval; do
 
8658
        IFS="$lt_save_ifs"
 
8659
        if test "X$pkg" = "X$p"; then
 
8660
          enable_shared=yes
 
8661
        fi
 
8662
      done
 
8663
      IFS="$lt_save_ifs"
 
8664
      ;;
 
8665
    esac
 
8666
else
 
8667
  enable_shared=yes
 
8668
fi
 
8669
 
 
8670
 
 
8671
 
 
8672
 
 
8673
 
 
8674
 
 
8675
 
 
8676
 
 
8677
 
 
8678
 
 
8679
 
 
8680
# Check whether --with-pic was given.
 
8681
if test "${with_pic+set}" = set; then :
 
8682
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8683
    case $withval in
 
8684
    yes|no) pic_mode=$withval ;;
 
8685
    *)
 
8686
      pic_mode=default
 
8687
      # Look at the argument we got.  We use all the common list separators.
 
8688
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8689
      for lt_pkg in $withval; do
 
8690
        IFS="$lt_save_ifs"
 
8691
        if test "X$lt_pkg" = "X$lt_p"; then
 
8692
          pic_mode=yes
 
8693
        fi
 
8694
      done
 
8695
      IFS="$lt_save_ifs"
 
8696
      ;;
 
8697
    esac
 
8698
else
 
8699
  pic_mode=default
 
8700
fi
 
8701
 
 
8702
 
 
8703
test -z "$pic_mode" && pic_mode=default
 
8704
 
 
8705
 
 
8706
 
 
8707
 
 
8708
 
 
8709
 
 
8710
 
 
8711
  # Check whether --enable-fast-install was given.
 
8712
if test "${enable_fast_install+set}" = set; then :
 
8713
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8714
    case $enableval in
 
8715
    yes) enable_fast_install=yes ;;
 
8716
    no) enable_fast_install=no ;;
 
8717
    *)
 
8718
      enable_fast_install=no
 
8719
      # Look at the argument we got.  We use all the common list separators.
 
8720
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8721
      for pkg in $enableval; do
 
8722
        IFS="$lt_save_ifs"
 
8723
        if test "X$pkg" = "X$p"; then
 
8724
          enable_fast_install=yes
 
8725
        fi
 
8726
      done
 
8727
      IFS="$lt_save_ifs"
 
8728
      ;;
 
8729
    esac
 
8730
else
 
8731
  enable_fast_install=yes
 
8732
fi
 
8733
 
 
8734
 
 
8735
 
 
8736
 
 
8737
 
 
8738
 
 
8739
 
 
8740
 
 
8741
 
 
8742
 
 
8743
 
 
8744
# This can be used to rebuild libtool when needed
 
8745
LIBTOOL_DEPS="$ltmain"
 
8746
 
 
8747
# Always use our own libtool.
 
8748
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8749
 
 
8750
 
 
8751
 
 
8752
 
 
8753
 
 
8754
 
 
8755
 
 
8756
 
 
8757
 
 
8758
 
 
8759
 
 
8760
 
 
8761
 
 
8762
 
 
8763
 
 
8764
 
 
8765
 
 
8766
 
 
8767
 
 
8768
 
 
8769
 
 
8770
 
 
8771
 
 
8772
 
 
8773
 
 
8774
 
 
8775
 
 
8776
 
 
8777
 
 
8778
 
 
8779
test -z "$LN_S" && LN_S="ln -s"
 
8780
 
 
8781
 
 
8782
 
 
8783
 
 
8784
 
 
8785
 
 
8786
 
 
8787
 
 
8788
 
 
8789
 
 
8790
 
 
8791
 
 
8792
 
 
8793
 
 
8794
if test -n "${ZSH_VERSION+set}" ; then
 
8795
   setopt NO_GLOB_SUBST
 
8796
fi
 
8797
 
 
8798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8799
$as_echo_n "checking for objdir... " >&6; }
 
8800
if ${lt_cv_objdir+:} false; then :
 
8801
  $as_echo_n "(cached) " >&6
 
8802
else
 
8803
  rm -f .libs 2>/dev/null
 
8804
mkdir .libs 2>/dev/null
 
8805
if test -d .libs; then
 
8806
  lt_cv_objdir=.libs
 
8807
else
 
8808
  # MS-DOS does not allow filenames that begin with a dot.
 
8809
  lt_cv_objdir=_libs
 
8810
fi
 
8811
rmdir .libs 2>/dev/null
 
8812
fi
 
8813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8814
$as_echo "$lt_cv_objdir" >&6; }
 
8815
objdir=$lt_cv_objdir
 
8816
 
 
8817
 
 
8818
 
 
8819
 
 
8820
 
 
8821
cat >>confdefs.h <<_ACEOF
 
8822
#define LT_OBJDIR "$lt_cv_objdir/"
 
8823
_ACEOF
 
8824
 
 
8825
 
 
8826
 
 
8827
 
 
8828
case $host_os in
 
8829
aix3*)
 
8830
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8831
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8832
  # vanish in a puff of smoke.
 
8833
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8834
    COLLECT_NAMES=
 
8835
    export COLLECT_NAMES
 
8836
  fi
 
8837
  ;;
 
8838
esac
 
8839
 
 
8840
# Global variables:
 
8841
ofile=libtool
 
8842
can_build_shared=yes
 
8843
 
 
8844
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8845
# which needs '.lib').
 
8846
libext=a
 
8847
 
 
8848
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8849
 
 
8850
old_CC="$CC"
 
8851
old_CFLAGS="$CFLAGS"
 
8852
 
 
8853
# Set sane defaults for various variables
 
8854
test -z "$CC" && CC=cc
 
8855
test -z "$LTCC" && LTCC=$CC
 
8856
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8857
test -z "$LD" && LD=ld
 
8858
test -z "$ac_objext" && ac_objext=o
 
8859
 
 
8860
for cc_temp in $compiler""; do
 
8861
  case $cc_temp in
 
8862
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8863
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8864
    \-*) ;;
 
8865
    *) break;;
 
8866
  esac
 
8867
done
 
8868
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8869
 
 
8870
 
 
8871
# Only perform the check for file, if the check method requires it
 
8872
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8873
case $deplibs_check_method in
 
8874
file_magic*)
 
8875
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8876
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8877
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8878
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8879
  $as_echo_n "(cached) " >&6
 
8880
else
 
8881
  case $MAGIC_CMD in
 
8882
[\\/*] |  ?:[\\/]*)
 
8883
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8884
  ;;
 
8885
*)
 
8886
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8887
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8888
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8889
  for ac_dir in $ac_dummy; do
 
8890
    IFS="$lt_save_ifs"
 
8891
    test -z "$ac_dir" && ac_dir=.
 
8892
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8893
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8894
      if test -n "$file_magic_test_file"; then
 
8895
        case $deplibs_check_method in
 
8896
        "file_magic "*)
 
8897
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8898
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8899
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8900
            $EGREP "$file_magic_regex" > /dev/null; then
 
8901
            :
 
8902
          else
 
8903
            cat <<_LT_EOF 1>&2
 
8904
 
 
8905
*** Warning: the command libtool uses to detect shared libraries,
 
8906
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8907
*** The result is that libtool may fail to recognize shared libraries
 
8908
*** as such.  This will affect the creation of libtool libraries that
 
8909
*** depend on shared libraries, but programs linked with such libtool
 
8910
*** libraries will work regardless of this problem.  Nevertheless, you
 
8911
*** may want to report the problem to your system manager and/or to
 
8912
*** bug-libtool@gnu.org
 
8913
 
 
8914
_LT_EOF
 
8915
          fi ;;
 
8916
        esac
 
8917
      fi
 
8918
      break
 
8919
    fi
 
8920
  done
 
8921
  IFS="$lt_save_ifs"
 
8922
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8923
  ;;
 
8924
esac
 
8925
fi
 
8926
 
 
8927
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8928
if test -n "$MAGIC_CMD"; then
 
8929
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8930
$as_echo "$MAGIC_CMD" >&6; }
 
8931
else
 
8932
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8933
$as_echo "no" >&6; }
 
8934
fi
 
8935
 
 
8936
 
 
8937
 
 
8938
 
 
8939
 
 
8940
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8941
  if test -n "$ac_tool_prefix"; then
 
8942
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8943
$as_echo_n "checking for file... " >&6; }
 
8944
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8945
  $as_echo_n "(cached) " >&6
 
8946
else
 
8947
  case $MAGIC_CMD in
 
8948
[\\/*] |  ?:[\\/]*)
 
8949
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8950
  ;;
 
8951
*)
 
8952
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8953
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8954
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8955
  for ac_dir in $ac_dummy; do
 
8956
    IFS="$lt_save_ifs"
 
8957
    test -z "$ac_dir" && ac_dir=.
 
8958
    if test -f $ac_dir/file; then
 
8959
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8960
      if test -n "$file_magic_test_file"; then
 
8961
        case $deplibs_check_method in
 
8962
        "file_magic "*)
 
8963
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8964
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8965
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8966
            $EGREP "$file_magic_regex" > /dev/null; then
 
8967
            :
 
8968
          else
 
8969
            cat <<_LT_EOF 1>&2
 
8970
 
 
8971
*** Warning: the command libtool uses to detect shared libraries,
 
8972
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8973
*** The result is that libtool may fail to recognize shared libraries
 
8974
*** as such.  This will affect the creation of libtool libraries that
 
8975
*** depend on shared libraries, but programs linked with such libtool
 
8976
*** libraries will work regardless of this problem.  Nevertheless, you
 
8977
*** may want to report the problem to your system manager and/or to
 
8978
*** bug-libtool@gnu.org
 
8979
 
 
8980
_LT_EOF
 
8981
          fi ;;
 
8982
        esac
 
8983
      fi
 
8984
      break
 
8985
    fi
 
8986
  done
 
8987
  IFS="$lt_save_ifs"
 
8988
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8989
  ;;
 
8990
esac
 
8991
fi
 
8992
 
 
8993
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8994
if test -n "$MAGIC_CMD"; then
 
8995
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8996
$as_echo "$MAGIC_CMD" >&6; }
 
8997
else
 
8998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8999
$as_echo "no" >&6; }
 
9000
fi
 
9001
 
 
9002
 
 
9003
  else
 
9004
    MAGIC_CMD=:
 
9005
  fi
 
9006
fi
 
9007
 
 
9008
  fi
 
9009
  ;;
 
9010
esac
 
9011
 
 
9012
# Use C for the default configuration in the libtool script
 
9013
 
 
9014
lt_save_CC="$CC"
 
9015
ac_ext=c
 
9016
ac_cpp='$CPP $CPPFLAGS'
 
9017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9020
 
 
9021
 
 
9022
# Source file extension for C test sources.
 
9023
ac_ext=c
 
9024
 
 
9025
# Object file extension for compiled C test sources.
 
9026
objext=o
 
9027
objext=$objext
 
9028
 
 
9029
# Code to be used in simple compile tests
 
9030
lt_simple_compile_test_code="int some_variable = 0;"
 
9031
 
 
9032
# Code to be used in simple link tests
 
9033
lt_simple_link_test_code='int main(){return(0);}'
 
9034
 
 
9035
 
 
9036
 
 
9037
 
 
9038
 
 
9039
 
 
9040
 
 
9041
# If no C compiler was specified, use CC.
 
9042
LTCC=${LTCC-"$CC"}
 
9043
 
 
9044
# If no C compiler flags were specified, use CFLAGS.
 
9045
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9046
 
 
9047
# Allow CC to be a program name with arguments.
 
9048
compiler=$CC
 
9049
 
 
9050
# Save the default compiler, since it gets overwritten when the other
 
9051
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
9052
compiler_DEFAULT=$CC
 
9053
 
 
9054
# save warnings/boilerplate of simple test code
 
9055
ac_outfile=conftest.$ac_objext
 
9056
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9057
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9058
_lt_compiler_boilerplate=`cat conftest.err`
 
9059
$RM conftest*
 
9060
 
 
9061
ac_outfile=conftest.$ac_objext
 
9062
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
9063
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9064
_lt_linker_boilerplate=`cat conftest.err`
 
9065
$RM -r conftest*
 
9066
 
 
9067
 
 
9068
## CAVEAT EMPTOR:
 
9069
## There is no encapsulation within the following macros, do not change
 
9070
## the running order or otherwise move them around unless you know exactly
 
9071
## what you are doing...
 
9072
if test -n "$compiler"; then
 
9073
 
 
9074
lt_prog_compiler_no_builtin_flag=
 
9075
 
 
9076
if test "$GCC" = yes; then
 
9077
  case $cc_basename in
 
9078
  nvcc*)
 
9079
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
9080
  *)
 
9081
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
9082
  esac
 
9083
 
 
9084
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9085
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
9086
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
9087
  $as_echo_n "(cached) " >&6
 
9088
else
 
9089
  lt_cv_prog_compiler_rtti_exceptions=no
 
9090
   ac_outfile=conftest.$ac_objext
 
9091
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9092
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9093
   # Insert the option either (1) after the last *FLAGS variable, or
 
9094
   # (2) before a word containing "conftest.", or (3) at the end.
 
9095
   # Note that $ac_compile itself does not contain backslashes and begins
 
9096
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9097
   # The option is referenced via a variable to avoid confusing sed.
 
9098
   lt_compile=`echo "$ac_compile" | $SED \
 
9099
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9100
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9101
   -e 's:$: $lt_compiler_flag:'`
 
9102
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9103
   (eval "$lt_compile" 2>conftest.err)
 
9104
   ac_status=$?
 
9105
   cat conftest.err >&5
 
9106
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9107
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9108
     # The compiler can only warn and ignore the option if not recognized
 
9109
     # So say no if there are warnings other than the usual output.
 
9110
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9111
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9112
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9113
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9114
     fi
 
9115
   fi
 
9116
   $RM conftest*
 
9117
 
 
9118
fi
 
9119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9120
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
9121
 
 
9122
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9123
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9124
else
 
9125
    :
 
9126
fi
 
9127
 
 
9128
fi
 
9129
 
 
9130
 
 
9131
 
 
9132
 
 
9133
 
 
9134
 
 
9135
  lt_prog_compiler_wl=
 
9136
lt_prog_compiler_pic=
 
9137
lt_prog_compiler_static=
 
9138
 
 
9139
 
 
9140
  if test "$GCC" = yes; then
 
9141
    lt_prog_compiler_wl='-Wl,'
 
9142
    lt_prog_compiler_static='-static'
 
9143
 
 
9144
    case $host_os in
 
9145
      aix*)
 
9146
      # All AIX code is PIC.
 
9147
      if test "$host_cpu" = ia64; then
 
9148
        # AIX 5 now supports IA64 processor
 
9149
        lt_prog_compiler_static='-Bstatic'
 
9150
      fi
 
9151
      ;;
 
9152
 
 
9153
    amigaos*)
 
9154
      case $host_cpu in
 
9155
      powerpc)
 
9156
            # see comment about AmigaOS4 .so support
 
9157
            lt_prog_compiler_pic='-fPIC'
 
9158
        ;;
 
9159
      m68k)
 
9160
            # FIXME: we need at least 68020 code to build shared libraries, but
 
9161
            # adding the `-m68020' flag to GCC prevents building anything better,
 
9162
            # like `-m68040'.
 
9163
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9164
        ;;
 
9165
      esac
 
9166
      ;;
 
9167
 
 
9168
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9169
      # PIC is the default for these OSes.
 
9170
      ;;
 
9171
 
 
9172
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9173
      # This hack is so that the source file can tell whether it is being
 
9174
      # built for inclusion in a dll (and should export symbols for example).
 
9175
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
9176
      # (--disable-auto-import) libraries
 
9177
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9178
      ;;
 
9179
 
 
9180
    darwin* | rhapsody*)
 
9181
      # PIC is the default on this platform
 
9182
      # Common symbols not allowed in MH_DYLIB files
 
9183
      lt_prog_compiler_pic='-fno-common'
 
9184
      ;;
 
9185
 
 
9186
    haiku*)
 
9187
      # PIC is the default for Haiku.
 
9188
      # The "-static" flag exists, but is broken.
 
9189
      lt_prog_compiler_static=
 
9190
      ;;
 
9191
 
 
9192
    hpux*)
 
9193
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
9194
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
9195
      # sets the default TLS model and affects inlining.
 
9196
      case $host_cpu in
 
9197
      hppa*64*)
 
9198
        # +Z the default
 
9199
        ;;
 
9200
      *)
 
9201
        lt_prog_compiler_pic='-fPIC'
 
9202
        ;;
 
9203
      esac
 
9204
      ;;
 
9205
 
 
9206
    interix[3-9]*)
 
9207
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9208
      # Instead, we relocate shared libraries at runtime.
 
9209
      ;;
 
9210
 
 
9211
    msdosdjgpp*)
 
9212
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9213
      # on systems that don't support them.
 
9214
      lt_prog_compiler_can_build_shared=no
 
9215
      enable_shared=no
 
9216
      ;;
 
9217
 
 
9218
    *nto* | *qnx*)
 
9219
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9220
      # it will coredump.
 
9221
      lt_prog_compiler_pic='-fPIC -shared'
 
9222
      ;;
 
9223
 
 
9224
    sysv4*MP*)
 
9225
      if test -d /usr/nec; then
 
9226
        lt_prog_compiler_pic=-Kconform_pic
 
9227
      fi
 
9228
      ;;
 
9229
 
 
9230
    *)
 
9231
      lt_prog_compiler_pic='-fPIC'
 
9232
      ;;
 
9233
    esac
 
9234
 
 
9235
    case $cc_basename in
 
9236
    nvcc*) # Cuda Compiler Driver 2.2
 
9237
      lt_prog_compiler_wl='-Xlinker '
 
9238
      if test -n "$lt_prog_compiler_pic"; then
 
9239
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
9240
      fi
 
9241
      ;;
 
9242
    esac
 
9243
  else
 
9244
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9245
    case $host_os in
 
9246
    aix*)
 
9247
      lt_prog_compiler_wl='-Wl,'
 
9248
      if test "$host_cpu" = ia64; then
 
9249
        # AIX 5 now supports IA64 processor
 
9250
        lt_prog_compiler_static='-Bstatic'
 
9251
      else
 
9252
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9253
      fi
 
9254
      ;;
 
9255
 
 
9256
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9257
      # This hack is so that the source file can tell whether it is being
 
9258
      # built for inclusion in a dll (and should export symbols for example).
 
9259
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9260
      ;;
 
9261
 
 
9262
    hpux9* | hpux10* | hpux11*)
 
9263
      lt_prog_compiler_wl='-Wl,'
 
9264
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9265
      # not for PA HP-UX.
 
9266
      case $host_cpu in
 
9267
      hppa*64*|ia64*)
 
9268
        # +Z the default
 
9269
        ;;
 
9270
      *)
 
9271
        lt_prog_compiler_pic='+Z'
 
9272
        ;;
 
9273
      esac
 
9274
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9275
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9276
      ;;
 
9277
 
 
9278
    irix5* | irix6* | nonstopux*)
 
9279
      lt_prog_compiler_wl='-Wl,'
 
9280
      # PIC (with -KPIC) is the default.
 
9281
      lt_prog_compiler_static='-non_shared'
 
9282
      ;;
 
9283
 
 
9284
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
9285
      case $cc_basename in
 
9286
      # old Intel for x86_64 which still supported -KPIC.
 
9287
      ecc*)
 
9288
        lt_prog_compiler_wl='-Wl,'
 
9289
        lt_prog_compiler_pic='-KPIC'
 
9290
        lt_prog_compiler_static='-static'
 
9291
        ;;
 
9292
      # icc used to be incompatible with GCC.
 
9293
      # ICC 10 doesn't accept -KPIC any more.
 
9294
      icc* | ifort*)
 
9295
        lt_prog_compiler_wl='-Wl,'
 
9296
        lt_prog_compiler_pic='-fPIC'
 
9297
        lt_prog_compiler_static='-static'
 
9298
        ;;
 
9299
      # Lahey Fortran 8.1.
 
9300
      lf95*)
 
9301
        lt_prog_compiler_wl='-Wl,'
 
9302
        lt_prog_compiler_pic='--shared'
 
9303
        lt_prog_compiler_static='--static'
 
9304
        ;;
 
9305
      nagfor*)
 
9306
        # NAG Fortran compiler
 
9307
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9308
        lt_prog_compiler_pic='-PIC'
 
9309
        lt_prog_compiler_static='-Bstatic'
 
9310
        ;;
 
9311
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
9312
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9313
        # which looks to be a dead project)
 
9314
        lt_prog_compiler_wl='-Wl,'
 
9315
        lt_prog_compiler_pic='-fpic'
 
9316
        lt_prog_compiler_static='-Bstatic'
 
9317
        ;;
 
9318
      ccc*)
 
9319
        lt_prog_compiler_wl='-Wl,'
 
9320
        # All Alpha code is PIC.
 
9321
        lt_prog_compiler_static='-non_shared'
 
9322
        ;;
 
9323
      xl* | bgxl* | bgf* | mpixl*)
 
9324
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
9325
        lt_prog_compiler_wl='-Wl,'
 
9326
        lt_prog_compiler_pic='-qpic'
 
9327
        lt_prog_compiler_static='-qstaticlink'
 
9328
        ;;
 
9329
      *)
 
9330
        case `$CC -V 2>&1 | sed 5q` in
 
9331
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
9332
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9333
          lt_prog_compiler_pic='-KPIC'
 
9334
          lt_prog_compiler_static='-Bstatic'
 
9335
          lt_prog_compiler_wl=''
 
9336
          ;;
 
9337
        *Sun\ F* | *Sun*Fortran*)
 
9338
          lt_prog_compiler_pic='-KPIC'
 
9339
          lt_prog_compiler_static='-Bstatic'
 
9340
          lt_prog_compiler_wl='-Qoption ld '
 
9341
          ;;
 
9342
        *Sun\ C*)
 
9343
          # Sun C 5.9
 
9344
          lt_prog_compiler_pic='-KPIC'
 
9345
          lt_prog_compiler_static='-Bstatic'
 
9346
          lt_prog_compiler_wl='-Wl,'
 
9347
          ;;
 
9348
        *Intel*\ [CF]*Compiler*)
 
9349
          lt_prog_compiler_wl='-Wl,'
 
9350
          lt_prog_compiler_pic='-fPIC'
 
9351
          lt_prog_compiler_static='-static'
 
9352
          ;;
 
9353
        *Portland\ Group*)
 
9354
          lt_prog_compiler_wl='-Wl,'
 
9355
          lt_prog_compiler_pic='-fpic'
 
9356
          lt_prog_compiler_static='-Bstatic'
 
9357
          ;;
 
9358
        esac
 
9359
        ;;
 
9360
      esac
 
9361
      ;;
 
9362
 
 
9363
    newsos6)
 
9364
      lt_prog_compiler_pic='-KPIC'
 
9365
      lt_prog_compiler_static='-Bstatic'
 
9366
      ;;
 
9367
 
 
9368
    *nto* | *qnx*)
 
9369
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9370
      # it will coredump.
 
9371
      lt_prog_compiler_pic='-fPIC -shared'
 
9372
      ;;
 
9373
 
 
9374
    osf3* | osf4* | osf5*)
 
9375
      lt_prog_compiler_wl='-Wl,'
 
9376
      # All OSF/1 code is PIC.
 
9377
      lt_prog_compiler_static='-non_shared'
 
9378
      ;;
 
9379
 
 
9380
    rdos*)
 
9381
      lt_prog_compiler_static='-non_shared'
 
9382
      ;;
 
9383
 
 
9384
    solaris*)
 
9385
      lt_prog_compiler_pic='-KPIC'
 
9386
      lt_prog_compiler_static='-Bstatic'
 
9387
      case $cc_basename in
 
9388
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
9389
        lt_prog_compiler_wl='-Qoption ld ';;
 
9390
      *)
 
9391
        lt_prog_compiler_wl='-Wl,';;
 
9392
      esac
 
9393
      ;;
 
9394
 
 
9395
    sunos4*)
 
9396
      lt_prog_compiler_wl='-Qoption ld '
 
9397
      lt_prog_compiler_pic='-PIC'
 
9398
      lt_prog_compiler_static='-Bstatic'
 
9399
      ;;
 
9400
 
 
9401
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9402
      lt_prog_compiler_wl='-Wl,'
 
9403
      lt_prog_compiler_pic='-KPIC'
 
9404
      lt_prog_compiler_static='-Bstatic'
 
9405
      ;;
 
9406
 
 
9407
    sysv4*MP*)
 
9408
      if test -d /usr/nec ;then
 
9409
        lt_prog_compiler_pic='-Kconform_pic'
 
9410
        lt_prog_compiler_static='-Bstatic'
 
9411
      fi
 
9412
      ;;
 
9413
 
 
9414
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9415
      lt_prog_compiler_wl='-Wl,'
 
9416
      lt_prog_compiler_pic='-KPIC'
 
9417
      lt_prog_compiler_static='-Bstatic'
 
9418
      ;;
 
9419
 
 
9420
    unicos*)
 
9421
      lt_prog_compiler_wl='-Wl,'
 
9422
      lt_prog_compiler_can_build_shared=no
 
9423
      ;;
 
9424
 
 
9425
    uts4*)
 
9426
      lt_prog_compiler_pic='-pic'
 
9427
      lt_prog_compiler_static='-Bstatic'
 
9428
      ;;
 
9429
 
 
9430
    *)
 
9431
      lt_prog_compiler_can_build_shared=no
 
9432
      ;;
 
9433
    esac
 
9434
  fi
 
9435
 
 
9436
case $host_os in
 
9437
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9438
  *djgpp*)
 
9439
    lt_prog_compiler_pic=
 
9440
    ;;
 
9441
  *)
 
9442
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9443
    ;;
 
9444
esac
 
9445
 
 
9446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9447
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9448
if ${lt_cv_prog_compiler_pic+:} false; then :
 
9449
  $as_echo_n "(cached) " >&6
 
9450
else
 
9451
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9452
fi
 
9453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9454
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
9455
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
9456
 
 
9457
#
 
9458
# Check to make sure the PIC flag actually works.
 
9459
#
 
9460
if test -n "$lt_prog_compiler_pic"; then
 
9461
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9462
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9463
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
9464
  $as_echo_n "(cached) " >&6
 
9465
else
 
9466
  lt_cv_prog_compiler_pic_works=no
 
9467
   ac_outfile=conftest.$ac_objext
 
9468
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9469
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9470
   # Insert the option either (1) after the last *FLAGS variable, or
 
9471
   # (2) before a word containing "conftest.", or (3) at the end.
 
9472
   # Note that $ac_compile itself does not contain backslashes and begins
 
9473
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9474
   # The option is referenced via a variable to avoid confusing sed.
 
9475
   lt_compile=`echo "$ac_compile" | $SED \
 
9476
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9477
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9478
   -e 's:$: $lt_compiler_flag:'`
 
9479
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9480
   (eval "$lt_compile" 2>conftest.err)
 
9481
   ac_status=$?
 
9482
   cat conftest.err >&5
 
9483
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9484
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9485
     # The compiler can only warn and ignore the option if not recognized
 
9486
     # So say no if there are warnings other than the usual output.
 
9487
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9488
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9489
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9490
       lt_cv_prog_compiler_pic_works=yes
 
9491
     fi
 
9492
   fi
 
9493
   $RM conftest*
 
9494
 
 
9495
fi
 
9496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9497
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9498
 
 
9499
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9500
    case $lt_prog_compiler_pic in
 
9501
     "" | " "*) ;;
 
9502
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9503
     esac
 
9504
else
 
9505
    lt_prog_compiler_pic=
 
9506
     lt_prog_compiler_can_build_shared=no
 
9507
fi
 
9508
 
 
9509
fi
 
9510
 
 
9511
 
 
9512
 
 
9513
 
 
9514
 
 
9515
 
 
9516
 
 
9517
 
 
9518
 
 
9519
 
 
9520
 
 
9521
#
 
9522
# Check to make sure the static flag actually works.
 
9523
#
 
9524
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9526
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9527
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9528
  $as_echo_n "(cached) " >&6
 
9529
else
 
9530
  lt_cv_prog_compiler_static_works=no
 
9531
   save_LDFLAGS="$LDFLAGS"
 
9532
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9533
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9534
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9535
     # The linker can only warn and ignore the option if not recognized
 
9536
     # So say no if there are warnings
 
9537
     if test -s conftest.err; then
 
9538
       # Append any errors to the config.log.
 
9539
       cat conftest.err 1>&5
 
9540
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9541
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9542
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9543
         lt_cv_prog_compiler_static_works=yes
 
9544
       fi
 
9545
     else
 
9546
       lt_cv_prog_compiler_static_works=yes
 
9547
     fi
 
9548
   fi
 
9549
   $RM -r conftest*
 
9550
   LDFLAGS="$save_LDFLAGS"
 
9551
 
 
9552
fi
 
9553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9554
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9555
 
 
9556
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9557
    :
 
9558
else
 
9559
    lt_prog_compiler_static=
 
9560
fi
 
9561
 
 
9562
 
 
9563
 
 
9564
 
 
9565
 
 
9566
 
 
9567
 
 
9568
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9569
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9570
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9571
  $as_echo_n "(cached) " >&6
 
9572
else
 
9573
  lt_cv_prog_compiler_c_o=no
 
9574
   $RM -r conftest 2>/dev/null
 
9575
   mkdir conftest
 
9576
   cd conftest
 
9577
   mkdir out
 
9578
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9579
 
 
9580
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9581
   # Insert the option either (1) after the last *FLAGS variable, or
 
9582
   # (2) before a word containing "conftest.", or (3) at the end.
 
9583
   # Note that $ac_compile itself does not contain backslashes and begins
 
9584
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9585
   lt_compile=`echo "$ac_compile" | $SED \
 
9586
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9587
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9588
   -e 's:$: $lt_compiler_flag:'`
 
9589
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9590
   (eval "$lt_compile" 2>out/conftest.err)
 
9591
   ac_status=$?
 
9592
   cat out/conftest.err >&5
 
9593
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9594
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9595
   then
 
9596
     # The compiler can only warn and ignore the option if not recognized
 
9597
     # So say no if there are warnings
 
9598
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9599
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9600
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9601
       lt_cv_prog_compiler_c_o=yes
 
9602
     fi
 
9603
   fi
 
9604
   chmod u+w . 2>&5
 
9605
   $RM conftest*
 
9606
   # SGI C++ compiler will create directory out/ii_files/ for
 
9607
   # template instantiation
 
9608
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9609
   $RM out/* && rmdir out
 
9610
   cd ..
 
9611
   $RM -r conftest
 
9612
   $RM conftest*
 
9613
 
 
9614
fi
 
9615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9616
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9617
 
 
9618
 
 
9619
 
 
9620
 
 
9621
 
 
9622
 
 
9623
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9624
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9625
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9626
  $as_echo_n "(cached) " >&6
 
9627
else
 
9628
  lt_cv_prog_compiler_c_o=no
 
9629
   $RM -r conftest 2>/dev/null
 
9630
   mkdir conftest
 
9631
   cd conftest
 
9632
   mkdir out
 
9633
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9634
 
 
9635
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9636
   # Insert the option either (1) after the last *FLAGS variable, or
 
9637
   # (2) before a word containing "conftest.", or (3) at the end.
 
9638
   # Note that $ac_compile itself does not contain backslashes and begins
 
9639
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9640
   lt_compile=`echo "$ac_compile" | $SED \
 
9641
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9642
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9643
   -e 's:$: $lt_compiler_flag:'`
 
9644
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9645
   (eval "$lt_compile" 2>out/conftest.err)
 
9646
   ac_status=$?
 
9647
   cat out/conftest.err >&5
 
9648
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9649
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9650
   then
 
9651
     # The compiler can only warn and ignore the option if not recognized
 
9652
     # So say no if there are warnings
 
9653
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9654
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9655
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9656
       lt_cv_prog_compiler_c_o=yes
 
9657
     fi
 
9658
   fi
 
9659
   chmod u+w . 2>&5
 
9660
   $RM conftest*
 
9661
   # SGI C++ compiler will create directory out/ii_files/ for
 
9662
   # template instantiation
 
9663
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9664
   $RM out/* && rmdir out
 
9665
   cd ..
 
9666
   $RM -r conftest
 
9667
   $RM conftest*
 
9668
 
 
9669
fi
 
9670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9671
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9672
 
 
9673
 
 
9674
 
 
9675
 
 
9676
hard_links="nottested"
 
9677
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9678
  # do not overwrite the value of need_locks provided by the user
 
9679
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9680
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9681
  hard_links=yes
 
9682
  $RM conftest*
 
9683
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9684
  touch conftest.a
 
9685
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9686
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9688
$as_echo "$hard_links" >&6; }
 
9689
  if test "$hard_links" = no; then
 
9690
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9691
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9692
    need_locks=warn
 
9693
  fi
 
9694
else
 
9695
  need_locks=no
 
9696
fi
 
9697
 
 
9698
 
 
9699
 
 
9700
 
 
9701
 
 
9702
 
 
9703
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9704
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9705
 
 
9706
  runpath_var=
 
9707
  allow_undefined_flag=
 
9708
  always_export_symbols=no
 
9709
  archive_cmds=
 
9710
  archive_expsym_cmds=
 
9711
  compiler_needs_object=no
 
9712
  enable_shared_with_static_runtimes=no
 
9713
  export_dynamic_flag_spec=
 
9714
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9715
  hardcode_automatic=no
 
9716
  hardcode_direct=no
 
9717
  hardcode_direct_absolute=no
 
9718
  hardcode_libdir_flag_spec=
 
9719
  hardcode_libdir_separator=
 
9720
  hardcode_minus_L=no
 
9721
  hardcode_shlibpath_var=unsupported
 
9722
  inherit_rpath=no
 
9723
  link_all_deplibs=unknown
 
9724
  module_cmds=
 
9725
  module_expsym_cmds=
 
9726
  old_archive_from_new_cmds=
 
9727
  old_archive_from_expsyms_cmds=
 
9728
  thread_safe_flag_spec=
 
9729
  whole_archive_flag_spec=
 
9730
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9731
  # included in the symbol list
 
9732
  include_expsyms=
 
9733
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9734
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9735
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9736
  # as well as any symbol that contains `d'.
 
9737
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9738
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9739
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9740
  # the symbol is explicitly referenced.  Since portable code cannot
 
9741
  # rely on this symbol name, it's probably fine to never include it in
 
9742
  # preloaded symbol tables.
 
9743
  # Exclude shared library initialization/finalization symbols.
 
9744
  extract_expsyms_cmds=
 
9745
 
 
9746
  case $host_os in
 
9747
  cygwin* | mingw* | pw32* | cegcc*)
 
9748
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9749
    # When not using gcc, we currently assume that we are using
 
9750
    # Microsoft Visual C++.
 
9751
    if test "$GCC" != yes; then
 
9752
      with_gnu_ld=no
 
9753
    fi
 
9754
    ;;
 
9755
  interix*)
 
9756
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9757
    with_gnu_ld=yes
 
9758
    ;;
 
9759
  openbsd*)
 
9760
    with_gnu_ld=no
 
9761
    ;;
 
9762
  linux* | k*bsd*-gnu | gnu*)
 
9763
    link_all_deplibs=no
 
9764
    ;;
 
9765
  esac
 
9766
 
 
9767
  ld_shlibs=yes
 
9768
 
 
9769
  # On some targets, GNU ld is compatible enough with the native linker
 
9770
  # that we're better off using the native interface for both.
 
9771
  lt_use_gnu_ld_interface=no
 
9772
  if test "$with_gnu_ld" = yes; then
 
9773
    case $host_os in
 
9774
      aix*)
 
9775
        # The AIX port of GNU ld has always aspired to compatibility
 
9776
        # with the native linker.  However, as the warning in the GNU ld
 
9777
        # block says, versions before 2.19.5* couldn't really create working
 
9778
        # shared libraries, regardless of the interface used.
 
9779
        case `$LD -v 2>&1` in
 
9780
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9781
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9782
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9783
          *)
 
9784
            lt_use_gnu_ld_interface=yes
 
9785
            ;;
 
9786
        esac
 
9787
        ;;
 
9788
      *)
 
9789
        lt_use_gnu_ld_interface=yes
 
9790
        ;;
 
9791
    esac
 
9792
  fi
 
9793
 
 
9794
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9795
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9796
    wlarc='${wl}'
 
9797
 
 
9798
    # Set some defaults for GNU ld with shared library support. These
 
9799
    # are reset later if shared libraries are not supported. Putting them
 
9800
    # here allows them to be overridden if necessary.
 
9801
    runpath_var=LD_RUN_PATH
 
9802
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9803
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9804
    # ancient GNU ld didn't support --whole-archive et. al.
 
9805
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9806
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9807
    else
 
9808
      whole_archive_flag_spec=
 
9809
    fi
 
9810
    supports_anon_versioning=no
 
9811
    case `$LD -v 2>&1` in
 
9812
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9813
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9814
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9815
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9816
      *\ 2.11.*) ;; # other 2.11 versions
 
9817
      *) supports_anon_versioning=yes ;;
 
9818
    esac
 
9819
 
 
9820
    # See if GNU ld supports shared libraries.
 
9821
    case $host_os in
 
9822
    aix[3-9]*)
 
9823
      # On AIX/PPC, the GNU linker is very broken
 
9824
      if test "$host_cpu" != ia64; then
 
9825
        ld_shlibs=no
 
9826
        cat <<_LT_EOF 1>&2
 
9827
 
 
9828
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9829
*** to be unable to reliably create shared libraries on AIX.
 
9830
*** Therefore, libtool is disabling shared libraries support.  If you
 
9831
*** really care for shared libraries, you may want to install binutils
 
9832
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9833
*** You will then need to restart the configuration process.
 
9834
 
 
9835
_LT_EOF
 
9836
      fi
 
9837
      ;;
 
9838
 
 
9839
    amigaos*)
 
9840
      case $host_cpu in
 
9841
      powerpc)
 
9842
            # see comment about AmigaOS4 .so support
 
9843
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9844
            archive_expsym_cmds=''
 
9845
        ;;
 
9846
      m68k)
 
9847
            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)'
 
9848
            hardcode_libdir_flag_spec='-L$libdir'
 
9849
            hardcode_minus_L=yes
 
9850
        ;;
 
9851
      esac
 
9852
      ;;
 
9853
 
 
9854
    beos*)
 
9855
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9856
        allow_undefined_flag=unsupported
 
9857
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9858
        # support --undefined.  This deserves some investigation.  FIXME
 
9859
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9860
      else
 
9861
        ld_shlibs=no
 
9862
      fi
 
9863
      ;;
 
9864
 
 
9865
    cygwin* | mingw* | pw32* | cegcc*)
 
9866
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9867
      # as there is no search path for DLLs.
 
9868
      hardcode_libdir_flag_spec='-L$libdir'
 
9869
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9870
      allow_undefined_flag=unsupported
 
9871
      always_export_symbols=no
 
9872
      enable_shared_with_static_runtimes=yes
 
9873
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
9874
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9875
 
 
9876
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9877
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9878
        # If the export-symbols file already is a .def file (1st line
 
9879
        # is EXPORTS), use it as is; otherwise, prepend...
 
9880
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9881
          cp $export_symbols $output_objdir/$soname.def;
 
9882
        else
 
9883
          echo EXPORTS > $output_objdir/$soname.def;
 
9884
          cat $export_symbols >> $output_objdir/$soname.def;
 
9885
        fi~
 
9886
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9887
      else
 
9888
        ld_shlibs=no
 
9889
      fi
 
9890
      ;;
 
9891
 
 
9892
    haiku*)
 
9893
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9894
      link_all_deplibs=yes
 
9895
      ;;
 
9896
 
 
9897
    interix[3-9]*)
 
9898
      hardcode_direct=no
 
9899
      hardcode_shlibpath_var=no
 
9900
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9901
      export_dynamic_flag_spec='${wl}-E'
 
9902
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9903
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9904
      # default) and relocated if they conflict, which is a slow very memory
 
9905
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9906
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9907
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9908
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9909
      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'
 
9910
      ;;
 
9911
 
 
9912
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9913
      tmp_diet=no
 
9914
      if test "$host_os" = linux-dietlibc; then
 
9915
        case $cc_basename in
 
9916
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9917
        esac
 
9918
      fi
 
9919
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9920
         && test "$tmp_diet" = no
 
9921
      then
 
9922
        tmp_addflag=' $pic_flag'
 
9923
        tmp_sharedflag='-shared'
 
9924
        case $cc_basename,$host_cpu in
 
9925
        pgcc*)                          # Portland Group C compiler
 
9926
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9927
          tmp_addflag=' $pic_flag'
 
9928
          ;;
 
9929
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9930
                                        # Portland Group f77 and f90 compilers
 
9931
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9932
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9933
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9934
          tmp_addflag=' -i_dynamic' ;;
 
9935
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9936
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9937
        ifc* | ifort*)                  # Intel Fortran compiler
 
9938
          tmp_addflag=' -nofor_main' ;;
 
9939
        lf95*)                          # Lahey Fortran 8.1
 
9940
          whole_archive_flag_spec=
 
9941
          tmp_sharedflag='--shared' ;;
 
9942
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9943
          tmp_sharedflag='-qmkshrobj'
 
9944
          tmp_addflag= ;;
 
9945
        nvcc*)  # Cuda Compiler Driver 2.2
 
9946
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9947
          compiler_needs_object=yes
 
9948
          ;;
 
9949
        esac
 
9950
        case `$CC -V 2>&1 | sed 5q` in
 
9951
        *Sun\ C*)                       # Sun C 5.9
 
9952
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9953
          compiler_needs_object=yes
 
9954
          tmp_sharedflag='-G' ;;
 
9955
        *Sun\ F*)                       # Sun Fortran 8.3
 
9956
          tmp_sharedflag='-G' ;;
 
9957
        esac
 
9958
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9959
 
 
9960
        if test "x$supports_anon_versioning" = xyes; then
 
9961
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9962
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9963
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9964
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9965
        fi
 
9966
 
 
9967
        case $cc_basename in
 
9968
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9969
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9970
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9971
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9972
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9973
          if test "x$supports_anon_versioning" = xyes; then
 
9974
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9975
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9976
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9977
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9978
          fi
 
9979
          ;;
 
9980
        esac
 
9981
      else
 
9982
        ld_shlibs=no
 
9983
      fi
 
9984
      ;;
 
9985
 
 
9986
    netbsd* | netbsdelf*-gnu)
 
9987
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9988
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9989
        wlarc=
 
9990
      else
 
9991
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9992
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9993
      fi
 
9994
      ;;
 
9995
 
 
9996
    solaris*)
 
9997
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9998
        ld_shlibs=no
 
9999
        cat <<_LT_EOF 1>&2
 
10000
 
 
10001
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
10002
*** create shared libraries on Solaris systems.  Therefore, libtool
 
10003
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10004
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
10005
*** your PATH or compiler configuration so that the native linker is
 
10006
*** used, and then restart.
 
10007
 
 
10008
_LT_EOF
 
10009
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10010
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10011
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10012
      else
 
10013
        ld_shlibs=no
 
10014
      fi
 
10015
      ;;
 
10016
 
 
10017
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
10018
      case `$LD -v 2>&1` in
 
10019
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
10020
        ld_shlibs=no
 
10021
        cat <<_LT_EOF 1>&2
 
10022
 
 
10023
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
10024
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
10025
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10026
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
10027
*** your PATH or compiler configuration so that the native linker is
 
10028
*** used, and then restart.
 
10029
 
 
10030
_LT_EOF
 
10031
        ;;
 
10032
        *)
 
10033
          # For security reasons, it is highly recommended that you always
 
10034
          # use absolute paths for naming shared libraries, and exclude the
 
10035
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
10036
          # requires that you compile everything twice, which is a pain.
 
10037
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10038
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10039
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10040
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10041
          else
 
10042
            ld_shlibs=no
 
10043
          fi
 
10044
        ;;
 
10045
      esac
 
10046
      ;;
 
10047
 
 
10048
    sunos4*)
 
10049
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10050
      wlarc=
 
10051
      hardcode_direct=yes
 
10052
      hardcode_shlibpath_var=no
 
10053
      ;;
 
10054
 
 
10055
    *)
 
10056
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10057
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10058
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10059
      else
 
10060
        ld_shlibs=no
 
10061
      fi
 
10062
      ;;
 
10063
    esac
 
10064
 
 
10065
    if test "$ld_shlibs" = no; then
 
10066
      runpath_var=
 
10067
      hardcode_libdir_flag_spec=
 
10068
      export_dynamic_flag_spec=
 
10069
      whole_archive_flag_spec=
 
10070
    fi
 
10071
  else
 
10072
    # PORTME fill in a description of your system's linker (not GNU ld)
 
10073
    case $host_os in
 
10074
    aix3*)
 
10075
      allow_undefined_flag=unsupported
 
10076
      always_export_symbols=yes
 
10077
      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'
 
10078
      # Note: this linker hardcodes the directories in LIBPATH if there
 
10079
      # are no directories specified by -L.
 
10080
      hardcode_minus_L=yes
 
10081
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
10082
        # Neither direct hardcoding nor static linking is supported with a
 
10083
        # broken collect2.
 
10084
        hardcode_direct=unsupported
 
10085
      fi
 
10086
      ;;
 
10087
 
 
10088
    aix[4-9]*)
 
10089
      if test "$host_cpu" = ia64; then
 
10090
        # On IA64, the linker does run time linking by default, so we don't
 
10091
        # have to do anything special.
 
10092
        aix_use_runtimelinking=no
 
10093
        exp_sym_flag='-Bexport'
 
10094
        no_entry_flag=""
 
10095
      else
 
10096
        # If we're using GNU nm, then we don't want the "-C" option.
 
10097
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10098
        # Also, AIX nm treats weak defined symbols like other global
 
10099
        # defined symbols, whereas GNU nm marks them as "W".
 
10100
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
10101
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
10102
        else
 
10103
          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'
 
10104
        fi
 
10105
        aix_use_runtimelinking=no
 
10106
 
 
10107
        # Test if we are trying to use run time linking or normal
 
10108
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10109
        # need to do runtime linking.
 
10110
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
10111
          for ld_flag in $LDFLAGS; do
 
10112
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
10113
            aix_use_runtimelinking=yes
 
10114
            break
 
10115
          fi
 
10116
          done
 
10117
          ;;
 
10118
        esac
 
10119
 
 
10120
        exp_sym_flag='-bexport'
 
10121
        no_entry_flag='-bnoentry'
 
10122
      fi
 
10123
 
 
10124
      # When large executables or shared objects are built, AIX ld can
 
10125
      # have problems creating the table of contents.  If linking a library
 
10126
      # or program results in "error TOC overflow" add -mminimal-toc to
 
10127
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10128
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10129
 
 
10130
      archive_cmds=''
 
10131
      hardcode_direct=yes
 
10132
      hardcode_direct_absolute=yes
 
10133
      hardcode_libdir_separator=':'
 
10134
      link_all_deplibs=yes
 
10135
      file_list_spec='${wl}-f,'
 
10136
 
 
10137
      if test "$GCC" = yes; then
 
10138
        case $host_os in aix4.[012]|aix4.[012].*)
 
10139
        # We only want to do this on AIX 4.2 and lower, the check
 
10140
        # below for broken collect2 doesn't work under 4.3+
 
10141
          collect2name=`${CC} -print-prog-name=collect2`
 
10142
          if test -f "$collect2name" &&
 
10143
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
10144
          then
 
10145
          # We have reworked collect2
 
10146
          :
 
10147
          else
 
10148
          # We have old collect2
 
10149
          hardcode_direct=unsupported
 
10150
          # It fails to find uninstalled libraries when the uninstalled
 
10151
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10152
          # to unsupported forces relinking
 
10153
          hardcode_minus_L=yes
 
10154
          hardcode_libdir_flag_spec='-L$libdir'
 
10155
          hardcode_libdir_separator=
 
10156
          fi
 
10157
          ;;
 
10158
        esac
 
10159
        shared_flag='-shared'
 
10160
        if test "$aix_use_runtimelinking" = yes; then
 
10161
          shared_flag="$shared_flag "'${wl}-G'
 
10162
        fi
 
10163
        link_all_deplibs=no
 
10164
      else
 
10165
        # not using gcc
 
10166
        if test "$host_cpu" = ia64; then
 
10167
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10168
        # chokes on -Wl,-G. The following line is correct:
 
10169
          shared_flag='-G'
 
10170
        else
 
10171
          if test "$aix_use_runtimelinking" = yes; then
 
10172
            shared_flag='${wl}-G'
 
10173
          else
 
10174
            shared_flag='${wl}-bM:SRE'
 
10175
          fi
 
10176
        fi
 
10177
      fi
 
10178
 
 
10179
      export_dynamic_flag_spec='${wl}-bexpall'
 
10180
      # It seems that -bexpall does not export symbols beginning with
 
10181
      # underscore (_), so it is better to generate a list of symbols to export.
 
10182
      always_export_symbols=yes
 
10183
      if test "$aix_use_runtimelinking" = yes; then
 
10184
        # Warning - without using the other runtime loading flags (-brtl),
 
10185
        # -berok will link without error, but may produce a broken library.
 
10186
        allow_undefined_flag='-berok'
 
10187
        # Determine the default libpath from the value encoded in an
 
10188
        # empty executable.
 
10189
        if test "${lt_cv_aix_libpath+set}" = set; then
 
10190
  aix_libpath=$lt_cv_aix_libpath
 
10191
else
 
10192
  if ${lt_cv_aix_libpath_+:} false; then :
 
10193
  $as_echo_n "(cached) " >&6
 
10194
else
 
10195
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10196
/* end confdefs.h.  */
 
10197
 
 
10198
int
 
10199
main ()
 
10200
{
 
10201
 
 
10202
  ;
 
10203
  return 0;
 
10204
}
 
10205
_ACEOF
 
10206
if ac_fn_c_try_link "$LINENO"; then :
 
10207
 
 
10208
  lt_aix_libpath_sed='
 
10209
      /Import File Strings/,/^$/ {
 
10210
          /^0/ {
 
10211
              s/^0  *\([^ ]*\) *$/\1/
 
10212
              p
 
10213
          }
 
10214
      }'
 
10215
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10216
  # Check for a 64-bit object if we didn't find anything.
 
10217
  if test -z "$lt_cv_aix_libpath_"; then
 
10218
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10219
  fi
 
10220
fi
 
10221
rm -f core conftest.err conftest.$ac_objext \
 
10222
    conftest$ac_exeext conftest.$ac_ext
 
10223
  if test -z "$lt_cv_aix_libpath_"; then
 
10224
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10225
  fi
 
10226
 
 
10227
fi
 
10228
 
 
10229
  aix_libpath=$lt_cv_aix_libpath_
 
10230
fi
 
10231
 
 
10232
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10233
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10234
      else
 
10235
        if test "$host_cpu" = ia64; then
 
10236
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
10237
          allow_undefined_flag="-z nodefs"
 
10238
          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"
 
10239
        else
 
10240
         # Determine the default libpath from the value encoded in an
 
10241
         # empty executable.
 
10242
         if test "${lt_cv_aix_libpath+set}" = set; then
 
10243
  aix_libpath=$lt_cv_aix_libpath
 
10244
else
 
10245
  if ${lt_cv_aix_libpath_+:} false; then :
 
10246
  $as_echo_n "(cached) " >&6
 
10247
else
 
10248
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10249
/* end confdefs.h.  */
 
10250
 
 
10251
int
 
10252
main ()
 
10253
{
 
10254
 
 
10255
  ;
 
10256
  return 0;
 
10257
}
 
10258
_ACEOF
 
10259
if ac_fn_c_try_link "$LINENO"; then :
 
10260
 
 
10261
  lt_aix_libpath_sed='
 
10262
      /Import File Strings/,/^$/ {
 
10263
          /^0/ {
 
10264
              s/^0  *\([^ ]*\) *$/\1/
 
10265
              p
 
10266
          }
 
10267
      }'
 
10268
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10269
  # Check for a 64-bit object if we didn't find anything.
 
10270
  if test -z "$lt_cv_aix_libpath_"; then
 
10271
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10272
  fi
 
10273
fi
 
10274
rm -f core conftest.err conftest.$ac_objext \
 
10275
    conftest$ac_exeext conftest.$ac_ext
 
10276
  if test -z "$lt_cv_aix_libpath_"; then
 
10277
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10278
  fi
 
10279
 
 
10280
fi
 
10281
 
 
10282
  aix_libpath=$lt_cv_aix_libpath_
 
10283
fi
 
10284
 
 
10285
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10286
          # Warning - without using the other run time loading flags,
 
10287
          # -berok will link without error, but may produce a broken library.
 
10288
          no_undefined_flag=' ${wl}-bernotok'
 
10289
          allow_undefined_flag=' ${wl}-berok'
 
10290
          if test "$with_gnu_ld" = yes; then
 
10291
            # We only use this code for GNU lds that support --whole-archive.
 
10292
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10293
          else
 
10294
            # Exported symbols can be pulled into shared objects from archives
 
10295
            whole_archive_flag_spec='$convenience'
 
10296
          fi
 
10297
          archive_cmds_need_lc=yes
 
10298
          # This is similar to how AIX traditionally builds its shared libraries.
 
10299
          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'
 
10300
        fi
 
10301
      fi
 
10302
      ;;
 
10303
 
 
10304
    amigaos*)
 
10305
      case $host_cpu in
 
10306
      powerpc)
 
10307
            # see comment about AmigaOS4 .so support
 
10308
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10309
            archive_expsym_cmds=''
 
10310
        ;;
 
10311
      m68k)
 
10312
            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)'
 
10313
            hardcode_libdir_flag_spec='-L$libdir'
 
10314
            hardcode_minus_L=yes
 
10315
        ;;
 
10316
      esac
 
10317
      ;;
 
10318
 
 
10319
    bsdi[45]*)
 
10320
      export_dynamic_flag_spec=-rdynamic
 
10321
      ;;
 
10322
 
 
10323
    cygwin* | mingw* | pw32* | cegcc*)
 
10324
      # When not using gcc, we currently assume that we are using
 
10325
      # Microsoft Visual C++.
 
10326
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10327
      # no search path for DLLs.
 
10328
      case $cc_basename in
 
10329
      cl*)
 
10330
        # Native MSVC
 
10331
        hardcode_libdir_flag_spec=' '
 
10332
        allow_undefined_flag=unsupported
 
10333
        always_export_symbols=yes
 
10334
        file_list_spec='@'
 
10335
        # Tell ltmain to make .lib files, not .a files.
 
10336
        libext=lib
 
10337
        # Tell ltmain to make .dll files, not .so files.
 
10338
        shrext_cmds=".dll"
 
10339
        # FIXME: Setting linknames here is a bad hack.
 
10340
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
10341
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10342
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
10343
          else
 
10344
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
10345
          fi~
 
10346
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
10347
          linknames='
 
10348
        # The linker will not automatically build a static lib if we build a DLL.
 
10349
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
10350
        enable_shared_with_static_runtimes=yes
 
10351
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
10352
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10353
        # Don't use ranlib
 
10354
        old_postinstall_cmds='chmod 644 $oldlib'
 
10355
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
10356
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
10357
          case $lt_outputfile in
 
10358
            *.exe|*.EXE) ;;
 
10359
            *)
 
10360
              lt_outputfile="$lt_outputfile.exe"
 
10361
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
10362
              ;;
 
10363
          esac~
 
10364
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
10365
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
10366
            $RM "$lt_outputfile.manifest";
 
10367
          fi'
 
10368
        ;;
 
10369
      *)
 
10370
        # Assume MSVC wrapper
 
10371
        hardcode_libdir_flag_spec=' '
 
10372
        allow_undefined_flag=unsupported
 
10373
        # Tell ltmain to make .lib files, not .a files.
 
10374
        libext=lib
 
10375
        # Tell ltmain to make .dll files, not .so files.
 
10376
        shrext_cmds=".dll"
 
10377
        # FIXME: Setting linknames here is a bad hack.
 
10378
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
10379
        # The linker will automatically build a .lib file if we build a DLL.
 
10380
        old_archive_from_new_cmds='true'
 
10381
        # FIXME: Should let the user specify the lib program.
 
10382
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10383
        enable_shared_with_static_runtimes=yes
 
10384
        ;;
 
10385
      esac
 
10386
      ;;
 
10387
 
 
10388
    darwin* | rhapsody*)
 
10389
 
 
10390
 
 
10391
  archive_cmds_need_lc=no
 
10392
  hardcode_direct=no
 
10393
  hardcode_automatic=yes
 
10394
  hardcode_shlibpath_var=unsupported
 
10395
  if test "$lt_cv_ld_force_load" = "yes"; then
 
10396
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
10397
 
 
10398
  else
 
10399
    whole_archive_flag_spec=''
 
10400
  fi
 
10401
  link_all_deplibs=yes
 
10402
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
10403
  case $cc_basename in
 
10404
     ifort*) _lt_dar_can_shared=yes ;;
 
10405
     *) _lt_dar_can_shared=$GCC ;;
 
10406
  esac
 
10407
  if test "$_lt_dar_can_shared" = "yes"; then
 
10408
    output_verbose_link_cmd=func_echo_all
 
10409
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10410
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10411
    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}"
 
10412
    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}"
 
10413
 
 
10414
  else
 
10415
  ld_shlibs=no
 
10416
  fi
 
10417
 
 
10418
      ;;
 
10419
 
 
10420
    dgux*)
 
10421
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10422
      hardcode_libdir_flag_spec='-L$libdir'
 
10423
      hardcode_shlibpath_var=no
 
10424
      ;;
 
10425
 
 
10426
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10427
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10428
    # does not break anything, and helps significantly (at the cost of a little
 
10429
    # extra space).
 
10430
    freebsd2.2*)
 
10431
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10432
      hardcode_libdir_flag_spec='-R$libdir'
 
10433
      hardcode_direct=yes
 
10434
      hardcode_shlibpath_var=no
 
10435
      ;;
 
10436
 
 
10437
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10438
    freebsd2.*)
 
10439
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10440
      hardcode_direct=yes
 
10441
      hardcode_minus_L=yes
 
10442
      hardcode_shlibpath_var=no
 
10443
      ;;
 
10444
 
 
10445
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10446
    freebsd* | dragonfly*)
 
10447
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10448
      hardcode_libdir_flag_spec='-R$libdir'
 
10449
      hardcode_direct=yes
 
10450
      hardcode_shlibpath_var=no
 
10451
      ;;
 
10452
 
 
10453
    hpux9*)
 
10454
      if test "$GCC" = yes; then
 
10455
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10456
      else
 
10457
        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'
 
10458
      fi
 
10459
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10460
      hardcode_libdir_separator=:
 
10461
      hardcode_direct=yes
 
10462
 
 
10463
      # hardcode_minus_L: Not really in the search PATH,
 
10464
      # but as the default location of the library.
 
10465
      hardcode_minus_L=yes
 
10466
      export_dynamic_flag_spec='${wl}-E'
 
10467
      ;;
 
10468
 
 
10469
    hpux10*)
 
10470
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10471
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10472
      else
 
10473
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10474
      fi
 
10475
      if test "$with_gnu_ld" = no; then
 
10476
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10477
        hardcode_libdir_separator=:
 
10478
        hardcode_direct=yes
 
10479
        hardcode_direct_absolute=yes
 
10480
        export_dynamic_flag_spec='${wl}-E'
 
10481
        # hardcode_minus_L: Not really in the search PATH,
 
10482
        # but as the default location of the library.
 
10483
        hardcode_minus_L=yes
 
10484
      fi
 
10485
      ;;
 
10486
 
 
10487
    hpux11*)
 
10488
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10489
        case $host_cpu in
 
10490
        hppa*64*)
 
10491
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10492
          ;;
 
10493
        ia64*)
 
10494
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10495
          ;;
 
10496
        *)
 
10497
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10498
          ;;
 
10499
        esac
 
10500
      else
 
10501
        case $host_cpu in
 
10502
        hppa*64*)
 
10503
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10504
          ;;
 
10505
        ia64*)
 
10506
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10507
          ;;
 
10508
        *)
 
10509
 
 
10510
          # Older versions of the 11.00 compiler do not understand -b yet
 
10511
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10512
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10513
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10514
if ${lt_cv_prog_compiler__b+:} false; then :
 
10515
  $as_echo_n "(cached) " >&6
 
10516
else
 
10517
  lt_cv_prog_compiler__b=no
 
10518
   save_LDFLAGS="$LDFLAGS"
 
10519
   LDFLAGS="$LDFLAGS -b"
 
10520
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10521
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10522
     # The linker can only warn and ignore the option if not recognized
 
10523
     # So say no if there are warnings
 
10524
     if test -s conftest.err; then
 
10525
       # Append any errors to the config.log.
 
10526
       cat conftest.err 1>&5
 
10527
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10528
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10529
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10530
         lt_cv_prog_compiler__b=yes
 
10531
       fi
 
10532
     else
 
10533
       lt_cv_prog_compiler__b=yes
 
10534
     fi
 
10535
   fi
 
10536
   $RM -r conftest*
 
10537
   LDFLAGS="$save_LDFLAGS"
 
10538
 
 
10539
fi
 
10540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10541
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10542
 
 
10543
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10544
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10545
else
 
10546
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10547
fi
 
10548
 
 
10549
          ;;
 
10550
        esac
 
10551
      fi
 
10552
      if test "$with_gnu_ld" = no; then
 
10553
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10554
        hardcode_libdir_separator=:
 
10555
 
 
10556
        case $host_cpu in
 
10557
        hppa*64*|ia64*)
 
10558
          hardcode_direct=no
 
10559
          hardcode_shlibpath_var=no
 
10560
          ;;
 
10561
        *)
 
10562
          hardcode_direct=yes
 
10563
          hardcode_direct_absolute=yes
 
10564
          export_dynamic_flag_spec='${wl}-E'
 
10565
 
 
10566
          # hardcode_minus_L: Not really in the search PATH,
 
10567
          # but as the default location of the library.
 
10568
          hardcode_minus_L=yes
 
10569
          ;;
 
10570
        esac
 
10571
      fi
 
10572
      ;;
 
10573
 
 
10574
    irix5* | irix6* | nonstopux*)
 
10575
      if test "$GCC" = yes; then
 
10576
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10577
        # Try to use the -exported_symbol ld option, if it does not
 
10578
        # work, assume that -exports_file does not work either and
 
10579
        # implicitly export all symbols.
 
10580
        # This should be the same for all languages, so no per-tag cache variable.
 
10581
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10582
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10583
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10584
  $as_echo_n "(cached) " >&6
 
10585
else
 
10586
  save_LDFLAGS="$LDFLAGS"
 
10587
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10588
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10589
/* end confdefs.h.  */
 
10590
int foo (void) { return 0; }
 
10591
_ACEOF
 
10592
if ac_fn_c_try_link "$LINENO"; then :
 
10593
  lt_cv_irix_exported_symbol=yes
 
10594
else
 
10595
  lt_cv_irix_exported_symbol=no
 
10596
fi
 
10597
rm -f core conftest.err conftest.$ac_objext \
 
10598
    conftest$ac_exeext conftest.$ac_ext
 
10599
           LDFLAGS="$save_LDFLAGS"
 
10600
fi
 
10601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10602
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10603
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10604
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
10605
        fi
 
10606
      else
 
10607
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10608
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
10609
      fi
 
10610
      archive_cmds_need_lc='no'
 
10611
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10612
      hardcode_libdir_separator=:
 
10613
      inherit_rpath=yes
 
10614
      link_all_deplibs=yes
 
10615
      ;;
 
10616
 
 
10617
    netbsd* | netbsdelf*-gnu)
 
10618
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10619
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10620
      else
 
10621
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10622
      fi
 
10623
      hardcode_libdir_flag_spec='-R$libdir'
 
10624
      hardcode_direct=yes
 
10625
      hardcode_shlibpath_var=no
 
10626
      ;;
 
10627
 
 
10628
    newsos6)
 
10629
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10630
      hardcode_direct=yes
 
10631
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10632
      hardcode_libdir_separator=:
 
10633
      hardcode_shlibpath_var=no
 
10634
      ;;
 
10635
 
 
10636
    *nto* | *qnx*)
 
10637
      ;;
 
10638
 
 
10639
    openbsd*)
 
10640
      if test -f /usr/libexec/ld.so; then
 
10641
        hardcode_direct=yes
 
10642
        hardcode_shlibpath_var=no
 
10643
        hardcode_direct_absolute=yes
 
10644
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10645
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10646
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10647
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10648
          export_dynamic_flag_spec='${wl}-E'
 
10649
        else
 
10650
          case $host_os in
 
10651
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10652
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10653
             hardcode_libdir_flag_spec='-R$libdir'
 
10654
             ;;
 
10655
           *)
 
10656
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10657
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10658
             ;;
 
10659
          esac
 
10660
        fi
 
10661
      else
 
10662
        ld_shlibs=no
 
10663
      fi
 
10664
      ;;
 
10665
 
 
10666
    os2*)
 
10667
      hardcode_libdir_flag_spec='-L$libdir'
 
10668
      hardcode_minus_L=yes
 
10669
      allow_undefined_flag=unsupported
 
10670
      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'
 
10671
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10672
      ;;
 
10673
 
 
10674
    osf3*)
 
10675
      if test "$GCC" = yes; then
 
10676
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10677
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10678
      else
 
10679
        allow_undefined_flag=' -expect_unresolved \*'
 
10680
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10681
      fi
 
10682
      archive_cmds_need_lc='no'
 
10683
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10684
      hardcode_libdir_separator=:
 
10685
      ;;
 
10686
 
 
10687
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10688
      if test "$GCC" = yes; then
 
10689
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10690
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10691
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10692
      else
 
10693
        allow_undefined_flag=' -expect_unresolved \*'
 
10694
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10695
        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~
 
10696
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
10697
 
 
10698
        # Both c and cxx compiler support -rpath directly
 
10699
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10700
      fi
 
10701
      archive_cmds_need_lc='no'
 
10702
      hardcode_libdir_separator=:
 
10703
      ;;
 
10704
 
 
10705
    solaris*)
 
10706
      no_undefined_flag=' -z defs'
 
10707
      if test "$GCC" = yes; then
 
10708
        wlarc='${wl}'
 
10709
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10710
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10711
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10712
      else
 
10713
        case `$CC -V 2>&1` in
 
10714
        *"Compilers 5.0"*)
 
10715
          wlarc=''
 
10716
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10717
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10718
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10719
          ;;
 
10720
        *)
 
10721
          wlarc='${wl}'
 
10722
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10723
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10724
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10725
          ;;
 
10726
        esac
 
10727
      fi
 
10728
      hardcode_libdir_flag_spec='-R$libdir'
 
10729
      hardcode_shlibpath_var=no
 
10730
      case $host_os in
 
10731
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10732
      *)
 
10733
        # The compiler driver will combine and reorder linker options,
 
10734
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10735
        # but is careful enough not to reorder.
 
10736
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10737
        if test "$GCC" = yes; then
 
10738
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10739
        else
 
10740
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10741
        fi
 
10742
        ;;
 
10743
      esac
 
10744
      link_all_deplibs=yes
 
10745
      ;;
 
10746
 
 
10747
    sunos4*)
 
10748
      if test "x$host_vendor" = xsequent; then
 
10749
        # Use $CC to link under sequent, because it throws in some extra .o
 
10750
        # files that make .init and .fini sections work.
 
10751
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10752
      else
 
10753
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10754
      fi
 
10755
      hardcode_libdir_flag_spec='-L$libdir'
 
10756
      hardcode_direct=yes
 
10757
      hardcode_minus_L=yes
 
10758
      hardcode_shlibpath_var=no
 
10759
      ;;
 
10760
 
 
10761
    sysv4)
 
10762
      case $host_vendor in
 
10763
        sni)
 
10764
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10765
          hardcode_direct=yes # is this really true???
 
10766
        ;;
 
10767
        siemens)
 
10768
          ## LD is ld it makes a PLAMLIB
 
10769
          ## CC just makes a GrossModule.
 
10770
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10771
          reload_cmds='$CC -r -o $output$reload_objs'
 
10772
          hardcode_direct=no
 
10773
        ;;
 
10774
        motorola)
 
10775
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10776
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10777
        ;;
 
10778
      esac
 
10779
      runpath_var='LD_RUN_PATH'
 
10780
      hardcode_shlibpath_var=no
 
10781
      ;;
 
10782
 
 
10783
    sysv4.3*)
 
10784
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10785
      hardcode_shlibpath_var=no
 
10786
      export_dynamic_flag_spec='-Bexport'
 
10787
      ;;
 
10788
 
 
10789
    sysv4*MP*)
 
10790
      if test -d /usr/nec; then
 
10791
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10792
        hardcode_shlibpath_var=no
 
10793
        runpath_var=LD_RUN_PATH
 
10794
        hardcode_runpath_var=yes
 
10795
        ld_shlibs=yes
 
10796
      fi
 
10797
      ;;
 
10798
 
 
10799
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10800
      no_undefined_flag='${wl}-z,text'
 
10801
      archive_cmds_need_lc=no
 
10802
      hardcode_shlibpath_var=no
 
10803
      runpath_var='LD_RUN_PATH'
 
10804
 
 
10805
      if test "$GCC" = yes; then
 
10806
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10807
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10808
      else
 
10809
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10810
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10811
      fi
 
10812
      ;;
 
10813
 
 
10814
    sysv5* | sco3.2v5* | sco5v6*)
 
10815
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10816
      # link with -lc, and that would cause any symbols used from libc to
 
10817
      # always be unresolved, which means just about no library would
 
10818
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10819
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10820
      # as -z defs.
 
10821
      no_undefined_flag='${wl}-z,text'
 
10822
      allow_undefined_flag='${wl}-z,nodefs'
 
10823
      archive_cmds_need_lc=no
 
10824
      hardcode_shlibpath_var=no
 
10825
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10826
      hardcode_libdir_separator=':'
 
10827
      link_all_deplibs=yes
 
10828
      export_dynamic_flag_spec='${wl}-Bexport'
 
10829
      runpath_var='LD_RUN_PATH'
 
10830
 
 
10831
      if test "$GCC" = yes; then
 
10832
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10833
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10834
      else
 
10835
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10836
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10837
      fi
 
10838
      ;;
 
10839
 
 
10840
    uts4*)
 
10841
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10842
      hardcode_libdir_flag_spec='-L$libdir'
 
10843
      hardcode_shlibpath_var=no
 
10844
      ;;
 
10845
 
 
10846
    *)
 
10847
      ld_shlibs=no
 
10848
      ;;
 
10849
    esac
 
10850
 
 
10851
    if test x$host_vendor = xsni; then
 
10852
      case $host in
 
10853
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10854
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10855
        ;;
 
10856
      esac
 
10857
    fi
 
10858
  fi
 
10859
 
 
10860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10861
$as_echo "$ld_shlibs" >&6; }
 
10862
test "$ld_shlibs" = no && can_build_shared=no
 
10863
 
 
10864
with_gnu_ld=$with_gnu_ld
 
10865
 
 
10866
 
 
10867
 
 
10868
 
 
10869
 
 
10870
 
 
10871
 
 
10872
 
 
10873
 
 
10874
 
 
10875
 
 
10876
 
 
10877
 
 
10878
 
 
10879
 
 
10880
#
 
10881
# Do we need to explicitly link libc?
 
10882
#
 
10883
case "x$archive_cmds_need_lc" in
 
10884
x|xyes)
 
10885
  # Assume -lc should be added
 
10886
  archive_cmds_need_lc=yes
 
10887
 
 
10888
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10889
    case $archive_cmds in
 
10890
    *'~'*)
 
10891
      # FIXME: we may have to deal with multi-command sequences.
 
10892
      ;;
 
10893
    '$CC '*)
 
10894
      # Test whether the compiler implicitly links with -lc since on some
 
10895
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10896
      # to ld, don't add -lc before -lgcc.
 
10897
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10898
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10899
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10900
  $as_echo_n "(cached) " >&6
 
10901
else
 
10902
  $RM conftest*
 
10903
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10904
 
 
10905
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10906
  (eval $ac_compile) 2>&5
 
10907
  ac_status=$?
 
10908
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10909
  test $ac_status = 0; } 2>conftest.err; then
 
10910
          soname=conftest
 
10911
          lib=conftest
 
10912
          libobjs=conftest.$ac_objext
 
10913
          deplibs=
 
10914
          wl=$lt_prog_compiler_wl
 
10915
          pic_flag=$lt_prog_compiler_pic
 
10916
          compiler_flags=-v
 
10917
          linker_flags=-v
 
10918
          verstring=
 
10919
          output_objdir=.
 
10920
          libname=conftest
 
10921
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10922
          allow_undefined_flag=
 
10923
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10924
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10925
  ac_status=$?
 
10926
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10927
  test $ac_status = 0; }
 
10928
          then
 
10929
            lt_cv_archive_cmds_need_lc=no
 
10930
          else
 
10931
            lt_cv_archive_cmds_need_lc=yes
 
10932
          fi
 
10933
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10934
        else
 
10935
          cat conftest.err 1>&5
 
10936
        fi
 
10937
        $RM conftest*
 
10938
 
 
10939
fi
 
10940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10941
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10942
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10943
      ;;
 
10944
    esac
 
10945
  fi
 
10946
  ;;
 
10947
esac
 
10948
 
 
10949
 
 
10950
 
 
10951
 
 
10952
 
 
10953
 
 
10954
 
 
10955
 
 
10956
 
 
10957
 
 
10958
 
 
10959
 
 
10960
 
 
10961
 
 
10962
 
 
10963
 
 
10964
 
 
10965
 
 
10966
 
 
10967
 
 
10968
 
 
10969
 
 
10970
 
 
10971
 
 
10972
 
 
10973
 
 
10974
 
 
10975
 
 
10976
 
 
10977
 
 
10978
 
 
10979
 
 
10980
 
 
10981
 
 
10982
 
 
10983
 
 
10984
 
 
10985
 
 
10986
 
 
10987
 
 
10988
 
 
10989
 
 
10990
 
 
10991
 
 
10992
 
 
10993
 
 
10994
 
 
10995
 
 
10996
 
 
10997
 
 
10998
 
 
10999
 
 
11000
 
 
11001
 
 
11002
 
 
11003
 
 
11004
 
 
11005
 
 
11006
 
 
11007
 
 
11008
 
 
11009
 
 
11010
 
 
11011
 
 
11012
 
 
11013
 
 
11014
 
 
11015
 
 
11016
 
 
11017
 
 
11018
 
 
11019
 
 
11020
 
 
11021
 
 
11022
 
 
11023
 
 
11024
 
 
11025
 
 
11026
 
 
11027
 
 
11028
 
 
11029
 
 
11030
 
 
11031
 
 
11032
 
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
 
 
11042
 
 
11043
 
 
11044
 
 
11045
 
 
11046
 
 
11047
 
 
11048
 
 
11049
 
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
 
11059
 
 
11060
 
 
11061
 
 
11062
 
 
11063
 
 
11064
 
 
11065
 
 
11066
 
 
11067
 
 
11068
 
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
 
11084
 
 
11085
 
 
11086
 
 
11087
 
 
11088
 
 
11089
 
 
11090
 
 
11091
 
 
11092
 
 
11093
 
 
11094
 
 
11095
 
 
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
11101
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
11102
 
 
11103
if test "$GCC" = yes; then
 
11104
  case $host_os in
 
11105
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
11106
    *) lt_awk_arg="/^libraries:/" ;;
 
11107
  esac
 
11108
  case $host_os in
 
11109
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
11110
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
11111
  esac
 
11112
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
11113
  case $lt_search_path_spec in
 
11114
  *\;*)
 
11115
    # if the path contains ";" then we assume it to be the separator
 
11116
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11117
    # assumed that no part of a normal pathname contains ";" but that should
 
11118
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11119
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
11120
    ;;
 
11121
  *)
 
11122
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
11123
    ;;
 
11124
  esac
 
11125
  # Ok, now we have the path, separated by spaces, we can step through it
 
11126
  # and add multilib dir if necessary.
 
11127
  lt_tmp_lt_search_path_spec=
 
11128
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11129
  for lt_sys_path in $lt_search_path_spec; do
 
11130
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
11131
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
11132
    else
 
11133
      test -d "$lt_sys_path" && \
 
11134
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
11135
    fi
 
11136
  done
 
11137
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
11138
BEGIN {RS=" "; FS="/|\n";} {
 
11139
  lt_foo="";
 
11140
  lt_count=0;
 
11141
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
11142
    if ($lt_i != "" && $lt_i != ".") {
 
11143
      if ($lt_i == "..") {
 
11144
        lt_count++;
 
11145
      } else {
 
11146
        if (lt_count == 0) {
 
11147
          lt_foo="/" $lt_i lt_foo;
 
11148
        } else {
 
11149
          lt_count--;
 
11150
        }
 
11151
      }
 
11152
    }
 
11153
  }
 
11154
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
11155
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
11156
}'`
 
11157
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
11158
  # for these hosts.
 
11159
  case $host_os in
 
11160
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
11161
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
11162
  esac
 
11163
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
11164
else
 
11165
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11166
fi
 
11167
library_names_spec=
 
11168
libname_spec='lib$name'
 
11169
soname_spec=
 
11170
shrext_cmds=".so"
 
11171
postinstall_cmds=
 
11172
postuninstall_cmds=
 
11173
finish_cmds=
 
11174
finish_eval=
 
11175
shlibpath_var=
 
11176
shlibpath_overrides_runpath=unknown
 
11177
version_type=none
 
11178
dynamic_linker="$host_os ld.so"
 
11179
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11180
need_lib_prefix=unknown
 
11181
hardcode_into_libs=no
 
11182
 
 
11183
# when you set need_version to no, make sure it does not cause -set_version
 
11184
# flags to be left without arguments
 
11185
need_version=unknown
 
11186
 
 
11187
case $host_os in
 
11188
aix3*)
 
11189
  version_type=linux # correct to gnu/linux during the next big refactor
 
11190
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11191
  shlibpath_var=LIBPATH
 
11192
 
 
11193
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11194
  soname_spec='${libname}${release}${shared_ext}$major'
 
11195
  ;;
 
11196
 
 
11197
aix[4-9]*)
 
11198
  version_type=linux # correct to gnu/linux during the next big refactor
 
11199
  need_lib_prefix=no
 
11200
  need_version=no
 
11201
  hardcode_into_libs=yes
 
11202
  if test "$host_cpu" = ia64; then
 
11203
    # AIX 5 supports IA64
 
11204
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11205
    shlibpath_var=LD_LIBRARY_PATH
 
11206
  else
 
11207
    # With GCC up to 2.95.x, collect2 would create an import file
 
11208
    # for dependence libraries.  The import file would start with
 
11209
    # the line `#! .'.  This would cause the generated library to
 
11210
    # depend on `.', always an invalid library.  This was fixed in
 
11211
    # development snapshots of GCC prior to 3.0.
 
11212
    case $host_os in
 
11213
      aix4 | aix4.[01] | aix4.[01].*)
 
11214
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11215
           echo ' yes '
 
11216
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
11217
        :
 
11218
      else
 
11219
        can_build_shared=no
 
11220
      fi
 
11221
      ;;
 
11222
    esac
 
11223
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11224
    # soname into executable. Probably we can add versioning support to
 
11225
    # collect2, so additional links can be useful in future.
 
11226
    if test "$aix_use_runtimelinking" = yes; then
 
11227
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11228
      # instead of lib<name>.a to let people know that these are not
 
11229
      # typical AIX shared libraries.
 
11230
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11231
    else
 
11232
      # We preserve .a as extension for shared libraries through AIX4.2
 
11233
      # and later when we are not doing run time linking.
 
11234
      library_names_spec='${libname}${release}.a $libname.a'
 
11235
      soname_spec='${libname}${release}${shared_ext}$major'
 
11236
    fi
 
11237
    shlibpath_var=LIBPATH
 
11238
  fi
 
11239
  ;;
 
11240
 
 
11241
amigaos*)
 
11242
  case $host_cpu in
 
11243
  powerpc)
 
11244
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
11245
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
11246
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11247
    ;;
 
11248
  m68k)
 
11249
    library_names_spec='$libname.ixlibrary $libname.a'
 
11250
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11251
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
 
11252
    ;;
 
11253
  esac
 
11254
  ;;
 
11255
 
 
11256
beos*)
 
11257
  library_names_spec='${libname}${shared_ext}'
 
11258
  dynamic_linker="$host_os ld.so"
 
11259
  shlibpath_var=LIBRARY_PATH
 
11260
  ;;
 
11261
 
 
11262
bsdi[45]*)
 
11263
  version_type=linux # correct to gnu/linux during the next big refactor
 
11264
  need_version=no
 
11265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11266
  soname_spec='${libname}${release}${shared_ext}$major'
 
11267
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11268
  shlibpath_var=LD_LIBRARY_PATH
 
11269
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11270
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11271
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11272
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11273
  # libtool to hard-code these into programs
 
11274
  ;;
 
11275
 
 
11276
cygwin* | mingw* | pw32* | cegcc*)
 
11277
  version_type=windows
 
11278
  shrext_cmds=".dll"
 
11279
  need_version=no
 
11280
  need_lib_prefix=no
 
11281
 
 
11282
  case $GCC,$cc_basename in
 
11283
  yes,*)
 
11284
    # gcc
 
11285
    library_names_spec='$libname.dll.a'
 
11286
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11287
    postinstall_cmds='base_file=`basename \${file}`~
 
11288
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11289
      dldir=$destdir/`dirname \$dlpath`~
 
11290
      test -d \$dldir || mkdir -p \$dldir~
 
11291
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11292
      chmod a+x \$dldir/$dlname~
 
11293
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11294
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11295
      fi'
 
11296
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11297
      dlpath=$dir/\$dldll~
 
11298
       $RM \$dlpath'
 
11299
    shlibpath_overrides_runpath=yes
 
11300
 
 
11301
    case $host_os in
 
11302
    cygwin*)
 
11303
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11304
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11305
 
 
11306
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
11307
      ;;
 
11308
    mingw* | cegcc*)
 
11309
      # MinGW DLLs use traditional 'lib' prefix
 
11310
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11311
      ;;
 
11312
    pw32*)
 
11313
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11314
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11315
      ;;
 
11316
    esac
 
11317
    dynamic_linker='Win32 ld.exe'
 
11318
    ;;
 
11319
 
 
11320
  *,cl*)
 
11321
    # Native MSVC
 
11322
    libname_spec='$name'
 
11323
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11324
    library_names_spec='${libname}.dll.lib'
 
11325
 
 
11326
    case $build_os in
 
11327
    mingw*)
 
11328
      sys_lib_search_path_spec=
 
11329
      lt_save_ifs=$IFS
 
11330
      IFS=';'
 
11331
      for lt_path in $LIB
 
11332
      do
 
11333
        IFS=$lt_save_ifs
 
11334
        # Let DOS variable expansion print the short 8.3 style file name.
 
11335
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
11336
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
11337
      done
 
11338
      IFS=$lt_save_ifs
 
11339
      # Convert to MSYS style.
 
11340
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
11341
      ;;
 
11342
    cygwin*)
 
11343
      # Convert to unix form, then to dos form, then back to unix form
 
11344
      # but this time dos style (no spaces!) so that the unix form looks
 
11345
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
11346
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
11347
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
11348
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11349
      ;;
 
11350
    *)
 
11351
      sys_lib_search_path_spec="$LIB"
 
11352
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11353
        # It is most probably a Windows format PATH.
 
11354
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11355
      else
 
11356
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11357
      fi
 
11358
      # FIXME: find the short name or the path components, as spaces are
 
11359
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
11360
      ;;
 
11361
    esac
 
11362
 
 
11363
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11364
    postinstall_cmds='base_file=`basename \${file}`~
 
11365
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11366
      dldir=$destdir/`dirname \$dlpath`~
 
11367
      test -d \$dldir || mkdir -p \$dldir~
 
11368
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11369
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11370
      dlpath=$dir/\$dldll~
 
11371
       $RM \$dlpath'
 
11372
    shlibpath_overrides_runpath=yes
 
11373
    dynamic_linker='Win32 link.exe'
 
11374
    ;;
 
11375
 
 
11376
  *)
 
11377
    # Assume MSVC wrapper
 
11378
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11379
    dynamic_linker='Win32 ld.exe'
 
11380
    ;;
 
11381
  esac
 
11382
  # FIXME: first we should search . and the directory the executable is in
 
11383
  shlibpath_var=PATH
 
11384
  ;;
 
11385
 
 
11386
darwin* | rhapsody*)
 
11387
  dynamic_linker="$host_os dyld"
 
11388
  version_type=darwin
 
11389
  need_lib_prefix=no
 
11390
  need_version=no
 
11391
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11392
  soname_spec='${libname}${release}${major}$shared_ext'
 
11393
  shlibpath_overrides_runpath=yes
 
11394
  shlibpath_var=DYLD_LIBRARY_PATH
 
11395
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11396
 
 
11397
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11398
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11399
  ;;
 
11400
 
 
11401
dgux*)
 
11402
  version_type=linux # correct to gnu/linux during the next big refactor
 
11403
  need_lib_prefix=no
 
11404
  need_version=no
 
11405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11406
  soname_spec='${libname}${release}${shared_ext}$major'
 
11407
  shlibpath_var=LD_LIBRARY_PATH
 
11408
  ;;
 
11409
 
 
11410
freebsd* | dragonfly*)
 
11411
  # DragonFly does not have aout.  When/if they implement a new
 
11412
  # versioning mechanism, adjust this.
 
11413
  if test -x /usr/bin/objformat; then
 
11414
    objformat=`/usr/bin/objformat`
 
11415
  else
 
11416
    case $host_os in
 
11417
    freebsd[23].*) objformat=aout ;;
 
11418
    *) objformat=elf ;;
 
11419
    esac
 
11420
  fi
 
11421
  version_type=freebsd-$objformat
 
11422
  case $version_type in
 
11423
    freebsd-elf*)
 
11424
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11425
      need_version=no
 
11426
      need_lib_prefix=no
 
11427
      ;;
 
11428
    freebsd-*)
 
11429
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11430
      need_version=yes
 
11431
      ;;
 
11432
  esac
 
11433
  shlibpath_var=LD_LIBRARY_PATH
 
11434
  case $host_os in
 
11435
  freebsd2.*)
 
11436
    shlibpath_overrides_runpath=yes
 
11437
    ;;
 
11438
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11439
    shlibpath_overrides_runpath=yes
 
11440
    hardcode_into_libs=yes
 
11441
    ;;
 
11442
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11443
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11444
    shlibpath_overrides_runpath=no
 
11445
    hardcode_into_libs=yes
 
11446
    ;;
 
11447
  *) # from 4.6 on, and DragonFly
 
11448
    shlibpath_overrides_runpath=yes
 
11449
    hardcode_into_libs=yes
 
11450
    ;;
 
11451
  esac
 
11452
  ;;
 
11453
 
 
11454
haiku*)
 
11455
  version_type=linux # correct to gnu/linux during the next big refactor
 
11456
  need_lib_prefix=no
 
11457
  need_version=no
 
11458
  dynamic_linker="$host_os runtime_loader"
 
11459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11460
  soname_spec='${libname}${release}${shared_ext}$major'
 
11461
  shlibpath_var=LIBRARY_PATH
 
11462
  shlibpath_overrides_runpath=yes
 
11463
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11464
  hardcode_into_libs=yes
 
11465
  ;;
 
11466
 
 
11467
hpux9* | hpux10* | hpux11*)
 
11468
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11469
  # link against other versions.
 
11470
  version_type=sunos
 
11471
  need_lib_prefix=no
 
11472
  need_version=no
 
11473
  case $host_cpu in
 
11474
  ia64*)
 
11475
    shrext_cmds='.so'
 
11476
    hardcode_into_libs=yes
 
11477
    dynamic_linker="$host_os dld.so"
 
11478
    shlibpath_var=LD_LIBRARY_PATH
 
11479
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11480
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11481
    soname_spec='${libname}${release}${shared_ext}$major'
 
11482
    if test "X$HPUX_IA64_MODE" = X32; then
 
11483
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11484
    else
 
11485
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11486
    fi
 
11487
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11488
    ;;
 
11489
  hppa*64*)
 
11490
    shrext_cmds='.sl'
 
11491
    hardcode_into_libs=yes
 
11492
    dynamic_linker="$host_os dld.sl"
 
11493
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11494
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11495
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11496
    soname_spec='${libname}${release}${shared_ext}$major'
 
11497
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11498
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11499
    ;;
 
11500
  *)
 
11501
    shrext_cmds='.sl'
 
11502
    dynamic_linker="$host_os dld.sl"
 
11503
    shlibpath_var=SHLIB_PATH
 
11504
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11505
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11506
    soname_spec='${libname}${release}${shared_ext}$major'
 
11507
    ;;
 
11508
  esac
 
11509
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11510
  postinstall_cmds='chmod 555 $lib'
 
11511
  # or fails outright, so override atomically:
 
11512
  install_override_mode=555
 
11513
  ;;
 
11514
 
 
11515
interix[3-9]*)
 
11516
  version_type=linux # correct to gnu/linux during the next big refactor
 
11517
  need_lib_prefix=no
 
11518
  need_version=no
 
11519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11520
  soname_spec='${libname}${release}${shared_ext}$major'
 
11521
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11522
  shlibpath_var=LD_LIBRARY_PATH
 
11523
  shlibpath_overrides_runpath=no
 
11524
  hardcode_into_libs=yes
 
11525
  ;;
 
11526
 
 
11527
irix5* | irix6* | nonstopux*)
 
11528
  case $host_os in
 
11529
    nonstopux*) version_type=nonstopux ;;
 
11530
    *)
 
11531
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11532
                version_type=linux # correct to gnu/linux during the next big refactor
 
11533
        else
 
11534
                version_type=irix
 
11535
        fi ;;
 
11536
  esac
 
11537
  need_lib_prefix=no
 
11538
  need_version=no
 
11539
  soname_spec='${libname}${release}${shared_ext}$major'
 
11540
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11541
  case $host_os in
 
11542
  irix5* | nonstopux*)
 
11543
    libsuff= shlibsuff=
 
11544
    ;;
 
11545
  *)
 
11546
    case $LD in # libtool.m4 will add one of these switches to LD
 
11547
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11548
      libsuff= shlibsuff= libmagic=32-bit;;
 
11549
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11550
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11551
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11552
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11553
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11554
    esac
 
11555
    ;;
 
11556
  esac
 
11557
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11558
  shlibpath_overrides_runpath=no
 
11559
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11560
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11561
  hardcode_into_libs=yes
 
11562
  ;;
 
11563
 
 
11564
# No shared lib support for Linux oldld, aout, or coff.
 
11565
linux*oldld* | linux*aout* | linux*coff*)
 
11566
  dynamic_linker=no
 
11567
  ;;
 
11568
 
 
11569
# This must be glibc/ELF.
 
11570
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11571
  version_type=linux # correct to gnu/linux during the next big refactor
 
11572
  need_lib_prefix=no
 
11573
  need_version=no
 
11574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11575
  soname_spec='${libname}${release}${shared_ext}$major'
 
11576
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11577
  shlibpath_var=LD_LIBRARY_PATH
 
11578
  shlibpath_overrides_runpath=no
 
11579
 
 
11580
  # Some binutils ld are patched to set DT_RUNPATH
 
11581
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11582
  $as_echo_n "(cached) " >&6
 
11583
else
 
11584
  lt_cv_shlibpath_overrides_runpath=no
 
11585
    save_LDFLAGS=$LDFLAGS
 
11586
    save_libdir=$libdir
 
11587
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11588
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11589
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11590
/* end confdefs.h.  */
 
11591
 
 
11592
int
 
11593
main ()
 
11594
{
 
11595
 
 
11596
  ;
 
11597
  return 0;
 
11598
}
 
11599
_ACEOF
 
11600
if ac_fn_c_try_link "$LINENO"; then :
 
11601
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11602
  lt_cv_shlibpath_overrides_runpath=yes
 
11603
fi
 
11604
fi
 
11605
rm -f core conftest.err conftest.$ac_objext \
 
11606
    conftest$ac_exeext conftest.$ac_ext
 
11607
    LDFLAGS=$save_LDFLAGS
 
11608
    libdir=$save_libdir
 
11609
 
 
11610
fi
 
11611
 
 
11612
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11613
 
 
11614
  # This implies no fast_install, which is unacceptable.
 
11615
  # Some rework will be needed to allow for fast_install
 
11616
  # before this can be enabled.
 
11617
  hardcode_into_libs=yes
 
11618
 
 
11619
  # Append ld.so.conf contents to the search path
 
11620
  if test -f /etc/ld.so.conf; then
 
11621
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
11622
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11623
  fi
 
11624
 
 
11625
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11626
  # powerpc, because MkLinux only supported shared libraries with the
 
11627
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11628
  # most powerpc-linux boxes support dynamic linking these days and
 
11629
  # people can always --disable-shared, the test was removed, and we
 
11630
  # assume the GNU/Linux dynamic linker is in use.
 
11631
  dynamic_linker='GNU/Linux ld.so'
 
11632
  ;;
 
11633
 
 
11634
netbsdelf*-gnu)
 
11635
  version_type=linux
 
11636
  need_lib_prefix=no
 
11637
  need_version=no
 
11638
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11639
  soname_spec='${libname}${release}${shared_ext}$major'
 
11640
  shlibpath_var=LD_LIBRARY_PATH
 
11641
  shlibpath_overrides_runpath=no
 
11642
  hardcode_into_libs=yes
 
11643
  dynamic_linker='NetBSD ld.elf_so'
 
11644
  ;;
 
11645
 
 
11646
netbsd*)
 
11647
  version_type=sunos
 
11648
  need_lib_prefix=no
 
11649
  need_version=no
 
11650
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11651
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11652
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11653
    dynamic_linker='NetBSD (a.out) ld.so'
 
11654
  else
 
11655
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11656
    soname_spec='${libname}${release}${shared_ext}$major'
 
11657
    dynamic_linker='NetBSD ld.elf_so'
 
11658
  fi
 
11659
  shlibpath_var=LD_LIBRARY_PATH
 
11660
  shlibpath_overrides_runpath=yes
 
11661
  hardcode_into_libs=yes
 
11662
  ;;
 
11663
 
 
11664
newsos6)
 
11665
  version_type=linux # correct to gnu/linux during the next big refactor
 
11666
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11667
  shlibpath_var=LD_LIBRARY_PATH
 
11668
  shlibpath_overrides_runpath=yes
 
11669
  ;;
 
11670
 
 
11671
*nto* | *qnx*)
 
11672
  version_type=qnx
 
11673
  need_lib_prefix=no
 
11674
  need_version=no
 
11675
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11676
  soname_spec='${libname}${release}${shared_ext}$major'
 
11677
  shlibpath_var=LD_LIBRARY_PATH
 
11678
  shlibpath_overrides_runpath=no
 
11679
  hardcode_into_libs=yes
 
11680
  dynamic_linker='ldqnx.so'
 
11681
  ;;
 
11682
 
 
11683
openbsd*)
 
11684
  version_type=sunos
 
11685
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11686
  need_lib_prefix=no
 
11687
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11688
  case $host_os in
 
11689
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11690
    *)                          need_version=no  ;;
 
11691
  esac
 
11692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11693
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11694
  shlibpath_var=LD_LIBRARY_PATH
 
11695
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11696
    case $host_os in
 
11697
      openbsd2.[89] | openbsd2.[89].*)
 
11698
        shlibpath_overrides_runpath=no
 
11699
        ;;
 
11700
      *)
 
11701
        shlibpath_overrides_runpath=yes
 
11702
        ;;
 
11703
      esac
 
11704
  else
 
11705
    shlibpath_overrides_runpath=yes
 
11706
  fi
 
11707
  ;;
 
11708
 
 
11709
os2*)
 
11710
  libname_spec='$name'
 
11711
  shrext_cmds=".dll"
 
11712
  need_lib_prefix=no
 
11713
  library_names_spec='$libname${shared_ext} $libname.a'
 
11714
  dynamic_linker='OS/2 ld.exe'
 
11715
  shlibpath_var=LIBPATH
 
11716
  ;;
 
11717
 
 
11718
osf3* | osf4* | osf5*)
 
11719
  version_type=osf
 
11720
  need_lib_prefix=no
 
11721
  need_version=no
 
11722
  soname_spec='${libname}${release}${shared_ext}$major'
 
11723
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11724
  shlibpath_var=LD_LIBRARY_PATH
 
11725
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11726
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11727
  ;;
 
11728
 
 
11729
rdos*)
 
11730
  dynamic_linker=no
 
11731
  ;;
 
11732
 
 
11733
solaris*)
 
11734
  version_type=linux # correct to gnu/linux during the next big refactor
 
11735
  need_lib_prefix=no
 
11736
  need_version=no
 
11737
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11738
  soname_spec='${libname}${release}${shared_ext}$major'
 
11739
  shlibpath_var=LD_LIBRARY_PATH
 
11740
  shlibpath_overrides_runpath=yes
 
11741
  hardcode_into_libs=yes
 
11742
  # ldd complains unless libraries are executable
 
11743
  postinstall_cmds='chmod +x $lib'
 
11744
  ;;
 
11745
 
 
11746
sunos4*)
 
11747
  version_type=sunos
 
11748
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11749
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11750
  shlibpath_var=LD_LIBRARY_PATH
 
11751
  shlibpath_overrides_runpath=yes
 
11752
  if test "$with_gnu_ld" = yes; then
 
11753
    need_lib_prefix=no
 
11754
  fi
 
11755
  need_version=yes
 
11756
  ;;
 
11757
 
 
11758
sysv4 | sysv4.3*)
 
11759
  version_type=linux # correct to gnu/linux during the next big refactor
 
11760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11761
  soname_spec='${libname}${release}${shared_ext}$major'
 
11762
  shlibpath_var=LD_LIBRARY_PATH
 
11763
  case $host_vendor in
 
11764
    sni)
 
11765
      shlibpath_overrides_runpath=no
 
11766
      need_lib_prefix=no
 
11767
      runpath_var=LD_RUN_PATH
 
11768
      ;;
 
11769
    siemens)
 
11770
      need_lib_prefix=no
 
11771
      ;;
 
11772
    motorola)
 
11773
      need_lib_prefix=no
 
11774
      need_version=no
 
11775
      shlibpath_overrides_runpath=no
 
11776
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11777
      ;;
 
11778
  esac
 
11779
  ;;
 
11780
 
 
11781
sysv4*MP*)
 
11782
  if test -d /usr/nec ;then
 
11783
    version_type=linux # correct to gnu/linux during the next big refactor
 
11784
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11785
    soname_spec='$libname${shared_ext}.$major'
 
11786
    shlibpath_var=LD_LIBRARY_PATH
 
11787
  fi
 
11788
  ;;
 
11789
 
 
11790
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11791
  version_type=freebsd-elf
 
11792
  need_lib_prefix=no
 
11793
  need_version=no
 
11794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11795
  soname_spec='${libname}${release}${shared_ext}$major'
 
11796
  shlibpath_var=LD_LIBRARY_PATH
 
11797
  shlibpath_overrides_runpath=yes
 
11798
  hardcode_into_libs=yes
 
11799
  if test "$with_gnu_ld" = yes; then
 
11800
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11801
  else
 
11802
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11803
    case $host_os in
 
11804
      sco3.2v5*)
 
11805
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11806
        ;;
 
11807
    esac
 
11808
  fi
 
11809
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11810
  ;;
 
11811
 
 
11812
tpf*)
 
11813
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11814
  version_type=linux # correct to gnu/linux during the next big refactor
 
11815
  need_lib_prefix=no
 
11816
  need_version=no
 
11817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11818
  shlibpath_var=LD_LIBRARY_PATH
 
11819
  shlibpath_overrides_runpath=no
 
11820
  hardcode_into_libs=yes
 
11821
  ;;
 
11822
 
 
11823
uts4*)
 
11824
  version_type=linux # correct to gnu/linux during the next big refactor
 
11825
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11826
  soname_spec='${libname}${release}${shared_ext}$major'
 
11827
  shlibpath_var=LD_LIBRARY_PATH
 
11828
  ;;
 
11829
 
 
11830
*)
 
11831
  dynamic_linker=no
 
11832
  ;;
 
11833
esac
 
11834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11835
$as_echo "$dynamic_linker" >&6; }
 
11836
test "$dynamic_linker" = no && can_build_shared=no
 
11837
 
 
11838
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11839
if test "$GCC" = yes; then
 
11840
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11841
fi
 
11842
 
 
11843
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11844
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11845
fi
 
11846
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11847
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11848
fi
 
11849
 
 
11850
 
 
11851
 
 
11852
 
 
11853
 
 
11854
 
 
11855
 
 
11856
 
 
11857
 
 
11858
 
 
11859
 
 
11860
 
 
11861
 
 
11862
 
 
11863
 
 
11864
 
 
11865
 
 
11866
 
 
11867
 
 
11868
 
 
11869
 
 
11870
 
 
11871
 
 
11872
 
 
11873
 
 
11874
 
 
11875
 
 
11876
 
 
11877
 
 
11878
 
 
11879
 
 
11880
 
 
11881
 
 
11882
 
 
11883
 
 
11884
 
 
11885
 
 
11886
 
 
11887
 
 
11888
 
 
11889
 
 
11890
 
 
11891
 
 
11892
 
 
11893
 
 
11894
 
 
11895
 
 
11896
 
 
11897
 
 
11898
 
 
11899
 
 
11900
 
 
11901
 
 
11902
 
 
11903
 
 
11904
 
 
11905
 
 
11906
 
 
11907
 
 
11908
 
 
11909
 
 
11910
 
 
11911
 
 
11912
 
 
11913
 
 
11914
 
 
11915
 
 
11916
 
 
11917
 
 
11918
 
 
11919
 
 
11920
 
 
11921
 
 
11922
 
 
11923
 
 
11924
 
 
11925
 
 
11926
 
 
11927
 
 
11928
 
 
11929
 
 
11930
 
 
11931
 
 
11932
 
 
11933
 
 
11934
 
 
11935
 
 
11936
 
 
11937
 
 
11938
 
 
11939
 
 
11940
 
 
11941
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11942
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11943
hardcode_action=
 
11944
if test -n "$hardcode_libdir_flag_spec" ||
 
11945
   test -n "$runpath_var" ||
 
11946
   test "X$hardcode_automatic" = "Xyes" ; then
 
11947
 
 
11948
  # We can hardcode non-existent directories.
 
11949
  if test "$hardcode_direct" != no &&
 
11950
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11951
     # have to relink, otherwise we might link with an installed library
 
11952
     # when we should be linking with a yet-to-be-installed one
 
11953
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11954
     test "$hardcode_minus_L" != no; then
 
11955
    # Linking always hardcodes the temporary library directory.
 
11956
    hardcode_action=relink
 
11957
  else
 
11958
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11959
    hardcode_action=immediate
 
11960
  fi
 
11961
else
 
11962
  # We cannot hardcode anything, or else we can only hardcode existing
 
11963
  # directories.
 
11964
  hardcode_action=unsupported
 
11965
fi
 
11966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11967
$as_echo "$hardcode_action" >&6; }
 
11968
 
 
11969
if test "$hardcode_action" = relink ||
 
11970
   test "$inherit_rpath" = yes; then
 
11971
  # Fast installation is not supported
 
11972
  enable_fast_install=no
 
11973
elif test "$shlibpath_overrides_runpath" = yes ||
 
11974
     test "$enable_shared" = no; then
 
11975
  # Fast installation is not necessary
 
11976
  enable_fast_install=needless
 
11977
fi
 
11978
 
 
11979
 
 
11980
 
 
11981
 
 
11982
 
 
11983
 
 
11984
  if test "x$enable_dlopen" != xyes; then
 
11985
  enable_dlopen=unknown
 
11986
  enable_dlopen_self=unknown
 
11987
  enable_dlopen_self_static=unknown
 
11988
else
 
11989
  lt_cv_dlopen=no
 
11990
  lt_cv_dlopen_libs=
 
11991
 
 
11992
  case $host_os in
 
11993
  beos*)
 
11994
    lt_cv_dlopen="load_add_on"
 
11995
    lt_cv_dlopen_libs=
 
11996
    lt_cv_dlopen_self=yes
 
11997
    ;;
 
11998
 
 
11999
  mingw* | pw32* | cegcc*)
 
12000
    lt_cv_dlopen="LoadLibrary"
 
12001
    lt_cv_dlopen_libs=
 
12002
    ;;
 
12003
 
 
12004
  cygwin*)
 
12005
    lt_cv_dlopen="dlopen"
 
12006
    lt_cv_dlopen_libs=
 
12007
    ;;
 
12008
 
 
12009
  darwin*)
 
12010
  # if libdl is installed we need to link against it
 
12011
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12012
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12013
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12014
  $as_echo_n "(cached) " >&6
 
12015
else
 
12016
  ac_check_lib_save_LIBS=$LIBS
 
12017
LIBS="-ldl  $LIBS"
 
12018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12019
/* end confdefs.h.  */
 
12020
 
 
12021
/* Override any GCC internal prototype to avoid an error.
 
12022
   Use char because int might match the return type of a GCC
 
12023
   builtin and then its argument prototype would still apply.  */
 
12024
#ifdef __cplusplus
 
12025
extern "C"
 
12026
#endif
 
12027
char dlopen ();
 
12028
int
 
12029
main ()
 
12030
{
 
12031
return dlopen ();
 
12032
  ;
 
12033
  return 0;
 
12034
}
 
12035
_ACEOF
 
12036
if ac_fn_c_try_link "$LINENO"; then :
 
12037
  ac_cv_lib_dl_dlopen=yes
 
12038
else
 
12039
  ac_cv_lib_dl_dlopen=no
 
12040
fi
 
12041
rm -f core conftest.err conftest.$ac_objext \
 
12042
    conftest$ac_exeext conftest.$ac_ext
 
12043
LIBS=$ac_check_lib_save_LIBS
 
12044
fi
 
12045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12046
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12047
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12048
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12049
else
 
12050
 
 
12051
    lt_cv_dlopen="dyld"
 
12052
    lt_cv_dlopen_libs=
 
12053
    lt_cv_dlopen_self=yes
 
12054
 
 
12055
fi
 
12056
 
 
12057
    ;;
 
12058
 
 
12059
  *)
 
12060
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
12061
if test "x$ac_cv_func_shl_load" = xyes; then :
 
12062
  lt_cv_dlopen="shl_load"
 
12063
else
 
12064
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
12065
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
12066
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
12067
  $as_echo_n "(cached) " >&6
 
12068
else
 
12069
  ac_check_lib_save_LIBS=$LIBS
 
12070
LIBS="-ldld  $LIBS"
 
12071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12072
/* end confdefs.h.  */
 
12073
 
 
12074
/* Override any GCC internal prototype to avoid an error.
 
12075
   Use char because int might match the return type of a GCC
 
12076
   builtin and then its argument prototype would still apply.  */
 
12077
#ifdef __cplusplus
 
12078
extern "C"
 
12079
#endif
 
12080
char shl_load ();
 
12081
int
 
12082
main ()
 
12083
{
 
12084
return shl_load ();
 
12085
  ;
 
12086
  return 0;
 
12087
}
 
12088
_ACEOF
 
12089
if ac_fn_c_try_link "$LINENO"; then :
 
12090
  ac_cv_lib_dld_shl_load=yes
 
12091
else
 
12092
  ac_cv_lib_dld_shl_load=no
 
12093
fi
 
12094
rm -f core conftest.err conftest.$ac_objext \
 
12095
    conftest$ac_exeext conftest.$ac_ext
 
12096
LIBS=$ac_check_lib_save_LIBS
 
12097
fi
 
12098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
12099
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
12100
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
12101
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
12102
else
 
12103
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
12104
if test "x$ac_cv_func_dlopen" = xyes; then :
 
12105
  lt_cv_dlopen="dlopen"
 
12106
else
 
12107
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12108
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12109
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12110
  $as_echo_n "(cached) " >&6
 
12111
else
 
12112
  ac_check_lib_save_LIBS=$LIBS
 
12113
LIBS="-ldl  $LIBS"
 
12114
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12115
/* end confdefs.h.  */
 
12116
 
 
12117
/* Override any GCC internal prototype to avoid an error.
 
12118
   Use char because int might match the return type of a GCC
 
12119
   builtin and then its argument prototype would still apply.  */
 
12120
#ifdef __cplusplus
 
12121
extern "C"
 
12122
#endif
 
12123
char dlopen ();
 
12124
int
 
12125
main ()
 
12126
{
 
12127
return dlopen ();
 
12128
  ;
 
12129
  return 0;
 
12130
}
 
12131
_ACEOF
 
12132
if ac_fn_c_try_link "$LINENO"; then :
 
12133
  ac_cv_lib_dl_dlopen=yes
 
12134
else
 
12135
  ac_cv_lib_dl_dlopen=no
 
12136
fi
 
12137
rm -f core conftest.err conftest.$ac_objext \
 
12138
    conftest$ac_exeext conftest.$ac_ext
 
12139
LIBS=$ac_check_lib_save_LIBS
 
12140
fi
 
12141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12142
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12143
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12144
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12145
else
 
12146
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
12147
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
12148
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
12149
  $as_echo_n "(cached) " >&6
 
12150
else
 
12151
  ac_check_lib_save_LIBS=$LIBS
 
12152
LIBS="-lsvld  $LIBS"
 
12153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12154
/* end confdefs.h.  */
 
12155
 
 
12156
/* Override any GCC internal prototype to avoid an error.
 
12157
   Use char because int might match the return type of a GCC
 
12158
   builtin and then its argument prototype would still apply.  */
 
12159
#ifdef __cplusplus
 
12160
extern "C"
 
12161
#endif
 
12162
char dlopen ();
 
12163
int
 
12164
main ()
 
12165
{
 
12166
return dlopen ();
 
12167
  ;
 
12168
  return 0;
 
12169
}
 
12170
_ACEOF
 
12171
if ac_fn_c_try_link "$LINENO"; then :
 
12172
  ac_cv_lib_svld_dlopen=yes
 
12173
else
 
12174
  ac_cv_lib_svld_dlopen=no
 
12175
fi
 
12176
rm -f core conftest.err conftest.$ac_objext \
 
12177
    conftest$ac_exeext conftest.$ac_ext
 
12178
LIBS=$ac_check_lib_save_LIBS
 
12179
fi
 
12180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
12181
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
12182
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
12183
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12184
else
 
12185
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
12186
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
12187
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
12188
  $as_echo_n "(cached) " >&6
 
12189
else
 
12190
  ac_check_lib_save_LIBS=$LIBS
 
12191
LIBS="-ldld  $LIBS"
 
12192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12193
/* end confdefs.h.  */
 
12194
 
 
12195
/* Override any GCC internal prototype to avoid an error.
 
12196
   Use char because int might match the return type of a GCC
 
12197
   builtin and then its argument prototype would still apply.  */
 
12198
#ifdef __cplusplus
 
12199
extern "C"
 
12200
#endif
 
12201
char dld_link ();
 
12202
int
 
12203
main ()
 
12204
{
 
12205
return dld_link ();
 
12206
  ;
 
12207
  return 0;
 
12208
}
 
12209
_ACEOF
 
12210
if ac_fn_c_try_link "$LINENO"; then :
 
12211
  ac_cv_lib_dld_dld_link=yes
 
12212
else
 
12213
  ac_cv_lib_dld_dld_link=no
 
12214
fi
 
12215
rm -f core conftest.err conftest.$ac_objext \
 
12216
    conftest$ac_exeext conftest.$ac_ext
 
12217
LIBS=$ac_check_lib_save_LIBS
 
12218
fi
 
12219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
12220
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
12221
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
12222
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
12223
fi
 
12224
 
 
12225
 
 
12226
fi
 
12227
 
 
12228
 
 
12229
fi
 
12230
 
 
12231
 
 
12232
fi
 
12233
 
 
12234
 
 
12235
fi
 
12236
 
 
12237
 
 
12238
fi
 
12239
 
 
12240
    ;;
 
12241
  esac
 
12242
 
 
12243
  if test "x$lt_cv_dlopen" != xno; then
 
12244
    enable_dlopen=yes
 
12245
  else
 
12246
    enable_dlopen=no
 
12247
  fi
 
12248
 
 
12249
  case $lt_cv_dlopen in
 
12250
  dlopen)
 
12251
    save_CPPFLAGS="$CPPFLAGS"
 
12252
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12253
 
 
12254
    save_LDFLAGS="$LDFLAGS"
 
12255
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12256
 
 
12257
    save_LIBS="$LIBS"
 
12258
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12259
 
 
12260
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
12261
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
12262
if ${lt_cv_dlopen_self+:} false; then :
 
12263
  $as_echo_n "(cached) " >&6
 
12264
else
 
12265
          if test "$cross_compiling" = yes; then :
 
12266
  lt_cv_dlopen_self=cross
 
12267
else
 
12268
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12269
  lt_status=$lt_dlunknown
 
12270
  cat > conftest.$ac_ext <<_LT_EOF
 
12271
#line $LINENO "configure"
 
12272
#include "confdefs.h"
 
12273
 
 
12274
#if HAVE_DLFCN_H
 
12275
#include <dlfcn.h>
 
12276
#endif
 
12277
 
 
12278
#include <stdio.h>
 
12279
 
 
12280
#ifdef RTLD_GLOBAL
 
12281
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12282
#else
 
12283
#  ifdef DL_GLOBAL
 
12284
#    define LT_DLGLOBAL         DL_GLOBAL
 
12285
#  else
 
12286
#    define LT_DLGLOBAL         0
 
12287
#  endif
 
12288
#endif
 
12289
 
 
12290
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12291
   find out it does not work in some platform. */
 
12292
#ifndef LT_DLLAZY_OR_NOW
 
12293
#  ifdef RTLD_LAZY
 
12294
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12295
#  else
 
12296
#    ifdef DL_LAZY
 
12297
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12298
#    else
 
12299
#      ifdef RTLD_NOW
 
12300
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12301
#      else
 
12302
#        ifdef DL_NOW
 
12303
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12304
#        else
 
12305
#          define LT_DLLAZY_OR_NOW      0
 
12306
#        endif
 
12307
#      endif
 
12308
#    endif
 
12309
#  endif
 
12310
#endif
 
12311
 
 
12312
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12313
   correspondingly for the symbols needed.  */
 
12314
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12315
int fnord () __attribute__((visibility("default")));
 
12316
#endif
 
12317
 
 
12318
int fnord () { return 42; }
 
12319
int main ()
 
12320
{
 
12321
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12322
  int status = $lt_dlunknown;
 
12323
 
 
12324
  if (self)
 
12325
    {
 
12326
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12327
      else
 
12328
        {
 
12329
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12330
          else puts (dlerror ());
 
12331
        }
 
12332
      /* dlclose (self); */
 
12333
    }
 
12334
  else
 
12335
    puts (dlerror ());
 
12336
 
 
12337
  return status;
 
12338
}
 
12339
_LT_EOF
 
12340
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12341
  (eval $ac_link) 2>&5
 
12342
  ac_status=$?
 
12343
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12344
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12345
    (./conftest; exit; ) >&5 2>/dev/null
 
12346
    lt_status=$?
 
12347
    case x$lt_status in
 
12348
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12349
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12350
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12351
    esac
 
12352
  else :
 
12353
    # compilation failed
 
12354
    lt_cv_dlopen_self=no
 
12355
  fi
 
12356
fi
 
12357
rm -fr conftest*
 
12358
 
 
12359
 
 
12360
fi
 
12361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
12362
$as_echo "$lt_cv_dlopen_self" >&6; }
 
12363
 
 
12364
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12365
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12366
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
12367
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
12368
if ${lt_cv_dlopen_self_static+:} false; then :
 
12369
  $as_echo_n "(cached) " >&6
 
12370
else
 
12371
          if test "$cross_compiling" = yes; then :
 
12372
  lt_cv_dlopen_self_static=cross
 
12373
else
 
12374
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12375
  lt_status=$lt_dlunknown
 
12376
  cat > conftest.$ac_ext <<_LT_EOF
 
12377
#line $LINENO "configure"
 
12378
#include "confdefs.h"
 
12379
 
 
12380
#if HAVE_DLFCN_H
 
12381
#include <dlfcn.h>
 
12382
#endif
 
12383
 
 
12384
#include <stdio.h>
 
12385
 
 
12386
#ifdef RTLD_GLOBAL
 
12387
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12388
#else
 
12389
#  ifdef DL_GLOBAL
 
12390
#    define LT_DLGLOBAL         DL_GLOBAL
 
12391
#  else
 
12392
#    define LT_DLGLOBAL         0
 
12393
#  endif
 
12394
#endif
 
12395
 
 
12396
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12397
   find out it does not work in some platform. */
 
12398
#ifndef LT_DLLAZY_OR_NOW
 
12399
#  ifdef RTLD_LAZY
 
12400
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12401
#  else
 
12402
#    ifdef DL_LAZY
 
12403
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12404
#    else
 
12405
#      ifdef RTLD_NOW
 
12406
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12407
#      else
 
12408
#        ifdef DL_NOW
 
12409
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12410
#        else
 
12411
#          define LT_DLLAZY_OR_NOW      0
 
12412
#        endif
 
12413
#      endif
 
12414
#    endif
 
12415
#  endif
 
12416
#endif
 
12417
 
 
12418
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12419
   correspondingly for the symbols needed.  */
 
12420
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12421
int fnord () __attribute__((visibility("default")));
 
12422
#endif
 
12423
 
 
12424
int fnord () { return 42; }
 
12425
int main ()
 
12426
{
 
12427
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12428
  int status = $lt_dlunknown;
 
12429
 
 
12430
  if (self)
 
12431
    {
 
12432
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12433
      else
 
12434
        {
 
12435
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12436
          else puts (dlerror ());
 
12437
        }
 
12438
      /* dlclose (self); */
 
12439
    }
 
12440
  else
 
12441
    puts (dlerror ());
 
12442
 
 
12443
  return status;
 
12444
}
 
12445
_LT_EOF
 
12446
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12447
  (eval $ac_link) 2>&5
 
12448
  ac_status=$?
 
12449
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12450
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12451
    (./conftest; exit; ) >&5 2>/dev/null
 
12452
    lt_status=$?
 
12453
    case x$lt_status in
 
12454
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12455
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12456
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12457
    esac
 
12458
  else :
 
12459
    # compilation failed
 
12460
    lt_cv_dlopen_self_static=no
 
12461
  fi
 
12462
fi
 
12463
rm -fr conftest*
 
12464
 
 
12465
 
 
12466
fi
 
12467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12468
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
12469
    fi
 
12470
 
 
12471
    CPPFLAGS="$save_CPPFLAGS"
 
12472
    LDFLAGS="$save_LDFLAGS"
 
12473
    LIBS="$save_LIBS"
 
12474
    ;;
 
12475
  esac
 
12476
 
 
12477
  case $lt_cv_dlopen_self in
 
12478
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12479
  *) enable_dlopen_self=unknown ;;
 
12480
  esac
 
12481
 
 
12482
  case $lt_cv_dlopen_self_static in
 
12483
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12484
  *) enable_dlopen_self_static=unknown ;;
 
12485
  esac
 
12486
fi
 
12487
 
 
12488
 
 
12489
 
 
12490
 
 
12491
 
 
12492
 
 
12493
 
 
12494
 
 
12495
 
 
12496
 
 
12497
 
 
12498
 
 
12499
 
 
12500
 
 
12501
 
 
12502
 
 
12503
 
 
12504
striplib=
 
12505
old_striplib=
 
12506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12507
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12508
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12509
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12510
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12512
$as_echo "yes" >&6; }
 
12513
else
 
12514
# FIXME - insert some real tests, host_os isn't really good enough
 
12515
  case $host_os in
 
12516
  darwin*)
 
12517
    if test -n "$STRIP" ; then
 
12518
      striplib="$STRIP -x"
 
12519
      old_striplib="$STRIP -S"
 
12520
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12521
$as_echo "yes" >&6; }
 
12522
    else
 
12523
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12524
$as_echo "no" >&6; }
 
12525
    fi
 
12526
    ;;
 
12527
  *)
 
12528
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12529
$as_echo "no" >&6; }
 
12530
    ;;
 
12531
  esac
 
12532
fi
 
12533
 
 
12534
 
 
12535
 
 
12536
 
 
12537
 
 
12538
 
 
12539
 
 
12540
 
 
12541
 
 
12542
 
 
12543
 
 
12544
 
 
12545
  # Report which library types will actually be built
 
12546
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12547
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12548
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12549
$as_echo "$can_build_shared" >&6; }
 
12550
 
 
12551
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12552
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12553
  test "$can_build_shared" = "no" && enable_shared=no
 
12554
 
 
12555
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12556
  # are all built from PIC.
 
12557
  case $host_os in
 
12558
  aix3*)
 
12559
    test "$enable_shared" = yes && enable_static=no
 
12560
    if test -n "$RANLIB"; then
 
12561
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12562
      postinstall_cmds='$RANLIB $lib'
 
12563
    fi
 
12564
    ;;
 
12565
 
 
12566
  aix[4-9]*)
 
12567
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12568
      test "$enable_shared" = yes && enable_static=no
 
12569
    fi
 
12570
    ;;
 
12571
  esac
 
12572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12573
$as_echo "$enable_shared" >&6; }
 
12574
 
 
12575
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12576
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12577
  # Make sure either enable_shared or enable_static is yes.
 
12578
  test "$enable_shared" = yes || enable_static=yes
 
12579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12580
$as_echo "$enable_static" >&6; }
 
12581
 
 
12582
 
 
12583
 
 
12584
 
 
12585
fi
 
12586
ac_ext=cpp
 
12587
ac_cpp='$CXXCPP $CPPFLAGS'
 
12588
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12589
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12590
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12591
 
 
12592
CC="$lt_save_CC"
 
12593
 
 
12594
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12595
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12596
    (test "X$CXX" != "Xg++"))) ; then
 
12597
  ac_ext=cpp
 
12598
ac_cpp='$CXXCPP $CPPFLAGS'
 
12599
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12600
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12601
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
12603
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
12604
if test -z "$CXXCPP"; then
 
12605
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
12606
  $as_echo_n "(cached) " >&6
 
12607
else
 
12608
      # Double quotes because CXXCPP needs to be expanded
 
12609
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
12610
    do
 
12611
      ac_preproc_ok=false
 
12612
for ac_cxx_preproc_warn_flag in '' yes
 
12613
do
 
12614
  # Use a header file that comes with gcc, so configuring glibc
 
12615
  # with a fresh cross-compiler works.
 
12616
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12617
  # <limits.h> exists even on freestanding compilers.
 
12618
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12619
  # not just through cpp. "Syntax error" is here to catch this case.
 
12620
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12621
/* end confdefs.h.  */
 
12622
#ifdef __STDC__
 
12623
# include <limits.h>
 
12624
#else
 
12625
# include <assert.h>
 
12626
#endif
 
12627
                     Syntax error
 
12628
_ACEOF
 
12629
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12630
 
 
12631
else
 
12632
  # Broken: fails on valid input.
 
12633
continue
 
12634
fi
 
12635
rm -f conftest.err conftest.i conftest.$ac_ext
 
12636
 
 
12637
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12638
  # can be detected and how.
 
12639
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12640
/* end confdefs.h.  */
 
12641
#include <ac_nonexistent.h>
 
12642
_ACEOF
 
12643
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12644
  # Broken: success on invalid input.
 
12645
continue
 
12646
else
 
12647
  # Passes both tests.
 
12648
ac_preproc_ok=:
 
12649
break
 
12650
fi
 
12651
rm -f conftest.err conftest.i conftest.$ac_ext
 
12652
 
 
12653
done
 
12654
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12655
rm -f conftest.i conftest.err conftest.$ac_ext
 
12656
if $ac_preproc_ok; then :
 
12657
  break
 
12658
fi
 
12659
 
 
12660
    done
 
12661
    ac_cv_prog_CXXCPP=$CXXCPP
 
12662
 
 
12663
fi
 
12664
  CXXCPP=$ac_cv_prog_CXXCPP
 
12665
else
 
12666
  ac_cv_prog_CXXCPP=$CXXCPP
 
12667
fi
 
12668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12669
$as_echo "$CXXCPP" >&6; }
 
12670
ac_preproc_ok=false
 
12671
for ac_cxx_preproc_warn_flag in '' yes
 
12672
do
 
12673
  # Use a header file that comes with gcc, so configuring glibc
 
12674
  # with a fresh cross-compiler works.
 
12675
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12676
  # <limits.h> exists even on freestanding compilers.
 
12677
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12678
  # not just through cpp. "Syntax error" is here to catch this case.
 
12679
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12680
/* end confdefs.h.  */
 
12681
#ifdef __STDC__
 
12682
# include <limits.h>
 
12683
#else
 
12684
# include <assert.h>
 
12685
#endif
 
12686
                     Syntax error
 
12687
_ACEOF
 
12688
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12689
 
 
12690
else
 
12691
  # Broken: fails on valid input.
 
12692
continue
 
12693
fi
 
12694
rm -f conftest.err conftest.i conftest.$ac_ext
 
12695
 
 
12696
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12697
  # can be detected and how.
 
12698
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12699
/* end confdefs.h.  */
 
12700
#include <ac_nonexistent.h>
 
12701
_ACEOF
 
12702
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12703
  # Broken: success on invalid input.
 
12704
continue
 
12705
else
 
12706
  # Passes both tests.
 
12707
ac_preproc_ok=:
 
12708
break
 
12709
fi
 
12710
rm -f conftest.err conftest.i conftest.$ac_ext
 
12711
 
 
12712
done
 
12713
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12714
rm -f conftest.i conftest.err conftest.$ac_ext
 
12715
if $ac_preproc_ok; then :
 
12716
 
 
12717
else
 
12718
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12719
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12720
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
12721
See \`config.log' for more details" "$LINENO" 5; }
 
12722
fi
 
12723
 
 
12724
ac_ext=cpp
 
12725
ac_cpp='$CXXCPP $CPPFLAGS'
 
12726
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12727
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12728
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12729
 
 
12730
else
 
12731
  _lt_caught_CXX_error=yes
 
12732
fi
 
12733
 
 
12734
ac_ext=cpp
 
12735
ac_cpp='$CXXCPP $CPPFLAGS'
 
12736
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12737
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12738
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12739
 
 
12740
archive_cmds_need_lc_CXX=no
 
12741
allow_undefined_flag_CXX=
 
12742
always_export_symbols_CXX=no
 
12743
archive_expsym_cmds_CXX=
 
12744
compiler_needs_object_CXX=no
 
12745
export_dynamic_flag_spec_CXX=
 
12746
hardcode_direct_CXX=no
 
12747
hardcode_direct_absolute_CXX=no
 
12748
hardcode_libdir_flag_spec_CXX=
 
12749
hardcode_libdir_separator_CXX=
 
12750
hardcode_minus_L_CXX=no
 
12751
hardcode_shlibpath_var_CXX=unsupported
 
12752
hardcode_automatic_CXX=no
 
12753
inherit_rpath_CXX=no
 
12754
module_cmds_CXX=
 
12755
module_expsym_cmds_CXX=
 
12756
link_all_deplibs_CXX=unknown
 
12757
old_archive_cmds_CXX=$old_archive_cmds
 
12758
reload_flag_CXX=$reload_flag
 
12759
reload_cmds_CXX=$reload_cmds
 
12760
no_undefined_flag_CXX=
 
12761
whole_archive_flag_spec_CXX=
 
12762
enable_shared_with_static_runtimes_CXX=no
 
12763
 
 
12764
# Source file extension for C++ test sources.
 
12765
ac_ext=cpp
 
12766
 
 
12767
# Object file extension for compiled C++ test sources.
 
12768
objext=o
 
12769
objext_CXX=$objext
 
12770
 
 
12771
# No sense in running all these tests if we already determined that
 
12772
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12773
# are currently assumed to apply to all compilers on this platform,
 
12774
# and will be corrupted by setting them based on a non-working compiler.
 
12775
if test "$_lt_caught_CXX_error" != yes; then
 
12776
  # Code to be used in simple compile tests
 
12777
  lt_simple_compile_test_code="int some_variable = 0;"
 
12778
 
 
12779
  # Code to be used in simple link tests
 
12780
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12781
 
 
12782
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12783
 
 
12784
 
 
12785
 
 
12786
 
 
12787
 
 
12788
 
 
12789
# If no C compiler was specified, use CC.
 
12790
LTCC=${LTCC-"$CC"}
 
12791
 
 
12792
# If no C compiler flags were specified, use CFLAGS.
 
12793
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12794
 
 
12795
# Allow CC to be a program name with arguments.
 
12796
compiler=$CC
 
12797
 
 
12798
 
 
12799
  # save warnings/boilerplate of simple test code
 
12800
  ac_outfile=conftest.$ac_objext
 
12801
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12802
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12803
_lt_compiler_boilerplate=`cat conftest.err`
 
12804
$RM conftest*
 
12805
 
 
12806
  ac_outfile=conftest.$ac_objext
 
12807
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12808
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12809
_lt_linker_boilerplate=`cat conftest.err`
 
12810
$RM -r conftest*
 
12811
 
 
12812
 
 
12813
  # Allow CC to be a program name with arguments.
 
12814
  lt_save_CC=$CC
 
12815
  lt_save_CFLAGS=$CFLAGS
 
12816
  lt_save_LD=$LD
 
12817
  lt_save_GCC=$GCC
 
12818
  GCC=$GXX
 
12819
  lt_save_with_gnu_ld=$with_gnu_ld
 
12820
  lt_save_path_LD=$lt_cv_path_LD
 
12821
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12822
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12823
  else
 
12824
    $as_unset lt_cv_prog_gnu_ld
 
12825
  fi
 
12826
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12827
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12828
  else
 
12829
    $as_unset lt_cv_path_LD
 
12830
  fi
 
12831
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12832
  CC=${CXX-"c++"}
 
12833
  CFLAGS=$CXXFLAGS
 
12834
  compiler=$CC
 
12835
  compiler_CXX=$CC
 
12836
  for cc_temp in $compiler""; do
 
12837
  case $cc_temp in
 
12838
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12839
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12840
    \-*) ;;
 
12841
    *) break;;
 
12842
  esac
 
12843
done
 
12844
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12845
 
 
12846
 
 
12847
  if test -n "$compiler"; then
 
12848
    # We don't want -fno-exception when compiling C++ code, so set the
 
12849
    # no_builtin_flag separately
 
12850
    if test "$GXX" = yes; then
 
12851
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12852
    else
 
12853
      lt_prog_compiler_no_builtin_flag_CXX=
 
12854
    fi
 
12855
 
 
12856
    if test "$GXX" = yes; then
 
12857
      # Set up default GNU C++ configuration
 
12858
 
 
12859
 
 
12860
 
 
12861
# Check whether --with-gnu-ld was given.
 
12862
if test "${with_gnu_ld+set}" = set; then :
 
12863
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12864
else
 
12865
  with_gnu_ld=no
 
12866
fi
 
12867
 
 
12868
ac_prog=ld
 
12869
if test "$GCC" = yes; then
 
12870
  # Check if gcc -print-prog-name=ld gives a path.
 
12871
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12872
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12873
  case $host in
 
12874
  *-*-mingw*)
 
12875
    # gcc leaves a trailing carriage return which upsets mingw
 
12876
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12877
  *)
 
12878
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12879
  esac
 
12880
  case $ac_prog in
 
12881
    # Accept absolute paths.
 
12882
    [\\/]* | ?:[\\/]*)
 
12883
      re_direlt='/[^/][^/]*/\.\./'
 
12884
      # Canonicalize the pathname of ld
 
12885
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12886
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12887
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
12888
      done
 
12889
      test -z "$LD" && LD="$ac_prog"
 
12890
      ;;
 
12891
  "")
 
12892
    # If it fails, then pretend we aren't using GCC.
 
12893
    ac_prog=ld
 
12894
    ;;
 
12895
  *)
 
12896
    # If it is relative, then search for the first ld in PATH.
 
12897
    with_gnu_ld=unknown
 
12898
    ;;
 
12899
  esac
 
12900
elif test "$with_gnu_ld" = yes; then
 
12901
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12902
$as_echo_n "checking for GNU ld... " >&6; }
 
12903
else
 
12904
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12905
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12906
fi
 
12907
if ${lt_cv_path_LD+:} false; then :
 
12908
  $as_echo_n "(cached) " >&6
 
12909
else
 
12910
  if test -z "$LD"; then
 
12911
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12912
  for ac_dir in $PATH; do
 
12913
    IFS="$lt_save_ifs"
 
12914
    test -z "$ac_dir" && ac_dir=.
 
12915
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12916
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12917
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12918
      # but apparently some variants of GNU ld only accept -v.
 
12919
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12920
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12921
      *GNU* | *'with BFD'*)
 
12922
        test "$with_gnu_ld" != no && break
 
12923
        ;;
 
12924
      *)
 
12925
        test "$with_gnu_ld" != yes && break
 
12926
        ;;
 
12927
      esac
 
12928
    fi
 
12929
  done
 
12930
  IFS="$lt_save_ifs"
 
12931
else
 
12932
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12933
fi
 
12934
fi
 
12935
 
 
12936
LD="$lt_cv_path_LD"
 
12937
if test -n "$LD"; then
 
12938
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12939
$as_echo "$LD" >&6; }
 
12940
else
 
12941
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12942
$as_echo "no" >&6; }
 
12943
fi
 
12944
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12946
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12947
if ${lt_cv_prog_gnu_ld+:} false; then :
 
12948
  $as_echo_n "(cached) " >&6
 
12949
else
 
12950
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12951
case `$LD -v 2>&1 </dev/null` in
 
12952
*GNU* | *'with BFD'*)
 
12953
  lt_cv_prog_gnu_ld=yes
 
12954
  ;;
 
12955
*)
 
12956
  lt_cv_prog_gnu_ld=no
 
12957
  ;;
 
12958
esac
 
12959
fi
 
12960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12961
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12962
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12963
 
 
12964
 
 
12965
 
 
12966
 
 
12967
 
 
12968
 
 
12969
 
 
12970
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12971
      # archiving commands below assume that GNU ld is being used.
 
12972
      if test "$with_gnu_ld" = yes; then
 
12973
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12974
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12975
 
 
12976
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12977
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12978
 
 
12979
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12980
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12981
        #     investigate it a little bit more. (MM)
 
12982
        wlarc='${wl}'
 
12983
 
 
12984
        # ancient GNU ld didn't support --whole-archive et. al.
 
12985
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12986
          $GREP 'no-whole-archive' > /dev/null; then
 
12987
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12988
        else
 
12989
          whole_archive_flag_spec_CXX=
 
12990
        fi
 
12991
      else
 
12992
        with_gnu_ld=no
 
12993
        wlarc=
 
12994
 
 
12995
        # A generic and very simple default shared library creation
 
12996
        # command for GNU C++ for the case where it uses the native
 
12997
        # linker, instead of GNU ld.  If possible, this setting should
 
12998
        # overridden to take advantage of the native linker features on
 
12999
        # the platform it is being used on.
 
13000
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13001
      fi
 
13002
 
 
13003
      # Commands to make compiler produce verbose output that lists
 
13004
      # what "hidden" libraries, object files and flags are used when
 
13005
      # linking a shared library.
 
13006
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13007
 
 
13008
    else
 
13009
      GXX=no
 
13010
      with_gnu_ld=no
 
13011
      wlarc=
 
13012
    fi
 
13013
 
 
13014
    # PORTME: fill in a description of your system's C++ link characteristics
 
13015
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13016
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13017
    ld_shlibs_CXX=yes
 
13018
    case $host_os in
 
13019
      aix3*)
 
13020
        # FIXME: insert proper C++ library support
 
13021
        ld_shlibs_CXX=no
 
13022
        ;;
 
13023
      aix[4-9]*)
 
13024
        if test "$host_cpu" = ia64; then
 
13025
          # On IA64, the linker does run time linking by default, so we don't
 
13026
          # have to do anything special.
 
13027
          aix_use_runtimelinking=no
 
13028
          exp_sym_flag='-Bexport'
 
13029
          no_entry_flag=""
 
13030
        else
 
13031
          aix_use_runtimelinking=no
 
13032
 
 
13033
          # Test if we are trying to use run time linking or normal
 
13034
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13035
          # need to do runtime linking.
 
13036
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
13037
            for ld_flag in $LDFLAGS; do
 
13038
              case $ld_flag in
 
13039
              *-brtl*)
 
13040
                aix_use_runtimelinking=yes
 
13041
                break
 
13042
                ;;
 
13043
              esac
 
13044
            done
 
13045
            ;;
 
13046
          esac
 
13047
 
 
13048
          exp_sym_flag='-bexport'
 
13049
          no_entry_flag='-bnoentry'
 
13050
        fi
 
13051
 
 
13052
        # When large executables or shared objects are built, AIX ld can
 
13053
        # have problems creating the table of contents.  If linking a library
 
13054
        # or program results in "error TOC overflow" add -mminimal-toc to
 
13055
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13056
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13057
 
 
13058
        archive_cmds_CXX=''
 
13059
        hardcode_direct_CXX=yes
 
13060
        hardcode_direct_absolute_CXX=yes
 
13061
        hardcode_libdir_separator_CXX=':'
 
13062
        link_all_deplibs_CXX=yes
 
13063
        file_list_spec_CXX='${wl}-f,'
 
13064
 
 
13065
        if test "$GXX" = yes; then
 
13066
          case $host_os in aix4.[012]|aix4.[012].*)
 
13067
          # We only want to do this on AIX 4.2 and lower, the check
 
13068
          # below for broken collect2 doesn't work under 4.3+
 
13069
          collect2name=`${CC} -print-prog-name=collect2`
 
13070
          if test -f "$collect2name" &&
 
13071
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
13072
          then
 
13073
            # We have reworked collect2
 
13074
            :
 
13075
          else
 
13076
            # We have old collect2
 
13077
            hardcode_direct_CXX=unsupported
 
13078
            # It fails to find uninstalled libraries when the uninstalled
 
13079
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
13080
            # to unsupported forces relinking
 
13081
            hardcode_minus_L_CXX=yes
 
13082
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13083
            hardcode_libdir_separator_CXX=
 
13084
          fi
 
13085
          esac
 
13086
          shared_flag='-shared'
 
13087
          if test "$aix_use_runtimelinking" = yes; then
 
13088
            shared_flag="$shared_flag "'${wl}-G'
 
13089
          fi
 
13090
        else
 
13091
          # not using gcc
 
13092
          if test "$host_cpu" = ia64; then
 
13093
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13094
          # chokes on -Wl,-G. The following line is correct:
 
13095
          shared_flag='-G'
 
13096
          else
 
13097
            if test "$aix_use_runtimelinking" = yes; then
 
13098
              shared_flag='${wl}-G'
 
13099
            else
 
13100
              shared_flag='${wl}-bM:SRE'
 
13101
            fi
 
13102
          fi
 
13103
        fi
 
13104
 
 
13105
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
13106
        # It seems that -bexpall does not export symbols beginning with
 
13107
        # underscore (_), so it is better to generate a list of symbols to
 
13108
        # export.
 
13109
        always_export_symbols_CXX=yes
 
13110
        if test "$aix_use_runtimelinking" = yes; then
 
13111
          # Warning - without using the other runtime loading flags (-brtl),
 
13112
          # -berok will link without error, but may produce a broken library.
 
13113
          allow_undefined_flag_CXX='-berok'
 
13114
          # Determine the default libpath from the value encoded in an empty
 
13115
          # executable.
 
13116
          if test "${lt_cv_aix_libpath+set}" = set; then
 
13117
  aix_libpath=$lt_cv_aix_libpath
 
13118
else
 
13119
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
13120
  $as_echo_n "(cached) " >&6
 
13121
else
 
13122
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13123
/* end confdefs.h.  */
 
13124
 
 
13125
int
 
13126
main ()
 
13127
{
 
13128
 
 
13129
  ;
 
13130
  return 0;
 
13131
}
 
13132
_ACEOF
 
13133
if ac_fn_cxx_try_link "$LINENO"; then :
 
13134
 
 
13135
  lt_aix_libpath_sed='
 
13136
      /Import File Strings/,/^$/ {
 
13137
          /^0/ {
 
13138
              s/^0  *\([^ ]*\) *$/\1/
 
13139
              p
 
13140
          }
 
13141
      }'
 
13142
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13143
  # Check for a 64-bit object if we didn't find anything.
 
13144
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13145
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13146
  fi
 
13147
fi
 
13148
rm -f core conftest.err conftest.$ac_objext \
 
13149
    conftest$ac_exeext conftest.$ac_ext
 
13150
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13151
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13152
  fi
 
13153
 
 
13154
fi
 
13155
 
 
13156
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13157
fi
 
13158
 
 
13159
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13160
 
 
13161
          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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13162
        else
 
13163
          if test "$host_cpu" = ia64; then
 
13164
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
13165
            allow_undefined_flag_CXX="-z nodefs"
 
13166
            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"
 
13167
          else
 
13168
            # Determine the default libpath from the value encoded in an
 
13169
            # empty executable.
 
13170
            if test "${lt_cv_aix_libpath+set}" = set; then
 
13171
  aix_libpath=$lt_cv_aix_libpath
 
13172
else
 
13173
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
13174
  $as_echo_n "(cached) " >&6
 
13175
else
 
13176
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13177
/* end confdefs.h.  */
 
13178
 
 
13179
int
 
13180
main ()
 
13181
{
 
13182
 
 
13183
  ;
 
13184
  return 0;
 
13185
}
 
13186
_ACEOF
 
13187
if ac_fn_cxx_try_link "$LINENO"; then :
 
13188
 
 
13189
  lt_aix_libpath_sed='
 
13190
      /Import File Strings/,/^$/ {
 
13191
          /^0/ {
 
13192
              s/^0  *\([^ ]*\) *$/\1/
 
13193
              p
 
13194
          }
 
13195
      }'
 
13196
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13197
  # Check for a 64-bit object if we didn't find anything.
 
13198
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13199
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13200
  fi
 
13201
fi
 
13202
rm -f core conftest.err conftest.$ac_objext \
 
13203
    conftest$ac_exeext conftest.$ac_ext
 
13204
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13205
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13206
  fi
 
13207
 
 
13208
fi
 
13209
 
 
13210
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13211
fi
 
13212
 
 
13213
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13214
            # Warning - without using the other run time loading flags,
 
13215
            # -berok will link without error, but may produce a broken library.
 
13216
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
13217
            allow_undefined_flag_CXX=' ${wl}-berok'
 
13218
            if test "$with_gnu_ld" = yes; then
 
13219
              # We only use this code for GNU lds that support --whole-archive.
 
13220
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13221
            else
 
13222
              # Exported symbols can be pulled into shared objects from archives
 
13223
              whole_archive_flag_spec_CXX='$convenience'
 
13224
            fi
 
13225
            archive_cmds_need_lc_CXX=yes
 
13226
            # This is similar to how AIX traditionally builds its shared
 
13227
            # libraries.
 
13228
            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'
 
13229
          fi
 
13230
        fi
 
13231
        ;;
 
13232
 
 
13233
      beos*)
 
13234
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
13235
          allow_undefined_flag_CXX=unsupported
 
13236
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13237
          # support --undefined.  This deserves some investigation.  FIXME
 
13238
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13239
        else
 
13240
          ld_shlibs_CXX=no
 
13241
        fi
 
13242
        ;;
 
13243
 
 
13244
      chorus*)
 
13245
        case $cc_basename in
 
13246
          *)
 
13247
          # FIXME: insert proper C++ library support
 
13248
          ld_shlibs_CXX=no
 
13249
          ;;
 
13250
        esac
 
13251
        ;;
 
13252
 
 
13253
      cygwin* | mingw* | pw32* | cegcc*)
 
13254
        case $GXX,$cc_basename in
 
13255
        ,cl* | no,cl*)
 
13256
          # Native MSVC
 
13257
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13258
          # no search path for DLLs.
 
13259
          hardcode_libdir_flag_spec_CXX=' '
 
13260
          allow_undefined_flag_CXX=unsupported
 
13261
          always_export_symbols_CXX=yes
 
13262
          file_list_spec_CXX='@'
 
13263
          # Tell ltmain to make .lib files, not .a files.
 
13264
          libext=lib
 
13265
          # Tell ltmain to make .dll files, not .so files.
 
13266
          shrext_cmds=".dll"
 
13267
          # FIXME: Setting linknames here is a bad hack.
 
13268
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
13269
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13270
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
13271
            else
 
13272
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
13273
            fi~
 
13274
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
13275
            linknames='
 
13276
          # The linker will not automatically build a static lib if we build a DLL.
 
13277
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
13278
          enable_shared_with_static_runtimes_CXX=yes
 
13279
          # Don't use ranlib
 
13280
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
13281
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
13282
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
13283
            case $lt_outputfile in
 
13284
              *.exe|*.EXE) ;;
 
13285
              *)
 
13286
                lt_outputfile="$lt_outputfile.exe"
 
13287
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
13288
                ;;
 
13289
            esac~
 
13290
            func_to_tool_file "$lt_outputfile"~
 
13291
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
13292
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
13293
              $RM "$lt_outputfile.manifest";
 
13294
            fi'
 
13295
          ;;
 
13296
        *)
 
13297
          # g++
 
13298
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13299
          # as there is no search path for DLLs.
 
13300
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13301
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
13302
          allow_undefined_flag_CXX=unsupported
 
13303
          always_export_symbols_CXX=no
 
13304
          enable_shared_with_static_runtimes_CXX=yes
 
13305
 
 
13306
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
13307
            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'
 
13308
            # If the export-symbols file already is a .def file (1st line
 
13309
            # is EXPORTS), use it as is; otherwise, prepend...
 
13310
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13311
              cp $export_symbols $output_objdir/$soname.def;
 
13312
            else
 
13313
              echo EXPORTS > $output_objdir/$soname.def;
 
13314
              cat $export_symbols >> $output_objdir/$soname.def;
 
13315
            fi~
 
13316
            $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'
 
13317
          else
 
13318
            ld_shlibs_CXX=no
 
13319
          fi
 
13320
          ;;
 
13321
        esac
 
13322
        ;;
 
13323
      darwin* | rhapsody*)
 
13324
 
 
13325
 
 
13326
  archive_cmds_need_lc_CXX=no
 
13327
  hardcode_direct_CXX=no
 
13328
  hardcode_automatic_CXX=yes
 
13329
  hardcode_shlibpath_var_CXX=unsupported
 
13330
  if test "$lt_cv_ld_force_load" = "yes"; then
 
13331
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
13332
 
 
13333
  else
 
13334
    whole_archive_flag_spec_CXX=''
 
13335
  fi
 
13336
  link_all_deplibs_CXX=yes
 
13337
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
13338
  case $cc_basename in
 
13339
     ifort*) _lt_dar_can_shared=yes ;;
 
13340
     *) _lt_dar_can_shared=$GCC ;;
 
13341
  esac
 
13342
  if test "$_lt_dar_can_shared" = "yes"; then
 
13343
    output_verbose_link_cmd=func_echo_all
 
13344
    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}"
 
13345
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
13346
    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}"
 
13347
    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}"
 
13348
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
13349
      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}"
 
13350
      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}"
 
13351
    fi
 
13352
 
 
13353
  else
 
13354
  ld_shlibs_CXX=no
 
13355
  fi
 
13356
 
 
13357
        ;;
 
13358
 
 
13359
      dgux*)
 
13360
        case $cc_basename in
 
13361
          ec++*)
 
13362
            # FIXME: insert proper C++ library support
 
13363
            ld_shlibs_CXX=no
 
13364
            ;;
 
13365
          ghcx*)
 
13366
            # Green Hills C++ Compiler
 
13367
            # FIXME: insert proper C++ library support
 
13368
            ld_shlibs_CXX=no
 
13369
            ;;
 
13370
          *)
 
13371
            # FIXME: insert proper C++ library support
 
13372
            ld_shlibs_CXX=no
 
13373
            ;;
 
13374
        esac
 
13375
        ;;
 
13376
 
 
13377
      freebsd2.*)
 
13378
        # C++ shared libraries reported to be fairly broken before
 
13379
        # switch to ELF
 
13380
        ld_shlibs_CXX=no
 
13381
        ;;
 
13382
 
 
13383
      freebsd-elf*)
 
13384
        archive_cmds_need_lc_CXX=no
 
13385
        ;;
 
13386
 
 
13387
      freebsd* | dragonfly*)
 
13388
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
13389
        # conventions
 
13390
        ld_shlibs_CXX=yes
 
13391
        ;;
 
13392
 
 
13393
      haiku*)
 
13394
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13395
        link_all_deplibs_CXX=yes
 
13396
        ;;
 
13397
 
 
13398
      hpux9*)
 
13399
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13400
        hardcode_libdir_separator_CXX=:
 
13401
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13402
        hardcode_direct_CXX=yes
 
13403
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13404
                                             # but as the default
 
13405
                                             # location of the library.
 
13406
 
 
13407
        case $cc_basename in
 
13408
          CC*)
 
13409
            # FIXME: insert proper C++ library support
 
13410
            ld_shlibs_CXX=no
 
13411
            ;;
 
13412
          aCC*)
 
13413
            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'
 
13414
            # Commands to make compiler produce verbose output that lists
 
13415
            # what "hidden" libraries, object files and flags are used when
 
13416
            # linking a shared library.
 
13417
            #
 
13418
            # There doesn't appear to be a way to prevent this compiler from
 
13419
            # explicitly linking system object files so we need to strip them
 
13420
            # from the output so that they don't get included in the library
 
13421
            # dependencies.
 
13422
            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; func_echo_all "$list"'
 
13423
            ;;
 
13424
          *)
 
13425
            if test "$GXX" = yes; then
 
13426
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
 
13427
            else
 
13428
              # FIXME: insert proper C++ library support
 
13429
              ld_shlibs_CXX=no
 
13430
            fi
 
13431
            ;;
 
13432
        esac
 
13433
        ;;
 
13434
 
 
13435
      hpux10*|hpux11*)
 
13436
        if test $with_gnu_ld = no; then
 
13437
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13438
          hardcode_libdir_separator_CXX=:
 
13439
 
 
13440
          case $host_cpu in
 
13441
            hppa*64*|ia64*)
 
13442
              ;;
 
13443
            *)
 
13444
              export_dynamic_flag_spec_CXX='${wl}-E'
 
13445
              ;;
 
13446
          esac
 
13447
        fi
 
13448
        case $host_cpu in
 
13449
          hppa*64*|ia64*)
 
13450
            hardcode_direct_CXX=no
 
13451
            hardcode_shlibpath_var_CXX=no
 
13452
            ;;
 
13453
          *)
 
13454
            hardcode_direct_CXX=yes
 
13455
            hardcode_direct_absolute_CXX=yes
 
13456
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13457
                                                 # but as the default
 
13458
                                                 # location of the library.
 
13459
            ;;
 
13460
        esac
 
13461
 
 
13462
        case $cc_basename in
 
13463
          CC*)
 
13464
            # FIXME: insert proper C++ library support
 
13465
            ld_shlibs_CXX=no
 
13466
            ;;
 
13467
          aCC*)
 
13468
            case $host_cpu in
 
13469
              hppa*64*)
 
13470
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13471
                ;;
 
13472
              ia64*)
 
13473
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13474
                ;;
 
13475
              *)
 
13476
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13477
                ;;
 
13478
            esac
 
13479
            # Commands to make compiler produce verbose output that lists
 
13480
            # what "hidden" libraries, object files and flags are used when
 
13481
            # linking a shared library.
 
13482
            #
 
13483
            # There doesn't appear to be a way to prevent this compiler from
 
13484
            # explicitly linking system object files so we need to strip them
 
13485
            # from the output so that they don't get included in the library
 
13486
            # dependencies.
 
13487
            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; func_echo_all "$list"'
 
13488
            ;;
 
13489
          *)
 
13490
            if test "$GXX" = yes; then
 
13491
              if test $with_gnu_ld = no; then
 
13492
                case $host_cpu in
 
13493
                  hppa*64*)
 
13494
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13495
                    ;;
 
13496
                  ia64*)
 
13497
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13498
                    ;;
 
13499
                  *)
 
13500
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13501
                    ;;
 
13502
                esac
 
13503
              fi
 
13504
            else
 
13505
              # FIXME: insert proper C++ library support
 
13506
              ld_shlibs_CXX=no
 
13507
            fi
 
13508
            ;;
 
13509
        esac
 
13510
        ;;
 
13511
 
 
13512
      interix[3-9]*)
 
13513
        hardcode_direct_CXX=no
 
13514
        hardcode_shlibpath_var_CXX=no
 
13515
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13516
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13517
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13518
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13519
        # default) and relocated if they conflict, which is a slow very memory
 
13520
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
13521
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13522
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13523
        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'
 
13524
        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'
 
13525
        ;;
 
13526
      irix5* | irix6*)
 
13527
        case $cc_basename in
 
13528
          CC*)
 
13529
            # SGI C++
 
13530
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13531
 
 
13532
            # Archives containing C++ object files must be created using
 
13533
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13534
            # necessary to make sure instantiated templates are included
 
13535
            # in the archive.
 
13536
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13537
            ;;
 
13538
          *)
 
13539
            if test "$GXX" = yes; then
 
13540
              if test "$with_gnu_ld" = no; then
 
13541
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13542
              else
 
13543
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
13544
              fi
 
13545
            fi
 
13546
            link_all_deplibs_CXX=yes
 
13547
            ;;
 
13548
        esac
 
13549
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13550
        hardcode_libdir_separator_CXX=:
 
13551
        inherit_rpath_CXX=yes
 
13552
        ;;
 
13553
 
 
13554
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
13555
        case $cc_basename in
 
13556
          KCC*)
 
13557
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13558
 
 
13559
            # KCC will only create a shared library if the output file
 
13560
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13561
            # to its proper name (with version) after linking.
 
13562
            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'
 
13563
            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'
 
13564
            # Commands to make compiler produce verbose output that lists
 
13565
            # what "hidden" libraries, object files and flags are used when
 
13566
            # linking a shared library.
 
13567
            #
 
13568
            # There doesn't appear to be a way to prevent this compiler from
 
13569
            # explicitly linking system object files so we need to strip them
 
13570
            # from the output so that they don't get included in the library
 
13571
            # dependencies.
 
13572
            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; func_echo_all "$list"'
 
13573
 
 
13574
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13575
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13576
 
 
13577
            # Archives containing C++ object files must be created using
 
13578
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13579
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13580
            ;;
 
13581
          icpc* | ecpc* )
 
13582
            # Intel C++
 
13583
            with_gnu_ld=yes
 
13584
            # version 8.0 and above of icpc choke on multiply defined symbols
 
13585
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13586
            # earlier do not add the objects themselves.
 
13587
            case `$CC -V 2>&1` in
 
13588
              *"Version 7."*)
 
13589
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13590
                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'
 
13591
                ;;
 
13592
              *)  # Version 8.0 or newer
 
13593
                tmp_idyn=
 
13594
                case $host_cpu in
 
13595
                  ia64*) tmp_idyn=' -i_dynamic';;
 
13596
                esac
 
13597
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13598
                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'
 
13599
                ;;
 
13600
            esac
 
13601
            archive_cmds_need_lc_CXX=no
 
13602
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13603
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13604
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13605
            ;;
 
13606
          pgCC* | pgcpp*)
 
13607
            # Portland Group C++ compiler
 
13608
            case `$CC -V` in
 
13609
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
13610
              prelink_cmds_CXX='tpldir=Template.dir~
 
13611
                rm -rf $tpldir~
 
13612
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
13613
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
13614
              old_archive_cmds_CXX='tpldir=Template.dir~
 
13615
                rm -rf $tpldir~
 
13616
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
13617
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
13618
                $RANLIB $oldlib'
 
13619
              archive_cmds_CXX='tpldir=Template.dir~
 
13620
                rm -rf $tpldir~
 
13621
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13622
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13623
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
13624
                rm -rf $tpldir~
 
13625
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13626
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13627
              ;;
 
13628
            *) # Version 6 and above use weak symbols
 
13629
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13630
              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'
 
13631
              ;;
 
13632
            esac
 
13633
 
 
13634
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13635
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13636
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
13637
            ;;
 
13638
          cxx*)
 
13639
            # Compaq C++
 
13640
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13641
            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'
 
13642
 
 
13643
            runpath_var=LD_RUN_PATH
 
13644
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13645
            hardcode_libdir_separator_CXX=:
 
13646
 
 
13647
            # Commands to make compiler produce verbose output that lists
 
13648
            # what "hidden" libraries, object files and flags are used when
 
13649
            # linking a shared library.
 
13650
            #
 
13651
            # There doesn't appear to be a way to prevent this compiler from
 
13652
            # explicitly linking system object files so we need to strip them
 
13653
            # from the output so that they don't get included in the library
 
13654
            # dependencies.
 
13655
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 
13656
            ;;
 
13657
          xl* | mpixl* | bgxl*)
 
13658
            # IBM XL 8.0 on PPC, with GNU ld
 
13659
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13660
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13661
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13662
            if test "x$supports_anon_versioning" = xyes; then
 
13663
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13664
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13665
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13666
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13667
            fi
 
13668
            ;;
 
13669
          *)
 
13670
            case `$CC -V 2>&1 | sed 5q` in
 
13671
            *Sun\ C*)
 
13672
              # Sun C++ 5.9
 
13673
              no_undefined_flag_CXX=' -zdefs'
 
13674
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13675
              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'
 
13676
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13677
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
13678
              compiler_needs_object_CXX=yes
 
13679
 
 
13680
              # Not sure whether something based on
 
13681
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13682
              # would be better.
 
13683
              output_verbose_link_cmd='func_echo_all'
 
13684
 
 
13685
              # Archives containing C++ object files must be created using
 
13686
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13687
              # necessary to make sure instantiated templates are included
 
13688
              # in the archive.
 
13689
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13690
              ;;
 
13691
            esac
 
13692
            ;;
 
13693
        esac
 
13694
        ;;
 
13695
 
 
13696
      lynxos*)
 
13697
        # FIXME: insert proper C++ library support
 
13698
        ld_shlibs_CXX=no
 
13699
        ;;
 
13700
 
 
13701
      m88k*)
 
13702
        # FIXME: insert proper C++ library support
 
13703
        ld_shlibs_CXX=no
 
13704
        ;;
 
13705
 
 
13706
      mvs*)
 
13707
        case $cc_basename in
 
13708
          cxx*)
 
13709
            # FIXME: insert proper C++ library support
 
13710
            ld_shlibs_CXX=no
 
13711
            ;;
 
13712
          *)
 
13713
            # FIXME: insert proper C++ library support
 
13714
            ld_shlibs_CXX=no
 
13715
            ;;
 
13716
        esac
 
13717
        ;;
 
13718
 
 
13719
      netbsd*)
 
13720
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13721
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13722
          wlarc=
 
13723
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13724
          hardcode_direct_CXX=yes
 
13725
          hardcode_shlibpath_var_CXX=no
 
13726
        fi
 
13727
        # Workaround some broken pre-1.5 toolchains
 
13728
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13729
        ;;
 
13730
 
 
13731
      *nto* | *qnx*)
 
13732
        ld_shlibs_CXX=yes
 
13733
        ;;
 
13734
 
 
13735
      openbsd2*)
 
13736
        # C++ shared libraries are fairly broken
 
13737
        ld_shlibs_CXX=no
 
13738
        ;;
 
13739
 
 
13740
      openbsd*)
 
13741
        if test -f /usr/libexec/ld.so; then
 
13742
          hardcode_direct_CXX=yes
 
13743
          hardcode_shlibpath_var_CXX=no
 
13744
          hardcode_direct_absolute_CXX=yes
 
13745
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13746
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13747
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13748
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13749
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13750
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13751
          fi
 
13752
          output_verbose_link_cmd=func_echo_all
 
13753
        else
 
13754
          ld_shlibs_CXX=no
 
13755
        fi
 
13756
        ;;
 
13757
 
 
13758
      osf3* | osf4* | osf5*)
 
13759
        case $cc_basename in
 
13760
          KCC*)
 
13761
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13762
 
 
13763
            # KCC will only create a shared library if the output file
 
13764
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13765
            # to its proper name (with version) after linking.
 
13766
            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'
 
13767
 
 
13768
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13769
            hardcode_libdir_separator_CXX=:
 
13770
 
 
13771
            # Archives containing C++ object files must be created using
 
13772
            # the KAI C++ compiler.
 
13773
            case $host in
 
13774
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13775
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13776
            esac
 
13777
            ;;
 
13778
          RCC*)
 
13779
            # Rational C++ 2.4.1
 
13780
            # FIXME: insert proper C++ library support
 
13781
            ld_shlibs_CXX=no
 
13782
            ;;
 
13783
          cxx*)
 
13784
            case $host in
 
13785
              osf3*)
 
13786
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13787
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13788
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13789
                ;;
 
13790
              *)
 
13791
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13792
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13793
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13794
                  echo "-hidden">> $lib.exp~
 
13795
                  $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
 
13796
                  $RM $lib.exp'
 
13797
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13798
                ;;
 
13799
            esac
 
13800
 
 
13801
            hardcode_libdir_separator_CXX=:
 
13802
 
 
13803
            # Commands to make compiler produce verbose output that lists
 
13804
            # what "hidden" libraries, object files and flags are used when
 
13805
            # linking a shared library.
 
13806
            #
 
13807
            # There doesn't appear to be a way to prevent this compiler from
 
13808
            # explicitly linking system object files so we need to strip them
 
13809
            # from the output so that they don't get included in the library
 
13810
            # dependencies.
 
13811
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13812
            ;;
 
13813
          *)
 
13814
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13815
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13816
              case $host in
 
13817
                osf3*)
 
13818
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13819
                  ;;
 
13820
                *)
 
13821
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13822
                  ;;
 
13823
              esac
 
13824
 
 
13825
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13826
              hardcode_libdir_separator_CXX=:
 
13827
 
 
13828
              # Commands to make compiler produce verbose output that lists
 
13829
              # what "hidden" libraries, object files and flags are used when
 
13830
              # linking a shared library.
 
13831
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13832
 
 
13833
            else
 
13834
              # FIXME: insert proper C++ library support
 
13835
              ld_shlibs_CXX=no
 
13836
            fi
 
13837
            ;;
 
13838
        esac
 
13839
        ;;
 
13840
 
 
13841
      psos*)
 
13842
        # FIXME: insert proper C++ library support
 
13843
        ld_shlibs_CXX=no
 
13844
        ;;
 
13845
 
 
13846
      sunos4*)
 
13847
        case $cc_basename in
 
13848
          CC*)
 
13849
            # Sun C++ 4.x
 
13850
            # FIXME: insert proper C++ library support
 
13851
            ld_shlibs_CXX=no
 
13852
            ;;
 
13853
          lcc*)
 
13854
            # Lucid
 
13855
            # FIXME: insert proper C++ library support
 
13856
            ld_shlibs_CXX=no
 
13857
            ;;
 
13858
          *)
 
13859
            # FIXME: insert proper C++ library support
 
13860
            ld_shlibs_CXX=no
 
13861
            ;;
 
13862
        esac
 
13863
        ;;
 
13864
 
 
13865
      solaris*)
 
13866
        case $cc_basename in
 
13867
          CC* | sunCC*)
 
13868
            # Sun C++ 4.2, 5.x and Centerline C++
 
13869
            archive_cmds_need_lc_CXX=yes
 
13870
            no_undefined_flag_CXX=' -zdefs'
 
13871
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13872
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13873
              $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'
 
13874
 
 
13875
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13876
            hardcode_shlibpath_var_CXX=no
 
13877
            case $host_os in
 
13878
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13879
              *)
 
13880
                # The compiler driver will combine and reorder linker options,
 
13881
                # but understands `-z linker_flag'.
 
13882
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13883
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13884
                ;;
 
13885
            esac
 
13886
            link_all_deplibs_CXX=yes
 
13887
 
 
13888
            output_verbose_link_cmd='func_echo_all'
 
13889
 
 
13890
            # Archives containing C++ object files must be created using
 
13891
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13892
            # necessary to make sure instantiated templates are included
 
13893
            # in the archive.
 
13894
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13895
            ;;
 
13896
          gcx*)
 
13897
            # Green Hills C++ Compiler
 
13898
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13899
 
 
13900
            # The C++ compiler must be used to create the archive.
 
13901
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13902
            ;;
 
13903
          *)
 
13904
            # GNU C++ compiler with Solaris linker
 
13905
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13906
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13907
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13908
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13909
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13910
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13911
 
 
13912
                # Commands to make compiler produce verbose output that lists
 
13913
                # what "hidden" libraries, object files and flags are used when
 
13914
                # linking a shared library.
 
13915
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13916
              else
 
13917
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13918
                # platform.
 
13919
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13920
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13921
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13922
 
 
13923
                # Commands to make compiler produce verbose output that lists
 
13924
                # what "hidden" libraries, object files and flags are used when
 
13925
                # linking a shared library.
 
13926
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13927
              fi
 
13928
 
 
13929
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13930
              case $host_os in
 
13931
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13932
                *)
 
13933
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13934
                  ;;
 
13935
              esac
 
13936
            fi
 
13937
            ;;
 
13938
        esac
 
13939
        ;;
 
13940
 
 
13941
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13942
      no_undefined_flag_CXX='${wl}-z,text'
 
13943
      archive_cmds_need_lc_CXX=no
 
13944
      hardcode_shlibpath_var_CXX=no
 
13945
      runpath_var='LD_RUN_PATH'
 
13946
 
 
13947
      case $cc_basename in
 
13948
        CC*)
 
13949
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13950
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13951
          ;;
 
13952
        *)
 
13953
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13954
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13955
          ;;
 
13956
      esac
 
13957
      ;;
 
13958
 
 
13959
      sysv5* | sco3.2v5* | sco5v6*)
 
13960
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13961
        # link with -lc, and that would cause any symbols used from libc to
 
13962
        # always be unresolved, which means just about no library would
 
13963
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13964
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13965
        # as -z defs.
 
13966
        no_undefined_flag_CXX='${wl}-z,text'
 
13967
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13968
        archive_cmds_need_lc_CXX=no
 
13969
        hardcode_shlibpath_var_CXX=no
 
13970
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13971
        hardcode_libdir_separator_CXX=':'
 
13972
        link_all_deplibs_CXX=yes
 
13973
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13974
        runpath_var='LD_RUN_PATH'
 
13975
 
 
13976
        case $cc_basename in
 
13977
          CC*)
 
13978
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13979
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13980
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
13981
              '"$old_archive_cmds_CXX"
 
13982
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
13983
              '"$reload_cmds_CXX"
 
13984
            ;;
 
13985
          *)
 
13986
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13987
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13988
            ;;
 
13989
        esac
 
13990
      ;;
 
13991
 
 
13992
      tandem*)
 
13993
        case $cc_basename in
 
13994
          NCC*)
 
13995
            # NonStop-UX NCC 3.20
 
13996
            # FIXME: insert proper C++ library support
 
13997
            ld_shlibs_CXX=no
 
13998
            ;;
 
13999
          *)
 
14000
            # FIXME: insert proper C++ library support
 
14001
            ld_shlibs_CXX=no
 
14002
            ;;
 
14003
        esac
 
14004
        ;;
 
14005
 
 
14006
      vxworks*)
 
14007
        # FIXME: insert proper C++ library support
 
14008
        ld_shlibs_CXX=no
 
14009
        ;;
 
14010
 
 
14011
      *)
 
14012
        # FIXME: insert proper C++ library support
 
14013
        ld_shlibs_CXX=no
 
14014
        ;;
 
14015
    esac
 
14016
 
 
14017
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14018
$as_echo "$ld_shlibs_CXX" >&6; }
 
14019
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14020
 
 
14021
    GCC_CXX="$GXX"
 
14022
    LD_CXX="$LD"
 
14023
 
 
14024
    ## CAVEAT EMPTOR:
 
14025
    ## There is no encapsulation within the following macros, do not change
 
14026
    ## the running order or otherwise move them around unless you know exactly
 
14027
    ## what you are doing...
 
14028
    # Dependencies to place before and after the object being linked:
 
14029
predep_objects_CXX=
 
14030
postdep_objects_CXX=
 
14031
predeps_CXX=
 
14032
postdeps_CXX=
 
14033
compiler_lib_search_path_CXX=
 
14034
 
 
14035
cat > conftest.$ac_ext <<_LT_EOF
 
14036
class Foo
 
14037
{
 
14038
public:
 
14039
  Foo (void) { a = 0; }
 
14040
private:
 
14041
  int a;
 
14042
};
 
14043
_LT_EOF
 
14044
 
 
14045
 
 
14046
_lt_libdeps_save_CFLAGS=$CFLAGS
 
14047
case "$CC $CFLAGS " in #(
 
14048
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
14049
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
14050
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
14051
esac
 
14052
 
 
14053
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14054
  (eval $ac_compile) 2>&5
 
14055
  ac_status=$?
 
14056
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14057
  test $ac_status = 0; }; then
 
14058
  # Parse the compiler output and extract the necessary
 
14059
  # objects, libraries and library flags.
 
14060
 
 
14061
  # Sentinel used to keep track of whether or not we are before
 
14062
  # the conftest object file.
 
14063
  pre_test_object_deps_done=no
 
14064
 
 
14065
  for p in `eval "$output_verbose_link_cmd"`; do
 
14066
    case ${prev}${p} in
 
14067
 
 
14068
    -L* | -R* | -l*)
 
14069
       # Some compilers place space between "-{L,R}" and the path.
 
14070
       # Remove the space.
 
14071
       if test $p = "-L" ||
 
14072
          test $p = "-R"; then
 
14073
         prev=$p
 
14074
         continue
 
14075
       fi
 
14076
 
 
14077
       # Expand the sysroot to ease extracting the directories later.
 
14078
       if test -z "$prev"; then
 
14079
         case $p in
 
14080
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
14081
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
14082
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
14083
         esac
 
14084
       fi
 
14085
       case $p in
 
14086
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
14087
       esac
 
14088
       if test "$pre_test_object_deps_done" = no; then
 
14089
         case ${prev} in
 
14090
         -L | -R)
 
14091
           # Internal compiler library paths should come after those
 
14092
           # provided the user.  The postdeps already come after the
 
14093
           # user supplied libs so there is no need to process them.
 
14094
           if test -z "$compiler_lib_search_path_CXX"; then
 
14095
             compiler_lib_search_path_CXX="${prev}${p}"
 
14096
           else
 
14097
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
14098
           fi
 
14099
           ;;
 
14100
         # The "-l" case would never come before the object being
 
14101
         # linked, so don't bother handling this case.
 
14102
         esac
 
14103
       else
 
14104
         if test -z "$postdeps_CXX"; then
 
14105
           postdeps_CXX="${prev}${p}"
 
14106
         else
 
14107
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
14108
         fi
 
14109
       fi
 
14110
       prev=
 
14111
       ;;
 
14112
 
 
14113
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
14114
    *.$objext)
 
14115
       # This assumes that the test object file only shows up
 
14116
       # once in the compiler output.
 
14117
       if test "$p" = "conftest.$objext"; then
 
14118
         pre_test_object_deps_done=yes
 
14119
         continue
 
14120
       fi
 
14121
 
 
14122
       if test "$pre_test_object_deps_done" = no; then
 
14123
         if test -z "$predep_objects_CXX"; then
 
14124
           predep_objects_CXX="$p"
 
14125
         else
 
14126
           predep_objects_CXX="$predep_objects_CXX $p"
 
14127
         fi
 
14128
       else
 
14129
         if test -z "$postdep_objects_CXX"; then
 
14130
           postdep_objects_CXX="$p"
 
14131
         else
 
14132
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
14133
         fi
 
14134
       fi
 
14135
       ;;
 
14136
 
 
14137
    *) ;; # Ignore the rest.
 
14138
 
 
14139
    esac
 
14140
  done
 
14141
 
 
14142
  # Clean up.
 
14143
  rm -f a.out a.exe
 
14144
else
 
14145
  echo "libtool.m4: error: problem compiling CXX test program"
 
14146
fi
 
14147
 
 
14148
$RM -f confest.$objext
 
14149
CFLAGS=$_lt_libdeps_save_CFLAGS
 
14150
 
 
14151
# PORTME: override above test on systems where it is broken
 
14152
case $host_os in
 
14153
interix[3-9]*)
 
14154
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
14155
  # hack all around it, let's just trust "g++" to DTRT.
 
14156
  predep_objects_CXX=
 
14157
  postdep_objects_CXX=
 
14158
  postdeps_CXX=
 
14159
  ;;
 
14160
 
 
14161
linux*)
 
14162
  case `$CC -V 2>&1 | sed 5q` in
 
14163
  *Sun\ C*)
 
14164
    # Sun C++ 5.9
 
14165
 
 
14166
    # The more standards-conforming stlport4 library is
 
14167
    # incompatible with the Cstd library. Avoid specifying
 
14168
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14169
    # -library=stlport4 depends on it.
 
14170
    case " $CXX $CXXFLAGS " in
 
14171
    *" -library=stlport4 "*)
 
14172
      solaris_use_stlport4=yes
 
14173
      ;;
 
14174
    esac
 
14175
 
 
14176
    if test "$solaris_use_stlport4" != yes; then
 
14177
      postdeps_CXX='-library=Cstd -library=Crun'
 
14178
    fi
 
14179
    ;;
 
14180
  esac
 
14181
  ;;
 
14182
 
 
14183
solaris*)
 
14184
  case $cc_basename in
 
14185
  CC* | sunCC*)
 
14186
    # The more standards-conforming stlport4 library is
 
14187
    # incompatible with the Cstd library. Avoid specifying
 
14188
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14189
    # -library=stlport4 depends on it.
 
14190
    case " $CXX $CXXFLAGS " in
 
14191
    *" -library=stlport4 "*)
 
14192
      solaris_use_stlport4=yes
 
14193
      ;;
 
14194
    esac
 
14195
 
 
14196
    # Adding this requires a known-good setup of shared libraries for
 
14197
    # Sun compiler versions before 5.6, else PIC objects from an old
 
14198
    # archive will be linked into the output, leading to subtle bugs.
 
14199
    if test "$solaris_use_stlport4" != yes; then
 
14200
      postdeps_CXX='-library=Cstd -library=Crun'
 
14201
    fi
 
14202
    ;;
 
14203
  esac
 
14204
  ;;
 
14205
esac
 
14206
 
 
14207
 
 
14208
case " $postdeps_CXX " in
 
14209
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
14210
esac
 
14211
 compiler_lib_search_dirs_CXX=
 
14212
if test -n "${compiler_lib_search_path_CXX}"; then
 
14213
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
14214
fi
 
14215
 
 
14216
 
 
14217
 
 
14218
 
 
14219
 
 
14220
 
 
14221
 
 
14222
 
 
14223
 
 
14224
 
 
14225
 
 
14226
 
 
14227
 
 
14228
 
 
14229
 
 
14230
 
 
14231
 
 
14232
 
 
14233
 
 
14234
 
 
14235
 
 
14236
 
 
14237
 
 
14238
 
 
14239
 
 
14240
 
 
14241
 
 
14242
 
 
14243
 
 
14244
 
 
14245
 
 
14246
    lt_prog_compiler_wl_CXX=
 
14247
lt_prog_compiler_pic_CXX=
 
14248
lt_prog_compiler_static_CXX=
 
14249
 
 
14250
 
 
14251
  # C++ specific cases for pic, static, wl, etc.
 
14252
  if test "$GXX" = yes; then
 
14253
    lt_prog_compiler_wl_CXX='-Wl,'
 
14254
    lt_prog_compiler_static_CXX='-static'
 
14255
 
 
14256
    case $host_os in
 
14257
    aix*)
 
14258
      # All AIX code is PIC.
 
14259
      if test "$host_cpu" = ia64; then
 
14260
        # AIX 5 now supports IA64 processor
 
14261
        lt_prog_compiler_static_CXX='-Bstatic'
 
14262
      fi
 
14263
      ;;
 
14264
 
 
14265
    amigaos*)
 
14266
      case $host_cpu in
 
14267
      powerpc)
 
14268
            # see comment about AmigaOS4 .so support
 
14269
            lt_prog_compiler_pic_CXX='-fPIC'
 
14270
        ;;
 
14271
      m68k)
 
14272
            # FIXME: we need at least 68020 code to build shared libraries, but
 
14273
            # adding the `-m68020' flag to GCC prevents building anything better,
 
14274
            # like `-m68040'.
 
14275
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
14276
        ;;
 
14277
      esac
 
14278
      ;;
 
14279
 
 
14280
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14281
      # PIC is the default for these OSes.
 
14282
      ;;
 
14283
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14284
      # This hack is so that the source file can tell whether it is being
 
14285
      # built for inclusion in a dll (and should export symbols for example).
 
14286
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14287
      # (--disable-auto-import) libraries
 
14288
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14289
      ;;
 
14290
    darwin* | rhapsody*)
 
14291
      # PIC is the default on this platform
 
14292
      # Common symbols not allowed in MH_DYLIB files
 
14293
      lt_prog_compiler_pic_CXX='-fno-common'
 
14294
      ;;
 
14295
    *djgpp*)
 
14296
      # DJGPP does not support shared libraries at all
 
14297
      lt_prog_compiler_pic_CXX=
 
14298
      ;;
 
14299
    haiku*)
 
14300
      # PIC is the default for Haiku.
 
14301
      # The "-static" flag exists, but is broken.
 
14302
      lt_prog_compiler_static_CXX=
 
14303
      ;;
 
14304
    interix[3-9]*)
 
14305
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14306
      # Instead, we relocate shared libraries at runtime.
 
14307
      ;;
 
14308
    sysv4*MP*)
 
14309
      if test -d /usr/nec; then
 
14310
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
14311
      fi
 
14312
      ;;
 
14313
    hpux*)
 
14314
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
14315
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
14316
      # sets the default TLS model and affects inlining.
 
14317
      case $host_cpu in
 
14318
      hppa*64*)
 
14319
        ;;
 
14320
      *)
 
14321
        lt_prog_compiler_pic_CXX='-fPIC'
 
14322
        ;;
 
14323
      esac
 
14324
      ;;
 
14325
    *qnx* | *nto*)
 
14326
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14327
      # it will coredump.
 
14328
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14329
      ;;
 
14330
    *)
 
14331
      lt_prog_compiler_pic_CXX='-fPIC'
 
14332
      ;;
 
14333
    esac
 
14334
  else
 
14335
    case $host_os in
 
14336
      aix[4-9]*)
 
14337
        # All AIX code is PIC.
 
14338
        if test "$host_cpu" = ia64; then
 
14339
          # AIX 5 now supports IA64 processor
 
14340
          lt_prog_compiler_static_CXX='-Bstatic'
 
14341
        else
 
14342
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
14343
        fi
 
14344
        ;;
 
14345
      chorus*)
 
14346
        case $cc_basename in
 
14347
        cxch68*)
 
14348
          # Green Hills C++ Compiler
 
14349
          # _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"
 
14350
          ;;
 
14351
        esac
 
14352
        ;;
 
14353
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14354
        # This hack is so that the source file can tell whether it is being
 
14355
        # built for inclusion in a dll (and should export symbols for example).
 
14356
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14357
        ;;
 
14358
      dgux*)
 
14359
        case $cc_basename in
 
14360
          ec++*)
 
14361
            lt_prog_compiler_pic_CXX='-KPIC'
 
14362
            ;;
 
14363
          ghcx*)
 
14364
            # Green Hills C++ Compiler
 
14365
            lt_prog_compiler_pic_CXX='-pic'
 
14366
            ;;
 
14367
          *)
 
14368
            ;;
 
14369
        esac
 
14370
        ;;
 
14371
      freebsd* | dragonfly*)
 
14372
        # FreeBSD uses GNU C++
 
14373
        ;;
 
14374
      hpux9* | hpux10* | hpux11*)
 
14375
        case $cc_basename in
 
14376
          CC*)
 
14377
            lt_prog_compiler_wl_CXX='-Wl,'
 
14378
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14379
            if test "$host_cpu" != ia64; then
 
14380
              lt_prog_compiler_pic_CXX='+Z'
 
14381
            fi
 
14382
            ;;
 
14383
          aCC*)
 
14384
            lt_prog_compiler_wl_CXX='-Wl,'
 
14385
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14386
            case $host_cpu in
 
14387
            hppa*64*|ia64*)
 
14388
              # +Z the default
 
14389
              ;;
 
14390
            *)
 
14391
              lt_prog_compiler_pic_CXX='+Z'
 
14392
              ;;
 
14393
            esac
 
14394
            ;;
 
14395
          *)
 
14396
            ;;
 
14397
        esac
 
14398
        ;;
 
14399
      interix*)
 
14400
        # This is c89, which is MS Visual C++ (no shared libs)
 
14401
        # Anyone wants to do a port?
 
14402
        ;;
 
14403
      irix5* | irix6* | nonstopux*)
 
14404
        case $cc_basename in
 
14405
          CC*)
 
14406
            lt_prog_compiler_wl_CXX='-Wl,'
 
14407
            lt_prog_compiler_static_CXX='-non_shared'
 
14408
            # CC pic flag -KPIC is the default.
 
14409
            ;;
 
14410
          *)
 
14411
            ;;
 
14412
        esac
 
14413
        ;;
 
14414
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
14415
        case $cc_basename in
 
14416
          KCC*)
 
14417
            # KAI C++ Compiler
 
14418
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14419
            lt_prog_compiler_pic_CXX='-fPIC'
 
14420
            ;;
 
14421
          ecpc* )
 
14422
            # old Intel C++ for x86_64 which still supported -KPIC.
 
14423
            lt_prog_compiler_wl_CXX='-Wl,'
 
14424
            lt_prog_compiler_pic_CXX='-KPIC'
 
14425
            lt_prog_compiler_static_CXX='-static'
 
14426
            ;;
 
14427
          icpc* )
 
14428
            # Intel C++, used to be incompatible with GCC.
 
14429
            # ICC 10 doesn't accept -KPIC any more.
 
14430
            lt_prog_compiler_wl_CXX='-Wl,'
 
14431
            lt_prog_compiler_pic_CXX='-fPIC'
 
14432
            lt_prog_compiler_static_CXX='-static'
 
14433
            ;;
 
14434
          pgCC* | pgcpp*)
 
14435
            # Portland Group C++ compiler
 
14436
            lt_prog_compiler_wl_CXX='-Wl,'
 
14437
            lt_prog_compiler_pic_CXX='-fpic'
 
14438
            lt_prog_compiler_static_CXX='-Bstatic'
 
14439
            ;;
 
14440
          cxx*)
 
14441
            # Compaq C++
 
14442
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14443
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14444
            lt_prog_compiler_pic_CXX=
 
14445
            lt_prog_compiler_static_CXX='-non_shared'
 
14446
            ;;
 
14447
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
14448
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
14449
            lt_prog_compiler_wl_CXX='-Wl,'
 
14450
            lt_prog_compiler_pic_CXX='-qpic'
 
14451
            lt_prog_compiler_static_CXX='-qstaticlink'
 
14452
            ;;
 
14453
          *)
 
14454
            case `$CC -V 2>&1 | sed 5q` in
 
14455
            *Sun\ C*)
 
14456
              # Sun C++ 5.9
 
14457
              lt_prog_compiler_pic_CXX='-KPIC'
 
14458
              lt_prog_compiler_static_CXX='-Bstatic'
 
14459
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
14460
              ;;
 
14461
            esac
 
14462
            ;;
 
14463
        esac
 
14464
        ;;
 
14465
      lynxos*)
 
14466
        ;;
 
14467
      m88k*)
 
14468
        ;;
 
14469
      mvs*)
 
14470
        case $cc_basename in
 
14471
          cxx*)
 
14472
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
14473
            ;;
 
14474
          *)
 
14475
            ;;
 
14476
        esac
 
14477
        ;;
 
14478
      netbsd* | netbsdelf*-gnu)
 
14479
        ;;
 
14480
      *qnx* | *nto*)
 
14481
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14482
        # it will coredump.
 
14483
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14484
        ;;
 
14485
      osf3* | osf4* | osf5*)
 
14486
        case $cc_basename in
 
14487
          KCC*)
 
14488
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14489
            ;;
 
14490
          RCC*)
 
14491
            # Rational C++ 2.4.1
 
14492
            lt_prog_compiler_pic_CXX='-pic'
 
14493
            ;;
 
14494
          cxx*)
 
14495
            # Digital/Compaq C++
 
14496
            lt_prog_compiler_wl_CXX='-Wl,'
 
14497
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14498
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14499
            lt_prog_compiler_pic_CXX=
 
14500
            lt_prog_compiler_static_CXX='-non_shared'
 
14501
            ;;
 
14502
          *)
 
14503
            ;;
 
14504
        esac
 
14505
        ;;
 
14506
      psos*)
 
14507
        ;;
 
14508
      solaris*)
 
14509
        case $cc_basename in
 
14510
          CC* | sunCC*)
 
14511
            # Sun C++ 4.2, 5.x and Centerline C++
 
14512
            lt_prog_compiler_pic_CXX='-KPIC'
 
14513
            lt_prog_compiler_static_CXX='-Bstatic'
 
14514
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14515
            ;;
 
14516
          gcx*)
 
14517
            # Green Hills C++ Compiler
 
14518
            lt_prog_compiler_pic_CXX='-PIC'
 
14519
            ;;
 
14520
          *)
 
14521
            ;;
 
14522
        esac
 
14523
        ;;
 
14524
      sunos4*)
 
14525
        case $cc_basename in
 
14526
          CC*)
 
14527
            # Sun C++ 4.x
 
14528
            lt_prog_compiler_pic_CXX='-pic'
 
14529
            lt_prog_compiler_static_CXX='-Bstatic'
 
14530
            ;;
 
14531
          lcc*)
 
14532
            # Lucid
 
14533
            lt_prog_compiler_pic_CXX='-pic'
 
14534
            ;;
 
14535
          *)
 
14536
            ;;
 
14537
        esac
 
14538
        ;;
 
14539
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14540
        case $cc_basename in
 
14541
          CC*)
 
14542
            lt_prog_compiler_wl_CXX='-Wl,'
 
14543
            lt_prog_compiler_pic_CXX='-KPIC'
 
14544
            lt_prog_compiler_static_CXX='-Bstatic'
 
14545
            ;;
 
14546
        esac
 
14547
        ;;
 
14548
      tandem*)
 
14549
        case $cc_basename in
 
14550
          NCC*)
 
14551
            # NonStop-UX NCC 3.20
 
14552
            lt_prog_compiler_pic_CXX='-KPIC'
 
14553
            ;;
 
14554
          *)
 
14555
            ;;
 
14556
        esac
 
14557
        ;;
 
14558
      vxworks*)
 
14559
        ;;
 
14560
      *)
 
14561
        lt_prog_compiler_can_build_shared_CXX=no
 
14562
        ;;
 
14563
    esac
 
14564
  fi
 
14565
 
 
14566
case $host_os in
 
14567
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14568
  *djgpp*)
 
14569
    lt_prog_compiler_pic_CXX=
 
14570
    ;;
 
14571
  *)
 
14572
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14573
    ;;
 
14574
esac
 
14575
 
 
14576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14577
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14578
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
14579
  $as_echo_n "(cached) " >&6
 
14580
else
 
14581
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
14582
fi
 
14583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
14584
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
14585
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
14586
 
 
14587
#
 
14588
# Check to make sure the PIC flag actually works.
 
14589
#
 
14590
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14591
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14592
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
14593
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
14594
  $as_echo_n "(cached) " >&6
 
14595
else
 
14596
  lt_cv_prog_compiler_pic_works_CXX=no
 
14597
   ac_outfile=conftest.$ac_objext
 
14598
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14599
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14600
   # Insert the option either (1) after the last *FLAGS variable, or
 
14601
   # (2) before a word containing "conftest.", or (3) at the end.
 
14602
   # Note that $ac_compile itself does not contain backslashes and begins
 
14603
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14604
   # The option is referenced via a variable to avoid confusing sed.
 
14605
   lt_compile=`echo "$ac_compile" | $SED \
 
14606
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14607
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14608
   -e 's:$: $lt_compiler_flag:'`
 
14609
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14610
   (eval "$lt_compile" 2>conftest.err)
 
14611
   ac_status=$?
 
14612
   cat conftest.err >&5
 
14613
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14614
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14615
     # The compiler can only warn and ignore the option if not recognized
 
14616
     # So say no if there are warnings other than the usual output.
 
14617
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
14618
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14619
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14620
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14621
     fi
 
14622
   fi
 
14623
   $RM conftest*
 
14624
 
 
14625
fi
 
14626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14627
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14628
 
 
14629
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14630
    case $lt_prog_compiler_pic_CXX in
 
14631
     "" | " "*) ;;
 
14632
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14633
     esac
 
14634
else
 
14635
    lt_prog_compiler_pic_CXX=
 
14636
     lt_prog_compiler_can_build_shared_CXX=no
 
14637
fi
 
14638
 
 
14639
fi
 
14640
 
 
14641
 
 
14642
 
 
14643
 
 
14644
 
 
14645
#
 
14646
# Check to make sure the static flag actually works.
 
14647
#
 
14648
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14650
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14651
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
14652
  $as_echo_n "(cached) " >&6
 
14653
else
 
14654
  lt_cv_prog_compiler_static_works_CXX=no
 
14655
   save_LDFLAGS="$LDFLAGS"
 
14656
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14657
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14658
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14659
     # The linker can only warn and ignore the option if not recognized
 
14660
     # So say no if there are warnings
 
14661
     if test -s conftest.err; then
 
14662
       # Append any errors to the config.log.
 
14663
       cat conftest.err 1>&5
 
14664
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
14665
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14666
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14667
         lt_cv_prog_compiler_static_works_CXX=yes
 
14668
       fi
 
14669
     else
 
14670
       lt_cv_prog_compiler_static_works_CXX=yes
 
14671
     fi
 
14672
   fi
 
14673
   $RM -r conftest*
 
14674
   LDFLAGS="$save_LDFLAGS"
 
14675
 
 
14676
fi
 
14677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14678
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14679
 
 
14680
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14681
    :
 
14682
else
 
14683
    lt_prog_compiler_static_CXX=
 
14684
fi
 
14685
 
 
14686
 
 
14687
 
 
14688
 
 
14689
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14690
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14691
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14692
  $as_echo_n "(cached) " >&6
 
14693
else
 
14694
  lt_cv_prog_compiler_c_o_CXX=no
 
14695
   $RM -r conftest 2>/dev/null
 
14696
   mkdir conftest
 
14697
   cd conftest
 
14698
   mkdir out
 
14699
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14700
 
 
14701
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14702
   # Insert the option either (1) after the last *FLAGS variable, or
 
14703
   # (2) before a word containing "conftest.", or (3) at the end.
 
14704
   # Note that $ac_compile itself does not contain backslashes and begins
 
14705
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14706
   lt_compile=`echo "$ac_compile" | $SED \
 
14707
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14708
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14709
   -e 's:$: $lt_compiler_flag:'`
 
14710
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14711
   (eval "$lt_compile" 2>out/conftest.err)
 
14712
   ac_status=$?
 
14713
   cat out/conftest.err >&5
 
14714
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14715
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14716
   then
 
14717
     # The compiler can only warn and ignore the option if not recognized
 
14718
     # So say no if there are warnings
 
14719
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14720
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14721
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14722
       lt_cv_prog_compiler_c_o_CXX=yes
 
14723
     fi
 
14724
   fi
 
14725
   chmod u+w . 2>&5
 
14726
   $RM conftest*
 
14727
   # SGI C++ compiler will create directory out/ii_files/ for
 
14728
   # template instantiation
 
14729
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14730
   $RM out/* && rmdir out
 
14731
   cd ..
 
14732
   $RM -r conftest
 
14733
   $RM conftest*
 
14734
 
 
14735
fi
 
14736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14737
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14738
 
 
14739
 
 
14740
 
 
14741
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14742
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14743
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14744
  $as_echo_n "(cached) " >&6
 
14745
else
 
14746
  lt_cv_prog_compiler_c_o_CXX=no
 
14747
   $RM -r conftest 2>/dev/null
 
14748
   mkdir conftest
 
14749
   cd conftest
 
14750
   mkdir out
 
14751
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14752
 
 
14753
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14754
   # Insert the option either (1) after the last *FLAGS variable, or
 
14755
   # (2) before a word containing "conftest.", or (3) at the end.
 
14756
   # Note that $ac_compile itself does not contain backslashes and begins
 
14757
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14758
   lt_compile=`echo "$ac_compile" | $SED \
 
14759
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14760
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14761
   -e 's:$: $lt_compiler_flag:'`
 
14762
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14763
   (eval "$lt_compile" 2>out/conftest.err)
 
14764
   ac_status=$?
 
14765
   cat out/conftest.err >&5
 
14766
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14767
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14768
   then
 
14769
     # The compiler can only warn and ignore the option if not recognized
 
14770
     # So say no if there are warnings
 
14771
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14772
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14773
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14774
       lt_cv_prog_compiler_c_o_CXX=yes
 
14775
     fi
 
14776
   fi
 
14777
   chmod u+w . 2>&5
 
14778
   $RM conftest*
 
14779
   # SGI C++ compiler will create directory out/ii_files/ for
 
14780
   # template instantiation
 
14781
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14782
   $RM out/* && rmdir out
 
14783
   cd ..
 
14784
   $RM -r conftest
 
14785
   $RM conftest*
 
14786
 
 
14787
fi
 
14788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14789
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14790
 
 
14791
 
 
14792
 
 
14793
 
 
14794
hard_links="nottested"
 
14795
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14796
  # do not overwrite the value of need_locks provided by the user
 
14797
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14798
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14799
  hard_links=yes
 
14800
  $RM conftest*
 
14801
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14802
  touch conftest.a
 
14803
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14804
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14806
$as_echo "$hard_links" >&6; }
 
14807
  if test "$hard_links" = no; then
 
14808
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14809
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14810
    need_locks=warn
 
14811
  fi
 
14812
else
 
14813
  need_locks=no
 
14814
fi
 
14815
 
 
14816
 
 
14817
 
 
14818
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14819
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14820
 
 
14821
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14822
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14823
  case $host_os in
 
14824
  aix[4-9]*)
 
14825
    # If we're using GNU nm, then we don't want the "-C" option.
 
14826
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14827
    # Also, AIX nm treats weak defined symbols like other global defined
 
14828
    # symbols, whereas GNU nm marks them as "W".
 
14829
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14830
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14831
    else
 
14832
      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'
 
14833
    fi
 
14834
    ;;
 
14835
  pw32*)
 
14836
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14837
    ;;
 
14838
  cygwin* | mingw* | cegcc*)
 
14839
    case $cc_basename in
 
14840
    cl*)
 
14841
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
14842
      ;;
 
14843
    *)
 
14844
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14845
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14846
      ;;
 
14847
    esac
 
14848
    ;;
 
14849
  linux* | k*bsd*-gnu | gnu*)
 
14850
    link_all_deplibs_CXX=no
 
14851
    ;;
 
14852
  *)
 
14853
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14854
    ;;
 
14855
  esac
 
14856
 
 
14857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14858
$as_echo "$ld_shlibs_CXX" >&6; }
 
14859
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14860
 
 
14861
with_gnu_ld_CXX=$with_gnu_ld
 
14862
 
 
14863
 
 
14864
 
 
14865
 
 
14866
 
 
14867
 
 
14868
#
 
14869
# Do we need to explicitly link libc?
 
14870
#
 
14871
case "x$archive_cmds_need_lc_CXX" in
 
14872
x|xyes)
 
14873
  # Assume -lc should be added
 
14874
  archive_cmds_need_lc_CXX=yes
 
14875
 
 
14876
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14877
    case $archive_cmds_CXX in
 
14878
    *'~'*)
 
14879
      # FIXME: we may have to deal with multi-command sequences.
 
14880
      ;;
 
14881
    '$CC '*)
 
14882
      # Test whether the compiler implicitly links with -lc since on some
 
14883
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14884
      # to ld, don't add -lc before -lgcc.
 
14885
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14886
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14887
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
14888
  $as_echo_n "(cached) " >&6
 
14889
else
 
14890
  $RM conftest*
 
14891
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14892
 
 
14893
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14894
  (eval $ac_compile) 2>&5
 
14895
  ac_status=$?
 
14896
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14897
  test $ac_status = 0; } 2>conftest.err; then
 
14898
          soname=conftest
 
14899
          lib=conftest
 
14900
          libobjs=conftest.$ac_objext
 
14901
          deplibs=
 
14902
          wl=$lt_prog_compiler_wl_CXX
 
14903
          pic_flag=$lt_prog_compiler_pic_CXX
 
14904
          compiler_flags=-v
 
14905
          linker_flags=-v
 
14906
          verstring=
 
14907
          output_objdir=.
 
14908
          libname=conftest
 
14909
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14910
          allow_undefined_flag_CXX=
 
14911
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14912
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14913
  ac_status=$?
 
14914
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14915
  test $ac_status = 0; }
 
14916
          then
 
14917
            lt_cv_archive_cmds_need_lc_CXX=no
 
14918
          else
 
14919
            lt_cv_archive_cmds_need_lc_CXX=yes
 
14920
          fi
 
14921
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14922
        else
 
14923
          cat conftest.err 1>&5
 
14924
        fi
 
14925
        $RM conftest*
 
14926
 
 
14927
fi
 
14928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
14929
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
14930
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
14931
      ;;
 
14932
    esac
 
14933
  fi
 
14934
  ;;
 
14935
esac
 
14936
 
 
14937
 
 
14938
 
 
14939
 
 
14940
 
 
14941
 
 
14942
 
 
14943
 
 
14944
 
 
14945
 
 
14946
 
 
14947
 
 
14948
 
 
14949
 
 
14950
 
 
14951
 
 
14952
 
 
14953
 
 
14954
 
 
14955
 
 
14956
 
 
14957
 
 
14958
 
 
14959
 
 
14960
 
 
14961
 
 
14962
 
 
14963
 
 
14964
 
 
14965
 
 
14966
 
 
14967
 
 
14968
 
 
14969
 
 
14970
 
 
14971
 
 
14972
 
 
14973
 
 
14974
 
 
14975
 
 
14976
 
 
14977
 
 
14978
 
 
14979
 
 
14980
 
 
14981
 
 
14982
 
 
14983
 
 
14984
 
 
14985
 
 
14986
 
 
14987
 
 
14988
 
 
14989
 
 
14990
 
 
14991
 
 
14992
 
 
14993
 
 
14994
 
 
14995
 
 
14996
 
 
14997
 
 
14998
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14999
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15000
 
 
15001
library_names_spec=
 
15002
libname_spec='lib$name'
 
15003
soname_spec=
 
15004
shrext_cmds=".so"
 
15005
postinstall_cmds=
 
15006
postuninstall_cmds=
 
15007
finish_cmds=
 
15008
finish_eval=
 
15009
shlibpath_var=
 
15010
shlibpath_overrides_runpath=unknown
 
15011
version_type=none
 
15012
dynamic_linker="$host_os ld.so"
 
15013
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15014
need_lib_prefix=unknown
 
15015
hardcode_into_libs=no
 
15016
 
 
15017
# when you set need_version to no, make sure it does not cause -set_version
 
15018
# flags to be left without arguments
 
15019
need_version=unknown
 
15020
 
 
15021
case $host_os in
 
15022
aix3*)
 
15023
  version_type=linux # correct to gnu/linux during the next big refactor
 
15024
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15025
  shlibpath_var=LIBPATH
 
15026
 
 
15027
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15028
  soname_spec='${libname}${release}${shared_ext}$major'
 
15029
  ;;
 
15030
 
 
15031
aix[4-9]*)
 
15032
  version_type=linux # correct to gnu/linux during the next big refactor
 
15033
  need_lib_prefix=no
 
15034
  need_version=no
 
15035
  hardcode_into_libs=yes
 
15036
  if test "$host_cpu" = ia64; then
 
15037
    # AIX 5 supports IA64
 
15038
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15039
    shlibpath_var=LD_LIBRARY_PATH
 
15040
  else
 
15041
    # With GCC up to 2.95.x, collect2 would create an import file
 
15042
    # for dependence libraries.  The import file would start with
 
15043
    # the line `#! .'.  This would cause the generated library to
 
15044
    # depend on `.', always an invalid library.  This was fixed in
 
15045
    # development snapshots of GCC prior to 3.0.
 
15046
    case $host_os in
 
15047
      aix4 | aix4.[01] | aix4.[01].*)
 
15048
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15049
           echo ' yes '
 
15050
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
15051
        :
 
15052
      else
 
15053
        can_build_shared=no
 
15054
      fi
 
15055
      ;;
 
15056
    esac
 
15057
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15058
    # soname into executable. Probably we can add versioning support to
 
15059
    # collect2, so additional links can be useful in future.
 
15060
    if test "$aix_use_runtimelinking" = yes; then
 
15061
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15062
      # instead of lib<name>.a to let people know that these are not
 
15063
      # typical AIX shared libraries.
 
15064
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15065
    else
 
15066
      # We preserve .a as extension for shared libraries through AIX4.2
 
15067
      # and later when we are not doing run time linking.
 
15068
      library_names_spec='${libname}${release}.a $libname.a'
 
15069
      soname_spec='${libname}${release}${shared_ext}$major'
 
15070
    fi
 
15071
    shlibpath_var=LIBPATH
 
15072
  fi
 
15073
  ;;
 
15074
 
 
15075
amigaos*)
 
15076
  case $host_cpu in
 
15077
  powerpc)
 
15078
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
15079
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
15080
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15081
    ;;
 
15082
  m68k)
 
15083
    library_names_spec='$libname.ixlibrary $libname.a'
 
15084
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15085
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
 
15086
    ;;
 
15087
  esac
 
15088
  ;;
 
15089
 
 
15090
beos*)
 
15091
  library_names_spec='${libname}${shared_ext}'
 
15092
  dynamic_linker="$host_os ld.so"
 
15093
  shlibpath_var=LIBRARY_PATH
 
15094
  ;;
 
15095
 
 
15096
bsdi[45]*)
 
15097
  version_type=linux # correct to gnu/linux during the next big refactor
 
15098
  need_version=no
 
15099
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15100
  soname_spec='${libname}${release}${shared_ext}$major'
 
15101
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15102
  shlibpath_var=LD_LIBRARY_PATH
 
15103
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15104
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15105
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15106
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15107
  # libtool to hard-code these into programs
 
15108
  ;;
 
15109
 
 
15110
cygwin* | mingw* | pw32* | cegcc*)
 
15111
  version_type=windows
 
15112
  shrext_cmds=".dll"
 
15113
  need_version=no
 
15114
  need_lib_prefix=no
 
15115
 
 
15116
  case $GCC,$cc_basename in
 
15117
  yes,*)
 
15118
    # gcc
 
15119
    library_names_spec='$libname.dll.a'
 
15120
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15121
    postinstall_cmds='base_file=`basename \${file}`~
 
15122
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15123
      dldir=$destdir/`dirname \$dlpath`~
 
15124
      test -d \$dldir || mkdir -p \$dldir~
 
15125
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15126
      chmod a+x \$dldir/$dlname~
 
15127
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
15128
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
15129
      fi'
 
15130
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15131
      dlpath=$dir/\$dldll~
 
15132
       $RM \$dlpath'
 
15133
    shlibpath_overrides_runpath=yes
 
15134
 
 
15135
    case $host_os in
 
15136
    cygwin*)
 
15137
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15138
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15139
 
 
15140
      ;;
 
15141
    mingw* | cegcc*)
 
15142
      # MinGW DLLs use traditional 'lib' prefix
 
15143
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15144
      ;;
 
15145
    pw32*)
 
15146
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15147
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15148
      ;;
 
15149
    esac
 
15150
    dynamic_linker='Win32 ld.exe'
 
15151
    ;;
 
15152
 
 
15153
  *,cl*)
 
15154
    # Native MSVC
 
15155
    libname_spec='$name'
 
15156
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15157
    library_names_spec='${libname}.dll.lib'
 
15158
 
 
15159
    case $build_os in
 
15160
    mingw*)
 
15161
      sys_lib_search_path_spec=
 
15162
      lt_save_ifs=$IFS
 
15163
      IFS=';'
 
15164
      for lt_path in $LIB
 
15165
      do
 
15166
        IFS=$lt_save_ifs
 
15167
        # Let DOS variable expansion print the short 8.3 style file name.
 
15168
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
15169
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
15170
      done
 
15171
      IFS=$lt_save_ifs
 
15172
      # Convert to MSYS style.
 
15173
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
15174
      ;;
 
15175
    cygwin*)
 
15176
      # Convert to unix form, then to dos form, then back to unix form
 
15177
      # but this time dos style (no spaces!) so that the unix form looks
 
15178
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
15179
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
15180
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
15181
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15182
      ;;
 
15183
    *)
 
15184
      sys_lib_search_path_spec="$LIB"
 
15185
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
15186
        # It is most probably a Windows format PATH.
 
15187
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15188
      else
 
15189
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15190
      fi
 
15191
      # FIXME: find the short name or the path components, as spaces are
 
15192
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
15193
      ;;
 
15194
    esac
 
15195
 
 
15196
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15197
    postinstall_cmds='base_file=`basename \${file}`~
 
15198
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15199
      dldir=$destdir/`dirname \$dlpath`~
 
15200
      test -d \$dldir || mkdir -p \$dldir~
 
15201
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15202
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15203
      dlpath=$dir/\$dldll~
 
15204
       $RM \$dlpath'
 
15205
    shlibpath_overrides_runpath=yes
 
15206
    dynamic_linker='Win32 link.exe'
 
15207
    ;;
 
15208
 
 
15209
  *)
 
15210
    # Assume MSVC wrapper
 
15211
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15212
    dynamic_linker='Win32 ld.exe'
 
15213
    ;;
 
15214
  esac
 
15215
  # FIXME: first we should search . and the directory the executable is in
 
15216
  shlibpath_var=PATH
 
15217
  ;;
 
15218
 
 
15219
darwin* | rhapsody*)
 
15220
  dynamic_linker="$host_os dyld"
 
15221
  version_type=darwin
 
15222
  need_lib_prefix=no
 
15223
  need_version=no
 
15224
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15225
  soname_spec='${libname}${release}${major}$shared_ext'
 
15226
  shlibpath_overrides_runpath=yes
 
15227
  shlibpath_var=DYLD_LIBRARY_PATH
 
15228
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15229
 
 
15230
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15231
  ;;
 
15232
 
 
15233
dgux*)
 
15234
  version_type=linux # correct to gnu/linux during the next big refactor
 
15235
  need_lib_prefix=no
 
15236
  need_version=no
 
15237
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15238
  soname_spec='${libname}${release}${shared_ext}$major'
 
15239
  shlibpath_var=LD_LIBRARY_PATH
 
15240
  ;;
 
15241
 
 
15242
freebsd* | dragonfly*)
 
15243
  # DragonFly does not have aout.  When/if they implement a new
 
15244
  # versioning mechanism, adjust this.
 
15245
  if test -x /usr/bin/objformat; then
 
15246
    objformat=`/usr/bin/objformat`
 
15247
  else
 
15248
    case $host_os in
 
15249
    freebsd[23].*) objformat=aout ;;
 
15250
    *) objformat=elf ;;
 
15251
    esac
 
15252
  fi
 
15253
  version_type=freebsd-$objformat
 
15254
  case $version_type in
 
15255
    freebsd-elf*)
 
15256
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15257
      need_version=no
 
15258
      need_lib_prefix=no
 
15259
      ;;
 
15260
    freebsd-*)
 
15261
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15262
      need_version=yes
 
15263
      ;;
 
15264
  esac
 
15265
  shlibpath_var=LD_LIBRARY_PATH
 
15266
  case $host_os in
 
15267
  freebsd2.*)
 
15268
    shlibpath_overrides_runpath=yes
 
15269
    ;;
 
15270
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15271
    shlibpath_overrides_runpath=yes
 
15272
    hardcode_into_libs=yes
 
15273
    ;;
 
15274
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15275
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15276
    shlibpath_overrides_runpath=no
 
15277
    hardcode_into_libs=yes
 
15278
    ;;
 
15279
  *) # from 4.6 on, and DragonFly
 
15280
    shlibpath_overrides_runpath=yes
 
15281
    hardcode_into_libs=yes
 
15282
    ;;
 
15283
  esac
 
15284
  ;;
 
15285
 
 
15286
haiku*)
 
15287
  version_type=linux # correct to gnu/linux during the next big refactor
 
15288
  need_lib_prefix=no
 
15289
  need_version=no
 
15290
  dynamic_linker="$host_os runtime_loader"
 
15291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15292
  soname_spec='${libname}${release}${shared_ext}$major'
 
15293
  shlibpath_var=LIBRARY_PATH
 
15294
  shlibpath_overrides_runpath=yes
 
15295
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
15296
  hardcode_into_libs=yes
 
15297
  ;;
 
15298
 
 
15299
hpux9* | hpux10* | hpux11*)
 
15300
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15301
  # link against other versions.
 
15302
  version_type=sunos
 
15303
  need_lib_prefix=no
 
15304
  need_version=no
 
15305
  case $host_cpu in
 
15306
  ia64*)
 
15307
    shrext_cmds='.so'
 
15308
    hardcode_into_libs=yes
 
15309
    dynamic_linker="$host_os dld.so"
 
15310
    shlibpath_var=LD_LIBRARY_PATH
 
15311
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15312
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15313
    soname_spec='${libname}${release}${shared_ext}$major'
 
15314
    if test "X$HPUX_IA64_MODE" = X32; then
 
15315
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15316
    else
 
15317
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15318
    fi
 
15319
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15320
    ;;
 
15321
  hppa*64*)
 
15322
    shrext_cmds='.sl'
 
15323
    hardcode_into_libs=yes
 
15324
    dynamic_linker="$host_os dld.sl"
 
15325
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15326
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15327
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15328
    soname_spec='${libname}${release}${shared_ext}$major'
 
15329
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15330
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15331
    ;;
 
15332
  *)
 
15333
    shrext_cmds='.sl'
 
15334
    dynamic_linker="$host_os dld.sl"
 
15335
    shlibpath_var=SHLIB_PATH
 
15336
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15337
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15338
    soname_spec='${libname}${release}${shared_ext}$major'
 
15339
    ;;
 
15340
  esac
 
15341
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
15342
  postinstall_cmds='chmod 555 $lib'
 
15343
  # or fails outright, so override atomically:
 
15344
  install_override_mode=555
 
15345
  ;;
 
15346
 
 
15347
interix[3-9]*)
 
15348
  version_type=linux # correct to gnu/linux during the next big refactor
 
15349
  need_lib_prefix=no
 
15350
  need_version=no
 
15351
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15352
  soname_spec='${libname}${release}${shared_ext}$major'
 
15353
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15354
  shlibpath_var=LD_LIBRARY_PATH
 
15355
  shlibpath_overrides_runpath=no
 
15356
  hardcode_into_libs=yes
 
15357
  ;;
 
15358
 
 
15359
irix5* | irix6* | nonstopux*)
 
15360
  case $host_os in
 
15361
    nonstopux*) version_type=nonstopux ;;
 
15362
    *)
 
15363
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15364
                version_type=linux # correct to gnu/linux during the next big refactor
 
15365
        else
 
15366
                version_type=irix
 
15367
        fi ;;
 
15368
  esac
 
15369
  need_lib_prefix=no
 
15370
  need_version=no
 
15371
  soname_spec='${libname}${release}${shared_ext}$major'
 
15372
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15373
  case $host_os in
 
15374
  irix5* | nonstopux*)
 
15375
    libsuff= shlibsuff=
 
15376
    ;;
 
15377
  *)
 
15378
    case $LD in # libtool.m4 will add one of these switches to LD
 
15379
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15380
      libsuff= shlibsuff= libmagic=32-bit;;
 
15381
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15382
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15383
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15384
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15385
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15386
    esac
 
15387
    ;;
 
15388
  esac
 
15389
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15390
  shlibpath_overrides_runpath=no
 
15391
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15392
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15393
  hardcode_into_libs=yes
 
15394
  ;;
 
15395
 
 
15396
# No shared lib support for Linux oldld, aout, or coff.
 
15397
linux*oldld* | linux*aout* | linux*coff*)
 
15398
  dynamic_linker=no
 
15399
  ;;
 
15400
 
 
15401
# This must be glibc/ELF.
 
15402
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
15403
  version_type=linux # correct to gnu/linux during the next big refactor
 
15404
  need_lib_prefix=no
 
15405
  need_version=no
 
15406
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15407
  soname_spec='${libname}${release}${shared_ext}$major'
 
15408
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15409
  shlibpath_var=LD_LIBRARY_PATH
 
15410
  shlibpath_overrides_runpath=no
 
15411
 
 
15412
  # Some binutils ld are patched to set DT_RUNPATH
 
15413
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
15414
  $as_echo_n "(cached) " >&6
 
15415
else
 
15416
  lt_cv_shlibpath_overrides_runpath=no
 
15417
    save_LDFLAGS=$LDFLAGS
 
15418
    save_libdir=$libdir
 
15419
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
15420
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
15421
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15422
/* end confdefs.h.  */
 
15423
 
 
15424
int
 
15425
main ()
 
15426
{
 
15427
 
 
15428
  ;
 
15429
  return 0;
 
15430
}
 
15431
_ACEOF
 
15432
if ac_fn_cxx_try_link "$LINENO"; then :
 
15433
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
15434
  lt_cv_shlibpath_overrides_runpath=yes
 
15435
fi
 
15436
fi
 
15437
rm -f core conftest.err conftest.$ac_objext \
 
15438
    conftest$ac_exeext conftest.$ac_ext
 
15439
    LDFLAGS=$save_LDFLAGS
 
15440
    libdir=$save_libdir
 
15441
 
 
15442
fi
 
15443
 
 
15444
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
15445
 
 
15446
  # This implies no fast_install, which is unacceptable.
 
15447
  # Some rework will be needed to allow for fast_install
 
15448
  # before this can be enabled.
 
15449
  hardcode_into_libs=yes
 
15450
 
 
15451
  # Append ld.so.conf contents to the search path
 
15452
  if test -f /etc/ld.so.conf; then
 
15453
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
15454
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15455
  fi
 
15456
 
 
15457
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15458
  # powerpc, because MkLinux only supported shared libraries with the
 
15459
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15460
  # most powerpc-linux boxes support dynamic linking these days and
 
15461
  # people can always --disable-shared, the test was removed, and we
 
15462
  # assume the GNU/Linux dynamic linker is in use.
 
15463
  dynamic_linker='GNU/Linux ld.so'
 
15464
  ;;
 
15465
 
 
15466
netbsdelf*-gnu)
 
15467
  version_type=linux
 
15468
  need_lib_prefix=no
 
15469
  need_version=no
 
15470
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15471
  soname_spec='${libname}${release}${shared_ext}$major'
 
15472
  shlibpath_var=LD_LIBRARY_PATH
 
15473
  shlibpath_overrides_runpath=no
 
15474
  hardcode_into_libs=yes
 
15475
  dynamic_linker='NetBSD ld.elf_so'
 
15476
  ;;
 
15477
 
 
15478
netbsd*)
 
15479
  version_type=sunos
 
15480
  need_lib_prefix=no
 
15481
  need_version=no
 
15482
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15483
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15484
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15485
    dynamic_linker='NetBSD (a.out) ld.so'
 
15486
  else
 
15487
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15488
    soname_spec='${libname}${release}${shared_ext}$major'
 
15489
    dynamic_linker='NetBSD ld.elf_so'
 
15490
  fi
 
15491
  shlibpath_var=LD_LIBRARY_PATH
 
15492
  shlibpath_overrides_runpath=yes
 
15493
  hardcode_into_libs=yes
 
15494
  ;;
 
15495
 
 
15496
newsos6)
 
15497
  version_type=linux # correct to gnu/linux during the next big refactor
 
15498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15499
  shlibpath_var=LD_LIBRARY_PATH
 
15500
  shlibpath_overrides_runpath=yes
 
15501
  ;;
 
15502
 
 
15503
*nto* | *qnx*)
 
15504
  version_type=qnx
 
15505
  need_lib_prefix=no
 
15506
  need_version=no
 
15507
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15508
  soname_spec='${libname}${release}${shared_ext}$major'
 
15509
  shlibpath_var=LD_LIBRARY_PATH
 
15510
  shlibpath_overrides_runpath=no
 
15511
  hardcode_into_libs=yes
 
15512
  dynamic_linker='ldqnx.so'
 
15513
  ;;
 
15514
 
 
15515
openbsd*)
 
15516
  version_type=sunos
 
15517
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15518
  need_lib_prefix=no
 
15519
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15520
  case $host_os in
 
15521
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
15522
    *)                          need_version=no  ;;
 
15523
  esac
 
15524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15525
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15526
  shlibpath_var=LD_LIBRARY_PATH
 
15527
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15528
    case $host_os in
 
15529
      openbsd2.[89] | openbsd2.[89].*)
 
15530
        shlibpath_overrides_runpath=no
 
15531
        ;;
 
15532
      *)
 
15533
        shlibpath_overrides_runpath=yes
 
15534
        ;;
 
15535
      esac
 
15536
  else
 
15537
    shlibpath_overrides_runpath=yes
 
15538
  fi
 
15539
  ;;
 
15540
 
 
15541
os2*)
 
15542
  libname_spec='$name'
 
15543
  shrext_cmds=".dll"
 
15544
  need_lib_prefix=no
 
15545
  library_names_spec='$libname${shared_ext} $libname.a'
 
15546
  dynamic_linker='OS/2 ld.exe'
 
15547
  shlibpath_var=LIBPATH
 
15548
  ;;
 
15549
 
 
15550
osf3* | osf4* | osf5*)
 
15551
  version_type=osf
 
15552
  need_lib_prefix=no
 
15553
  need_version=no
 
15554
  soname_spec='${libname}${release}${shared_ext}$major'
 
15555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15556
  shlibpath_var=LD_LIBRARY_PATH
 
15557
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15558
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15559
  ;;
 
15560
 
 
15561
rdos*)
 
15562
  dynamic_linker=no
 
15563
  ;;
 
15564
 
 
15565
solaris*)
 
15566
  version_type=linux # correct to gnu/linux during the next big refactor
 
15567
  need_lib_prefix=no
 
15568
  need_version=no
 
15569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15570
  soname_spec='${libname}${release}${shared_ext}$major'
 
15571
  shlibpath_var=LD_LIBRARY_PATH
 
15572
  shlibpath_overrides_runpath=yes
 
15573
  hardcode_into_libs=yes
 
15574
  # ldd complains unless libraries are executable
 
15575
  postinstall_cmds='chmod +x $lib'
 
15576
  ;;
 
15577
 
 
15578
sunos4*)
 
15579
  version_type=sunos
 
15580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15581
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15582
  shlibpath_var=LD_LIBRARY_PATH
 
15583
  shlibpath_overrides_runpath=yes
 
15584
  if test "$with_gnu_ld" = yes; then
 
15585
    need_lib_prefix=no
 
15586
  fi
 
15587
  need_version=yes
 
15588
  ;;
 
15589
 
 
15590
sysv4 | sysv4.3*)
 
15591
  version_type=linux # correct to gnu/linux during the next big refactor
 
15592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15593
  soname_spec='${libname}${release}${shared_ext}$major'
 
15594
  shlibpath_var=LD_LIBRARY_PATH
 
15595
  case $host_vendor in
 
15596
    sni)
 
15597
      shlibpath_overrides_runpath=no
 
15598
      need_lib_prefix=no
 
15599
      runpath_var=LD_RUN_PATH
 
15600
      ;;
 
15601
    siemens)
 
15602
      need_lib_prefix=no
 
15603
      ;;
 
15604
    motorola)
 
15605
      need_lib_prefix=no
 
15606
      need_version=no
 
15607
      shlibpath_overrides_runpath=no
 
15608
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15609
      ;;
 
15610
  esac
 
15611
  ;;
 
15612
 
 
15613
sysv4*MP*)
 
15614
  if test -d /usr/nec ;then
 
15615
    version_type=linux # correct to gnu/linux during the next big refactor
 
15616
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15617
    soname_spec='$libname${shared_ext}.$major'
 
15618
    shlibpath_var=LD_LIBRARY_PATH
 
15619
  fi
 
15620
  ;;
 
15621
 
 
15622
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15623
  version_type=freebsd-elf
 
15624
  need_lib_prefix=no
 
15625
  need_version=no
 
15626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15627
  soname_spec='${libname}${release}${shared_ext}$major'
 
15628
  shlibpath_var=LD_LIBRARY_PATH
 
15629
  shlibpath_overrides_runpath=yes
 
15630
  hardcode_into_libs=yes
 
15631
  if test "$with_gnu_ld" = yes; then
 
15632
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15633
  else
 
15634
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15635
    case $host_os in
 
15636
      sco3.2v5*)
 
15637
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15638
        ;;
 
15639
    esac
 
15640
  fi
 
15641
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15642
  ;;
 
15643
 
 
15644
tpf*)
 
15645
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15646
  version_type=linux # correct to gnu/linux during the next big refactor
 
15647
  need_lib_prefix=no
 
15648
  need_version=no
 
15649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15650
  shlibpath_var=LD_LIBRARY_PATH
 
15651
  shlibpath_overrides_runpath=no
 
15652
  hardcode_into_libs=yes
 
15653
  ;;
 
15654
 
 
15655
uts4*)
 
15656
  version_type=linux # correct to gnu/linux during the next big refactor
 
15657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15658
  soname_spec='${libname}${release}${shared_ext}$major'
 
15659
  shlibpath_var=LD_LIBRARY_PATH
 
15660
  ;;
 
15661
 
 
15662
*)
 
15663
  dynamic_linker=no
 
15664
  ;;
 
15665
esac
 
15666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
15667
$as_echo "$dynamic_linker" >&6; }
 
15668
test "$dynamic_linker" = no && can_build_shared=no
 
15669
 
 
15670
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15671
if test "$GCC" = yes; then
 
15672
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15673
fi
 
15674
 
 
15675
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15676
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15677
fi
 
15678
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15679
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15680
fi
 
15681
 
 
15682
 
 
15683
 
 
15684
 
 
15685
 
 
15686
 
 
15687
 
 
15688
 
 
15689
 
 
15690
 
 
15691
 
 
15692
 
 
15693
 
 
15694
 
 
15695
 
 
15696
 
 
15697
 
 
15698
 
 
15699
 
 
15700
 
 
15701
 
 
15702
 
 
15703
 
 
15704
 
 
15705
 
 
15706
 
 
15707
 
 
15708
 
 
15709
 
 
15710
 
 
15711
 
 
15712
 
 
15713
 
 
15714
 
 
15715
 
 
15716
 
 
15717
 
 
15718
 
 
15719
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15720
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15721
hardcode_action_CXX=
 
15722
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15723
   test -n "$runpath_var_CXX" ||
 
15724
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15725
 
 
15726
  # We can hardcode non-existent directories.
 
15727
  if test "$hardcode_direct_CXX" != no &&
 
15728
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15729
     # have to relink, otherwise we might link with an installed library
 
15730
     # when we should be linking with a yet-to-be-installed one
 
15731
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15732
     test "$hardcode_minus_L_CXX" != no; then
 
15733
    # Linking always hardcodes the temporary library directory.
 
15734
    hardcode_action_CXX=relink
 
15735
  else
 
15736
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15737
    hardcode_action_CXX=immediate
 
15738
  fi
 
15739
else
 
15740
  # We cannot hardcode anything, or else we can only hardcode existing
 
15741
  # directories.
 
15742
  hardcode_action_CXX=unsupported
 
15743
fi
 
15744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15745
$as_echo "$hardcode_action_CXX" >&6; }
 
15746
 
 
15747
if test "$hardcode_action_CXX" = relink ||
 
15748
   test "$inherit_rpath_CXX" = yes; then
 
15749
  # Fast installation is not supported
 
15750
  enable_fast_install=no
 
15751
elif test "$shlibpath_overrides_runpath" = yes ||
 
15752
     test "$enable_shared" = no; then
 
15753
  # Fast installation is not necessary
 
15754
  enable_fast_install=needless
 
15755
fi
 
15756
 
 
15757
 
 
15758
 
 
15759
 
 
15760
 
 
15761
 
 
15762
 
 
15763
  fi # test -n "$compiler"
 
15764
 
 
15765
  CC=$lt_save_CC
 
15766
  CFLAGS=$lt_save_CFLAGS
 
15767
  LDCXX=$LD
 
15768
  LD=$lt_save_LD
 
15769
  GCC=$lt_save_GCC
 
15770
  with_gnu_ld=$lt_save_with_gnu_ld
 
15771
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15772
  lt_cv_path_LD=$lt_save_path_LD
 
15773
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15774
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15775
fi # test "$_lt_caught_CXX_error" != yes
 
15776
 
 
15777
ac_ext=cpp
 
15778
ac_cpp='$CXXCPP $CPPFLAGS'
 
15779
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15780
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15781
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15782
 
 
15783
 
 
15784
 
 
15785
 
 
15786
 
 
15787
 
 
15788
 
 
15789
 
 
15790
 
 
15791
 
 
15792
 
 
15793
 
 
15794
 
 
15795
 
 
15796
 
 
15797
        ac_config_commands="$ac_config_commands libtool"
 
15798
 
 
15799
 
 
15800
 
 
15801
 
 
15802
# Only expand once:
 
15803
 
 
15804
 
 
15805
 
 
15806
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
 
15807
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
15808
if ${ac_cv_prog_cc_c99+:} false; then :
 
15809
  $as_echo_n "(cached) " >&6
 
15810
else
 
15811
  ac_cv_prog_cc_c99=no
 
15812
ac_save_CC=$CC
 
15813
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15814
/* end confdefs.h.  */
 
15815
#include <stdarg.h>
 
15816
#include <stdbool.h>
 
15817
#include <stdlib.h>
 
15818
#include <wchar.h>
 
15819
#include <stdio.h>
 
15820
 
 
15821
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
15822
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
15823
#define showlist(...) puts (#__VA_ARGS__)
 
15824
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
15825
static void
 
15826
test_varargs_macros (void)
 
15827
{
 
15828
  int x = 1234;
 
15829
  int y = 5678;
 
15830
  debug ("Flag");
 
15831
  debug ("X = %d\n", x);
 
15832
  showlist (The first, second, and third items.);
 
15833
  report (x>y, "x is %d but y is %d", x, y);
 
15834
}
 
15835
 
 
15836
// Check long long types.
 
15837
#define BIG64 18446744073709551615ull
 
15838
#define BIG32 4294967295ul
 
15839
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
15840
#if !BIG_OK
 
15841
  your preprocessor is broken;
 
15842
#endif
 
15843
#if BIG_OK
 
15844
#else
 
15845
  your preprocessor is broken;
 
15846
#endif
 
15847
static long long int bignum = -9223372036854775807LL;
 
15848
static unsigned long long int ubignum = BIG64;
 
15849
 
 
15850
struct incomplete_array
 
15851
{
 
15852
  int datasize;
 
15853
  double data[];
 
15854
};
 
15855
 
 
15856
struct named_init {
 
15857
  int number;
 
15858
  const wchar_t *name;
 
15859
  double average;
 
15860
};
 
15861
 
 
15862
typedef const char *ccp;
 
15863
 
 
15864
static inline int
 
15865
test_restrict (ccp restrict text)
 
15866
{
 
15867
  // See if C++-style comments work.
 
15868
  // Iterate through items via the restricted pointer.
 
15869
  // Also check for declarations in for loops.
 
15870
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
15871
    continue;
 
15872
  return 0;
 
15873
}
 
15874
 
 
15875
// Check varargs and va_copy.
 
15876
static void
 
15877
test_varargs (const char *format, ...)
 
15878
{
 
15879
  va_list args;
 
15880
  va_start (args, format);
 
15881
  va_list args_copy;
 
15882
  va_copy (args_copy, args);
 
15883
 
 
15884
  const char *str;
 
15885
  int number;
 
15886
  float fnumber;
 
15887
 
 
15888
  while (*format)
 
15889
    {
 
15890
      switch (*format++)
 
15891
        {
 
15892
        case 's': // string
 
15893
          str = va_arg (args_copy, const char *);
 
15894
          break;
 
15895
        case 'd': // int
 
15896
          number = va_arg (args_copy, int);
 
15897
          break;
 
15898
        case 'f': // float
 
15899
          fnumber = va_arg (args_copy, double);
 
15900
          break;
 
15901
        default:
 
15902
          break;
 
15903
        }
 
15904
    }
 
15905
  va_end (args_copy);
 
15906
  va_end (args);
 
15907
}
 
15908
 
 
15909
int
 
15910
main ()
 
15911
{
 
15912
 
 
15913
  // Check bool.
 
15914
  _Bool success = false;
 
15915
 
 
15916
  // Check restrict.
 
15917
  if (test_restrict ("String literal") == 0)
 
15918
    success = true;
 
15919
  char *restrict newvar = "Another string";
 
15920
 
 
15921
  // Check varargs.
 
15922
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
15923
  test_varargs_macros ();
 
15924
 
 
15925
  // Check flexible array members.
 
15926
  struct incomplete_array *ia =
 
15927
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
15928
  ia->datasize = 10;
 
15929
  for (int i = 0; i < ia->datasize; ++i)
 
15930
    ia->data[i] = i * 1.234;
 
15931
 
 
15932
  // Check named initializers.
 
15933
  struct named_init ni = {
 
15934
    .number = 34,
 
15935
    .name = L"Test wide string",
 
15936
    .average = 543.34343,
 
15937
  };
 
15938
 
 
15939
  ni.number = 58;
 
15940
 
 
15941
  int dynamic_array[ni.number];
 
15942
  dynamic_array[ni.number - 1] = 543;
 
15943
 
 
15944
  // work around unused variable warnings
 
15945
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
15946
          || dynamic_array[ni.number - 1] != 543);
 
15947
 
 
15948
  ;
 
15949
  return 0;
 
15950
}
 
15951
_ACEOF
 
15952
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
 
15953
do
 
15954
  CC="$ac_save_CC $ac_arg"
 
15955
  if ac_fn_cxx_try_compile "$LINENO"; then :
 
15956
  ac_cv_prog_cc_c99=$ac_arg
 
15957
fi
 
15958
rm -f core conftest.err conftest.$ac_objext
 
15959
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
15960
done
 
15961
rm -f conftest.$ac_ext
 
15962
CC=$ac_save_CC
 
15963
 
 
15964
fi
 
15965
# AC_CACHE_VAL
 
15966
case "x$ac_cv_prog_cc_c99" in
 
15967
  x)
 
15968
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
15969
$as_echo "none needed" >&6; } ;;
 
15970
  xno)
 
15971
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
15972
$as_echo "unsupported" >&6; } ;;
 
15973
  *)
 
15974
    CC="$CC $ac_cv_prog_cc_c99"
 
15975
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 
15976
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
15977
esac
 
15978
if test "x$ac_cv_prog_cc_c99" != xno; then :
 
15979
 
 
15980
fi
 
15981
 
 
15982
 
 
15983
ac_ext=cpp
 
15984
ac_cpp='$CXXCPP $CPPFLAGS'
 
15985
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15986
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15987
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15988
if test -z "$CXX"; then
 
15989
  if test -n "$CCC"; then
 
15990
    CXX=$CCC
 
15991
  else
 
15992
    if test -n "$ac_tool_prefix"; then
 
15993
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
15994
  do
 
15995
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
15996
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
15997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15998
$as_echo_n "checking for $ac_word... " >&6; }
 
15999
if ${ac_cv_prog_CXX+:} false; then :
 
16000
  $as_echo_n "(cached) " >&6
 
16001
else
 
16002
  if test -n "$CXX"; then
 
16003
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
16004
else
 
16005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16006
for as_dir in $PATH
 
16007
do
 
16008
  IFS=$as_save_IFS
 
16009
  test -z "$as_dir" && as_dir=.
 
16010
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16011
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16012
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
16013
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16014
    break 2
 
16015
  fi
 
16016
done
 
16017
  done
 
16018
IFS=$as_save_IFS
 
16019
 
 
16020
fi
 
16021
fi
 
16022
CXX=$ac_cv_prog_CXX
 
16023
if test -n "$CXX"; then
 
16024
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
16025
$as_echo "$CXX" >&6; }
 
16026
else
 
16027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16028
$as_echo "no" >&6; }
 
16029
fi
 
16030
 
 
16031
 
 
16032
    test -n "$CXX" && break
 
16033
  done
 
16034
fi
 
16035
if test -z "$CXX"; then
 
16036
  ac_ct_CXX=$CXX
 
16037
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
16038
do
 
16039
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
16040
set dummy $ac_prog; ac_word=$2
 
16041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16042
$as_echo_n "checking for $ac_word... " >&6; }
 
16043
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
16044
  $as_echo_n "(cached) " >&6
 
16045
else
 
16046
  if test -n "$ac_ct_CXX"; then
 
16047
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
16048
else
 
16049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16050
for as_dir in $PATH
 
16051
do
 
16052
  IFS=$as_save_IFS
 
16053
  test -z "$as_dir" && as_dir=.
 
16054
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16055
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16056
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
16057
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16058
    break 2
 
16059
  fi
 
16060
done
 
16061
  done
 
16062
IFS=$as_save_IFS
 
16063
 
 
16064
fi
 
16065
fi
 
16066
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
16067
if test -n "$ac_ct_CXX"; then
 
16068
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
16069
$as_echo "$ac_ct_CXX" >&6; }
 
16070
else
 
16071
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16072
$as_echo "no" >&6; }
 
16073
fi
 
16074
 
 
16075
 
 
16076
  test -n "$ac_ct_CXX" && break
 
16077
done
 
16078
 
 
16079
  if test "x$ac_ct_CXX" = x; then
 
16080
    CXX="g++"
 
16081
  else
 
16082
    case $cross_compiling:$ac_tool_warned in
 
16083
yes:)
 
16084
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
16085
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
16086
ac_tool_warned=yes ;;
 
16087
esac
 
16088
    CXX=$ac_ct_CXX
 
16089
  fi
 
16090
fi
 
16091
 
 
16092
  fi
 
16093
fi
 
16094
# Provide some information about the compiler.
 
16095
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
16096
set X $ac_compile
 
16097
ac_compiler=$2
 
16098
for ac_option in --version -v -V -qversion; do
 
16099
  { { ac_try="$ac_compiler $ac_option >&5"
 
16100
case "(($ac_try" in
 
16101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16102
  *) ac_try_echo=$ac_try;;
 
16103
esac
 
16104
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
16105
$as_echo "$ac_try_echo"; } >&5
 
16106
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
16107
  ac_status=$?
 
16108
  if test -s conftest.err; then
 
16109
    sed '10a\
 
16110
... rest of stderr output deleted ...
 
16111
         10q' conftest.err >conftest.er1
 
16112
    cat conftest.er1 >&5
 
16113
  fi
 
16114
  rm -f conftest.er1 conftest.err
 
16115
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16116
  test $ac_status = 0; }
 
16117
done
 
16118
 
 
16119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
16120
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
16121
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
16122
  $as_echo_n "(cached) " >&6
 
16123
else
 
16124
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16125
/* end confdefs.h.  */
 
16126
 
 
16127
int
 
16128
main ()
 
16129
{
 
16130
#ifndef __GNUC__
 
16131
       choke me
 
16132
#endif
 
16133
 
 
16134
  ;
 
16135
  return 0;
 
16136
}
 
16137
_ACEOF
 
16138
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16139
  ac_compiler_gnu=yes
 
16140
else
 
16141
  ac_compiler_gnu=no
 
16142
fi
 
16143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16144
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
16145
 
 
16146
fi
 
16147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
16148
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
16149
if test $ac_compiler_gnu = yes; then
 
16150
  GXX=yes
 
16151
else
 
16152
  GXX=
 
16153
fi
 
16154
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
16155
ac_save_CXXFLAGS=$CXXFLAGS
 
16156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
16157
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
16158
if ${ac_cv_prog_cxx_g+:} false; then :
 
16159
  $as_echo_n "(cached) " >&6
 
16160
else
 
16161
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
16162
   ac_cxx_werror_flag=yes
 
16163
   ac_cv_prog_cxx_g=no
 
16164
   CXXFLAGS="-g"
 
16165
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16166
/* end confdefs.h.  */
 
16167
 
 
16168
int
 
16169
main ()
 
16170
{
 
16171
 
 
16172
  ;
 
16173
  return 0;
 
16174
}
 
16175
_ACEOF
 
16176
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16177
  ac_cv_prog_cxx_g=yes
 
16178
else
 
16179
  CXXFLAGS=""
 
16180
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16181
/* end confdefs.h.  */
 
16182
 
 
16183
int
 
16184
main ()
 
16185
{
 
16186
 
 
16187
  ;
 
16188
  return 0;
 
16189
}
 
16190
_ACEOF
 
16191
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16192
 
 
16193
else
 
16194
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
16195
         CXXFLAGS="-g"
 
16196
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16197
/* end confdefs.h.  */
 
16198
 
 
16199
int
 
16200
main ()
 
16201
{
 
16202
 
 
16203
  ;
 
16204
  return 0;
 
16205
}
 
16206
_ACEOF
 
16207
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16208
  ac_cv_prog_cxx_g=yes
 
16209
fi
 
16210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16211
fi
 
16212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16213
fi
 
16214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16215
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
16216
fi
 
16217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
16218
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
16219
if test "$ac_test_CXXFLAGS" = set; then
 
16220
  CXXFLAGS=$ac_save_CXXFLAGS
 
16221
elif test $ac_cv_prog_cxx_g = yes; then
 
16222
  if test "$GXX" = yes; then
 
16223
    CXXFLAGS="-g -O2"
 
16224
  else
 
16225
    CXXFLAGS="-g"
 
16226
  fi
 
16227
else
 
16228
  if test "$GXX" = yes; then
 
16229
    CXXFLAGS="-O2"
 
16230
  else
 
16231
    CXXFLAGS=
 
16232
  fi
 
16233
fi
 
16234
ac_ext=cpp
 
16235
ac_cpp='$CXXCPP $CPPFLAGS'
 
16236
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16237
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16238
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
16239
 
 
16240
depcc="$CXX"  am_compiler_list=
 
16241
 
 
16242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
16243
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
16244
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
16245
  $as_echo_n "(cached) " >&6
 
16246
else
 
16247
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
16248
  # We make a subdir and do the tests there.  Otherwise we can end up
 
16249
  # making bogus files that we don't know about and never remove.  For
 
16250
  # instance it was reported that on HP-UX the gcc test will end up
 
16251
  # making a dummy file named `D' -- because `-MD' means `put the output
 
16252
  # in D'.
 
16253
  rm -rf conftest.dir
 
16254
  mkdir conftest.dir
 
16255
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
16256
  # using a relative directory.
 
16257
  cp "$am_depcomp" conftest.dir
 
16258
  cd conftest.dir
 
16259
  # We will build objects and dependencies in a subdirectory because
 
16260
  # it helps to detect inapplicable dependency modes.  For instance
 
16261
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
16262
  # side effect of compilation, but ICC will put the dependencies in
 
16263
  # the current directory while Tru64 will put them in the object
 
16264
  # directory.
 
16265
  mkdir sub
 
16266
 
 
16267
  am_cv_CXX_dependencies_compiler_type=none
 
16268
  if test "$am_compiler_list" = ""; then
 
16269
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
16270
  fi
 
16271
  am__universal=false
 
16272
  case " $depcc " in #(
 
16273
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
16274
     esac
 
16275
 
 
16276
  for depmode in $am_compiler_list; do
 
16277
    # Setup a source with many dependencies, because some compilers
 
16278
    # like to wrap large dependency lists on column 80 (with \), and
 
16279
    # we should not choose a depcomp mode which is confused by this.
 
16280
    #
 
16281
    # We need to recreate these files for each test, as the compiler may
 
16282
    # overwrite some of them when testing with obscure command lines.
 
16283
    # This happens at least with the AIX C compiler.
 
16284
    : > sub/conftest.c
 
16285
    for i in 1 2 3 4 5 6; do
 
16286
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
16287
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
16288
      # Solaris 8's {/usr,}/bin/sh.
 
16289
      touch sub/conftst$i.h
 
16290
    done
 
16291
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
16292
 
 
16293
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
16294
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
16295
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
16296
    # versions had trouble with output in subdirs
 
16297
    am__obj=sub/conftest.${OBJEXT-o}
 
16298
    am__minus_obj="-o $am__obj"
 
16299
    case $depmode in
 
16300
    gcc)
 
16301
      # This depmode causes a compiler race in universal mode.
 
16302
      test "$am__universal" = false || continue
 
16303
      ;;
 
16304
    nosideeffect)
 
16305
      # after this tag, mechanisms are not by side-effect, so they'll
 
16306
      # only be used when explicitly requested
 
16307
      if test "x$enable_dependency_tracking" = xyes; then
 
16308
        continue
 
16309
      else
 
16310
        break
 
16311
      fi
 
16312
      ;;
 
16313
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
16314
      # This compiler won't grok `-c -o', but also, the minuso test has
 
16315
      # not run yet.  These depmodes are late enough in the game, and
 
16316
      # so weak that their functioning should not be impacted.
 
16317
      am__obj=conftest.${OBJEXT-o}
 
16318
      am__minus_obj=
 
16319
      ;;
 
16320
    none) break ;;
 
16321
    esac
 
16322
    if depmode=$depmode \
 
16323
       source=sub/conftest.c object=$am__obj \
 
16324
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
16325
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
16326
         >/dev/null 2>conftest.err &&
 
16327
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
16328
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
16329
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
16330
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
16331
      # icc doesn't choke on unknown options, it will just issue warnings
 
16332
      # or remarks (even with -Werror).  So we grep stderr for any message
 
16333
      # that says an option was ignored or not supported.
 
16334
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
16335
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
16336
      # The diagnosis changed in icc 8.0:
 
16337
      #   icc: Command line remark: option '-MP' not supported
 
16338
      if (grep 'ignoring option' conftest.err ||
 
16339
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
16340
        am_cv_CXX_dependencies_compiler_type=$depmode
 
16341
        break
 
16342
      fi
 
16343
    fi
 
16344
  done
 
16345
 
 
16346
  cd ..
 
16347
  rm -rf conftest.dir
 
16348
else
 
16349
  am_cv_CXX_dependencies_compiler_type=none
 
16350
fi
 
16351
 
 
16352
fi
 
16353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
16354
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
16355
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
16356
 
 
16357
 if
 
16358
  test "x$enable_dependency_tracking" != xno \
 
16359
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
16360
  am__fastdepCXX_TRUE=
 
16361
  am__fastdepCXX_FALSE='#'
 
16362
else
 
16363
  am__fastdepCXX_TRUE='#'
 
16364
  am__fastdepCXX_FALSE=
 
16365
fi
 
16366
 
 
16367
 
 
16368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
 
16369
$as_echo_n "checking for library containing strerror... " >&6; }
 
16370
if ${ac_cv_search_strerror+:} false; then :
 
16371
  $as_echo_n "(cached) " >&6
 
16372
else
 
16373
  ac_func_search_save_LIBS=$LIBS
 
16374
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16375
/* end confdefs.h.  */
 
16376
 
 
16377
/* Override any GCC internal prototype to avoid an error.
 
16378
   Use char because int might match the return type of a GCC
 
16379
   builtin and then its argument prototype would still apply.  */
 
16380
#ifdef __cplusplus
 
16381
extern "C"
 
16382
#endif
 
16383
char strerror ();
 
16384
int
 
16385
main ()
 
16386
{
 
16387
return strerror ();
 
16388
  ;
 
16389
  return 0;
 
16390
}
 
16391
_ACEOF
 
16392
for ac_lib in '' cposix; do
 
16393
  if test -z "$ac_lib"; then
 
16394
    ac_res="none required"
 
16395
  else
 
16396
    ac_res=-l$ac_lib
 
16397
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
16398
  fi
 
16399
  if ac_fn_cxx_try_link "$LINENO"; then :
 
16400
  ac_cv_search_strerror=$ac_res
 
16401
fi
 
16402
rm -f core conftest.err conftest.$ac_objext \
 
16403
    conftest$ac_exeext
 
16404
  if ${ac_cv_search_strerror+:} false; then :
 
16405
  break
 
16406
fi
 
16407
done
 
16408
if ${ac_cv_search_strerror+:} false; then :
 
16409
 
 
16410
else
 
16411
  ac_cv_search_strerror=no
 
16412
fi
 
16413
rm conftest.$ac_ext
 
16414
LIBS=$ac_func_search_save_LIBS
 
16415
fi
 
16416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
 
16417
$as_echo "$ac_cv_search_strerror" >&6; }
 
16418
ac_res=$ac_cv_search_strerror
 
16419
if test "$ac_res" != no; then :
 
16420
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
16421
 
 
16422
fi
 
16423
 
 
16424
 
 
16425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
16426
$as_echo_n "checking for ANSI C header files... " >&6; }
 
16427
if ${ac_cv_header_stdc+:} false; then :
 
16428
  $as_echo_n "(cached) " >&6
 
16429
else
 
16430
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16431
/* end confdefs.h.  */
 
16432
#include <stdlib.h>
 
16433
#include <stdarg.h>
 
16434
#include <string.h>
 
16435
#include <float.h>
 
16436
 
 
16437
int
 
16438
main ()
 
16439
{
 
16440
 
 
16441
  ;
 
16442
  return 0;
 
16443
}
 
16444
_ACEOF
 
16445
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16446
  ac_cv_header_stdc=yes
 
16447
else
 
16448
  ac_cv_header_stdc=no
 
16449
fi
 
16450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16451
 
 
16452
if test $ac_cv_header_stdc = yes; then
 
16453
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
16454
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16455
/* end confdefs.h.  */
 
16456
#include <string.h>
 
16457
 
 
16458
_ACEOF
 
16459
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16460
  $EGREP "memchr" >/dev/null 2>&1; then :
 
16461
 
 
16462
else
 
16463
  ac_cv_header_stdc=no
 
16464
fi
 
16465
rm -f conftest*
 
16466
 
 
16467
fi
 
16468
 
 
16469
if test $ac_cv_header_stdc = yes; then
 
16470
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
16471
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16472
/* end confdefs.h.  */
 
16473
#include <stdlib.h>
 
16474
 
 
16475
_ACEOF
 
16476
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16477
  $EGREP "free" >/dev/null 2>&1; then :
 
16478
 
 
16479
else
 
16480
  ac_cv_header_stdc=no
 
16481
fi
 
16482
rm -f conftest*
 
16483
 
 
16484
fi
 
16485
 
 
16486
if test $ac_cv_header_stdc = yes; then
 
16487
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
16488
  if test "$cross_compiling" = yes; then :
 
16489
  :
 
16490
else
 
16491
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16492
/* end confdefs.h.  */
 
16493
#include <ctype.h>
 
16494
#include <stdlib.h>
 
16495
#if ((' ' & 0x0FF) == 0x020)
 
16496
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
16497
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
16498
#else
 
16499
# define ISLOWER(c) \
 
16500
                   (('a' <= (c) && (c) <= 'i') \
 
16501
                     || ('j' <= (c) && (c) <= 'r') \
 
16502
                     || ('s' <= (c) && (c) <= 'z'))
 
16503
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
16504
#endif
 
16505
 
 
16506
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
16507
int
 
16508
main ()
 
16509
{
 
16510
  int i;
 
16511
  for (i = 0; i < 256; i++)
 
16512
    if (XOR (islower (i), ISLOWER (i))
 
16513
        || toupper (i) != TOUPPER (i))
 
16514
      return 2;
 
16515
  return 0;
 
16516
}
 
16517
_ACEOF
 
16518
if ac_fn_cxx_try_run "$LINENO"; then :
 
16519
 
 
16520
else
 
16521
  ac_cv_header_stdc=no
 
16522
fi
 
16523
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16524
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16525
fi
 
16526
 
 
16527
fi
 
16528
fi
 
16529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
16530
$as_echo "$ac_cv_header_stdc" >&6; }
 
16531
if test $ac_cv_header_stdc = yes; then
 
16532
 
 
16533
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
16534
 
 
16535
fi
 
16536
 
 
16537
 
 
16538
if test ".$ac_cv_c_compiler_gnu" = .yes; then
 
16539
   CFLAGS="$CFLAGS -Wall -Wextra -Winit-self -Wswitch-default -Wswitch-enum -Wstrict-aliasing=2 -Wfloat-equal -Wshadow"
 
16540
   CXXFLAGS="$CXXFLAGS -Wall -Wextra -Winit-self -Wswitch-default -Wswitch-enum -Wstrict-aliasing=2 -Wfloat-equal -Wshadow"
 
16541
fi
 
16542
 
 
16543
case $host in
 
16544
 
 
16545
  *-*-linux*)
 
16546
    # Test if the compiler is 64bit
 
16547
    echo 'int i;' > conftest.$ac_ext
 
16548
    ekiga_cv_cc_64bit_output=no
 
16549
 
 
16550
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
16551
  (eval $ac_compile) 2>&5
 
16552
  ac_status=$?
 
16553
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16554
  test $ac_status = 0; }; then
 
16555
      case `/usr/bin/file conftest.$ac_objext` in
 
16556
        *"ELF 64"*)
 
16557
          ekiga_cv_cc_64bit_output=yes
 
16558
          ;;
 
16559
      esac
 
16560
    fi
 
16561
    rm -rf conftest*
 
16562
  ;;
 
16563
esac
 
16564
 
 
16565
case $host_cpu:$ekiga_cv_cc_64bit_output in
 
16566
 
 
16567
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
 
16568
    libname="lib64"
 
16569
    ;;
 
16570
 
 
16571
  *:*)
 
16572
    libname="lib"
 
16573
    ;;
 
16574
esac
 
16575
 
 
16576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS type is supported" >&5
 
16577
$as_echo_n "checking whether OS type is supported... " >&6; }
 
16578
win32=0
 
16579
 
 
16580
case $target_os in
 
16581
 
 
16582
  solaris*)
 
16583
    gm_platform="solaris"
 
16584
    ;;
 
16585
 
 
16586
  linux-gnulp | linux-gnu | linux-gnueabi* | linux | Linux)
 
16587
    gm_platform="linux"
 
16588
    ;;
 
16589
 
 
16590
  gnu* )
 
16591
    gm_platform="gnu"
 
16592
    ;;
 
16593
 
 
16594
  FreeBSD* | freebsd* | kfreebsd* | NetBSD* | netbsd* )
 
16595
    gm_platform="freebsd"
 
16596
    ;;
 
16597
 
 
16598
  darwin* )
 
16599
    gm_platform="macosx"
 
16600
    ;;
 
16601
 
 
16602
  mingw* )
 
16603
    gm_platform="mingw"
 
16604
    CFLAGS="$CFLAGS -Wl,--enable-auto-import"
 
16605
    CXXFLAGS="$CXXFLAGS -Wl,--enable-auto-import"
 
16606
    win32=1
 
16607
    ;;
 
16608
 
 
16609
  *)
 
16610
    as_fn_error $? "Only Linux, Hurd, FreeBSD, NetBSD, Solaris and Mac OS X are supported. Please contact the author to know how you can add more OS types." "$LINENO" 5
 
16611
    ;;
 
16612
esac
 
16613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16614
$as_echo "yes" >&6; }
 
16615
 
 
16616
 if test "x${win32}" = "x1"; then
 
16617
  WIN32_TRUE=
 
16618
  WIN32_FALSE='#'
 
16619
else
 
16620
  WIN32_TRUE='#'
 
16621
  WIN32_FALSE=
 
16622
fi
 
16623
 
 
16624
 
 
16625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Byte order" >&5
 
16626
$as_echo_n "checking Byte order... " >&6; }
 
16627
byte_order="unknown"
 
16628
 
 
16629
# Check whether --with-endianess was given.
 
16630
if test "${with_endianess+set}" = set; then :
 
16631
  withval=$with_endianess; byte_order="$withval endian"
 
16632
else
 
16633
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
16634
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
16635
if ${ac_cv_c_bigendian+:} false; then :
 
16636
  $as_echo_n "(cached) " >&6
 
16637
else
 
16638
  ac_cv_c_bigendian=unknown
 
16639
    # See if we're dealing with a universal compiler.
 
16640
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16641
/* end confdefs.h.  */
 
16642
#ifndef __APPLE_CC__
 
16643
               not a universal capable compiler
 
16644
             #endif
 
16645
             typedef int dummy;
 
16646
 
 
16647
_ACEOF
 
16648
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16649
 
 
16650
        # Check for potential -arch flags.  It is not universal unless
 
16651
        # there are at least two -arch flags with different values.
 
16652
        ac_arch=
 
16653
        ac_prev=
 
16654
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
16655
         if test -n "$ac_prev"; then
 
16656
           case $ac_word in
 
16657
             i?86 | x86_64 | ppc | ppc64)
 
16658
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
16659
                 ac_arch=$ac_word
 
16660
               else
 
16661
                 ac_cv_c_bigendian=universal
 
16662
                 break
 
16663
               fi
 
16664
               ;;
 
16665
           esac
 
16666
           ac_prev=
 
16667
         elif test "x$ac_word" = "x-arch"; then
 
16668
           ac_prev=arch
 
16669
         fi
 
16670
       done
 
16671
fi
 
16672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16673
    if test $ac_cv_c_bigendian = unknown; then
 
16674
      # See if sys/param.h defines the BYTE_ORDER macro.
 
16675
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16676
/* end confdefs.h.  */
 
16677
#include <sys/types.h>
 
16678
             #include <sys/param.h>
 
16679
 
 
16680
int
 
16681
main ()
 
16682
{
 
16683
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
16684
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
16685
                     && LITTLE_ENDIAN)
 
16686
              bogus endian macros
 
16687
             #endif
 
16688
 
 
16689
  ;
 
16690
  return 0;
 
16691
}
 
16692
_ACEOF
 
16693
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16694
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
16695
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16696
/* end confdefs.h.  */
 
16697
#include <sys/types.h>
 
16698
                #include <sys/param.h>
 
16699
 
 
16700
int
 
16701
main ()
 
16702
{
 
16703
#if BYTE_ORDER != BIG_ENDIAN
 
16704
                 not big endian
 
16705
                #endif
 
16706
 
 
16707
  ;
 
16708
  return 0;
 
16709
}
 
16710
_ACEOF
 
16711
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16712
  ac_cv_c_bigendian=yes
 
16713
else
 
16714
  ac_cv_c_bigendian=no
 
16715
fi
 
16716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16717
fi
 
16718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16719
    fi
 
16720
    if test $ac_cv_c_bigendian = unknown; then
 
16721
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
16722
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16723
/* end confdefs.h.  */
 
16724
#include <limits.h>
 
16725
 
 
16726
int
 
16727
main ()
 
16728
{
 
16729
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
16730
              bogus endian macros
 
16731
             #endif
 
16732
 
 
16733
  ;
 
16734
  return 0;
 
16735
}
 
16736
_ACEOF
 
16737
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16738
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
16739
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16740
/* end confdefs.h.  */
 
16741
#include <limits.h>
 
16742
 
 
16743
int
 
16744
main ()
 
16745
{
 
16746
#ifndef _BIG_ENDIAN
 
16747
                 not big endian
 
16748
                #endif
 
16749
 
 
16750
  ;
 
16751
  return 0;
 
16752
}
 
16753
_ACEOF
 
16754
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16755
  ac_cv_c_bigendian=yes
 
16756
else
 
16757
  ac_cv_c_bigendian=no
 
16758
fi
 
16759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16760
fi
 
16761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16762
    fi
 
16763
    if test $ac_cv_c_bigendian = unknown; then
 
16764
      # Compile a test program.
 
16765
      if test "$cross_compiling" = yes; then :
 
16766
  # Try to guess by grepping values from an object file.
 
16767
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16768
/* end confdefs.h.  */
 
16769
short int ascii_mm[] =
 
16770
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
16771
                short int ascii_ii[] =
 
16772
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
16773
                int use_ascii (int i) {
 
16774
                  return ascii_mm[i] + ascii_ii[i];
 
16775
                }
 
16776
                short int ebcdic_ii[] =
 
16777
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
16778
                short int ebcdic_mm[] =
 
16779
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
16780
                int use_ebcdic (int i) {
 
16781
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
16782
                }
 
16783
                extern int foo;
 
16784
 
 
16785
int
 
16786
main ()
 
16787
{
 
16788
return use_ascii (foo) == use_ebcdic (foo);
 
16789
  ;
 
16790
  return 0;
 
16791
}
 
16792
_ACEOF
 
16793
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16794
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
16795
              ac_cv_c_bigendian=yes
 
16796
            fi
 
16797
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
16798
              if test "$ac_cv_c_bigendian" = unknown; then
 
16799
                ac_cv_c_bigendian=no
 
16800
              else
 
16801
                # finding both strings is unlikely to happen, but who knows?
 
16802
                ac_cv_c_bigendian=unknown
 
16803
              fi
 
16804
            fi
 
16805
fi
 
16806
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16807
else
 
16808
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16809
/* end confdefs.h.  */
 
16810
$ac_includes_default
 
16811
int
 
16812
main ()
 
16813
{
 
16814
 
 
16815
             /* Are we little or big endian?  From Harbison&Steele.  */
 
16816
             union
 
16817
             {
 
16818
               long int l;
 
16819
               char c[sizeof (long int)];
 
16820
             } u;
 
16821
             u.l = 1;
 
16822
             return u.c[sizeof (long int) - 1] == 1;
 
16823
 
 
16824
  ;
 
16825
  return 0;
 
16826
}
 
16827
_ACEOF
 
16828
if ac_fn_cxx_try_run "$LINENO"; then :
 
16829
  ac_cv_c_bigendian=no
 
16830
else
 
16831
  ac_cv_c_bigendian=yes
 
16832
fi
 
16833
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16834
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16835
fi
 
16836
 
 
16837
    fi
 
16838
fi
 
16839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
16840
$as_echo "$ac_cv_c_bigendian" >&6; }
 
16841
 case $ac_cv_c_bigendian in #(
 
16842
   yes)
 
16843
     byte_order="big endian";; #(
 
16844
   no)
 
16845
     byte_order="little endian" ;; #(
 
16846
   universal)
 
16847
 
 
16848
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
16849
 
 
16850
     ;; #(
 
16851
   *)
 
16852
     as_fn_error $? "unknown endianness
 
16853
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
16854
 esac
 
16855
 
 
16856
fi
 
16857
 
 
16858
 
 
16859
if test "x$byte_order" = "xbig endian"; then
 
16860
 
 
16861
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 
16862
 
 
16863
else
 
16864
    if test "x$byte_order" = "xlittle endian"; then
 
16865
 
 
16866
$as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
 
16867
 
 
16868
    else
 
16869
      as_fn_error $? "Unable to detect endianess of target system - please specify" "$LINENO" 5
 
16870
    fi
 
16871
fi
 
16872
 
 
16873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $byte_order" >&5
 
16874
$as_echo "$byte_order" >&6; }
 
16875
 
 
16876
 
 
16877
 
 
16878
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
16879
$as_echo_n "checking whether NLS is requested... " >&6; }
 
16880
    # Check whether --enable-nls was given.
 
16881
if test "${enable_nls+set}" = set; then :
 
16882
  enableval=$enable_nls; USE_NLS=$enableval
 
16883
else
 
16884
  USE_NLS=yes
 
16885
fi
 
16886
 
 
16887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
16888
$as_echo "$USE_NLS" >&6; }
 
16889
 
 
16890
 
 
16891
 
 
16892
 
 
16893
case "$am__api_version" in
 
16894
    1.01234)
 
16895
        as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
 
16896
    ;;
 
16897
    *)
 
16898
    ;;
 
16899
esac
 
16900
 
 
16901
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
16902
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
16903
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
16904
if test -n "0.35.0"; then
 
16905
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
 
16906
$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
 
16907
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
16908
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
 
16909
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
16910
        as_fn_error $? "Your intltool is too old.  You need intltool 0.35.0 or later." "$LINENO" 5
 
16911
fi
 
16912
 
 
16913
# Extract the first word of "intltool-update", so it can be a program name with args.
 
16914
set dummy intltool-update; ac_word=$2
 
16915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16916
$as_echo_n "checking for $ac_word... " >&6; }
 
16917
if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
 
16918
  $as_echo_n "(cached) " >&6
 
16919
else
 
16920
  case $INTLTOOL_UPDATE in
 
16921
  [\\/]* | ?:[\\/]*)
 
16922
  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
 
16923
  ;;
 
16924
  *)
 
16925
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16926
for as_dir in $PATH
 
16927
do
 
16928
  IFS=$as_save_IFS
 
16929
  test -z "$as_dir" && as_dir=.
 
16930
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16931
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16932
    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
 
16933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16934
    break 2
 
16935
  fi
 
16936
done
 
16937
  done
 
16938
IFS=$as_save_IFS
 
16939
 
 
16940
  ;;
 
16941
esac
 
16942
fi
 
16943
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
 
16944
if test -n "$INTLTOOL_UPDATE"; then
 
16945
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
 
16946
$as_echo "$INTLTOOL_UPDATE" >&6; }
 
16947
else
 
16948
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16949
$as_echo "no" >&6; }
 
16950
fi
 
16951
 
 
16952
 
 
16953
# Extract the first word of "intltool-merge", so it can be a program name with args.
 
16954
set dummy intltool-merge; ac_word=$2
 
16955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16956
$as_echo_n "checking for $ac_word... " >&6; }
 
16957
if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
 
16958
  $as_echo_n "(cached) " >&6
 
16959
else
 
16960
  case $INTLTOOL_MERGE in
 
16961
  [\\/]* | ?:[\\/]*)
 
16962
  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
 
16963
  ;;
 
16964
  *)
 
16965
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16966
for as_dir in $PATH
 
16967
do
 
16968
  IFS=$as_save_IFS
 
16969
  test -z "$as_dir" && as_dir=.
 
16970
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16971
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16972
    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
 
16973
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16974
    break 2
 
16975
  fi
 
16976
done
 
16977
  done
 
16978
IFS=$as_save_IFS
 
16979
 
 
16980
  ;;
 
16981
esac
 
16982
fi
 
16983
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
 
16984
if test -n "$INTLTOOL_MERGE"; then
 
16985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
 
16986
$as_echo "$INTLTOOL_MERGE" >&6; }
 
16987
else
 
16988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16989
$as_echo "no" >&6; }
 
16990
fi
 
16991
 
 
16992
 
 
16993
# Extract the first word of "intltool-extract", so it can be a program name with args.
 
16994
set dummy intltool-extract; ac_word=$2
 
16995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16996
$as_echo_n "checking for $ac_word... " >&6; }
 
16997
if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
 
16998
  $as_echo_n "(cached) " >&6
 
16999
else
 
17000
  case $INTLTOOL_EXTRACT in
 
17001
  [\\/]* | ?:[\\/]*)
 
17002
  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
 
17003
  ;;
 
17004
  *)
 
17005
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17006
for as_dir in $PATH
 
17007
do
 
17008
  IFS=$as_save_IFS
 
17009
  test -z "$as_dir" && as_dir=.
 
17010
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17011
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17012
    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
 
17013
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17014
    break 2
 
17015
  fi
 
17016
done
 
17017
  done
 
17018
IFS=$as_save_IFS
 
17019
 
 
17020
  ;;
 
17021
esac
 
17022
fi
 
17023
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
 
17024
if test -n "$INTLTOOL_EXTRACT"; then
 
17025
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
 
17026
$as_echo "$INTLTOOL_EXTRACT" >&6; }
 
17027
else
 
17028
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17029
$as_echo "no" >&6; }
 
17030
fi
 
17031
 
 
17032
 
 
17033
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
17034
    as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
 
17035
fi
 
17036
 
 
17037
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
17038
  AM_DEFAULT_VERBOSITY=1
 
17039
fi
 
17040
 
 
17041
 
 
17042
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
17043
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
17044
INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
 
17045
 
 
17046
 
 
17047
 
 
17048
 
 
17049
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
17050
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
17051
intltool__v_merge_options_0='-q'
 
17052
 
 
17053
 
 
17054
 
 
17055
 
 
17056
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17057
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17058
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17059
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17060
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
 
17061
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17062
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17063
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17064
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17065
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17066
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17067
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
 
17068
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
 
17069
else
 
17070
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
 
17071
fi
 
17072
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17073
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17074
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17075
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17076
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17077
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17078
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
17079
 
 
17080
 
 
17081
 
 
17082
 
 
17083
 
 
17084
 
 
17085
 
 
17086
 
 
17087
 
 
17088
 
 
17089
 
 
17090
 
 
17091
 
 
17092
 
 
17093
 
 
17094
 
 
17095
 
 
17096
 
 
17097
 
 
17098
 
 
17099
 
 
17100
 
 
17101
 
 
17102
 
 
17103
 
 
17104
 
 
17105
 
 
17106
 
 
17107
 
 
17108
 
 
17109
 
 
17110
 
 
17111
 
 
17112
 
 
17113
 
 
17114
 
 
17115
 
 
17116
 
 
17117
 
 
17118
 
 
17119
 
 
17120
 
 
17121
 
 
17122
 
 
17123
 
 
17124
 
 
17125
 
 
17126
 
 
17127
 
 
17128
 
 
17129
 
 
17130
 
 
17131
 
 
17132
 
 
17133
 
 
17134
 
 
17135
 
 
17136
 
 
17137
 
 
17138
 
 
17139
 
 
17140
 
 
17141
 
 
17142
 
 
17143
 
 
17144
 
 
17145
 
 
17146
 
 
17147
 
 
17148
 
 
17149
 
 
17150
 
 
17151
 
 
17152
 
 
17153
 
 
17154
 
 
17155
 
 
17156
 
 
17157
 
 
17158
 
 
17159
 
 
17160
 
 
17161
 
 
17162
 
 
17163
 
 
17164
 
 
17165
 
 
17166
 
 
17167
 
 
17168
 
 
17169
 
 
17170
 
 
17171
 
 
17172
 
 
17173
 
 
17174
 
 
17175
 
 
17176
# Check the gettext tools to make sure they are GNU
 
17177
# Extract the first word of "xgettext", so it can be a program name with args.
 
17178
set dummy xgettext; ac_word=$2
 
17179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17180
$as_echo_n "checking for $ac_word... " >&6; }
 
17181
if ${ac_cv_path_XGETTEXT+:} false; then :
 
17182
  $as_echo_n "(cached) " >&6
 
17183
else
 
17184
  case $XGETTEXT in
 
17185
  [\\/]* | ?:[\\/]*)
 
17186
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
17187
  ;;
 
17188
  *)
 
17189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17190
for as_dir in $PATH
 
17191
do
 
17192
  IFS=$as_save_IFS
 
17193
  test -z "$as_dir" && as_dir=.
 
17194
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17195
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17196
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
17197
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17198
    break 2
 
17199
  fi
 
17200
done
 
17201
  done
 
17202
IFS=$as_save_IFS
 
17203
 
 
17204
  ;;
 
17205
esac
 
17206
fi
 
17207
XGETTEXT=$ac_cv_path_XGETTEXT
 
17208
if test -n "$XGETTEXT"; then
 
17209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
17210
$as_echo "$XGETTEXT" >&6; }
 
17211
else
 
17212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17213
$as_echo "no" >&6; }
 
17214
fi
 
17215
 
 
17216
 
 
17217
# Extract the first word of "msgmerge", so it can be a program name with args.
 
17218
set dummy msgmerge; ac_word=$2
 
17219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17220
$as_echo_n "checking for $ac_word... " >&6; }
 
17221
if ${ac_cv_path_MSGMERGE+:} false; then :
 
17222
  $as_echo_n "(cached) " >&6
 
17223
else
 
17224
  case $MSGMERGE in
 
17225
  [\\/]* | ?:[\\/]*)
 
17226
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
17227
  ;;
 
17228
  *)
 
17229
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17230
for as_dir in $PATH
 
17231
do
 
17232
  IFS=$as_save_IFS
 
17233
  test -z "$as_dir" && as_dir=.
 
17234
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17235
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17236
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
17237
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17238
    break 2
 
17239
  fi
 
17240
done
 
17241
  done
 
17242
IFS=$as_save_IFS
 
17243
 
 
17244
  ;;
 
17245
esac
 
17246
fi
 
17247
MSGMERGE=$ac_cv_path_MSGMERGE
 
17248
if test -n "$MSGMERGE"; then
 
17249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
17250
$as_echo "$MSGMERGE" >&6; }
 
17251
else
 
17252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17253
$as_echo "no" >&6; }
 
17254
fi
 
17255
 
 
17256
 
 
17257
# Extract the first word of "msgfmt", so it can be a program name with args.
 
17258
set dummy msgfmt; ac_word=$2
 
17259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17260
$as_echo_n "checking for $ac_word... " >&6; }
 
17261
if ${ac_cv_path_MSGFMT+:} false; then :
 
17262
  $as_echo_n "(cached) " >&6
 
17263
else
 
17264
  case $MSGFMT in
 
17265
  [\\/]* | ?:[\\/]*)
 
17266
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
17267
  ;;
 
17268
  *)
 
17269
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17270
for as_dir in $PATH
 
17271
do
 
17272
  IFS=$as_save_IFS
 
17273
  test -z "$as_dir" && as_dir=.
 
17274
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17275
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17276
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
17277
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17278
    break 2
 
17279
  fi
 
17280
done
 
17281
  done
 
17282
IFS=$as_save_IFS
 
17283
 
 
17284
  ;;
 
17285
esac
 
17286
fi
 
17287
MSGFMT=$ac_cv_path_MSGFMT
 
17288
if test -n "$MSGFMT"; then
 
17289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
17290
$as_echo "$MSGFMT" >&6; }
 
17291
else
 
17292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17293
$as_echo "no" >&6; }
 
17294
fi
 
17295
 
 
17296
 
 
17297
# Extract the first word of "gmsgfmt", so it can be a program name with args.
 
17298
set dummy gmsgfmt; ac_word=$2
 
17299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17300
$as_echo_n "checking for $ac_word... " >&6; }
 
17301
if ${ac_cv_path_GMSGFMT+:} false; then :
 
17302
  $as_echo_n "(cached) " >&6
 
17303
else
 
17304
  case $GMSGFMT in
 
17305
  [\\/]* | ?:[\\/]*)
 
17306
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
17307
  ;;
 
17308
  *)
 
17309
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17310
for as_dir in $PATH
 
17311
do
 
17312
  IFS=$as_save_IFS
 
17313
  test -z "$as_dir" && as_dir=.
 
17314
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17315
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17316
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
17317
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17318
    break 2
 
17319
  fi
 
17320
done
 
17321
  done
 
17322
IFS=$as_save_IFS
 
17323
 
 
17324
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
17325
  ;;
 
17326
esac
 
17327
fi
 
17328
GMSGFMT=$ac_cv_path_GMSGFMT
 
17329
if test -n "$GMSGFMT"; then
 
17330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
17331
$as_echo "$GMSGFMT" >&6; }
 
17332
else
 
17333
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17334
$as_echo "no" >&6; }
 
17335
fi
 
17336
 
 
17337
 
 
17338
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
17339
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
17340
fi
 
17341
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
17342
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
17343
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
17344
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
17345
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
17346
fi
 
17347
 
 
17348
# Extract the first word of "perl", so it can be a program name with args.
 
17349
set dummy perl; ac_word=$2
 
17350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17351
$as_echo_n "checking for $ac_word... " >&6; }
 
17352
if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
 
17353
  $as_echo_n "(cached) " >&6
 
17354
else
 
17355
  case $INTLTOOL_PERL in
 
17356
  [\\/]* | ?:[\\/]*)
 
17357
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
17358
  ;;
 
17359
  *)
 
17360
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17361
for as_dir in $PATH
 
17362
do
 
17363
  IFS=$as_save_IFS
 
17364
  test -z "$as_dir" && as_dir=.
 
17365
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17366
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17367
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
17368
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17369
    break 2
 
17370
  fi
 
17371
done
 
17372
  done
 
17373
IFS=$as_save_IFS
 
17374
 
 
17375
  ;;
 
17376
esac
 
17377
fi
 
17378
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
17379
if test -n "$INTLTOOL_PERL"; then
 
17380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
 
17381
$as_echo "$INTLTOOL_PERL" >&6; }
 
17382
else
 
17383
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17384
$as_echo "no" >&6; }
 
17385
fi
 
17386
 
 
17387
 
 
17388
if test -z "$INTLTOOL_PERL"; then
 
17389
   as_fn_error $? "perl not found" "$LINENO" 5
 
17390
fi
 
17391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
 
17392
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
 
17393
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
17394
if test $? -ne 0; then
 
17395
   as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
 
17396
else
 
17397
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
 
17398
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
 
17399
$as_echo "$IT_PERL_VERSION" >&6; }
 
17400
fi
 
17401
if test "x" != "xno-xml"; then
 
17402
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
 
17403
$as_echo_n "checking for XML::Parser... " >&6; }
 
17404
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
17405
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
17406
$as_echo "ok" >&6; }
 
17407
   else
 
17408
       as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
 
17409
   fi
 
17410
fi
 
17411
 
 
17412
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
17413
 
 
17414
 
 
17415
# Set DATADIRNAME correctly if it is not set yet
 
17416
# (copied from glib-gettext.m4)
 
17417
if test -z "$DATADIRNAME"; then
 
17418
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17419
/* end confdefs.h.  */
 
17420
 
 
17421
int
 
17422
main ()
 
17423
{
 
17424
extern int _nl_msg_cat_cntr;
 
17425
                       return _nl_msg_cat_cntr
 
17426
  ;
 
17427
  return 0;
 
17428
}
 
17429
_ACEOF
 
17430
if ac_fn_cxx_try_link "$LINENO"; then :
 
17431
  DATADIRNAME=share
 
17432
else
 
17433
  case $host in
 
17434
    *-*-solaris*)
 
17435
                        ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
17436
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
17437
  DATADIRNAME=share
 
17438
else
 
17439
  DATADIRNAME=lib
 
17440
fi
 
17441
 
 
17442
    ;;
 
17443
    *)
 
17444
    DATADIRNAME=lib
 
17445
    ;;
 
17446
    esac
 
17447
fi
 
17448
rm -f core conftest.err conftest.$ac_objext \
 
17449
    conftest$ac_exeext conftest.$ac_ext
 
17450
fi
 
17451
 
 
17452
 
 
17453
 
 
17454
 
 
17455
 
 
17456
 
 
17457
 
 
17458
# on Windows the icons are manually copied in the installer
 
17459
if test "x${gm_platform}" = "xmingw" ; then
 
17460
 
 
17461
pkg_failed=no
 
17462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
 
17463
$as_echo_n "checking for GTK... " >&6; }
 
17464
 
 
17465
if test -n "$GTK_CFLAGS"; then
 
17466
    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 
17467
 elif test -n "$PKG_CONFIG"; then
 
17468
    if test -n "$PKG_CONFIG" && \
 
17469
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20.0\""; } >&5
 
17470
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20.0") 2>&5
 
17471
  ac_status=$?
 
17472
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17473
  test $ac_status = 0; }; then
 
17474
  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.20.0" 2>/dev/null`
 
17475
                      test "x$?" != "x0" && pkg_failed=yes
 
17476
else
 
17477
  pkg_failed=yes
 
17478
fi
 
17479
 else
 
17480
    pkg_failed=untried
 
17481
fi
 
17482
if test -n "$GTK_LIBS"; then
 
17483
    pkg_cv_GTK_LIBS="$GTK_LIBS"
 
17484
 elif test -n "$PKG_CONFIG"; then
 
17485
    if test -n "$PKG_CONFIG" && \
 
17486
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20.0\""; } >&5
 
17487
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20.0") 2>&5
 
17488
  ac_status=$?
 
17489
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17490
  test $ac_status = 0; }; then
 
17491
  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.20.0" 2>/dev/null`
 
17492
                      test "x$?" != "x0" && pkg_failed=yes
 
17493
else
 
17494
  pkg_failed=yes
 
17495
fi
 
17496
 else
 
17497
    pkg_failed=untried
 
17498
fi
 
17499
 
 
17500
 
 
17501
 
 
17502
if test $pkg_failed = yes; then
 
17503
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17504
$as_echo "no" >&6; }
 
17505
 
 
17506
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17507
        _pkg_short_errors_supported=yes
 
17508
else
 
17509
        _pkg_short_errors_supported=no
 
17510
fi
 
17511
        if test $_pkg_short_errors_supported = yes; then
 
17512
                GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.20.0" 2>&1`
 
17513
        else
 
17514
                GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.20.0" 2>&1`
 
17515
        fi
 
17516
        # Put the nasty error message in config.log where it belongs
 
17517
        echo "$GTK_PKG_ERRORS" >&5
 
17518
 
 
17519
        as_fn_error $? "Package requirements (gtk+-2.0 >= 2.20.0) were not met:
 
17520
 
 
17521
$GTK_PKG_ERRORS
 
17522
 
 
17523
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17524
installed software in a non-standard prefix.
 
17525
 
 
17526
Alternatively, you may set the environment variables GTK_CFLAGS
 
17527
and GTK_LIBS to avoid the need to call pkg-config.
 
17528
See the pkg-config man page for more details." "$LINENO" 5
 
17529
elif test $pkg_failed = untried; then
 
17530
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17531
$as_echo "no" >&6; }
 
17532
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17533
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17534
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
17535
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17536
path to pkg-config.
 
17537
 
 
17538
Alternatively, you may set the environment variables GTK_CFLAGS
 
17539
and GTK_LIBS to avoid the need to call pkg-config.
 
17540
See the pkg-config man page for more details.
 
17541
 
 
17542
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17543
See \`config.log' for more details" "$LINENO" 5; }
 
17544
else
 
17545
        GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 
17546
        GTK_LIBS=$pkg_cv_GTK_LIBS
 
17547
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17548
$as_echo "yes" >&6; }
 
17549
 
 
17550
fi
 
17551
else
 
17552
 
 
17553
pkg_failed=no
 
17554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
 
17555
$as_echo_n "checking for GTK... " >&6; }
 
17556
 
 
17557
if test -n "$GTK_CFLAGS"; then
 
17558
    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 
17559
 elif test -n "$PKG_CONFIG"; then
 
17560
    if test -n "$PKG_CONFIG" && \
 
17561
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0\""; } >&5
 
17562
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0") 2>&5
 
17563
  ac_status=$?
 
17564
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17565
  test $ac_status = 0; }; then
 
17566
  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0" 2>/dev/null`
 
17567
                      test "x$?" != "x0" && pkg_failed=yes
 
17568
else
 
17569
  pkg_failed=yes
 
17570
fi
 
17571
 else
 
17572
    pkg_failed=untried
 
17573
fi
 
17574
if test -n "$GTK_LIBS"; then
 
17575
    pkg_cv_GTK_LIBS="$GTK_LIBS"
 
17576
 elif test -n "$PKG_CONFIG"; then
 
17577
    if test -n "$PKG_CONFIG" && \
 
17578
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0\""; } >&5
 
17579
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0") 2>&5
 
17580
  ac_status=$?
 
17581
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17582
  test $ac_status = 0; }; then
 
17583
  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0" 2>/dev/null`
 
17584
                      test "x$?" != "x0" && pkg_failed=yes
 
17585
else
 
17586
  pkg_failed=yes
 
17587
fi
 
17588
 else
 
17589
    pkg_failed=untried
 
17590
fi
 
17591
 
 
17592
 
 
17593
 
 
17594
if test $pkg_failed = yes; then
 
17595
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17596
$as_echo "no" >&6; }
 
17597
 
 
17598
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17599
        _pkg_short_errors_supported=yes
 
17600
else
 
17601
        _pkg_short_errors_supported=no
 
17602
fi
 
17603
        if test $_pkg_short_errors_supported = yes; then
 
17604
                GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0" 2>&1`
 
17605
        else
 
17606
                GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0" 2>&1`
 
17607
        fi
 
17608
        # Put the nasty error message in config.log where it belongs
 
17609
        echo "$GTK_PKG_ERRORS" >&5
 
17610
 
 
17611
        as_fn_error $? "Package requirements (gtk+-2.0 >= 2.20.0 gnome-icon-theme >= 3.0.0) were not met:
 
17612
 
 
17613
$GTK_PKG_ERRORS
 
17614
 
 
17615
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17616
installed software in a non-standard prefix.
 
17617
 
 
17618
Alternatively, you may set the environment variables GTK_CFLAGS
 
17619
and GTK_LIBS to avoid the need to call pkg-config.
 
17620
See the pkg-config man page for more details." "$LINENO" 5
 
17621
elif test $pkg_failed = untried; then
 
17622
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17623
$as_echo "no" >&6; }
 
17624
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17625
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17626
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
17627
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17628
path to pkg-config.
 
17629
 
 
17630
Alternatively, you may set the environment variables GTK_CFLAGS
 
17631
and GTK_LIBS to avoid the need to call pkg-config.
 
17632
See the pkg-config man page for more details.
 
17633
 
 
17634
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17635
See \`config.log' for more details" "$LINENO" 5; }
 
17636
else
 
17637
        GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 
17638
        GTK_LIBS=$pkg_cv_GTK_LIBS
 
17639
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17640
$as_echo "yes" >&6; }
 
17641
 
 
17642
fi
 
17643
fi
 
17644
 
 
17645
pkg_failed=no
 
17646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
 
17647
$as_echo_n "checking for GLIB... " >&6; }
 
17648
 
 
17649
if test -n "$GLIB_CFLAGS"; then
 
17650
    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
 
17651
 elif test -n "$PKG_CONFIG"; then
 
17652
    if test -n "$PKG_CONFIG" && \
 
17653
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0\""; } >&5
 
17654
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0") 2>&5
 
17655
  ac_status=$?
 
17656
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17657
  test $ac_status = 0; }; then
 
17658
  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0" 2>/dev/null`
 
17659
                      test "x$?" != "x0" && pkg_failed=yes
 
17660
else
 
17661
  pkg_failed=yes
 
17662
fi
 
17663
 else
 
17664
    pkg_failed=untried
 
17665
fi
 
17666
if test -n "$GLIB_LIBS"; then
 
17667
    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
 
17668
 elif test -n "$PKG_CONFIG"; then
 
17669
    if test -n "$PKG_CONFIG" && \
 
17670
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0\""; } >&5
 
17671
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0") 2>&5
 
17672
  ac_status=$?
 
17673
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17674
  test $ac_status = 0; }; then
 
17675
  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0" 2>/dev/null`
 
17676
                      test "x$?" != "x0" && pkg_failed=yes
 
17677
else
 
17678
  pkg_failed=yes
 
17679
fi
 
17680
 else
 
17681
    pkg_failed=untried
 
17682
fi
 
17683
 
 
17684
 
 
17685
 
 
17686
if test $pkg_failed = yes; then
 
17687
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17688
$as_echo "no" >&6; }
 
17689
 
 
17690
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17691
        _pkg_short_errors_supported=yes
 
17692
else
 
17693
        _pkg_short_errors_supported=no
 
17694
fi
 
17695
        if test $_pkg_short_errors_supported = yes; then
 
17696
                GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0" 2>&1`
 
17697
        else
 
17698
                GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0" 2>&1`
 
17699
        fi
 
17700
        # Put the nasty error message in config.log where it belongs
 
17701
        echo "$GLIB_PKG_ERRORS" >&5
 
17702
 
 
17703
        as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 gmodule-2.0 gobject-2.0 gthread-2.0) were not met:
 
17704
 
 
17705
$GLIB_PKG_ERRORS
 
17706
 
 
17707
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17708
installed software in a non-standard prefix.
 
17709
 
 
17710
Alternatively, you may set the environment variables GLIB_CFLAGS
 
17711
and GLIB_LIBS to avoid the need to call pkg-config.
 
17712
See the pkg-config man page for more details." "$LINENO" 5
 
17713
elif test $pkg_failed = untried; then
 
17714
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17715
$as_echo "no" >&6; }
 
17716
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17717
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17718
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
17719
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17720
path to pkg-config.
 
17721
 
 
17722
Alternatively, you may set the environment variables GLIB_CFLAGS
 
17723
and GLIB_LIBS to avoid the need to call pkg-config.
 
17724
See the pkg-config man page for more details.
 
17725
 
 
17726
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17727
See \`config.log' for more details" "$LINENO" 5; }
 
17728
else
 
17729
        GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
 
17730
        GLIB_LIBS=$pkg_cv_GLIB_LIBS
 
17731
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17732
$as_echo "yes" >&6; }
 
17733
 
 
17734
fi
 
17735
# Check whether --enable-gtk-debug was given.
 
17736
if test "${enable_gtk_debug+set}" = set; then :
 
17737
  enableval=$enable_gtk_debug; if test "x$enableval" = "xyes"; then
 
17738
                GTK_CFLAGS="$GTK_CFLAGS -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
 
17739
                GLIB_CFLAGS="$GLIB_CFLAGS -DG_DISABLE_SINGLE_INCLUDES"
 
17740
              fi
 
17741
fi
 
17742
 
 
17743
 
 
17744
 
 
17745
 
 
17746
 
 
17747
 
 
17748
 
 
17749
 
 
17750
 
 
17751
# Check whether --with-boost was given.
 
17752
if test "${with_boost+set}" = set; then :
 
17753
  withval=$with_boost;
 
17754
    if test "$withval" = "no"; then
 
17755
        want_boost="no"
 
17756
    elif test "$withval" = "yes"; then
 
17757
        want_boost="yes"
 
17758
        ac_boost_path=""
 
17759
    else
 
17760
        want_boost="yes"
 
17761
        ac_boost_path="$withval"
 
17762
    fi
 
17763
 
 
17764
else
 
17765
  want_boost="yes"
 
17766
fi
 
17767
 
 
17768
 
 
17769
 
 
17770
 
 
17771
# Check whether --with-boost-libdir was given.
 
17772
if test "${with_boost_libdir+set}" = set; then :
 
17773
  withval=$with_boost_libdir;
 
17774
        if test -d "$withval"
 
17775
        then
 
17776
                ac_boost_lib_path="$withval"
 
17777
        else
 
17778
                as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
 
17779
        fi
 
17780
 
 
17781
else
 
17782
  ac_boost_lib_path=""
 
17783
 
 
17784
fi
 
17785
 
 
17786
 
 
17787
if test "x$want_boost" = "xyes"; then
 
17788
    boost_lib_version_req=1.34
 
17789
    boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
 
17790
    boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
 
17791
    boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
 
17792
    boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
 
17793
    if test "x$boost_lib_version_req_sub_minor" = "x" ; then
 
17794
        boost_lib_version_req_sub_minor="0"
 
17795
        fi
 
17796
    WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
 
17797
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
 
17798
$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
 
17799
    succeeded=no
 
17800
 
 
17801
                        libsubdirs="lib"
 
17802
    ax_arch=`uname -m`
 
17803
    if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
 
17804
        libsubdirs="lib64 lib lib64"
 
17805
    fi
 
17806
 
 
17807
                if test "$ac_boost_path" != ""; then
 
17808
        BOOST_CPPFLAGS="-I$ac_boost_path/include"
 
17809
        for ac_boost_path_tmp in $libsubdirs; do
 
17810
                if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
 
17811
                        BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
 
17812
                        break
 
17813
                fi
 
17814
        done
 
17815
    elif test "$cross_compiling" != yes; then
 
17816
        for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
 
17817
            if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
 
17818
                for libsubdir in $libsubdirs ; do
 
17819
                    if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
 
17820
                done
 
17821
                BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
 
17822
                BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
 
17823
                break;
 
17824
            fi
 
17825
        done
 
17826
    fi
 
17827
 
 
17828
            if test "$ac_boost_lib_path" != ""; then
 
17829
       BOOST_LDFLAGS="-L$ac_boost_lib_path"
 
17830
    fi
 
17831
 
 
17832
    CPPFLAGS_SAVED="$CPPFLAGS"
 
17833
    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
 
17834
    export CPPFLAGS
 
17835
 
 
17836
    LDFLAGS_SAVED="$LDFLAGS"
 
17837
    LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
 
17838
    export LDFLAGS
 
17839
 
 
17840
 
 
17841
    ac_ext=cpp
 
17842
ac_cpp='$CXXCPP $CPPFLAGS'
 
17843
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17844
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17845
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
17846
 
 
17847
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17848
/* end confdefs.h.  */
 
17849
 
 
17850
    #include <boost/version.hpp>
 
17851
 
 
17852
int
 
17853
main ()
 
17854
{
 
17855
 
 
17856
    #if BOOST_VERSION >= $WANT_BOOST_VERSION
 
17857
    // Everything is okay
 
17858
    #else
 
17859
    #  error Boost version is too old
 
17860
    #endif
 
17861
 
 
17862
  ;
 
17863
  return 0;
 
17864
}
 
17865
_ACEOF
 
17866
if ac_fn_cxx_try_compile "$LINENO"; then :
 
17867
 
 
17868
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17869
$as_echo "yes" >&6; }
 
17870
    succeeded=yes
 
17871
    found_system=yes
 
17872
 
 
17873
fi
 
17874
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17875
    ac_ext=cpp
 
17876
ac_cpp='$CXXCPP $CPPFLAGS'
 
17877
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17878
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17879
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
17880
 
 
17881
 
 
17882
 
 
17883
 
 
17884
            if test "x$succeeded" != "xyes"; then
 
17885
        _version=0
 
17886
        if test "$ac_boost_path" != ""; then
 
17887
            if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
 
17888
                for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
 
17889
                    _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
 
17890
                    V_CHECK=`expr $_version_tmp \> $_version`
 
17891
                    if test "$V_CHECK" = "1" ; then
 
17892
                        _version=$_version_tmp
 
17893
                    fi
 
17894
                    VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
 
17895
                    BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
 
17896
                done
 
17897
            fi
 
17898
        else
 
17899
            if test "$cross_compiling" != yes; then
 
17900
                for ac_boost_path in /usr /usr/local /opt /opt/local ; do
 
17901
                    if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
 
17902
                        for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
 
17903
                            _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
 
17904
                            V_CHECK=`expr $_version_tmp \> $_version`
 
17905
                            if test "$V_CHECK" = "1" ; then
 
17906
                                _version=$_version_tmp
 
17907
                                best_path=$ac_boost_path
 
17908
                            fi
 
17909
                        done
 
17910
                    fi
 
17911
                done
 
17912
 
 
17913
                VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
 
17914
                BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
 
17915
                if test "$ac_boost_lib_path" = ""; then
 
17916
                    for libsubdir in $libsubdirs ; do
 
17917
                        if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
 
17918
                    done
 
17919
                    BOOST_LDFLAGS="-L$best_path/$libsubdir"
 
17920
                fi
 
17921
            fi
 
17922
 
 
17923
            if test "x$BOOST_ROOT" != "x"; then
 
17924
                for libsubdir in $libsubdirs ; do
 
17925
                    if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
 
17926
                done
 
17927
                if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
 
17928
                    version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
 
17929
                    stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
 
17930
                        stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
 
17931
                    V_CHECK=`expr $stage_version_shorten \>\= $_version`
 
17932
                    if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
 
17933
                        { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
 
17934
$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
 
17935
                        BOOST_CPPFLAGS="-I$BOOST_ROOT"
 
17936
                        BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
 
17937
                    fi
 
17938
                fi
 
17939
            fi
 
17940
        fi
 
17941
 
 
17942
        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
 
17943
        export CPPFLAGS
 
17944
        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
 
17945
        export LDFLAGS
 
17946
 
 
17947
        ac_ext=cpp
 
17948
ac_cpp='$CXXCPP $CPPFLAGS'
 
17949
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17950
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17951
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
17952
 
 
17953
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17954
/* end confdefs.h.  */
 
17955
 
 
17956
        #include <boost/version.hpp>
 
17957
 
 
17958
int
 
17959
main ()
 
17960
{
 
17961
 
 
17962
        #if BOOST_VERSION >= $WANT_BOOST_VERSION
 
17963
        // Everything is okay
 
17964
        #else
 
17965
        #  error Boost version is too old
 
17966
        #endif
 
17967
 
 
17968
  ;
 
17969
  return 0;
 
17970
}
 
17971
_ACEOF
 
17972
if ac_fn_cxx_try_compile "$LINENO"; then :
 
17973
 
 
17974
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17975
$as_echo "yes" >&6; }
 
17976
        succeeded=yes
 
17977
        found_system=yes
 
17978
 
 
17979
fi
 
17980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17981
        ac_ext=cpp
 
17982
ac_cpp='$CXXCPP $CPPFLAGS'
 
17983
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17984
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17985
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
17986
 
 
17987
    fi
 
17988
 
 
17989
    if test "$succeeded" != "yes" ; then
 
17990
        if test "$_version" = "0" ; then
 
17991
            { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
 
17992
$as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
 
17993
        else
 
17994
            { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
 
17995
$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
 
17996
        fi
 
17997
        # execute ACTION-IF-NOT-FOUND (if present):
 
17998
        :
 
17999
    else
 
18000
 
 
18001
 
 
18002
 
 
18003
$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
 
18004
 
 
18005
        # execute ACTION-IF-FOUND (if present):
 
18006
        :
 
18007
    fi
 
18008
 
 
18009
    CPPFLAGS="$CPPFLAGS_SAVED"
 
18010
    LDFLAGS="$LDFLAGS_SAVED"
 
18011
fi
 
18012
 
 
18013
 
 
18014
 
 
18015
 
 
18016
# Check whether --with-boost-signals was given.
 
18017
if test "${with_boost_signals+set}" = set; then :
 
18018
  withval=$with_boost_signals;
 
18019
        if test "$withval" = "no"; then
 
18020
                        want_boost="no"
 
18021
        elif test "$withval" = "yes"; then
 
18022
            want_boost="yes"
 
18023
            ax_boost_user_signals_lib=""
 
18024
        else
 
18025
                    want_boost="yes"
 
18026
                ax_boost_user_signals_lib="$withval"
 
18027
                fi
 
18028
 
 
18029
else
 
18030
  want_boost="yes"
 
18031
 
 
18032
fi
 
18033
 
 
18034
 
 
18035
        if test "x$want_boost" = "xyes"; then
 
18036
 
 
18037
                CPPFLAGS_SAVED="$CPPFLAGS"
 
18038
                CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
 
18039
                export CPPFLAGS
 
18040
 
 
18041
                LDFLAGS_SAVED="$LDFLAGS"
 
18042
                LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
 
18043
                export LDFLAGS
 
18044
 
 
18045
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Signals library is available" >&5
 
18046
$as_echo_n "checking whether the Boost::Signals library is available... " >&6; }
 
18047
if ${ax_cv_boost_signals+:} false; then :
 
18048
  $as_echo_n "(cached) " >&6
 
18049
else
 
18050
  ac_ext=cpp
 
18051
ac_cpp='$CXXCPP $CPPFLAGS'
 
18052
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18053
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18054
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18055
 
 
18056
                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18057
/* end confdefs.h.  */
 
18058
#include <boost/signal.hpp>
 
18059
 
 
18060
int
 
18061
main ()
 
18062
{
 
18063
boost::signal<void ()> sig;
 
18064
                                    return 0;
 
18065
 
 
18066
  ;
 
18067
  return 0;
 
18068
}
 
18069
_ACEOF
 
18070
if ac_fn_cxx_try_compile "$LINENO"; then :
 
18071
  ax_cv_boost_signals=yes
 
18072
else
 
18073
  ax_cv_boost_signals=no
 
18074
fi
 
18075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18076
         ac_ext=cpp
 
18077
ac_cpp='$CXXCPP $CPPFLAGS'
 
18078
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18079
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18080
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18081
 
 
18082
 
 
18083
fi
 
18084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_signals" >&5
 
18085
$as_echo "$ax_cv_boost_signals" >&6; }
 
18086
                if test "x$ax_cv_boost_signals" = "xyes"; then
 
18087
 
 
18088
$as_echo "#define HAVE_BOOST_SIGNALS /**/" >>confdefs.h
 
18089
 
 
18090
            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
 
18091
            if test "x$ax_boost_user_signals_lib" = "x"; then
 
18092
                for libextension in `ls $BOOSTLIBDIR/libboost_signals*.so* $BOOSTLIBDIR/libboost_signals*.dylib* $BOOSTLIBDIR/libboost_signals*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_signals.*\)\.so.*$;\1;' -e 's;^lib\(boost_signals.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_signals.*\)\.a.*$;\1;'` ; do
 
18093
                     ax_lib=${libextension}
 
18094
                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
 
18095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
 
18096
$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
 
18097
if eval \${$as_ac_Lib+:} false; then :
 
18098
  $as_echo_n "(cached) " >&6
 
18099
else
 
18100
  ac_check_lib_save_LIBS=$LIBS
 
18101
LIBS="-l$ax_lib  $LIBS"
 
18102
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18103
/* end confdefs.h.  */
 
18104
 
 
18105
/* Override any GCC internal prototype to avoid an error.
 
18106
   Use char because int might match the return type of a GCC
 
18107
   builtin and then its argument prototype would still apply.  */
 
18108
#ifdef __cplusplus
 
18109
extern "C"
 
18110
#endif
 
18111
char exit ();
 
18112
int
 
18113
main ()
 
18114
{
 
18115
return exit ();
 
18116
  ;
 
18117
  return 0;
 
18118
}
 
18119
_ACEOF
 
18120
if ac_fn_cxx_try_link "$LINENO"; then :
 
18121
  eval "$as_ac_Lib=yes"
 
18122
else
 
18123
  eval "$as_ac_Lib=no"
 
18124
fi
 
18125
rm -f core conftest.err conftest.$ac_objext \
 
18126
    conftest$ac_exeext conftest.$ac_ext
 
18127
LIBS=$ac_check_lib_save_LIBS
 
18128
fi
 
18129
eval ac_res=\$$as_ac_Lib
 
18130
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
18131
$as_echo "$ac_res" >&6; }
 
18132
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
 
18133
  BOOST_SIGNALS_LIB="-l$ax_lib";  link_signals="yes"; break
 
18134
else
 
18135
  link_signals="no"
 
18136
fi
 
18137
 
 
18138
                                done
 
18139
                if test "x$link_signals" != "xyes"; then
 
18140
                for libextension in `ls $BOOSTLIBDIR/boost_signals*.dll* $BOOSTLIBDIR/boost_signals*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_signals.*\)\.dll.*$;\1;' -e 's;^\(boost_signals.*\)\.a*$;\1;'` ; do
 
18141
                     ax_lib=${libextension}
 
18142
                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
 
18143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
 
18144
$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
 
18145
if eval \${$as_ac_Lib+:} false; then :
 
18146
  $as_echo_n "(cached) " >&6
 
18147
else
 
18148
  ac_check_lib_save_LIBS=$LIBS
 
18149
LIBS="-l$ax_lib  $LIBS"
 
18150
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18151
/* end confdefs.h.  */
 
18152
 
 
18153
/* Override any GCC internal prototype to avoid an error.
 
18154
   Use char because int might match the return type of a GCC
 
18155
   builtin and then its argument prototype would still apply.  */
 
18156
#ifdef __cplusplus
 
18157
extern "C"
 
18158
#endif
 
18159
char exit ();
 
18160
int
 
18161
main ()
 
18162
{
 
18163
return exit ();
 
18164
  ;
 
18165
  return 0;
 
18166
}
 
18167
_ACEOF
 
18168
if ac_fn_cxx_try_link "$LINENO"; then :
 
18169
  eval "$as_ac_Lib=yes"
 
18170
else
 
18171
  eval "$as_ac_Lib=no"
 
18172
fi
 
18173
rm -f core conftest.err conftest.$ac_objext \
 
18174
    conftest$ac_exeext conftest.$ac_ext
 
18175
LIBS=$ac_check_lib_save_LIBS
 
18176
fi
 
18177
eval ac_res=\$$as_ac_Lib
 
18178
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
18179
$as_echo "$ac_res" >&6; }
 
18180
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
 
18181
  BOOST_SIGNALS_LIB="-l$ax_lib";  link_signals="yes"; break
 
18182
else
 
18183
  link_signals="no"
 
18184
fi
 
18185
 
 
18186
                                done
 
18187
                fi
 
18188
 
 
18189
            else
 
18190
               for ax_lib in $ax_boost_user_signals_lib boost_signals-$ax_boost_user_signals_lib; do
 
18191
                                      as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
 
18192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
 
18193
$as_echo_n "checking for main in -l$ax_lib... " >&6; }
 
18194
if eval \${$as_ac_Lib+:} false; then :
 
18195
  $as_echo_n "(cached) " >&6
 
18196
else
 
18197
  ac_check_lib_save_LIBS=$LIBS
 
18198
LIBS="-l$ax_lib  $LIBS"
 
18199
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18200
/* end confdefs.h.  */
 
18201
 
 
18202
 
 
18203
int
 
18204
main ()
 
18205
{
 
18206
return main ();
 
18207
  ;
 
18208
  return 0;
 
18209
}
 
18210
_ACEOF
 
18211
if ac_fn_cxx_try_link "$LINENO"; then :
 
18212
  eval "$as_ac_Lib=yes"
 
18213
else
 
18214
  eval "$as_ac_Lib=no"
 
18215
fi
 
18216
rm -f core conftest.err conftest.$ac_objext \
 
18217
    conftest$ac_exeext conftest.$ac_ext
 
18218
LIBS=$ac_check_lib_save_LIBS
 
18219
fi
 
18220
eval ac_res=\$$as_ac_Lib
 
18221
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
18222
$as_echo "$ac_res" >&6; }
 
18223
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
 
18224
  BOOST_SIGNALS_LIB="-l$ax_lib";  link_signals="yes"; break
 
18225
else
 
18226
  link_signals="no"
 
18227
fi
 
18228
 
 
18229
                  done
 
18230
 
 
18231
            fi
 
18232
            if test "x$ax_lib" = "x"; then
 
18233
                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
 
18234
            fi
 
18235
                        if test "x$link_signals" != "xyes"; then
 
18236
                                as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
 
18237
                        fi
 
18238
                fi
 
18239
 
 
18240
                CPPFLAGS="$CPPFLAGS_SAVED"
 
18241
        LDFLAGS="$LDFLAGS_SAVED"
 
18242
        fi
 
18243
 
 
18244
 
 
18245
if test "x${ax_cv_boost_signals}" == "xno"; then
 
18246
   as_fn_error $? "You need the boost signals library to compile Ekiga" "$LINENO" 5
 
18247
fi
 
18248
 
 
18249
BOOST_LIBS="${BOOST_SIGNALS_LIB}"
 
18250
 
 
18251
 
 
18252
 
 
18253
 
 
18254
pkg_failed=no
 
18255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
 
18256
$as_echo_n "checking for XML... " >&6; }
 
18257
 
 
18258
if test -n "$XML_CFLAGS"; then
 
18259
    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
 
18260
 elif test -n "$PKG_CONFIG"; then
 
18261
    if test -n "$PKG_CONFIG" && \
 
18262
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
 
18263
  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
 
18264
  ac_status=$?
 
18265
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18266
  test $ac_status = 0; }; then
 
18267
  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
 
18268
                      test "x$?" != "x0" && pkg_failed=yes
 
18269
else
 
18270
  pkg_failed=yes
 
18271
fi
 
18272
 else
 
18273
    pkg_failed=untried
 
18274
fi
 
18275
if test -n "$XML_LIBS"; then
 
18276
    pkg_cv_XML_LIBS="$XML_LIBS"
 
18277
 elif test -n "$PKG_CONFIG"; then
 
18278
    if test -n "$PKG_CONFIG" && \
 
18279
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
 
18280
  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
 
18281
  ac_status=$?
 
18282
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18283
  test $ac_status = 0; }; then
 
18284
  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
 
18285
                      test "x$?" != "x0" && pkg_failed=yes
 
18286
else
 
18287
  pkg_failed=yes
 
18288
fi
 
18289
 else
 
18290
    pkg_failed=untried
 
18291
fi
 
18292
 
 
18293
 
 
18294
 
 
18295
if test $pkg_failed = yes; then
 
18296
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18297
$as_echo "no" >&6; }
 
18298
 
 
18299
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18300
        _pkg_short_errors_supported=yes
 
18301
else
 
18302
        _pkg_short_errors_supported=no
 
18303
fi
 
18304
        if test $_pkg_short_errors_supported = yes; then
 
18305
                XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
 
18306
        else
 
18307
                XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
 
18308
        fi
 
18309
        # Put the nasty error message in config.log where it belongs
 
18310
        echo "$XML_PKG_ERRORS" >&5
 
18311
 
 
18312
        as_fn_error $? "Package requirements (libxml-2.0) were not met:
 
18313
 
 
18314
$XML_PKG_ERRORS
 
18315
 
 
18316
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
18317
installed software in a non-standard prefix.
 
18318
 
 
18319
Alternatively, you may set the environment variables XML_CFLAGS
 
18320
and XML_LIBS to avoid the need to call pkg-config.
 
18321
See the pkg-config man page for more details." "$LINENO" 5
 
18322
elif test $pkg_failed = untried; then
 
18323
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18324
$as_echo "no" >&6; }
 
18325
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
18326
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
18327
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
18328
is in your PATH or set the PKG_CONFIG environment variable to the full
 
18329
path to pkg-config.
 
18330
 
 
18331
Alternatively, you may set the environment variables XML_CFLAGS
 
18332
and XML_LIBS to avoid the need to call pkg-config.
 
18333
See the pkg-config man page for more details.
 
18334
 
 
18335
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
18336
See \`config.log' for more details" "$LINENO" 5; }
 
18337
else
 
18338
        XML_CFLAGS=$pkg_cv_XML_CFLAGS
 
18339
        XML_LIBS=$pkg_cv_XML_LIBS
 
18340
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18341
$as_echo "yes" >&6; }
 
18342
 
 
18343
fi
 
18344
 
 
18345
 
 
18346
 
 
18347
 
 
18348
GCONF="disabled"
 
18349
 
 
18350
if test "x${gm_platform}" != "xmingw" ; then
 
18351
  # Check whether --enable-gconf was given.
 
18352
if test "${enable_gconf+set}" = set; then :
 
18353
  enableval=$enable_gconf; if test "x$enableval" = "xyes"; then
 
18354
  enable_gconf = yes
 
18355
fi
 
18356
else
 
18357
  enable_gconf=yes
 
18358
fi
 
18359
 
 
18360
 
 
18361
  if test "x$enable_gconf" = "xyes"; then
 
18362
 
 
18363
pkg_failed=no
 
18364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
 
18365
$as_echo_n "checking for GCONF... " >&6; }
 
18366
 
 
18367
if test -n "$GCONF_CFLAGS"; then
 
18368
    pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
 
18369
 elif test -n "$PKG_CONFIG"; then
 
18370
    if test -n "$PKG_CONFIG" && \
 
18371
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= 2.6.0\""; } >&5
 
18372
  ($PKG_CONFIG --exists --print-errors "gconf-2.0 >= 2.6.0") 2>&5
 
18373
  ac_status=$?
 
18374
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18375
  test $ac_status = 0; }; then
 
18376
  pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0" 2>/dev/null`
 
18377
                      test "x$?" != "x0" && pkg_failed=yes
 
18378
else
 
18379
  pkg_failed=yes
 
18380
fi
 
18381
 else
 
18382
    pkg_failed=untried
 
18383
fi
 
18384
if test -n "$GCONF_LIBS"; then
 
18385
    pkg_cv_GCONF_LIBS="$GCONF_LIBS"
 
18386
 elif test -n "$PKG_CONFIG"; then
 
18387
    if test -n "$PKG_CONFIG" && \
 
18388
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= 2.6.0\""; } >&5
 
18389
  ($PKG_CONFIG --exists --print-errors "gconf-2.0 >= 2.6.0") 2>&5
 
18390
  ac_status=$?
 
18391
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18392
  test $ac_status = 0; }; then
 
18393
  pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0" 2>/dev/null`
 
18394
                      test "x$?" != "x0" && pkg_failed=yes
 
18395
else
 
18396
  pkg_failed=yes
 
18397
fi
 
18398
 else
 
18399
    pkg_failed=untried
 
18400
fi
 
18401
 
 
18402
 
 
18403
 
 
18404
if test $pkg_failed = yes; then
 
18405
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18406
$as_echo "no" >&6; }
 
18407
 
 
18408
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18409
        _pkg_short_errors_supported=yes
 
18410
else
 
18411
        _pkg_short_errors_supported=no
 
18412
fi
 
18413
        if test $_pkg_short_errors_supported = yes; then
 
18414
                GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0 >= 2.6.0" 2>&1`
 
18415
        else
 
18416
                GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0 >= 2.6.0" 2>&1`
 
18417
        fi
 
18418
        # Put the nasty error message in config.log where it belongs
 
18419
        echo "$GCONF_PKG_ERRORS" >&5
 
18420
 
 
18421
        as_fn_error $? "Package requirements (gconf-2.0 >= 2.6.0) were not met:
 
18422
 
 
18423
$GCONF_PKG_ERRORS
 
18424
 
 
18425
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
18426
installed software in a non-standard prefix.
 
18427
 
 
18428
Alternatively, you may set the environment variables GCONF_CFLAGS
 
18429
and GCONF_LIBS to avoid the need to call pkg-config.
 
18430
See the pkg-config man page for more details." "$LINENO" 5
 
18431
elif test $pkg_failed = untried; then
 
18432
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18433
$as_echo "no" >&6; }
 
18434
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
18435
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
18436
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
18437
is in your PATH or set the PKG_CONFIG environment variable to the full
 
18438
path to pkg-config.
 
18439
 
 
18440
Alternatively, you may set the environment variables GCONF_CFLAGS
 
18441
and GCONF_LIBS to avoid the need to call pkg-config.
 
18442
See the pkg-config man page for more details.
 
18443
 
 
18444
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
18445
See \`config.log' for more details" "$LINENO" 5; }
 
18446
else
 
18447
        GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
 
18448
        GCONF_LIBS=$pkg_cv_GCONF_LIBS
 
18449
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18450
$as_echo "yes" >&6; }
 
18451
        found_gconf=yes
 
18452
fi
 
18453
 
 
18454
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
 
18455
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
18456
  else
 
18457
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
 
18458
  fi
 
18459
 
 
18460
 
 
18461
# Check whether --with-gconf-source was given.
 
18462
if test "${with_gconf_source+set}" = set; then :
 
18463
  withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
 
18464
fi
 
18465
 
 
18466
 
 
18467
 
 
18468
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
 
18469
$as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
 
18470
 
 
18471
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
18472
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
18473
  fi
 
18474
 
 
18475
 
 
18476
# Check whether --with-gconf-schema-file-dir was given.
 
18477
if test "${with_gconf_schema_file_dir+set}" = set; then :
 
18478
  withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
 
18479
fi
 
18480
 
 
18481
 
 
18482
 
 
18483
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
 
18484
$as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
 
18485
 
 
18486
  # Check whether --enable-schemas-install was given.
 
18487
if test "${enable_schemas_install+set}" = set; then :
 
18488
  enableval=$enable_schemas_install; case ${enableval} in
 
18489
       yes|no) ;;
 
18490
       *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
 
18491
      esac
 
18492
fi
 
18493
 
 
18494
   if test "$enable_schemas_install" != no; then
 
18495
  GCONF_SCHEMAS_INSTALL_TRUE=
 
18496
  GCONF_SCHEMAS_INSTALL_FALSE='#'
 
18497
else
 
18498
  GCONF_SCHEMAS_INSTALL_TRUE='#'
 
18499
  GCONF_SCHEMAS_INSTALL_FALSE=
 
18500
fi
 
18501
 
 
18502
 
 
18503
 
 
18504
 
 
18505
    GCONF="enabled"
 
18506
 
 
18507
$as_echo "#define HAVE_GCONF 1" >>confdefs.h
 
18508
 
 
18509
  else
 
18510
     if false; then
 
18511
  GCONF_SCHEMAS_INSTALL_TRUE=
 
18512
  GCONF_SCHEMAS_INSTALL_FALSE='#'
 
18513
else
 
18514
  GCONF_SCHEMAS_INSTALL_TRUE='#'
 
18515
  GCONF_SCHEMAS_INSTALL_FALSE=
 
18516
fi
 
18517
 
 
18518
  fi
 
18519
else
 
18520
   if false; then
 
18521
  GCONF_SCHEMAS_INSTALL_TRUE=
 
18522
  GCONF_SCHEMAS_INSTALL_FALSE='#'
 
18523
else
 
18524
  GCONF_SCHEMAS_INSTALL_TRUE='#'
 
18525
  GCONF_SCHEMAS_INSTALL_FALSE=
 
18526
fi
 
18527
 
 
18528
fi
 
18529
 
 
18530
 if test "x$found_gconf" = "xyes"; then
 
18531
  HAVE_GCONF_TRUE=
 
18532
  HAVE_GCONF_FALSE='#'
 
18533
else
 
18534
  HAVE_GCONF_TRUE='#'
 
18535
  HAVE_GCONF_FALSE=
 
18536
fi
 
18537
 
 
18538
 
 
18539
 
 
18540
EDS="disabled"
 
18541
 
 
18542
if test "x${gm_platform}" != "xmingw" ; then
 
18543
  # Check whether --enable-eds was given.
 
18544
if test "${enable_eds+set}" = set; then :
 
18545
  enableval=$enable_eds; if test "x$enableval" = "xyes"; then
 
18546
  enable_eds=yes
 
18547
fi
 
18548
else
 
18549
  enable_eds=yes
 
18550
fi
 
18551
 
 
18552
 
 
18553
  if test "x$enable_eds" = "xyes"; then
 
18554
 
 
18555
pkg_failed=no
 
18556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDS" >&5
 
18557
$as_echo_n "checking for EDS... " >&6; }
 
18558
 
 
18559
if test -n "$EDS_CFLAGS"; then
 
18560
    pkg_cv_EDS_CFLAGS="$EDS_CFLAGS"
 
18561
 elif test -n "$PKG_CONFIG"; then
 
18562
    if test -n "$PKG_CONFIG" && \
 
18563
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
 
18564
  ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
 
18565
  ac_status=$?
 
18566
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18567
  test $ac_status = 0; }; then
 
18568
  pkg_cv_EDS_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2" 2>/dev/null`
 
18569
                      test "x$?" != "x0" && pkg_failed=yes
 
18570
else
 
18571
  pkg_failed=yes
 
18572
fi
 
18573
 else
 
18574
    pkg_failed=untried
 
18575
fi
 
18576
if test -n "$EDS_LIBS"; then
 
18577
    pkg_cv_EDS_LIBS="$EDS_LIBS"
 
18578
 elif test -n "$PKG_CONFIG"; then
 
18579
    if test -n "$PKG_CONFIG" && \
 
18580
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
 
18581
  ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
 
18582
  ac_status=$?
 
18583
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18584
  test $ac_status = 0; }; then
 
18585
  pkg_cv_EDS_LIBS=`$PKG_CONFIG --libs "libebook-1.2" 2>/dev/null`
 
18586
                      test "x$?" != "x0" && pkg_failed=yes
 
18587
else
 
18588
  pkg_failed=yes
 
18589
fi
 
18590
 else
 
18591
    pkg_failed=untried
 
18592
fi
 
18593
 
 
18594
 
 
18595
 
 
18596
if test $pkg_failed = yes; then
 
18597
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18598
$as_echo "no" >&6; }
 
18599
 
 
18600
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18601
        _pkg_short_errors_supported=yes
 
18602
else
 
18603
        _pkg_short_errors_supported=no
 
18604
fi
 
18605
        if test $_pkg_short_errors_supported = yes; then
 
18606
                EDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2" 2>&1`
 
18607
        else
 
18608
                EDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2" 2>&1`
 
18609
        fi
 
18610
        # Put the nasty error message in config.log where it belongs
 
18611
        echo "$EDS_PKG_ERRORS" >&5
 
18612
 
 
18613
        as_fn_error $? "Package requirements (libebook-1.2) were not met:
 
18614
 
 
18615
$EDS_PKG_ERRORS
 
18616
 
 
18617
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
18618
installed software in a non-standard prefix.
 
18619
 
 
18620
Alternatively, you may set the environment variables EDS_CFLAGS
 
18621
and EDS_LIBS to avoid the need to call pkg-config.
 
18622
See the pkg-config man page for more details." "$LINENO" 5
 
18623
elif test $pkg_failed = untried; then
 
18624
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18625
$as_echo "no" >&6; }
 
18626
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
18627
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
18628
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
18629
is in your PATH or set the PKG_CONFIG environment variable to the full
 
18630
path to pkg-config.
 
18631
 
 
18632
Alternatively, you may set the environment variables EDS_CFLAGS
 
18633
and EDS_LIBS to avoid the need to call pkg-config.
 
18634
See the pkg-config man page for more details.
 
18635
 
 
18636
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
18637
See \`config.log' for more details" "$LINENO" 5; }
 
18638
else
 
18639
        EDS_CFLAGS=$pkg_cv_EDS_CFLAGS
 
18640
        EDS_LIBS=$pkg_cv_EDS_LIBS
 
18641
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18642
$as_echo "yes" >&6; }
 
18643
        found_eds=yes
 
18644
fi
 
18645
 
 
18646
 
 
18647
    EDS="enabled"
 
18648
 
 
18649
$as_echo "#define HAVE_EDS 1" >>confdefs.h
 
18650
 
 
18651
  fi
 
18652
fi
 
18653
 
 
18654
 if test "x$found_eds" = "xyes"; then
 
18655
  HAVE_EDS_TRUE=
 
18656
  HAVE_EDS_FALSE='#'
 
18657
else
 
18658
  HAVE_EDS_TRUE='#'
 
18659
  HAVE_EDS_FALSE=
 
18660
fi
 
18661
 
 
18662
 
 
18663
 
 
18664
NOTIFY="disabled"
 
18665
 
 
18666
if test "x${gm_platform}" != "xmingw" ; then
 
18667
  # Check whether --enable-notify was given.
 
18668
if test "${enable_notify+set}" = set; then :
 
18669
  enableval=$enable_notify; if test "x$enableval" = "xyes"; then
 
18670
  enable_notify=yes
 
18671
fi
 
18672
else
 
18673
  enable_notify=yes
 
18674
fi
 
18675
 
 
18676
 
 
18677
  if test "x$enable_notify" = "xyes"; then
 
18678
 
 
18679
pkg_failed=no
 
18680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOTIFY" >&5
 
18681
$as_echo_n "checking for NOTIFY... " >&6; }
 
18682
 
 
18683
if test -n "$NOTIFY_CFLAGS"; then
 
18684
    pkg_cv_NOTIFY_CFLAGS="$NOTIFY_CFLAGS"
 
18685
 elif test -n "$PKG_CONFIG"; then
 
18686
    if test -n "$PKG_CONFIG" && \
 
18687
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
 
18688
  ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
 
18689
  ac_status=$?
 
18690
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18691
  test $ac_status = 0; }; then
 
18692
  pkg_cv_NOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
 
18693
                      test "x$?" != "x0" && pkg_failed=yes
 
18694
else
 
18695
  pkg_failed=yes
 
18696
fi
 
18697
 else
 
18698
    pkg_failed=untried
 
18699
fi
 
18700
if test -n "$NOTIFY_LIBS"; then
 
18701
    pkg_cv_NOTIFY_LIBS="$NOTIFY_LIBS"
 
18702
 elif test -n "$PKG_CONFIG"; then
 
18703
    if test -n "$PKG_CONFIG" && \
 
18704
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
 
18705
  ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
 
18706
  ac_status=$?
 
18707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18708
  test $ac_status = 0; }; then
 
18709
  pkg_cv_NOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
 
18710
                      test "x$?" != "x0" && pkg_failed=yes
 
18711
else
 
18712
  pkg_failed=yes
 
18713
fi
 
18714
 else
 
18715
    pkg_failed=untried
 
18716
fi
 
18717
 
 
18718
 
 
18719
 
 
18720
if test $pkg_failed = yes; then
 
18721
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18722
$as_echo "no" >&6; }
 
18723
 
 
18724
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18725
        _pkg_short_errors_supported=yes
 
18726
else
 
18727
        _pkg_short_errors_supported=no
 
18728
fi
 
18729
        if test $_pkg_short_errors_supported = yes; then
 
18730
                NOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
 
18731
        else
 
18732
                NOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
 
18733
        fi
 
18734
        # Put the nasty error message in config.log where it belongs
 
18735
        echo "$NOTIFY_PKG_ERRORS" >&5
 
18736
 
 
18737
        foo=bar
 
18738
elif test $pkg_failed = untried; then
 
18739
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18740
$as_echo "no" >&6; }
 
18741
        foo=bar
 
18742
else
 
18743
        NOTIFY_CFLAGS=$pkg_cv_NOTIFY_CFLAGS
 
18744
        NOTIFY_LIBS=$pkg_cv_NOTIFY_LIBS
 
18745
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18746
$as_echo "yes" >&6; }
 
18747
        found_notify=yes
 
18748
fi
 
18749
    if test "x$found_notify" = "xyes"; then
 
18750
 
 
18751
 
 
18752
      NOTIFY="enabled"
 
18753
 
 
18754
$as_echo "#define HAVE_NOTIFY 1" >>confdefs.h
 
18755
 
 
18756
    fi
 
18757
  fi
 
18758
fi
 
18759
 
 
18760
 if test "x$found_notify" = "xyes"; then
 
18761
  HAVE_NOTIFY_TRUE=
 
18762
  HAVE_NOTIFY_FALSE='#'
 
18763
else
 
18764
  HAVE_NOTIFY_TRUE='#'
 
18765
  HAVE_NOTIFY_FALSE=
 
18766
fi
 
18767
 
 
18768
 
 
18769
 
 
18770
LDAP="disabled"
 
18771
 
 
18772
# Check whether --enable-ldap was given.
 
18773
if test "${enable_ldap+set}" = set; then :
 
18774
  enableval=$enable_ldap; if test "x$enableval" = "xyes"; then
 
18775
  enable_ldap=yes
 
18776
fi
 
18777
else
 
18778
  enable_ldap=yes
 
18779
fi
 
18780
 
 
18781
 
 
18782
if test "x$enable_ldap" = "xyes"; then
 
18783
 
 
18784
 
 
18785
# Check whether --with-ldap-dir was given.
 
18786
if test "${with_ldap_dir+set}" = set; then :
 
18787
  withval=$with_ldap_dir; with_ldap_dir="$withval"
 
18788
else
 
18789
  with_ldap_dir="/usr"
 
18790
fi
 
18791
 
 
18792
 
 
18793
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP includes in ${with_ldap_dir}/include/" >&5
 
18794
$as_echo_n "checking for LDAP includes in ${with_ldap_dir}/include/... " >&6; }
 
18795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
18796
$as_echo "" >&6; }
 
18797
 
 
18798
 
 
18799
  if test -f ${with_ldap_dir}/include/ldap.h; then
 
18800
        LDAP_CFLAGS="-I${with_ldap_dir}/include"
 
18801
  else
 
18802
        as_fn_error $? "You need the LDAP headers to compile Ekiga with LDAP support" "$LINENO" 5
 
18803
  fi
 
18804
 
 
18805
    LIBS_save="$LIBS"
 
18806
  LIBS="${LIBS} -L${with_ldap_dir}/${libname}/ -llber"
 
18807
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldap" >&5
 
18808
$as_echo_n "checking for main in -lldap... " >&6; }
 
18809
if ${ac_cv_lib_ldap_main+:} false; then :
 
18810
  $as_echo_n "(cached) " >&6
 
18811
else
 
18812
  ac_check_lib_save_LIBS=$LIBS
 
18813
LIBS="-lldap  $LIBS"
 
18814
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18815
/* end confdefs.h.  */
 
18816
 
 
18817
 
 
18818
int
 
18819
main ()
 
18820
{
 
18821
return main ();
 
18822
  ;
 
18823
  return 0;
 
18824
}
 
18825
_ACEOF
 
18826
if ac_fn_cxx_try_link "$LINENO"; then :
 
18827
  ac_cv_lib_ldap_main=yes
 
18828
else
 
18829
  ac_cv_lib_ldap_main=no
 
18830
fi
 
18831
rm -f core conftest.err conftest.$ac_objext \
 
18832
    conftest$ac_exeext conftest.$ac_ext
 
18833
LIBS=$ac_check_lib_save_LIBS
 
18834
fi
 
18835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_main" >&5
 
18836
$as_echo "$ac_cv_lib_ldap_main" >&6; }
 
18837
if test "x$ac_cv_lib_ldap_main" = xyes; then :
 
18838
  ldap_libs="yes"
 
18839
else
 
18840
  ldap_libs="no"
 
18841
fi
 
18842
 
 
18843
  LIBS="${LIBS_save}"
 
18844
 
 
18845
  if test "x${ldap_libs}" != "xno"; then
 
18846
        LDAP_LIBS="-llber -lldap"
 
18847
        if test "x${with_ldap_dir}" != "x/usr"; then
 
18848
                LDAP_LIBS="-L${with_ldap_dir}/${libname} $LDAP_LIBS"
 
18849
        fi
 
18850
  else
 
18851
        as_fn_error $? "You need the LDAP library to compile Ekiga with LDAP support" "$LINENO" 5
 
18852
  fi
 
18853
 
 
18854
 
 
18855
# Check whether --with-libsasl2-dir was given.
 
18856
if test "${with_libsasl2_dir+set}" = set; then :
 
18857
  withval=$with_libsasl2_dir; with_libsasl2_dir="$withval"
 
18858
else
 
18859
  with_libsasl2_dir="/usr"
 
18860
fi
 
18861
 
 
18862
 
 
18863
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSASL2 includes in ${with_libsasl2_dir}/include/" >&5
 
18864
$as_echo_n "checking for LIBSASL2 includes in ${with_libsasl2_dir}/include/... " >&6; }
 
18865
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
18866
$as_echo "" >&6; }
 
18867
 
 
18868
  if test -f ${with_libsasl2_dir}/include/sasl/sasl.h; then
 
18869
        LDAP_CFLAGS="${LDAP_CFLAGS} -I${with_libsasl2_dir}/include"
 
18870
  else
 
18871
        as_fn_error $? "You need the SASL2 library to compile Ekiga" "$LINENO" 5
 
18872
  fi
 
18873
  LDAP_LIBS="$LDAP_LIBS -lsasl2"
 
18874
 
 
18875
    if test ${gm_platform} = "linux" ; then
 
18876
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_gethostbyaddr in -lresolv" >&5
 
18877
$as_echo_n "checking for res_gethostbyaddr in -lresolv... " >&6; }
 
18878
if ${ac_cv_lib_resolv_res_gethostbyaddr+:} false; then :
 
18879
  $as_echo_n "(cached) " >&6
 
18880
else
 
18881
  ac_check_lib_save_LIBS=$LIBS
 
18882
LIBS="-lresolv -lresolv $LIBS"
 
18883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18884
/* end confdefs.h.  */
 
18885
 
 
18886
/* Override any GCC internal prototype to avoid an error.
 
18887
   Use char because int might match the return type of a GCC
 
18888
   builtin and then its argument prototype would still apply.  */
 
18889
#ifdef __cplusplus
 
18890
extern "C"
 
18891
#endif
 
18892
char res_gethostbyaddr ();
 
18893
int
 
18894
main ()
 
18895
{
 
18896
return res_gethostbyaddr ();
 
18897
  ;
 
18898
  return 0;
 
18899
}
 
18900
_ACEOF
 
18901
if ac_fn_cxx_try_link "$LINENO"; then :
 
18902
  ac_cv_lib_resolv_res_gethostbyaddr=yes
 
18903
else
 
18904
  ac_cv_lib_resolv_res_gethostbyaddr=no
 
18905
fi
 
18906
rm -f core conftest.err conftest.$ac_objext \
 
18907
    conftest$ac_exeext conftest.$ac_ext
 
18908
LIBS=$ac_check_lib_save_LIBS
 
18909
fi
 
18910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_gethostbyaddr" >&5
 
18911
$as_echo "$ac_cv_lib_resolv_res_gethostbyaddr" >&6; }
 
18912
if test "x$ac_cv_lib_resolv_res_gethostbyaddr" = xyes; then :
 
18913
  LIBS="-lresolv $LIBS"
 
18914
else
 
18915
  as_fn_error $? "You need the libresolv library to compile Ekiga" "$LINENO" 5
 
18916
fi
 
18917
 
 
18918
        LDAP_LIBS="${LDAP_LIBS} -lresolv"
 
18919
  fi
 
18920
  found_ldap="yes"
 
18921
 
 
18922
 
 
18923
  LDAP="enabled"
 
18924
 
 
18925
$as_echo "#define HAVE_LDAP 1" >>confdefs.h
 
18926
 
 
18927
fi
 
18928
 
 
18929
 if test "x$found_ldap" = "xyes"; then
 
18930
  HAVE_LDAP_TRUE=
 
18931
  HAVE_LDAP_FALSE='#'
 
18932
else
 
18933
  HAVE_LDAP_TRUE='#'
 
18934
  HAVE_LDAP_FALSE=
 
18935
fi
 
18936
 
 
18937
 
 
18938
 
 
18939
# By default we simply use the C compiler to build assembly code.
 
18940
 
 
18941
test "${CCAS+set}" = set || CCAS=$CC
 
18942
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
18943
 
 
18944
 
 
18945
 
 
18946
depcc="$CCAS"   am_compiler_list=
 
18947
 
 
18948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
18949
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
18950
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
 
18951
  $as_echo_n "(cached) " >&6
 
18952
else
 
18953
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
18954
  # We make a subdir and do the tests there.  Otherwise we can end up
 
18955
  # making bogus files that we don't know about and never remove.  For
 
18956
  # instance it was reported that on HP-UX the gcc test will end up
 
18957
  # making a dummy file named `D' -- because `-MD' means `put the output
 
18958
  # in D'.
 
18959
  rm -rf conftest.dir
 
18960
  mkdir conftest.dir
 
18961
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
18962
  # using a relative directory.
 
18963
  cp "$am_depcomp" conftest.dir
 
18964
  cd conftest.dir
 
18965
  # We will build objects and dependencies in a subdirectory because
 
18966
  # it helps to detect inapplicable dependency modes.  For instance
 
18967
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
18968
  # side effect of compilation, but ICC will put the dependencies in
 
18969
  # the current directory while Tru64 will put them in the object
 
18970
  # directory.
 
18971
  mkdir sub
 
18972
 
 
18973
  am_cv_CCAS_dependencies_compiler_type=none
 
18974
  if test "$am_compiler_list" = ""; then
 
18975
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
18976
  fi
 
18977
  am__universal=false
 
18978
 
 
18979
 
 
18980
  for depmode in $am_compiler_list; do
 
18981
    # Setup a source with many dependencies, because some compilers
 
18982
    # like to wrap large dependency lists on column 80 (with \), and
 
18983
    # we should not choose a depcomp mode which is confused by this.
 
18984
    #
 
18985
    # We need to recreate these files for each test, as the compiler may
 
18986
    # overwrite some of them when testing with obscure command lines.
 
18987
    # This happens at least with the AIX C compiler.
 
18988
    : > sub/conftest.c
 
18989
    for i in 1 2 3 4 5 6; do
 
18990
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
18991
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
18992
      # Solaris 8's {/usr,}/bin/sh.
 
18993
      touch sub/conftst$i.h
 
18994
    done
 
18995
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
18996
 
 
18997
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
18998
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
18999
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
19000
    # versions had trouble with output in subdirs
 
19001
    am__obj=sub/conftest.${OBJEXT-o}
 
19002
    am__minus_obj="-o $am__obj"
 
19003
    case $depmode in
 
19004
    gcc)
 
19005
      # This depmode causes a compiler race in universal mode.
 
19006
      test "$am__universal" = false || continue
 
19007
      ;;
 
19008
    nosideeffect)
 
19009
      # after this tag, mechanisms are not by side-effect, so they'll
 
19010
      # only be used when explicitly requested
 
19011
      if test "x$enable_dependency_tracking" = xyes; then
 
19012
        continue
 
19013
      else
 
19014
        break
 
19015
      fi
 
19016
      ;;
 
19017
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
19018
      # This compiler won't grok `-c -o', but also, the minuso test has
 
19019
      # not run yet.  These depmodes are late enough in the game, and
 
19020
      # so weak that their functioning should not be impacted.
 
19021
      am__obj=conftest.${OBJEXT-o}
 
19022
      am__minus_obj=
 
19023
      ;;
 
19024
    none) break ;;
 
19025
    esac
 
19026
    if depmode=$depmode \
 
19027
       source=sub/conftest.c object=$am__obj \
 
19028
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19029
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
19030
         >/dev/null 2>conftest.err &&
 
19031
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
19032
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19033
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
19034
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
19035
      # icc doesn't choke on unknown options, it will just issue warnings
 
19036
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19037
      # that says an option was ignored or not supported.
 
19038
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19039
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19040
      # The diagnosis changed in icc 8.0:
 
19041
      #   icc: Command line remark: option '-MP' not supported
 
19042
      if (grep 'ignoring option' conftest.err ||
 
19043
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19044
        am_cv_CCAS_dependencies_compiler_type=$depmode
 
19045
        break
 
19046
      fi
 
19047
    fi
 
19048
  done
 
19049
 
 
19050
  cd ..
 
19051
  rm -rf conftest.dir
 
19052
else
 
19053
  am_cv_CCAS_dependencies_compiler_type=none
 
19054
fi
 
19055
 
 
19056
fi
 
19057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
 
19058
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
 
19059
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
 
19060
 
 
19061
 if
 
19062
  test "x$enable_dependency_tracking" != xno \
 
19063
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
 
19064
  am__fastdepCCAS_TRUE=
 
19065
  am__fastdepCCAS_FALSE='#'
 
19066
else
 
19067
  am__fastdepCCAS_TRUE='#'
 
19068
  am__fastdepCCAS_FALSE=
 
19069
fi
 
19070
 
 
19071
 
 
19072
 
 
19073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 platform" >&5
 
19074
$as_echo_n "checking for x86 platform... " >&6; }
 
19075
case $host_cpu in
 
19076
  i386|i486|i586|i686|i786|k6|k7)
 
19077
        # Check whether --enable-mmx was given.
 
19078
if test "${enable_mmx+set}" = set; then :
 
19079
  enableval=$enable_mmx; if test "x$enableval" = "xyes"; then
 
19080
                             use_x86_asm=yes
 
19081
                           else
 
19082
                             use_x86_asm=no
 
19083
                           fi
 
19084
else
 
19085
  use_x86_asm=yes
 
19086
fi
 
19087
 
 
19088
        ;;
 
19089
   *)
 
19090
        use_x86_asm=no
 
19091
esac
 
19092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_x86_asm" >&5
 
19093
$as_echo "$use_x86_asm" >&6; }
 
19094
 
 
19095
use_mmx_asm=no
 
19096
if test "x$use_x86_asm" = "xyes"; then
 
19097
    save_ac_ext=$ac_ext
 
19098
    ac_ext=S
 
19099
 
 
19100
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for MMX" >&5
 
19101
$as_echo_n "checking compiler support for MMX... " >&6; }
 
19102
    cp $srcdir/lib/pixops/scale_line_22_33_mmx.S conftest.S
 
19103
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
19104
  (eval $ac_compile) 2>&5
 
19105
  ac_status=$?
 
19106
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19107
  test $ac_status = 0; }; then
 
19108
        use_mmx_asm=yes
 
19109
    fi
 
19110
 
 
19111
    rm -rf conftest*
 
19112
 
 
19113
    ac_ext=$save_ac_ext
 
19114
    if test "x$use_mmx_asm" = "xyes"; then
 
19115
 
 
19116
$as_echo "#define USE_MMX 1" >>confdefs.h
 
19117
 
 
19118
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
19119
$as_echo "yes" >&6; }
 
19120
    else
 
19121
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19122
$as_echo "no" >&6; }
 
19123
    fi
 
19124
fi
 
19125
 
 
19126
 if test "x$use_mmx_asm" = "xyes"; then
 
19127
  USE_MMX_TRUE=
 
19128
  USE_MMX_FALSE='#'
 
19129
else
 
19130
  USE_MMX_TRUE='#'
 
19131
  USE_MMX_FALSE=
 
19132
fi
 
19133
 
 
19134
 
 
19135
 
 
19136
 
 
19137
SHM="disabled"
 
19138
 
 
19139
if test "x${gm_platform}" = "xlinux" ; then
 
19140
  # Check whether --enable-shm was given.
 
19141
if test "${enable_shm+set}" = set; then :
 
19142
  enableval=$enable_shm; if test "x$enableval" = "xyes"; then
 
19143
  enable_shm=yes
 
19144
fi
 
19145
else
 
19146
  enable_shm=yes
 
19147
fi
 
19148
 
 
19149
  if test "x$enable_shm" = "xyes"; then
 
19150
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
 
19151
$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
 
19152
if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
 
19153
  $as_echo_n "(cached) " >&6
 
19154
else
 
19155
  ac_check_lib_save_LIBS=$LIBS
 
19156
LIBS="-lXext  $LIBS"
 
19157
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19158
/* end confdefs.h.  */
 
19159
 
 
19160
/* Override any GCC internal prototype to avoid an error.
 
19161
   Use char because int might match the return type of a GCC
 
19162
   builtin and then its argument prototype would still apply.  */
 
19163
#ifdef __cplusplus
 
19164
extern "C"
 
19165
#endif
 
19166
char XShmAttach ();
 
19167
int
 
19168
main ()
 
19169
{
 
19170
return XShmAttach ();
 
19171
  ;
 
19172
  return 0;
 
19173
}
 
19174
_ACEOF
 
19175
if ac_fn_cxx_try_link "$LINENO"; then :
 
19176
  ac_cv_lib_Xext_XShmAttach=yes
 
19177
else
 
19178
  ac_cv_lib_Xext_XShmAttach=no
 
19179
fi
 
19180
rm -f core conftest.err conftest.$ac_objext \
 
19181
    conftest$ac_exeext conftest.$ac_ext
 
19182
LIBS=$ac_check_lib_save_LIBS
 
19183
fi
 
19184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
 
19185
$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
 
19186
if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
 
19187
  with_shm="yes"
 
19188
else
 
19189
  with_shm="no"
 
19190
fi
 
19191
 
 
19192
    if test "x${with_shm}" != "xno"; then
 
19193
      SHM="enabled"
 
19194
 
 
19195
$as_echo "#define HAVE_SHM 1" >>confdefs.h
 
19196
 
 
19197
      SHM_LIBS="-lXext"
 
19198
 
 
19199
    fi
 
19200
  fi
 
19201
fi
 
19202
 if test "x$SHM" = "xenabled"; then
 
19203
  HAVE_SHM_TRUE=
 
19204
  HAVE_SHM_FALSE='#'
 
19205
else
 
19206
  HAVE_SHM_TRUE='#'
 
19207
  HAVE_SHM_FALSE=
 
19208
fi
 
19209
 
 
19210
 
 
19211
XV="disabled"
 
19212
# Check whether --enable-xv was given.
 
19213
if test "${enable_xv+set}" = set; then :
 
19214
  enableval=$enable_xv; if test "x$enableval" = "xyes"; then
 
19215
  enable_xv=yes
 
19216
fi
 
19217
else
 
19218
  enable_xv=yes
 
19219
fi
 
19220
 
 
19221
if test "x${gm_platform}" != "xmingw" -a "x$enable_xv" = "xyes"; then
 
19222
 
 
19223
pkg_failed=no
 
19224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5
 
19225
$as_echo_n "checking for XV... " >&6; }
 
19226
 
 
19227
if test -n "$XV_CFLAGS"; then
 
19228
    pkg_cv_XV_CFLAGS="$XV_CFLAGS"
 
19229
 elif test -n "$PKG_CONFIG"; then
 
19230
    if test -n "$PKG_CONFIG" && \
 
19231
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xv\""; } >&5
 
19232
  ($PKG_CONFIG --exists --print-errors "xv") 2>&5
 
19233
  ac_status=$?
 
19234
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19235
  test $ac_status = 0; }; then
 
19236
  pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "xv" 2>/dev/null`
 
19237
                      test "x$?" != "x0" && pkg_failed=yes
 
19238
else
 
19239
  pkg_failed=yes
 
19240
fi
 
19241
 else
 
19242
    pkg_failed=untried
 
19243
fi
 
19244
if test -n "$XV_LIBS"; then
 
19245
    pkg_cv_XV_LIBS="$XV_LIBS"
 
19246
 elif test -n "$PKG_CONFIG"; then
 
19247
    if test -n "$PKG_CONFIG" && \
 
19248
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xv\""; } >&5
 
19249
  ($PKG_CONFIG --exists --print-errors "xv") 2>&5
 
19250
  ac_status=$?
 
19251
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19252
  test $ac_status = 0; }; then
 
19253
  pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "xv" 2>/dev/null`
 
19254
                      test "x$?" != "x0" && pkg_failed=yes
 
19255
else
 
19256
  pkg_failed=yes
 
19257
fi
 
19258
 else
 
19259
    pkg_failed=untried
 
19260
fi
 
19261
 
 
19262
 
 
19263
 
 
19264
if test $pkg_failed = yes; then
 
19265
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19266
$as_echo "no" >&6; }
 
19267
 
 
19268
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19269
        _pkg_short_errors_supported=yes
 
19270
else
 
19271
        _pkg_short_errors_supported=no
 
19272
fi
 
19273
        if test $_pkg_short_errors_supported = yes; then
 
19274
                XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xv" 2>&1`
 
19275
        else
 
19276
                XV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xv" 2>&1`
 
19277
        fi
 
19278
        # Put the nasty error message in config.log where it belongs
 
19279
        echo "$XV_PKG_ERRORS" >&5
 
19280
 
 
19281
        as_fn_error $? "Package requirements (xv) were not met:
 
19282
 
 
19283
$XV_PKG_ERRORS
 
19284
 
 
19285
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19286
installed software in a non-standard prefix.
 
19287
 
 
19288
Alternatively, you may set the environment variables XV_CFLAGS
 
19289
and XV_LIBS to avoid the need to call pkg-config.
 
19290
See the pkg-config man page for more details." "$LINENO" 5
 
19291
elif test $pkg_failed = untried; then
 
19292
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19293
$as_echo "no" >&6; }
 
19294
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19295
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19296
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
19297
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19298
path to pkg-config.
 
19299
 
 
19300
Alternatively, you may set the environment variables XV_CFLAGS
 
19301
and XV_LIBS to avoid the need to call pkg-config.
 
19302
See the pkg-config man page for more details.
 
19303
 
 
19304
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
19305
See \`config.log' for more details" "$LINENO" 5; }
 
19306
else
 
19307
        XV_CFLAGS=$pkg_cv_XV_CFLAGS
 
19308
        XV_LIBS=$pkg_cv_XV_LIBS
 
19309
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
19310
$as_echo "yes" >&6; }
 
19311
 
 
19312
$as_echo "#define HAVE_XV 1" >>confdefs.h
 
19313
 
 
19314
                     XV="enabled"
 
19315
 
 
19316
fi
 
19317
 
 
19318
 
 
19319
fi
 
19320
 
 
19321
 if test "x$XV" = "xenabled"; then
 
19322
  HAVE_XV_TRUE=
 
19323
  HAVE_XV_FALSE='#'
 
19324
else
 
19325
  HAVE_XV_TRUE='#'
 
19326
  HAVE_XV_FALSE=
 
19327
fi
 
19328
 
 
19329
 
 
19330
 
 
19331
DX="disabled"
 
19332
 
 
19333
if test "x${gm_platform}" = "xmingw" ; then
 
19334
 
 
19335
# Check whether --with-directx-dir was given.
 
19336
if test "${with_directx_dir+set}" = set; then :
 
19337
  withval=$with_directx_dir; with_directx_dir="$withval"
 
19338
else
 
19339
  with_directx_dir="."
 
19340
fi
 
19341
 
 
19342
 
 
19343
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX includes in ${with_directx_dir}" >&5
 
19344
$as_echo_n "checking for DirectX includes in ${with_directx_dir}... " >&6; }
 
19345
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
19346
$as_echo "" >&6; }
 
19347
  if test -d ${with_directx_dir}; then
 
19348
    DX_CFLAGS="-I${with_directx_dir}"
 
19349
    DX_LIBS="$EKIGA_LIBS -lddraw"
 
19350
 
 
19351
 
 
19352
    DX="enabled"
 
19353
 
 
19354
$as_echo "#define HAVE_DX 1" >>confdefs.h
 
19355
 
 
19356
  else
 
19357
    as_fn_error $? "Unable to locate DirectX header files; --with-directx-dir is obligatory" "$LINENO" 5
 
19358
  fi
 
19359
fi
 
19360
 
 
19361
 if test "x$DX" = "xenabled"; then
 
19362
  HAVE_DX_TRUE=
 
19363
  HAVE_DX_FALSE='#'
 
19364
else
 
19365
  HAVE_DX_TRUE='#'
 
19366
  HAVE_DX_FALSE=
 
19367
fi
 
19368
 
 
19369
 
 
19370
 
 
19371
DBUS="disabled"
 
19372
DBUS_SERVICE="disabled"
 
19373
 
 
19374
if test "x${gm_platform}" != "xmingw" ; then
 
19375
  # Check whether --enable-dbus was given.
 
19376
if test "${enable_dbus+set}" = set; then :
 
19377
  enableval=$enable_dbus; if test "x$enableval" = "xyes"; then
 
19378
  enable_dbus=yes
 
19379
fi
 
19380
else
 
19381
  enable_dbus=yes
 
19382
fi
 
19383
 
 
19384
  # Check whether --enable-dbus-service was given.
 
19385
if test "${enable_dbus_service+set}" = set; then :
 
19386
  enableval=$enable_dbus_service; if test "x$enableval" = "xyes"; then
 
19387
  enable_dbus_service=yes
 
19388
fi
 
19389
else
 
19390
  enable_dbus_service=yes
 
19391
fi
 
19392
 
 
19393
 
 
19394
  if test "x$enable_dbus" = "xyes"; then
 
19395
 
 
19396
pkg_failed=no
 
19397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
 
19398
$as_echo_n "checking for DBUS... " >&6; }
 
19399
 
 
19400
if test -n "$DBUS_CFLAGS"; then
 
19401
    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
 
19402
 elif test -n "$PKG_CONFIG"; then
 
19403
    if test -n "$PKG_CONFIG" && \
 
19404
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.36 dbus-glib-1 >= 0.36\""; } >&5
 
19405
  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.36 dbus-glib-1 >= 0.36") 2>&5
 
19406
  ac_status=$?
 
19407
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19408
  test $ac_status = 0; }; then
 
19409
  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.36 dbus-glib-1 >= 0.36" 2>/dev/null`
 
19410
                      test "x$?" != "x0" && pkg_failed=yes
 
19411
else
 
19412
  pkg_failed=yes
 
19413
fi
 
19414
 else
 
19415
    pkg_failed=untried
 
19416
fi
 
19417
if test -n "$DBUS_LIBS"; then
 
19418
    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
 
19419
 elif test -n "$PKG_CONFIG"; then
 
19420
    if test -n "$PKG_CONFIG" && \
 
19421
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.36 dbus-glib-1 >= 0.36\""; } >&5
 
19422
  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.36 dbus-glib-1 >= 0.36") 2>&5
 
19423
  ac_status=$?
 
19424
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19425
  test $ac_status = 0; }; then
 
19426
  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.36 dbus-glib-1 >= 0.36" 2>/dev/null`
 
19427
                      test "x$?" != "x0" && pkg_failed=yes
 
19428
else
 
19429
  pkg_failed=yes
 
19430
fi
 
19431
 else
 
19432
    pkg_failed=untried
 
19433
fi
 
19434
 
 
19435
 
 
19436
 
 
19437
if test $pkg_failed = yes; then
 
19438
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19439
$as_echo "no" >&6; }
 
19440
 
 
19441
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19442
        _pkg_short_errors_supported=yes
 
19443
else
 
19444
        _pkg_short_errors_supported=no
 
19445
fi
 
19446
        if test $_pkg_short_errors_supported = yes; then
 
19447
                DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 0.36 dbus-glib-1 >= 0.36" 2>&1`
 
19448
        else
 
19449
                DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 0.36 dbus-glib-1 >= 0.36" 2>&1`
 
19450
        fi
 
19451
        # Put the nasty error message in config.log where it belongs
 
19452
        echo "$DBUS_PKG_ERRORS" >&5
 
19453
 
 
19454
        as_fn_error $? "Package requirements (dbus-1 >= 0.36 dbus-glib-1 >= 0.36) were not met:
 
19455
 
 
19456
$DBUS_PKG_ERRORS
 
19457
 
 
19458
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19459
installed software in a non-standard prefix.
 
19460
 
 
19461
Alternatively, you may set the environment variables DBUS_CFLAGS
 
19462
and DBUS_LIBS to avoid the need to call pkg-config.
 
19463
See the pkg-config man page for more details." "$LINENO" 5
 
19464
elif test $pkg_failed = untried; then
 
19465
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19466
$as_echo "no" >&6; }
 
19467
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19468
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19469
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
19470
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19471
path to pkg-config.
 
19472
 
 
19473
Alternatively, you may set the environment variables DBUS_CFLAGS
 
19474
and DBUS_LIBS to avoid the need to call pkg-config.
 
19475
See the pkg-config man page for more details.
 
19476
 
 
19477
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
19478
See \`config.log' for more details" "$LINENO" 5; }
 
19479
else
 
19480
        DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
 
19481
        DBUS_LIBS=$pkg_cv_DBUS_LIBS
 
19482
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
19483
$as_echo "yes" >&6; }
 
19484
        found_dbus=yes
 
19485
fi
 
19486
 
 
19487
 
 
19488
    DBUS="enabled"
 
19489
 
 
19490
$as_echo "#define HAVE_DBUS 1" >>confdefs.h
 
19491
 
 
19492
 
 
19493
    if test "x$found_dbus" = "xyes" -a "x$enable_dbus_service" = "xyes"; then
 
19494
      DBUS_SERVICE="enabled"
 
19495
    fi
 
19496
  fi
 
19497
fi
 
19498
 
 
19499
 if test "x$found_dbus" = "xyes"; then
 
19500
  HAVE_DBUS_TRUE=
 
19501
  HAVE_DBUS_FALSE='#'
 
19502
else
 
19503
  HAVE_DBUS_TRUE='#'
 
19504
  HAVE_DBUS_FALSE=
 
19505
fi
 
19506
 
 
19507
 if test "x$DBUS_SERVICE" = "xenabled"; then
 
19508
  INSTALL_DBUS_SERVICE_TRUE=
 
19509
  INSTALL_DBUS_SERVICE_FALSE='#'
 
19510
else
 
19511
  INSTALL_DBUS_SERVICE_TRUE='#'
 
19512
  INSTALL_DBUS_SERVICE_FALSE=
 
19513
fi
 
19514
 
 
19515
 
 
19516
 
 
19517
 
 
19518
OLDV4L="disabled"
 
19519
V4L="disabled"
 
19520
V4L2="disabled"
 
19521
VIDEO4LINUX="disabled"
 
19522
if test "x${win32}" != "x1"; then
 
19523
  ac_fn_cxx_check_header_mongrel "$LINENO" "libv4l1-videodev.h" "ac_cv_header_libv4l1_videodev_h" "$ac_includes_default"
 
19524
if test "x$ac_cv_header_libv4l1_videodev_h" = xyes; then :
 
19525
  V4L="enabled"
 
19526
fi
 
19527
 
 
19528
 
 
19529
  ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default"
 
19530
if test "x$ac_cv_header_linux_videodev2_h" = xyes; then :
 
19531
  V4L2="enabled"
 
19532
fi
 
19533
 
 
19534
 
 
19535
  ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
 
19536
if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
 
19537
  OLDV4L="enabled"
 
19538
fi
 
19539
 
 
19540
 
 
19541
 
 
19542
  if test "x${V4L}" != "xdisabled" -a "x${V4L2}" != "xdisabled"; then
 
19543
 
 
19544
$as_echo "#define HAVE_V4L 1" >>confdefs.h
 
19545
 
 
19546
    VIDEO4LINUX="enabled"
 
19547
  else
 
19548
    if test "x${OLDV4L}" != "xdisabled"; then
 
19549
 
 
19550
$as_echo "#define HAVE_V4L 1" >>confdefs.h
 
19551
 
 
19552
 
 
19553
$as_echo "#define HAVE_OLD_V4L 1" >>confdefs.h
 
19554
 
 
19555
      VIDEO4LINUX="enabled"
 
19556
    fi
 
19557
  fi
 
19558
fi
 
19559
 if test "x${VIDEO4LINUX}" = "xenabled"; then
 
19560
  HAVE_V4L_TRUE=
 
19561
  HAVE_V4L_FALSE='#'
 
19562
else
 
19563
  HAVE_V4L_TRUE='#'
 
19564
  HAVE_V4L_FALSE=
 
19565
fi
 
19566
 
 
19567
 
 
19568
AVAHI="disabled"
 
19569
 
 
19570
if test "x${gm_platform}" != "xmingw" ; then
 
19571
  # Check whether --enable-avahi was given.
 
19572
if test "${enable_avahi+set}" = set; then :
 
19573
  enableval=$enable_avahi; if test "x$enableval" = "xyes"; then
 
19574
  enable_avahi=yes
 
19575
fi
 
19576
fi
 
19577
 
 
19578
 
 
19579
  if test "x$enable_avahi" = "xyes"; then
 
19580
 
 
19581
pkg_failed=no
 
19582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI" >&5
 
19583
$as_echo_n "checking for AVAHI... " >&6; }
 
19584
 
 
19585
if test -n "$AVAHI_CFLAGS"; then
 
19586
    pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
 
19587
 elif test -n "$PKG_CONFIG"; then
 
19588
    if test -n "$PKG_CONFIG" && \
 
19589
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6 avahi-glib >= 0.6\""; } >&5
 
19590
  ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6 avahi-glib >= 0.6") 2>&5
 
19591
  ac_status=$?
 
19592
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19593
  test $ac_status = 0; }; then
 
19594
  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags "avahi-client >= 0.6 avahi-glib >= 0.6" 2>/dev/null`
 
19595
                      test "x$?" != "x0" && pkg_failed=yes
 
19596
else
 
19597
  pkg_failed=yes
 
19598
fi
 
19599
 else
 
19600
    pkg_failed=untried
 
19601
fi
 
19602
if test -n "$AVAHI_LIBS"; then
 
19603
    pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
 
19604
 elif test -n "$PKG_CONFIG"; then
 
19605
    if test -n "$PKG_CONFIG" && \
 
19606
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6 avahi-glib >= 0.6\""; } >&5
 
19607
  ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6 avahi-glib >= 0.6") 2>&5
 
19608
  ac_status=$?
 
19609
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19610
  test $ac_status = 0; }; then
 
19611
  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs "avahi-client >= 0.6 avahi-glib >= 0.6" 2>/dev/null`
 
19612
                      test "x$?" != "x0" && pkg_failed=yes
 
19613
else
 
19614
  pkg_failed=yes
 
19615
fi
 
19616
 else
 
19617
    pkg_failed=untried
 
19618
fi
 
19619
 
 
19620
 
 
19621
 
 
19622
if test $pkg_failed = yes; then
 
19623
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19624
$as_echo "no" >&6; }
 
19625
 
 
19626
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19627
        _pkg_short_errors_supported=yes
 
19628
else
 
19629
        _pkg_short_errors_supported=no
 
19630
fi
 
19631
        if test $_pkg_short_errors_supported = yes; then
 
19632
                AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client >= 0.6 avahi-glib >= 0.6" 2>&1`
 
19633
        else
 
19634
                AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client >= 0.6 avahi-glib >= 0.6" 2>&1`
 
19635
        fi
 
19636
        # Put the nasty error message in config.log where it belongs
 
19637
        echo "$AVAHI_PKG_ERRORS" >&5
 
19638
 
 
19639
        as_fn_error $? "Package requirements (avahi-client >= 0.6 avahi-glib >= 0.6) were not met:
 
19640
 
 
19641
$AVAHI_PKG_ERRORS
 
19642
 
 
19643
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19644
installed software in a non-standard prefix.
 
19645
 
 
19646
Alternatively, you may set the environment variables AVAHI_CFLAGS
 
19647
and AVAHI_LIBS to avoid the need to call pkg-config.
 
19648
See the pkg-config man page for more details." "$LINENO" 5
 
19649
elif test $pkg_failed = untried; then
 
19650
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19651
$as_echo "no" >&6; }
 
19652
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19653
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19654
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
19655
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19656
path to pkg-config.
 
19657
 
 
19658
Alternatively, you may set the environment variables AVAHI_CFLAGS
 
19659
and AVAHI_LIBS to avoid the need to call pkg-config.
 
19660
See the pkg-config man page for more details.
 
19661
 
 
19662
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
19663
See \`config.log' for more details" "$LINENO" 5; }
 
19664
else
 
19665
        AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
 
19666
        AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
 
19667
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
19668
$as_echo "yes" >&6; }
 
19669
        found_avahi=yes
 
19670
fi
 
19671
 
 
19672
 
 
19673
    AVAHI="enabled"
 
19674
 
 
19675
$as_echo "#define HAVE_AVAHI 1" >>confdefs.h
 
19676
 
 
19677
  fi
 
19678
fi
 
19679
 
 
19680
 if test "x$found_avahi" = "xyes"; then
 
19681
  HAVE_AVAHI_TRUE=
 
19682
  HAVE_AVAHI_FALSE='#'
 
19683
else
 
19684
  HAVE_AVAHI_TRUE='#'
 
19685
  HAVE_AVAHI_FALSE=
 
19686
fi
 
19687
 
 
19688
 
 
19689
 
 
19690
GSTREAMER="disabled"
 
19691
 
 
19692
# Check whether --enable-gstreamer was given.
 
19693
if test "${enable_gstreamer+set}" = set; then :
 
19694
  enableval=$enable_gstreamer; if test "x$enableval" = "xyes"; then
 
19695
  enable_gstreamer=yes
 
19696
fi
 
19697
fi
 
19698
 
 
19699
 
 
19700
if test "x$enable_gstreamer" = "xyes"; then
 
19701
  found_gstreamer=yes
 
19702
 
 
19703
pkg_failed=no
 
19704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTREAMER" >&5
 
19705
$as_echo_n "checking for GSTREAMER... " >&6; }
 
19706
 
 
19707
if test -n "$GSTREAMER_CFLAGS"; then
 
19708
    pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
 
19709
 elif test -n "$PKG_CONFIG"; then
 
19710
    if test -n "$PKG_CONFIG" && \
 
19711
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10\""; } >&5
 
19712
  ($PKG_CONFIG --exists --print-errors "gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10") 2>&5
 
19713
  ac_status=$?
 
19714
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19715
  test $ac_status = 0; }; then
 
19716
  pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10" 2>/dev/null`
 
19717
                      test "x$?" != "x0" && pkg_failed=yes
 
19718
else
 
19719
  pkg_failed=yes
 
19720
fi
 
19721
 else
 
19722
    pkg_failed=untried
 
19723
fi
 
19724
if test -n "$GSTREAMER_LIBS"; then
 
19725
    pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
 
19726
 elif test -n "$PKG_CONFIG"; then
 
19727
    if test -n "$PKG_CONFIG" && \
 
19728
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10\""; } >&5
 
19729
  ($PKG_CONFIG --exists --print-errors "gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10") 2>&5
 
19730
  ac_status=$?
 
19731
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19732
  test $ac_status = 0; }; then
 
19733
  pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10" 2>/dev/null`
 
19734
                      test "x$?" != "x0" && pkg_failed=yes
 
19735
else
 
19736
  pkg_failed=yes
 
19737
fi
 
19738
 else
 
19739
    pkg_failed=untried
 
19740
fi
 
19741
 
 
19742
 
 
19743
 
 
19744
if test $pkg_failed = yes; then
 
19745
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19746
$as_echo "no" >&6; }
 
19747
 
 
19748
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19749
        _pkg_short_errors_supported=yes
 
19750
else
 
19751
        _pkg_short_errors_supported=no
 
19752
fi
 
19753
        if test $_pkg_short_errors_supported = yes; then
 
19754
                GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10" 2>&1`
 
19755
        else
 
19756
                GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10" 2>&1`
 
19757
        fi
 
19758
        # Put the nasty error message in config.log where it belongs
 
19759
        echo "$GSTREAMER_PKG_ERRORS" >&5
 
19760
 
 
19761
        as_fn_error $? "Package requirements (gstreamer-plugins-base-0.10 >= 0.10.21.3 gstreamer-interfaces-0.10) were not met:
 
19762
 
 
19763
$GSTREAMER_PKG_ERRORS
 
19764
 
 
19765
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19766
installed software in a non-standard prefix.
 
19767
 
 
19768
Alternatively, you may set the environment variables GSTREAMER_CFLAGS
 
19769
and GSTREAMER_LIBS to avoid the need to call pkg-config.
 
19770
See the pkg-config man page for more details." "$LINENO" 5
 
19771
elif test $pkg_failed = untried; then
 
19772
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19773
$as_echo "no" >&6; }
 
19774
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19775
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19776
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
19777
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19778
path to pkg-config.
 
19779
 
 
19780
Alternatively, you may set the environment variables GSTREAMER_CFLAGS
 
19781
and GSTREAMER_LIBS to avoid the need to call pkg-config.
 
19782
See the pkg-config man page for more details.
 
19783
 
 
19784
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
19785
See \`config.log' for more details" "$LINENO" 5; }
 
19786
else
 
19787
        GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
 
19788
        GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
 
19789
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
19790
$as_echo "yes" >&6; }
 
19791
 
 
19792
fi
 
19793
 
 
19794
  if test "x$found_gstreamer" = "xno"; then
 
19795
    as_fn_error $? "Could not find GStreamer libraries" "$LINENO" 5
 
19796
  fi
 
19797
  GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstapp-0.10"
 
19798
 
 
19799
 
 
19800
  GSTREAMER="enabled"
 
19801
 
 
19802
$as_echo "#define HAVE_GSTREAMER 1" >>confdefs.h
 
19803
 
 
19804
fi
 
19805
 
 
19806
 if test "x$found_gstreamer" = "xyes"; then
 
19807
  HAVE_GSTREAMER_TRUE=
 
19808
  HAVE_GSTREAMER_FALSE='#'
 
19809
else
 
19810
  HAVE_GSTREAMER_TRUE='#'
 
19811
  HAVE_GSTREAMER_FALSE=
 
19812
fi
 
19813
 
 
19814
 
 
19815
 
 
19816
KDE="disabled"
 
19817
 
 
19818
# Check whether --enable-kde was given.
 
19819
if test "${enable_kde+set}" = set; then :
 
19820
  enableval=$enable_kde; if test "x$enableval" = "xyes"; then
 
19821
  enable_kde=yes
 
19822
fi
 
19823
fi
 
19824
 
 
19825
 
 
19826
if test "x$enable_kde" = "xyes"; then
 
19827
 
 
19828
 
 
19829
pkg_failed=no
 
19830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KDE" >&5
 
19831
$as_echo_n "checking for KDE... " >&6; }
 
19832
 
 
19833
if test -n "$KDE_CFLAGS"; then
 
19834
    pkg_cv_KDE_CFLAGS="$KDE_CFLAGS"
 
19835
 elif test -n "$PKG_CONFIG"; then
 
19836
    if test -n "$PKG_CONFIG" && \
 
19837
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
 
19838
  ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
 
19839
  ac_status=$?
 
19840
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19841
  test $ac_status = 0; }; then
 
19842
  pkg_cv_KDE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null`
 
19843
                      test "x$?" != "x0" && pkg_failed=yes
 
19844
else
 
19845
  pkg_failed=yes
 
19846
fi
 
19847
 else
 
19848
    pkg_failed=untried
 
19849
fi
 
19850
if test -n "$KDE_LIBS"; then
 
19851
    pkg_cv_KDE_LIBS="$KDE_LIBS"
 
19852
 elif test -n "$PKG_CONFIG"; then
 
19853
    if test -n "$PKG_CONFIG" && \
 
19854
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
 
19855
  ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
 
19856
  ac_status=$?
 
19857
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19858
  test $ac_status = 0; }; then
 
19859
  pkg_cv_KDE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null`
 
19860
                      test "x$?" != "x0" && pkg_failed=yes
 
19861
else
 
19862
  pkg_failed=yes
 
19863
fi
 
19864
 else
 
19865
    pkg_failed=untried
 
19866
fi
 
19867
 
 
19868
 
 
19869
 
 
19870
if test $pkg_failed = yes; then
 
19871
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19872
$as_echo "no" >&6; }
 
19873
 
 
19874
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19875
        _pkg_short_errors_supported=yes
 
19876
else
 
19877
        _pkg_short_errors_supported=no
 
19878
fi
 
19879
        if test $_pkg_short_errors_supported = yes; then
 
19880
                KDE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore" 2>&1`
 
19881
        else
 
19882
                KDE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore" 2>&1`
 
19883
        fi
 
19884
        # Put the nasty error message in config.log where it belongs
 
19885
        echo "$KDE_PKG_ERRORS" >&5
 
19886
 
 
19887
        found_kde=no
 
19888
elif test $pkg_failed = untried; then
 
19889
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19890
$as_echo "no" >&6; }
 
19891
        found_kde=no
 
19892
else
 
19893
        KDE_CFLAGS=$pkg_cv_KDE_CFLAGS
 
19894
        KDE_LIBS=$pkg_cv_KDE_LIBS
 
19895
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
19896
$as_echo "yes" >&6; }
 
19897
        found_kde=yes
 
19898
fi
 
19899
 
 
19900
  CPPFLAGS_save="$CPPFLAGS"
 
19901
  LIBS_save="$LIBS"
 
19902
  CPPFLAGS="$CPPFLAGS $KDE_CFLAGS"
 
19903
  LIBS="$LIBS $KDE_LIBS"
 
19904
  ac_fn_cxx_check_header_mongrel "$LINENO" "kapplication.h" "ac_cv_header_kapplication_h" "$ac_includes_default"
 
19905
if test "x$ac_cv_header_kapplication_h" = xyes; then :
 
19906
 
 
19907
else
 
19908
  found_kde=no
 
19909
fi
 
19910
 
 
19911
 
 
19912
  CPPFLAGS="$CPPFLAGS_save"
 
19913
  LIBS="$LIBS_save"
 
19914
  if test "x$found_kde" = "xno"; then
 
19915
    as_fn_error $? "Could not find KDE headers" "$LINENO" 5
 
19916
  fi
 
19917
 
 
19918
  LIBS_save="$LIBS"
 
19919
  CPPFLAGS="$CPPFLAGS $KDE_CFLAGS"
 
19920
  LIBS="$LIBS $KDE_LIBS"
 
19921
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ki18n in -lkdeui" >&5
 
19922
$as_echo_n "checking for ki18n in -lkdeui... " >&6; }
 
19923
if ${ac_cv_lib_kdeui_ki18n+:} false; then :
 
19924
  $as_echo_n "(cached) " >&6
 
19925
else
 
19926
  ac_check_lib_save_LIBS=$LIBS
 
19927
LIBS="-lkdeui  $LIBS"
 
19928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19929
/* end confdefs.h.  */
 
19930
 
 
19931
/* Override any GCC internal prototype to avoid an error.
 
19932
   Use char because int might match the return type of a GCC
 
19933
   builtin and then its argument prototype would still apply.  */
 
19934
#ifdef __cplusplus
 
19935
extern "C"
 
19936
#endif
 
19937
char ki18n ();
 
19938
int
 
19939
main ()
 
19940
{
 
19941
return ki18n ();
 
19942
  ;
 
19943
  return 0;
 
19944
}
 
19945
_ACEOF
 
19946
if ac_fn_cxx_try_link "$LINENO"; then :
 
19947
  ac_cv_lib_kdeui_ki18n=yes
 
19948
else
 
19949
  ac_cv_lib_kdeui_ki18n=no
 
19950
fi
 
19951
rm -f core conftest.err conftest.$ac_objext \
 
19952
    conftest$ac_exeext conftest.$ac_ext
 
19953
LIBS=$ac_check_lib_save_LIBS
 
19954
fi
 
19955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kdeui_ki18n" >&5
 
19956
$as_echo "$ac_cv_lib_kdeui_ki18n" >&6; }
 
19957
if test "x$ac_cv_lib_kdeui_ki18n" = xyes; then :
 
19958
  found_kde=no
 
19959
fi
 
19960
 
 
19961
  CPPFLAGS="$CPPFLAGS_save"
 
19962
  LIBS="$LIBS_save"
 
19963
  if test "x$found_kde" = "xno"; then
 
19964
    as_fn_error $? "Could not find KDE libraries" "$LINENO" 5
 
19965
  fi
 
19966
 
 
19967
  KDE_LIBS="$KDE_LIBS -lkdeui"
 
19968
 
 
19969
 
 
19970
 
 
19971
  KDE="enabled"
 
19972
 
 
19973
$as_echo "#define HAVE_KDE 1" >>confdefs.h
 
19974
 
 
19975
fi
 
19976
 
 
19977
 if test "x$found_kde" = "xyes"; then
 
19978
  HAVE_KDE_TRUE=
 
19979
  HAVE_KDE_FALSE='#'
 
19980
else
 
19981
  HAVE_KDE_TRUE='#'
 
19982
  HAVE_KDE_FALSE=
 
19983
fi
 
19984
 
 
19985
 
 
19986
KAB="disabled"
 
19987
 
 
19988
# Check whether --enable-kab was given.
 
19989
if test "${enable_kab+set}" = set; then :
 
19990
  enableval=$enable_kab; if test "x$enableval" = "xyes"; then
 
19991
  enable_kab=yes
 
19992
fi
 
19993
fi
 
19994
 
 
19995
 
 
19996
if test "x$enable_kab" = "xyes"; then
 
19997
 
 
19998
  if test "x$found_kde" != "xyes"; then
 
19999
    as_fn_error $? "No kab without kde: --enable-kde" "$LINENO" 5
 
20000
  fi
 
20001
  found_kab=yes
 
20002
  KAB_CFLAGS="-I/usr/include/qt4"
 
20003
  KAB_LIBS="-lQtCore -lkabc"
 
20004
  CPPFLAGS_save="$CPPFLAGS"
 
20005
  LIBS_save="$LIBS"
 
20006
  CPPFLAGS="$CPPFLAGS $KAB_CFLAGS"
 
20007
  LIBS="$LIBS $KAB_LIBS"
 
20008
  ac_fn_cxx_check_header_mongrel "$LINENO" "kabc/addressee.h" "ac_cv_header_kabc_addressee_h" "$ac_includes_default"
 
20009
if test "x$ac_cv_header_kabc_addressee_h" = xyes; then :
 
20010
 
 
20011
else
 
20012
  found_kab=no
 
20013
fi
 
20014
 
 
20015
 
 
20016
  CPPFLAGS="$CPPFLAGS_save"
 
20017
  LIBS="$LIBS_save"
 
20018
  if test "x$found_kab" = "xno"; then
 
20019
    as_fn_error $? "We need this header!" "$LINENO" 5
 
20020
  fi
 
20021
 
 
20022
 
 
20023
  KAB="enabled"
 
20024
 
 
20025
$as_echo "#define HAVE_KAB 1" >>confdefs.h
 
20026
 
 
20027
fi
 
20028
 
 
20029
 if test "x$found_kab" = "xyes"; then
 
20030
  HAVE_KAB_TRUE=
 
20031
  HAVE_KAB_FALSE='#'
 
20032
else
 
20033
  HAVE_KAB_TRUE='#'
 
20034
  HAVE_KAB_FALSE=
 
20035
fi
 
20036
 
 
20037
 
 
20038
XCAP="disabled"
 
20039
 
 
20040
# Check whether --enable-xcap was given.
 
20041
if test "${enable_xcap+set}" = set; then :
 
20042
  enableval=$enable_xcap; if test "x$enableval" = "xyes"; then
 
20043
  enable_xcap=yes
 
20044
fi
 
20045
fi
 
20046
 
 
20047
 
 
20048
if test "x$enable_xcap" = "xyes"; then
 
20049
 
 
20050
pkg_failed=no
 
20051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUP" >&5
 
20052
$as_echo_n "checking for SOUP... " >&6; }
 
20053
 
 
20054
if test -n "$SOUP_CFLAGS"; then
 
20055
    pkg_cv_SOUP_CFLAGS="$SOUP_CFLAGS"
 
20056
 elif test -n "$PKG_CONFIG"; then
 
20057
    if test -n "$PKG_CONFIG" && \
 
20058
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
 
20059
  ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
 
20060
  ac_status=$?
 
20061
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20062
  test $ac_status = 0; }; then
 
20063
  pkg_cv_SOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
 
20064
                      test "x$?" != "x0" && pkg_failed=yes
 
20065
else
 
20066
  pkg_failed=yes
 
20067
fi
 
20068
 else
 
20069
    pkg_failed=untried
 
20070
fi
 
20071
if test -n "$SOUP_LIBS"; then
 
20072
    pkg_cv_SOUP_LIBS="$SOUP_LIBS"
 
20073
 elif test -n "$PKG_CONFIG"; then
 
20074
    if test -n "$PKG_CONFIG" && \
 
20075
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
 
20076
  ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
 
20077
  ac_status=$?
 
20078
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20079
  test $ac_status = 0; }; then
 
20080
  pkg_cv_SOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
 
20081
                      test "x$?" != "x0" && pkg_failed=yes
 
20082
else
 
20083
  pkg_failed=yes
 
20084
fi
 
20085
 else
 
20086
    pkg_failed=untried
 
20087
fi
 
20088
 
 
20089
 
 
20090
 
 
20091
if test $pkg_failed = yes; then
 
20092
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20093
$as_echo "no" >&6; }
 
20094
 
 
20095
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20096
        _pkg_short_errors_supported=yes
 
20097
else
 
20098
        _pkg_short_errors_supported=no
 
20099
fi
 
20100
        if test $_pkg_short_errors_supported = yes; then
 
20101
                SOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
 
20102
        else
 
20103
                SOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
 
20104
        fi
 
20105
        # Put the nasty error message in config.log where it belongs
 
20106
        echo "$SOUP_PKG_ERRORS" >&5
 
20107
 
 
20108
        as_fn_error $? "Package requirements (libsoup-2.4) were not met:
 
20109
 
 
20110
$SOUP_PKG_ERRORS
 
20111
 
 
20112
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20113
installed software in a non-standard prefix.
 
20114
 
 
20115
Alternatively, you may set the environment variables SOUP_CFLAGS
 
20116
and SOUP_LIBS to avoid the need to call pkg-config.
 
20117
See the pkg-config man page for more details." "$LINENO" 5
 
20118
elif test $pkg_failed = untried; then
 
20119
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20120
$as_echo "no" >&6; }
 
20121
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
20122
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
20123
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
20124
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20125
path to pkg-config.
 
20126
 
 
20127
Alternatively, you may set the environment variables SOUP_CFLAGS
 
20128
and SOUP_LIBS to avoid the need to call pkg-config.
 
20129
See the pkg-config man page for more details.
 
20130
 
 
20131
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
20132
See \`config.log' for more details" "$LINENO" 5; }
 
20133
else
 
20134
        SOUP_CFLAGS=$pkg_cv_SOUP_CFLAGS
 
20135
        SOUP_LIBS=$pkg_cv_SOUP_LIBS
 
20136
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20137
$as_echo "yes" >&6; }
 
20138
 
 
20139
fi
 
20140
   found_xcap=yes
 
20141
   XCAP="enabled"
 
20142
 
 
20143
 
 
20144
 
 
20145
$as_echo "#define HAVE_XCAP 1" >>confdefs.h
 
20146
 
 
20147
fi
 
20148
 
 
20149
 if test "x$found_xcap" = "xyes"; then
 
20150
  HAVE_XCAP_TRUE=
 
20151
  HAVE_XCAP_FALSE='#'
 
20152
else
 
20153
  HAVE_XCAP_TRUE='#'
 
20154
  HAVE_XCAP_FALSE=
 
20155
fi
 
20156
 
 
20157
 
 
20158
LOUDMOUTH="disabled"
 
20159
 
 
20160
# Check whether --enable-loudmouth was given.
 
20161
if test "${enable_loudmouth+set}" = set; then :
 
20162
  enableval=$enable_loudmouth; if test "x$enableval" = "xyes"; then
 
20163
  enable_loudmouth=yes
 
20164
fi
 
20165
fi
 
20166
 
 
20167
 
 
20168
if test "x$enable_loudmouth" = "xyes"; then
 
20169
 
 
20170
pkg_failed=no
 
20171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOUDMOUTH" >&5
 
20172
$as_echo_n "checking for LOUDMOUTH... " >&6; }
 
20173
 
 
20174
if test -n "$LOUDMOUTH_CFLAGS"; then
 
20175
    pkg_cv_LOUDMOUTH_CFLAGS="$LOUDMOUTH_CFLAGS"
 
20176
 elif test -n "$PKG_CONFIG"; then
 
20177
    if test -n "$PKG_CONFIG" && \
 
20178
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"loudmouth-1.0\""; } >&5
 
20179
  ($PKG_CONFIG --exists --print-errors "loudmouth-1.0") 2>&5
 
20180
  ac_status=$?
 
20181
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20182
  test $ac_status = 0; }; then
 
20183
  pkg_cv_LOUDMOUTH_CFLAGS=`$PKG_CONFIG --cflags "loudmouth-1.0" 2>/dev/null`
 
20184
                      test "x$?" != "x0" && pkg_failed=yes
 
20185
else
 
20186
  pkg_failed=yes
 
20187
fi
 
20188
 else
 
20189
    pkg_failed=untried
 
20190
fi
 
20191
if test -n "$LOUDMOUTH_LIBS"; then
 
20192
    pkg_cv_LOUDMOUTH_LIBS="$LOUDMOUTH_LIBS"
 
20193
 elif test -n "$PKG_CONFIG"; then
 
20194
    if test -n "$PKG_CONFIG" && \
 
20195
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"loudmouth-1.0\""; } >&5
 
20196
  ($PKG_CONFIG --exists --print-errors "loudmouth-1.0") 2>&5
 
20197
  ac_status=$?
 
20198
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20199
  test $ac_status = 0; }; then
 
20200
  pkg_cv_LOUDMOUTH_LIBS=`$PKG_CONFIG --libs "loudmouth-1.0" 2>/dev/null`
 
20201
                      test "x$?" != "x0" && pkg_failed=yes
 
20202
else
 
20203
  pkg_failed=yes
 
20204
fi
 
20205
 else
 
20206
    pkg_failed=untried
 
20207
fi
 
20208
 
 
20209
 
 
20210
 
 
20211
if test $pkg_failed = yes; then
 
20212
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20213
$as_echo "no" >&6; }
 
20214
 
 
20215
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20216
        _pkg_short_errors_supported=yes
 
20217
else
 
20218
        _pkg_short_errors_supported=no
 
20219
fi
 
20220
        if test $_pkg_short_errors_supported = yes; then
 
20221
                LOUDMOUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "loudmouth-1.0" 2>&1`
 
20222
        else
 
20223
                LOUDMOUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "loudmouth-1.0" 2>&1`
 
20224
        fi
 
20225
        # Put the nasty error message in config.log where it belongs
 
20226
        echo "$LOUDMOUTH_PKG_ERRORS" >&5
 
20227
 
 
20228
        as_fn_error $? "Package requirements (loudmouth-1.0) were not met:
 
20229
 
 
20230
$LOUDMOUTH_PKG_ERRORS
 
20231
 
 
20232
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20233
installed software in a non-standard prefix.
 
20234
 
 
20235
Alternatively, you may set the environment variables LOUDMOUTH_CFLAGS
 
20236
and LOUDMOUTH_LIBS to avoid the need to call pkg-config.
 
20237
See the pkg-config man page for more details." "$LINENO" 5
 
20238
elif test $pkg_failed = untried; then
 
20239
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20240
$as_echo "no" >&6; }
 
20241
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
20242
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
20243
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
20244
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20245
path to pkg-config.
 
20246
 
 
20247
Alternatively, you may set the environment variables LOUDMOUTH_CFLAGS
 
20248
and LOUDMOUTH_LIBS to avoid the need to call pkg-config.
 
20249
See the pkg-config man page for more details.
 
20250
 
 
20251
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
20252
See \`config.log' for more details" "$LINENO" 5; }
 
20253
else
 
20254
        LOUDMOUTH_CFLAGS=$pkg_cv_LOUDMOUTH_CFLAGS
 
20255
        LOUDMOUTH_LIBS=$pkg_cv_LOUDMOUTH_LIBS
 
20256
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20257
$as_echo "yes" >&6; }
 
20258
 
 
20259
fi
 
20260
   found_loudmouth=yes
 
20261
   LOUDMOUTH="enabled"
 
20262
 
 
20263
 
 
20264
 
 
20265
$as_echo "#define HAVE_LOUDMOUTH 1" >>confdefs.h
 
20266
 
 
20267
fi
 
20268
 
 
20269
 if test "x$found_loudmouth" = "xyes"; then
 
20270
  HAVE_LOUDMOUTH_TRUE=
 
20271
  HAVE_LOUDMOUTH_FALSE='#'
 
20272
else
 
20273
  HAVE_LOUDMOUTH_TRUE='#'
 
20274
  HAVE_LOUDMOUTH_FALSE=
 
20275
fi
 
20276
 
 
20277
 
 
20278
 
 
20279
# GDU is disabled for Windows; help is generated separately manually in Makefile
 
20280
 
 
20281
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
20282
  AM_DEFAULT_VERBOSITY=1
 
20283
fi
 
20284
 
 
20285
 
 
20286
gdu_cv_version_required=0.3.2
 
20287
 
 
20288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gnome-doc-utils >= $gdu_cv_version_required" >&5
 
20289
$as_echo_n "checking gnome-doc-utils >= $gdu_cv_version_required... " >&6; }
 
20290
if test -n "$PKG_CONFIG" && \
 
20291
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-doc-utils >= \$gdu_cv_version_required\""; } >&5
 
20292
  ($PKG_CONFIG --exists --print-errors "gnome-doc-utils >= $gdu_cv_version_required") 2>&5
 
20293
  ac_status=$?
 
20294
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20295
  test $ac_status = 0; }; then
 
20296
  gdu_cv_have_gdu=yes
 
20297
else
 
20298
  gdu_cv_have_gdu=no
 
20299
fi
 
20300
 
 
20301
if test "$gdu_cv_have_gdu" = "yes"; then
 
20302
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20303
$as_echo "yes" >&6; }
 
20304
        :
 
20305
else
 
20306
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20307
$as_echo "no" >&6; }
 
20308
        GDI=no
 
20309
fi
 
20310
 
 
20311
 
 
20312
 
 
20313
# Check whether --with-help-dir was given.
 
20314
if test "${with_help_dir+set}" = set; then :
 
20315
  withval=$with_help_dir;
 
20316
else
 
20317
  with_help_dir='${datadir}/gnome/help'
 
20318
fi
 
20319
 
 
20320
HELP_DIR="$with_help_dir"
 
20321
 
 
20322
 
 
20323
 
 
20324
# Check whether --with-omf-dir was given.
 
20325
if test "${with_omf_dir+set}" = set; then :
 
20326
  withval=$with_omf_dir;
 
20327
else
 
20328
  with_omf_dir='${datadir}/omf'
 
20329
fi
 
20330
 
 
20331
OMF_DIR="$with_omf_dir"
 
20332
 
 
20333
 
 
20334
 
 
20335
# Check whether --with-help-formats was given.
 
20336
if test "${with_help_formats+set}" = set; then :
 
20337
  withval=$with_help_formats;
 
20338
else
 
20339
  with_help_formats=''
 
20340
fi
 
20341
 
 
20342
DOC_USER_FORMATS="$with_help_formats"
 
20343
 
 
20344
 
 
20345
# Check whether --enable-scrollkeeper was given.
 
20346
if test "${enable_scrollkeeper+set}" = set; then :
 
20347
  enableval=$enable_scrollkeeper;
 
20348
else
 
20349
  enable_scrollkeeper=yes
 
20350
fi
 
20351
 
 
20352
 if test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"; then
 
20353
  ENABLE_SK_TRUE=
 
20354
  ENABLE_SK_FALSE='#'
 
20355
else
 
20356
  ENABLE_SK_TRUE='#'
 
20357
  ENABLE_SK_FALSE=
 
20358
fi
 
20359
 
 
20360
 
 
20361
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
20362
 
 
20363
 
 
20364
 if test "$gdu_cv_have_gdu" = "yes"; then
 
20365
  HAVE_GNOME_DOC_UTILS_TRUE=
 
20366
  HAVE_GNOME_DOC_UTILS_FALSE='#'
 
20367
else
 
20368
  HAVE_GNOME_DOC_UTILS_TRUE='#'
 
20369
  HAVE_GNOME_DOC_UTILS_FALSE=
 
20370
fi
 
20371
 
 
20372
 
 
20373
 
 
20374
if test "x${gm_platform}" != "xmingw" ; then
 
20375
  GDU="disabled"
 
20376
  # Check whether --enable-gdu was given.
 
20377
if test "${enable_gdu+set}" = set; then :
 
20378
  enableval=$enable_gdu; if test "x$enableval" = "xyes"; then
 
20379
  enable_gdu=yes
 
20380
fi
 
20381
else
 
20382
  enable_gdu=yes
 
20383
fi
 
20384
 
 
20385
  if test "x$enable_gdu" = "xyes"; then
 
20386
    # Extract the first word of "scrollkeeper-config", so it can be a program name with args.
 
20387
set dummy scrollkeeper-config; ac_word=$2
 
20388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
20389
$as_echo_n "checking for $ac_word... " >&6; }
 
20390
if ${ac_cv_path_SK_CONFIG+:} false; then :
 
20391
  $as_echo_n "(cached) " >&6
 
20392
else
 
20393
  case $SK_CONFIG in
 
20394
  [\\/]* | ?:[\\/]*)
 
20395
  ac_cv_path_SK_CONFIG="$SK_CONFIG" # Let the user override the test with a path.
 
20396
  ;;
 
20397
  *)
 
20398
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20399
for as_dir in $PATH
 
20400
do
 
20401
  IFS=$as_save_IFS
 
20402
  test -z "$as_dir" && as_dir=.
 
20403
    for ac_exec_ext in '' $ac_executable_extensions; do
 
20404
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20405
    ac_cv_path_SK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20406
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20407
    break 2
 
20408
  fi
 
20409
done
 
20410
  done
 
20411
IFS=$as_save_IFS
 
20412
 
 
20413
  test -z "$ac_cv_path_SK_CONFIG" && ac_cv_path_SK_CONFIG="no"
 
20414
  ;;
 
20415
esac
 
20416
fi
 
20417
SK_CONFIG=$ac_cv_path_SK_CONFIG
 
20418
if test -n "$SK_CONFIG"; then
 
20419
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SK_CONFIG" >&5
 
20420
$as_echo "$SK_CONFIG" >&6; }
 
20421
else
 
20422
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20423
$as_echo "no" >&6; }
 
20424
fi
 
20425
 
 
20426
 
 
20427
    if test "x$SK_CONFIG" != "xno" -a "x$GDI" != "xno"; then
 
20428
      GDU="enabled"
 
20429
 
 
20430
$as_echo "#define HAVE_GNOME_DOC_UTILS 1" >>confdefs.h
 
20431
 
 
20432
    fi
 
20433
  fi
 
20434
fi
 
20435
 
 
20436
 if test "x${enable_gdu}" = "xyes"; then
 
20437
  HAVE_GNOME_DOC_UTILS_TRUE=
 
20438
  HAVE_GNOME_DOC_UTILS_FALSE='#'
 
20439
else
 
20440
  HAVE_GNOME_DOC_UTILS_TRUE='#'
 
20441
  HAVE_GNOME_DOC_UTILS_FALSE=
 
20442
fi
 
20443
 
 
20444
 
 
20445
 
 
20446
 
 
20447
pkg_failed=no
 
20448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTLIB" >&5
 
20449
$as_echo_n "checking for PTLIB... " >&6; }
 
20450
 
 
20451
if test -n "$PTLIB_CFLAGS"; then
 
20452
    pkg_cv_PTLIB_CFLAGS="$PTLIB_CFLAGS"
 
20453
 elif test -n "$PKG_CONFIG"; then
 
20454
    if test -n "$PKG_CONFIG" && \
 
20455
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ptlib >= \${PTLIB_REC_VERSION}\""; } >&5
 
20456
  ($PKG_CONFIG --exists --print-errors "ptlib >= ${PTLIB_REC_VERSION}") 2>&5
 
20457
  ac_status=$?
 
20458
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20459
  test $ac_status = 0; }; then
 
20460
  pkg_cv_PTLIB_CFLAGS=`$PKG_CONFIG --cflags "ptlib >= ${PTLIB_REC_VERSION}" 2>/dev/null`
 
20461
                      test "x$?" != "x0" && pkg_failed=yes
 
20462
else
 
20463
  pkg_failed=yes
 
20464
fi
 
20465
 else
 
20466
    pkg_failed=untried
 
20467
fi
 
20468
if test -n "$PTLIB_LIBS"; then
 
20469
    pkg_cv_PTLIB_LIBS="$PTLIB_LIBS"
 
20470
 elif test -n "$PKG_CONFIG"; then
 
20471
    if test -n "$PKG_CONFIG" && \
 
20472
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ptlib >= \${PTLIB_REC_VERSION}\""; } >&5
 
20473
  ($PKG_CONFIG --exists --print-errors "ptlib >= ${PTLIB_REC_VERSION}") 2>&5
 
20474
  ac_status=$?
 
20475
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20476
  test $ac_status = 0; }; then
 
20477
  pkg_cv_PTLIB_LIBS=`$PKG_CONFIG --libs "ptlib >= ${PTLIB_REC_VERSION}" 2>/dev/null`
 
20478
                      test "x$?" != "x0" && pkg_failed=yes
 
20479
else
 
20480
  pkg_failed=yes
 
20481
fi
 
20482
 else
 
20483
    pkg_failed=untried
 
20484
fi
 
20485
 
 
20486
 
 
20487
 
 
20488
if test $pkg_failed = yes; then
 
20489
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20490
$as_echo "no" >&6; }
 
20491
 
 
20492
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20493
        _pkg_short_errors_supported=yes
 
20494
else
 
20495
        _pkg_short_errors_supported=no
 
20496
fi
 
20497
        if test $_pkg_short_errors_supported = yes; then
 
20498
                PTLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ptlib >= ${PTLIB_REC_VERSION}" 2>&1`
 
20499
        else
 
20500
                PTLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ptlib >= ${PTLIB_REC_VERSION}" 2>&1`
 
20501
        fi
 
20502
        # Put the nasty error message in config.log where it belongs
 
20503
        echo "$PTLIB_PKG_ERRORS" >&5
 
20504
 
 
20505
        as_fn_error $? "Package requirements (ptlib >= ${PTLIB_REC_VERSION}) were not met:
 
20506
 
 
20507
$PTLIB_PKG_ERRORS
 
20508
 
 
20509
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20510
installed software in a non-standard prefix.
 
20511
 
 
20512
Alternatively, you may set the environment variables PTLIB_CFLAGS
 
20513
and PTLIB_LIBS to avoid the need to call pkg-config.
 
20514
See the pkg-config man page for more details." "$LINENO" 5
 
20515
elif test $pkg_failed = untried; then
 
20516
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20517
$as_echo "no" >&6; }
 
20518
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
20519
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
20520
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
20521
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20522
path to pkg-config.
 
20523
 
 
20524
Alternatively, you may set the environment variables PTLIB_CFLAGS
 
20525
and PTLIB_LIBS to avoid the need to call pkg-config.
 
20526
See the pkg-config man page for more details.
 
20527
 
 
20528
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
20529
See \`config.log' for more details" "$LINENO" 5; }
 
20530
else
 
20531
        PTLIB_CFLAGS=$pkg_cv_PTLIB_CFLAGS
 
20532
        PTLIB_LIBS=$pkg_cv_PTLIB_LIBS
 
20533
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20534
$as_echo "yes" >&6; }
 
20535
 
 
20536
fi
 
20537
 
 
20538
pkg_failed=no
 
20539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL" >&5
 
20540
$as_echo_n "checking for OPAL... " >&6; }
 
20541
 
 
20542
if test -n "$OPAL_CFLAGS"; then
 
20543
    pkg_cv_OPAL_CFLAGS="$OPAL_CFLAGS"
 
20544
 elif test -n "$PKG_CONFIG"; then
 
20545
    if test -n "$PKG_CONFIG" && \
 
20546
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opal >= \${OPAL_REC_VERSION}\""; } >&5
 
20547
  ($PKG_CONFIG --exists --print-errors "opal >= ${OPAL_REC_VERSION}") 2>&5
 
20548
  ac_status=$?
 
20549
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20550
  test $ac_status = 0; }; then
 
20551
  pkg_cv_OPAL_CFLAGS=`$PKG_CONFIG --cflags "opal >= ${OPAL_REC_VERSION}" 2>/dev/null`
 
20552
                      test "x$?" != "x0" && pkg_failed=yes
 
20553
else
 
20554
  pkg_failed=yes
 
20555
fi
 
20556
 else
 
20557
    pkg_failed=untried
 
20558
fi
 
20559
if test -n "$OPAL_LIBS"; then
 
20560
    pkg_cv_OPAL_LIBS="$OPAL_LIBS"
 
20561
 elif test -n "$PKG_CONFIG"; then
 
20562
    if test -n "$PKG_CONFIG" && \
 
20563
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opal >= \${OPAL_REC_VERSION}\""; } >&5
 
20564
  ($PKG_CONFIG --exists --print-errors "opal >= ${OPAL_REC_VERSION}") 2>&5
 
20565
  ac_status=$?
 
20566
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20567
  test $ac_status = 0; }; then
 
20568
  pkg_cv_OPAL_LIBS=`$PKG_CONFIG --libs "opal >= ${OPAL_REC_VERSION}" 2>/dev/null`
 
20569
                      test "x$?" != "x0" && pkg_failed=yes
 
20570
else
 
20571
  pkg_failed=yes
 
20572
fi
 
20573
 else
 
20574
    pkg_failed=untried
 
20575
fi
 
20576
 
 
20577
 
 
20578
 
 
20579
if test $pkg_failed = yes; then
 
20580
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20581
$as_echo "no" >&6; }
 
20582
 
 
20583
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20584
        _pkg_short_errors_supported=yes
 
20585
else
 
20586
        _pkg_short_errors_supported=no
 
20587
fi
 
20588
        if test $_pkg_short_errors_supported = yes; then
 
20589
                OPAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opal >= ${OPAL_REC_VERSION}" 2>&1`
 
20590
        else
 
20591
                OPAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opal >= ${OPAL_REC_VERSION}" 2>&1`
 
20592
        fi
 
20593
        # Put the nasty error message in config.log where it belongs
 
20594
        echo "$OPAL_PKG_ERRORS" >&5
 
20595
 
 
20596
        as_fn_error $? "Package requirements (opal >= ${OPAL_REC_VERSION}) were not met:
 
20597
 
 
20598
$OPAL_PKG_ERRORS
 
20599
 
 
20600
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20601
installed software in a non-standard prefix.
 
20602
 
 
20603
Alternatively, you may set the environment variables OPAL_CFLAGS
 
20604
and OPAL_LIBS to avoid the need to call pkg-config.
 
20605
See the pkg-config man page for more details." "$LINENO" 5
 
20606
elif test $pkg_failed = untried; then
 
20607
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20608
$as_echo "no" >&6; }
 
20609
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
20610
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
20611
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
20612
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20613
path to pkg-config.
 
20614
 
 
20615
Alternatively, you may set the environment variables OPAL_CFLAGS
 
20616
and OPAL_LIBS to avoid the need to call pkg-config.
 
20617
See the pkg-config man page for more details.
 
20618
 
 
20619
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
20620
See \`config.log' for more details" "$LINENO" 5; }
 
20621
else
 
20622
        OPAL_CFLAGS=$pkg_cv_OPAL_CFLAGS
 
20623
        OPAL_LIBS=$pkg_cv_OPAL_LIBS
 
20624
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20625
$as_echo "yes" >&6; }
 
20626
 
 
20627
fi
 
20628
 
 
20629
# expat is mandatory for presence (at least)
 
20630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTLIB support for expat" >&5
 
20631
$as_echo_n "checking for PTLIB support for expat... " >&6; }
 
20632
PTLIB_EXPAT=`$PKG_CONFIG ptlib --variable=PTLIB_EXPAT`
 
20633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_EXPAT" >&5
 
20634
$as_echo "$PTLIB_EXPAT" >&6; }
 
20635
if test "x$PTLIB_EXPAT" != "xyes"; then
 
20636
  as_fn_error $? "You need ptlib expat support to compile ekiga" "$LINENO" 5
 
20637
fi
 
20638
 
 
20639
SUFFIX=
 
20640
# Check whether --enable-opal-debug was given.
 
20641
if test "${enable_opal_debug+set}" = set; then :
 
20642
  enableval=$enable_opal_debug; if test "x$enableval" = "xyes"; then
 
20643
                SUFFIX="_d"
 
20644
              fi
 
20645
fi
 
20646
 
 
20647
 
 
20648
# Check whether --enable-static-libs was given.
 
20649
if test "${enable_static_libs+set}" = set; then :
 
20650
  enableval=$enable_static_libs; if test "x$enableval" = "xyes"; then
 
20651
                SUFFIX="${SUFFIX}_s"
 
20652
               fi
 
20653
 
 
20654
fi
 
20655
 
 
20656
 
 
20657
if test "x$SUFFIX" != x; then
 
20658
    OPAL_LIBS=`$PKG_CONFIG opal --define-variable=suffix=$SUFFIX --libs`
 
20659
    PTLIB_LIBS=`$PKG_CONFIG ptlib --define-variable=suffix=$SUFFIX --libs`
 
20660
fi
 
20661
 
 
20662
 
 
20663
 
 
20664
 
 
20665
 
 
20666
 
 
20667
# check for H.323 support
 
20668
# Check whether --enable-h323 was given.
 
20669
if test "${enable_h323+set}" = set; then :
 
20670
  enableval=$enable_h323; enable_h323=$enableval
 
20671
fi
 
20672
 
 
20673
if test x$enable_h323 != xno; then
 
20674
    H323=`$PKG_CONFIG --variable=h323 opal`
 
20675
  if test "x$H323" = "x1"; then
 
20676
    H323="yes"
 
20677
  else
 
20678
    H323=`$PKG_CONFIG --variable=OPAL_H323 opal`
 
20679
  fi
 
20680
 
 
20681
  if test "x$H323" = "xyes"; then
 
20682
 
 
20683
$as_echo "#define HAVE_H323 1" >>confdefs.h
 
20684
 
 
20685
  else
 
20686
    if test x$enable_h323 = xyes; then
 
20687
      as_fn_error $? "To enable H.323 support you need to re-install opal with H.323 support" "$LINENO" 5
 
20688
    fi
 
20689
  fi
 
20690
else
 
20691
  H323="no"
 
20692
fi
 
20693
 
 
20694
 if test "x${H323}" = "xyes"; then
 
20695
  HAVE_H323_TRUE=
 
20696
  HAVE_H323_FALSE='#'
 
20697
else
 
20698
  HAVE_H323_TRUE='#'
 
20699
  HAVE_H323_FALSE=
 
20700
fi
 
20701
 
 
20702
 
 
20703
# check for mandatory SIP support in opal
 
20704
SIP=`$PKG_CONFIG --variable=sip opal`
 
20705
if test "x$SIP" = "x1"; then
 
20706
  SIP="yes"
 
20707
else
 
20708
  SIP=`$PKG_CONFIG --variable=OPAL_SIP opal`
 
20709
fi
 
20710
 
 
20711
if test "x$SIP" != "xyes"; then
 
20712
  as_fn_error $? "You have to compile opal with SIP support. SIP support is mandatory." "$LINENO" 5
 
20713
fi
 
20714
 
 
20715
 
 
20716
has_debug=
 
20717
# Check whether --enable-debug was given.
 
20718
if test "${enable_debug+set}" = set; then :
 
20719
  enableval=$enable_debug; if test "x$enableval" = "xyes"; then
 
20720
                CPPFLAGS="-DDEBUG $CPPFLAGS"
 
20721
                has_debug="yes"
 
20722
              fi
 
20723
fi
 
20724
 
 
20725
 if test "x$has_debug" = "xyes"; then
 
20726
  DEBUG_TRUE=
 
20727
  DEBUG_FALSE='#'
 
20728
else
 
20729
  DEBUG_TRUE='#'
 
20730
  DEBUG_FALSE=
 
20731
fi
 
20732
 
 
20733
 
 
20734
 
 
20735
GETTEXT_PACKAGE=ekiga
 
20736
  # needed by gettext in po directory
 
20737
 
 
20738
cat >>confdefs.h <<_ACEOF
 
20739
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
20740
_ACEOF
 
20741
 
 
20742
 
 
20743
   for ac_header in locale.h
 
20744
do :
 
20745
  ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
 
20746
if test "x$ac_cv_header_locale_h" = xyes; then :
 
20747
  cat >>confdefs.h <<_ACEOF
 
20748
#define HAVE_LOCALE_H 1
 
20749
_ACEOF
 
20750
 
 
20751
fi
 
20752
 
 
20753
done
 
20754
 
 
20755
    if test $ac_cv_header_locale_h = yes; then
 
20756
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
 
20757
$as_echo_n "checking for LC_MESSAGES... " >&6; }
 
20758
if ${am_cv_val_LC_MESSAGES+:} false; then :
 
20759
  $as_echo_n "(cached) " >&6
 
20760
else
 
20761
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20762
/* end confdefs.h.  */
 
20763
#include <locale.h>
 
20764
int
 
20765
main ()
 
20766
{
 
20767
return LC_MESSAGES
 
20768
  ;
 
20769
  return 0;
 
20770
}
 
20771
_ACEOF
 
20772
if ac_fn_cxx_try_link "$LINENO"; then :
 
20773
  am_cv_val_LC_MESSAGES=yes
 
20774
else
 
20775
  am_cv_val_LC_MESSAGES=no
 
20776
fi
 
20777
rm -f core conftest.err conftest.$ac_objext \
 
20778
    conftest$ac_exeext conftest.$ac_ext
 
20779
fi
 
20780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
 
20781
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
 
20782
    if test $am_cv_val_LC_MESSAGES = yes; then
 
20783
 
 
20784
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
 
20785
 
 
20786
    fi
 
20787
  fi
 
20788
     USE_NLS=yes
 
20789
 
 
20790
 
 
20791
    gt_cv_have_gettext=no
 
20792
 
 
20793
    CATOBJEXT=NONE
 
20794
    XGETTEXT=:
 
20795
    INTLLIBS=
 
20796
 
 
20797
    ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
 
20798
if test "x$ac_cv_header_libintl_h" = xyes; then :
 
20799
  gt_cv_func_dgettext_libintl="no"
 
20800
      libintl_extra_libs=""
 
20801
 
 
20802
      #
 
20803
      # First check in libc
 
20804
      #
 
20805
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
 
20806
$as_echo_n "checking for ngettext in libc... " >&6; }
 
20807
if ${gt_cv_func_ngettext_libc+:} false; then :
 
20808
  $as_echo_n "(cached) " >&6
 
20809
else
 
20810
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20811
/* end confdefs.h.  */
 
20812
 
 
20813
#include <libintl.h>
 
20814
 
 
20815
int
 
20816
main ()
 
20817
{
 
20818
return !ngettext ("","", 1)
 
20819
  ;
 
20820
  return 0;
 
20821
}
 
20822
_ACEOF
 
20823
if ac_fn_cxx_try_link "$LINENO"; then :
 
20824
  gt_cv_func_ngettext_libc=yes
 
20825
else
 
20826
  gt_cv_func_ngettext_libc=no
 
20827
fi
 
20828
rm -f core conftest.err conftest.$ac_objext \
 
20829
    conftest$ac_exeext conftest.$ac_ext
 
20830
 
 
20831
fi
 
20832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
 
20833
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
 
20834
 
 
20835
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
20836
              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
 
20837
$as_echo_n "checking for dgettext in libc... " >&6; }
 
20838
if ${gt_cv_func_dgettext_libc+:} false; then :
 
20839
  $as_echo_n "(cached) " >&6
 
20840
else
 
20841
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20842
/* end confdefs.h.  */
 
20843
 
 
20844
#include <libintl.h>
 
20845
 
 
20846
int
 
20847
main ()
 
20848
{
 
20849
return !dgettext ("","")
 
20850
  ;
 
20851
  return 0;
 
20852
}
 
20853
_ACEOF
 
20854
if ac_fn_cxx_try_link "$LINENO"; then :
 
20855
  gt_cv_func_dgettext_libc=yes
 
20856
else
 
20857
  gt_cv_func_dgettext_libc=no
 
20858
fi
 
20859
rm -f core conftest.err conftest.$ac_objext \
 
20860
    conftest$ac_exeext conftest.$ac_ext
 
20861
 
 
20862
fi
 
20863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
 
20864
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
 
20865
      fi
 
20866
 
 
20867
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
20868
        for ac_func in bind_textdomain_codeset
 
20869
do :
 
20870
  ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
20871
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
20872
  cat >>confdefs.h <<_ACEOF
 
20873
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
20874
_ACEOF
 
20875
 
 
20876
fi
 
20877
done
 
20878
 
 
20879
      fi
 
20880
 
 
20881
      #
 
20882
      # If we don't have everything we want, check in libintl
 
20883
      #
 
20884
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
20885
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
20886
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
20887
 
 
20888
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
 
20889
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 
20890
if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
 
20891
  $as_echo_n "(cached) " >&6
 
20892
else
 
20893
  ac_check_lib_save_LIBS=$LIBS
 
20894
LIBS="-lintl  $LIBS"
 
20895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20896
/* end confdefs.h.  */
 
20897
 
 
20898
/* Override any GCC internal prototype to avoid an error.
 
20899
   Use char because int might match the return type of a GCC
 
20900
   builtin and then its argument prototype would still apply.  */
 
20901
#ifdef __cplusplus
 
20902
extern "C"
 
20903
#endif
 
20904
char bindtextdomain ();
 
20905
int
 
20906
main ()
 
20907
{
 
20908
return bindtextdomain ();
 
20909
  ;
 
20910
  return 0;
 
20911
}
 
20912
_ACEOF
 
20913
if ac_fn_cxx_try_link "$LINENO"; then :
 
20914
  ac_cv_lib_intl_bindtextdomain=yes
 
20915
else
 
20916
  ac_cv_lib_intl_bindtextdomain=no
 
20917
fi
 
20918
rm -f core conftest.err conftest.$ac_objext \
 
20919
    conftest$ac_exeext conftest.$ac_ext
 
20920
LIBS=$ac_check_lib_save_LIBS
 
20921
fi
 
20922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
20923
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 
20924
if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
 
20925
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
20926
$as_echo_n "checking for ngettext in -lintl... " >&6; }
 
20927
if ${ac_cv_lib_intl_ngettext+:} false; then :
 
20928
  $as_echo_n "(cached) " >&6
 
20929
else
 
20930
  ac_check_lib_save_LIBS=$LIBS
 
20931
LIBS="-lintl  $LIBS"
 
20932
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20933
/* end confdefs.h.  */
 
20934
 
 
20935
/* Override any GCC internal prototype to avoid an error.
 
20936
   Use char because int might match the return type of a GCC
 
20937
   builtin and then its argument prototype would still apply.  */
 
20938
#ifdef __cplusplus
 
20939
extern "C"
 
20940
#endif
 
20941
char ngettext ();
 
20942
int
 
20943
main ()
 
20944
{
 
20945
return ngettext ();
 
20946
  ;
 
20947
  return 0;
 
20948
}
 
20949
_ACEOF
 
20950
if ac_fn_cxx_try_link "$LINENO"; then :
 
20951
  ac_cv_lib_intl_ngettext=yes
 
20952
else
 
20953
  ac_cv_lib_intl_ngettext=no
 
20954
fi
 
20955
rm -f core conftest.err conftest.$ac_objext \
 
20956
    conftest$ac_exeext conftest.$ac_ext
 
20957
LIBS=$ac_check_lib_save_LIBS
 
20958
fi
 
20959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
 
20960
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 
20961
if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
 
20962
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
 
20963
$as_echo_n "checking for dgettext in -lintl... " >&6; }
 
20964
if ${ac_cv_lib_intl_dgettext+:} false; then :
 
20965
  $as_echo_n "(cached) " >&6
 
20966
else
 
20967
  ac_check_lib_save_LIBS=$LIBS
 
20968
LIBS="-lintl  $LIBS"
 
20969
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20970
/* end confdefs.h.  */
 
20971
 
 
20972
/* Override any GCC internal prototype to avoid an error.
 
20973
   Use char because int might match the return type of a GCC
 
20974
   builtin and then its argument prototype would still apply.  */
 
20975
#ifdef __cplusplus
 
20976
extern "C"
 
20977
#endif
 
20978
char dgettext ();
 
20979
int
 
20980
main ()
 
20981
{
 
20982
return dgettext ();
 
20983
  ;
 
20984
  return 0;
 
20985
}
 
20986
_ACEOF
 
20987
if ac_fn_cxx_try_link "$LINENO"; then :
 
20988
  ac_cv_lib_intl_dgettext=yes
 
20989
else
 
20990
  ac_cv_lib_intl_dgettext=no
 
20991
fi
 
20992
rm -f core conftest.err conftest.$ac_objext \
 
20993
    conftest$ac_exeext conftest.$ac_ext
 
20994
LIBS=$ac_check_lib_save_LIBS
 
20995
fi
 
20996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
 
20997
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 
20998
if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
 
20999
  gt_cv_func_dgettext_libintl=yes
 
21000
fi
 
21001
 
 
21002
fi
 
21003
 
 
21004
fi
 
21005
 
 
21006
 
 
21007
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
21008
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
 
21009
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 
21010
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
21011
$as_echo "" >&6; }
 
21012
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
21013
$as_echo_n "checking for ngettext in -lintl... " >&6; }
 
21014
if ${ac_cv_lib_intl_ngettext+:} false; then :
 
21015
  $as_echo_n "(cached) " >&6
 
21016
else
 
21017
  ac_check_lib_save_LIBS=$LIBS
 
21018
LIBS="-lintl -liconv $LIBS"
 
21019
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21020
/* end confdefs.h.  */
 
21021
 
 
21022
/* Override any GCC internal prototype to avoid an error.
 
21023
   Use char because int might match the return type of a GCC
 
21024
   builtin and then its argument prototype would still apply.  */
 
21025
#ifdef __cplusplus
 
21026
extern "C"
 
21027
#endif
 
21028
char ngettext ();
 
21029
int
 
21030
main ()
 
21031
{
 
21032
return ngettext ();
 
21033
  ;
 
21034
  return 0;
 
21035
}
 
21036
_ACEOF
 
21037
if ac_fn_cxx_try_link "$LINENO"; then :
 
21038
  ac_cv_lib_intl_ngettext=yes
 
21039
else
 
21040
  ac_cv_lib_intl_ngettext=no
 
21041
fi
 
21042
rm -f core conftest.err conftest.$ac_objext \
 
21043
    conftest$ac_exeext conftest.$ac_ext
 
21044
LIBS=$ac_check_lib_save_LIBS
 
21045
fi
 
21046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
 
21047
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 
21048
if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
 
21049
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
 
21050
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
 
21051
if ${ac_cv_lib_intl_dcgettext+:} false; then :
 
21052
  $as_echo_n "(cached) " >&6
 
21053
else
 
21054
  ac_check_lib_save_LIBS=$LIBS
 
21055
LIBS="-lintl -liconv $LIBS"
 
21056
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21057
/* end confdefs.h.  */
 
21058
 
 
21059
/* Override any GCC internal prototype to avoid an error.
 
21060
   Use char because int might match the return type of a GCC
 
21061
   builtin and then its argument prototype would still apply.  */
 
21062
#ifdef __cplusplus
 
21063
extern "C"
 
21064
#endif
 
21065
char dcgettext ();
 
21066
int
 
21067
main ()
 
21068
{
 
21069
return dcgettext ();
 
21070
  ;
 
21071
  return 0;
 
21072
}
 
21073
_ACEOF
 
21074
if ac_fn_cxx_try_link "$LINENO"; then :
 
21075
  ac_cv_lib_intl_dcgettext=yes
 
21076
else
 
21077
  ac_cv_lib_intl_dcgettext=no
 
21078
fi
 
21079
rm -f core conftest.err conftest.$ac_objext \
 
21080
    conftest$ac_exeext conftest.$ac_ext
 
21081
LIBS=$ac_check_lib_save_LIBS
 
21082
fi
 
21083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
 
21084
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 
21085
if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
 
21086
  gt_cv_func_dgettext_libintl=yes
 
21087
                        libintl_extra_libs=-liconv
 
21088
else
 
21089
  :
 
21090
fi
 
21091
 
 
21092
else
 
21093
  :
 
21094
fi
 
21095
 
 
21096
        fi
 
21097
 
 
21098
        #
 
21099
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
21100
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
21101
        # and both have dgettext and ngettext
 
21102
        #
 
21103
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
21104
          glib_save_LIBS="$LIBS"
 
21105
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
21106
          unset ac_cv_func_bind_textdomain_codeset
 
21107
          for ac_func in bind_textdomain_codeset
 
21108
do :
 
21109
  ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
21110
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
21111
  cat >>confdefs.h <<_ACEOF
 
21112
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
21113
_ACEOF
 
21114
 
 
21115
fi
 
21116
done
 
21117
 
 
21118
          LIBS="$glib_save_LIBS"
 
21119
 
 
21120
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
21121
            gt_cv_func_dgettext_libc=no
 
21122
          else
 
21123
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
21124
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
21125
              gt_cv_func_dgettext_libintl=no
 
21126
            fi
 
21127
          fi
 
21128
        fi
 
21129
      fi
 
21130
 
 
21131
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
21132
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
21133
        gt_cv_have_gettext=yes
 
21134
      fi
 
21135
 
 
21136
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
21137
        INTLLIBS="-lintl $libintl_extra_libs"
 
21138
      fi
 
21139
 
 
21140
      if test "$gt_cv_have_gettext" = "yes"; then
 
21141
 
 
21142
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
21143
 
 
21144
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
21145
set dummy msgfmt; ac_word=$2
 
21146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21147
$as_echo_n "checking for $ac_word... " >&6; }
 
21148
if ${ac_cv_path_MSGFMT+:} false; then :
 
21149
  $as_echo_n "(cached) " >&6
 
21150
else
 
21151
  case "$MSGFMT" in
 
21152
  /*)
 
21153
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
21154
  ;;
 
21155
  *)
 
21156
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21157
  for ac_dir in $PATH; do
 
21158
    test -z "$ac_dir" && ac_dir=.
 
21159
    if test -f $ac_dir/$ac_word; then
 
21160
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
21161
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
21162
        break
 
21163
      fi
 
21164
    fi
 
21165
  done
 
21166
  IFS="$ac_save_ifs"
 
21167
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
21168
  ;;
 
21169
esac
 
21170
fi
 
21171
MSGFMT="$ac_cv_path_MSGFMT"
 
21172
if test "$MSGFMT" != "no"; then
 
21173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
21174
$as_echo "$MSGFMT" >&6; }
 
21175
else
 
21176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21177
$as_echo "no" >&6; }
 
21178
fi
 
21179
        if test "$MSGFMT" != "no"; then
 
21180
          glib_save_LIBS="$LIBS"
 
21181
          LIBS="$LIBS $INTLLIBS"
 
21182
          for ac_func in dcgettext
 
21183
do :
 
21184
  ac_fn_cxx_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
 
21185
if test "x$ac_cv_func_dcgettext" = xyes; then :
 
21186
  cat >>confdefs.h <<_ACEOF
 
21187
#define HAVE_DCGETTEXT 1
 
21188
_ACEOF
 
21189
 
 
21190
fi
 
21191
done
 
21192
 
 
21193
          MSGFMT_OPTS=
 
21194
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
 
21195
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
 
21196
          cat >conftest.foo <<_ACEOF
 
21197
 
 
21198
msgid ""
 
21199
msgstr ""
 
21200
"Content-Type: text/plain; charset=UTF-8\n"
 
21201
"Project-Id-Version: test 1.0\n"
 
21202
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
21203
"Last-Translator: test <foo@bar.xx>\n"
 
21204
"Language-Team: C <LL@li.org>\n"
 
21205
"MIME-Version: 1.0\n"
 
21206
"Content-Transfer-Encoding: 8bit\n"
 
21207
 
 
21208
_ACEOF
 
21209
if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
 
21210
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 
21211
  ac_status=$?
 
21212
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21213
  test $ac_status = 0; }; then
 
21214
  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
21215
$as_echo "yes" >&6; }
 
21216
else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21217
$as_echo "no" >&6; }
 
21218
echo "$as_me: failed input was:" >&5
 
21219
sed 's/^/| /' conftest.foo >&5
 
21220
fi
 
21221
 
 
21222
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21223
set dummy gmsgfmt; ac_word=$2
 
21224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21225
$as_echo_n "checking for $ac_word... " >&6; }
 
21226
if ${ac_cv_path_GMSGFMT+:} false; then :
 
21227
  $as_echo_n "(cached) " >&6
 
21228
else
 
21229
  case $GMSGFMT in
 
21230
  [\\/]* | ?:[\\/]*)
 
21231
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
21232
  ;;
 
21233
  *)
 
21234
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21235
for as_dir in $PATH
 
21236
do
 
21237
  IFS=$as_save_IFS
 
21238
  test -z "$as_dir" && as_dir=.
 
21239
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21240
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21241
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
21242
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21243
    break 2
 
21244
  fi
 
21245
done
 
21246
  done
 
21247
IFS=$as_save_IFS
 
21248
 
 
21249
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
21250
  ;;
 
21251
esac
 
21252
fi
 
21253
GMSGFMT=$ac_cv_path_GMSGFMT
 
21254
if test -n "$GMSGFMT"; then
 
21255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
21256
$as_echo "$GMSGFMT" >&6; }
 
21257
else
 
21258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21259
$as_echo "no" >&6; }
 
21260
fi
 
21261
 
 
21262
 
 
21263
          # Extract the first word of "xgettext", so it can be a program name with args.
 
21264
set dummy xgettext; ac_word=$2
 
21265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21266
$as_echo_n "checking for $ac_word... " >&6; }
 
21267
if ${ac_cv_path_XGETTEXT+:} false; then :
 
21268
  $as_echo_n "(cached) " >&6
 
21269
else
 
21270
  case "$XGETTEXT" in
 
21271
  /*)
 
21272
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
21273
  ;;
 
21274
  *)
 
21275
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21276
  for ac_dir in $PATH; do
 
21277
    test -z "$ac_dir" && ac_dir=.
 
21278
    if test -f $ac_dir/$ac_word; then
 
21279
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
21280
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
21281
        break
 
21282
      fi
 
21283
    fi
 
21284
  done
 
21285
  IFS="$ac_save_ifs"
 
21286
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
21287
  ;;
 
21288
esac
 
21289
fi
 
21290
XGETTEXT="$ac_cv_path_XGETTEXT"
 
21291
if test "$XGETTEXT" != ":"; then
 
21292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
21293
$as_echo "$XGETTEXT" >&6; }
 
21294
else
 
21295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21296
$as_echo "no" >&6; }
 
21297
fi
 
21298
 
 
21299
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21300
/* end confdefs.h.  */
 
21301
 
 
21302
int
 
21303
main ()
 
21304
{
 
21305
extern int _nl_msg_cat_cntr;
 
21306
                         return _nl_msg_cat_cntr
 
21307
  ;
 
21308
  return 0;
 
21309
}
 
21310
_ACEOF
 
21311
if ac_fn_cxx_try_link "$LINENO"; then :
 
21312
  CATOBJEXT=.gmo
 
21313
             DATADIRNAME=share
 
21314
else
 
21315
  case $host in
 
21316
            *-*-solaris*)
 
21317
                                                                ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
21318
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
21319
  CATOBJEXT=.gmo
 
21320
               DATADIRNAME=share
 
21321
else
 
21322
  CATOBJEXT=.mo
 
21323
               DATADIRNAME=lib
 
21324
fi
 
21325
 
 
21326
            ;;
 
21327
            *-*-openbsd*)
 
21328
            CATOBJEXT=.mo
 
21329
            DATADIRNAME=share
 
21330
            ;;
 
21331
            *)
 
21332
            CATOBJEXT=.mo
 
21333
            DATADIRNAME=lib
 
21334
            ;;
 
21335
            esac
 
21336
fi
 
21337
rm -f core conftest.err conftest.$ac_objext \
 
21338
    conftest$ac_exeext conftest.$ac_ext
 
21339
          LIBS="$glib_save_LIBS"
 
21340
          INSTOBJEXT=.mo
 
21341
        else
 
21342
          gt_cv_have_gettext=no
 
21343
        fi
 
21344
      fi
 
21345
 
 
21346
fi
 
21347
 
 
21348
 
 
21349
 
 
21350
    if test "$gt_cv_have_gettext" = "yes" ; then
 
21351
 
 
21352
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
21353
 
 
21354
    fi
 
21355
 
 
21356
        if test "$XGETTEXT" != ":"; then
 
21357
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
21358
        : ;
 
21359
      else
 
21360
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
21361
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 
21362
        XGETTEXT=":"
 
21363
      fi
 
21364
    fi
 
21365
 
 
21366
    # We need to process the po/ directory.
 
21367
    POSUB=po
 
21368
 
 
21369
    ac_config_commands="$ac_config_commands default-1"
 
21370
 
 
21371
 
 
21372
                for lang in $ALL_LINGUAS; do
 
21373
      GMOFILES="$GMOFILES $lang.gmo"
 
21374
      POFILES="$POFILES $lang.po"
 
21375
    done
 
21376
 
 
21377
 
 
21378
 
 
21379
 
 
21380
 
 
21381
 
 
21382
 
 
21383
 
 
21384
 
 
21385
 
 
21386
 
 
21387
 
 
21388
 
 
21389
   if test "$gt_cv_have_gettext" = "yes"; then
 
21390
     if test "x$ALL_LINGUAS" = "x"; then
 
21391
       LINGUAS=
 
21392
     else
 
21393
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
 
21394
$as_echo_n "checking for catalogs to be installed... " >&6; }
 
21395
       NEW_LINGUAS=
 
21396
       for presentlang in $ALL_LINGUAS; do
 
21397
         useit=no
 
21398
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
21399
           desiredlanguages="$LINGUAS"
 
21400
         else
 
21401
           desiredlanguages="$ALL_LINGUAS"
 
21402
         fi
 
21403
         for desiredlang in $desiredlanguages; do
 
21404
           # Use the presentlang catalog if desiredlang is
 
21405
           #   a. equal to presentlang, or
 
21406
           #   b. a variant of presentlang (because in this case,
 
21407
           #      presentlang can be used as a fallback for messages
 
21408
           #      which are not translated in the desiredlang catalog).
 
21409
           case "$desiredlang" in
 
21410
             "$presentlang"*) useit=yes;;
 
21411
           esac
 
21412
         done
 
21413
         if test $useit = yes; then
 
21414
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
21415
         fi
 
21416
       done
 
21417
       LINGUAS=$NEW_LINGUAS
 
21418
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
 
21419
$as_echo "$LINGUAS" >&6; }
 
21420
     fi
 
21421
 
 
21422
          if test -n "$LINGUAS"; then
 
21423
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
21424
     fi
 
21425
   fi
 
21426
 
 
21427
            MKINSTALLDIRS=
 
21428
   if test -n "$ac_aux_dir"; then
 
21429
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
21430
   fi
 
21431
   if test -z "$MKINSTALLDIRS"; then
 
21432
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
21433
   fi
 
21434
 
 
21435
 
 
21436
         test -d po || mkdir po
 
21437
   if test "x$srcdir" != "x."; then
 
21438
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
21439
       posrcprefix="$srcdir/"
 
21440
     else
 
21441
       posrcprefix="../$srcdir/"
 
21442
     fi
 
21443
   else
 
21444
     posrcprefix="../"
 
21445
   fi
 
21446
   rm -f po/POTFILES
 
21447
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
21448
        < $srcdir/po/POTFILES.in > po/POTFILES
 
21449
 
 
21450
 
 
21451
 
 
21452
gnomedatadir=`eval "echo ${datadir}"`
 
21453
gnomeconfdir=`eval "echo ${sysconfdir}"`
 
21454
 
 
21455
 
 
21456
 
 
21457
# on Windows, data_dir is obtained at run-time, since it depends on
 
21458
#   the installation directory, so do not define it (to avoids bugs)
 
21459
if test "x${gm_platform}" != "xmingw" ; then
 
21460
   if test "x${prefix}" = "xNONE"; then
 
21461
 
 
21462
cat >>confdefs.h <<_ACEOF
 
21463
#define DATA_DIR "${ac_default_prefix}/${DATADIRNAME}"
 
21464
_ACEOF
 
21465
 
 
21466
   else
 
21467
 
 
21468
cat >>confdefs.h <<_ACEOF
 
21469
#define DATA_DIR "${prefix}/${DATADIRNAME}"
 
21470
_ACEOF
 
21471
 
 
21472
   fi
 
21473
fi
 
21474
 
 
21475
 
 
21476
case "$host" in
 
21477
*-mingw*)
 
21478
        # libtool really installs in ../bin, so we have to add the dummy!
 
21479
        # and we have to set PLUGIN_DIR to that directory
 
21480
        bindir='${exec_prefix}'
 
21481
        stacklibdir='${exec_prefix}'
 
21482
        plugindir='${exec_prefix}/plugins'
 
21483
        PLUGIN_DIR='plugins'
 
21484
        ;;
 
21485
*)
 
21486
        versioned_libdir='${libdir}/ekiga/4.0.1'
 
21487
        stacklibdir=${versioned_libdir}
 
21488
        plugindir=${versioned_libdir}/plugins
 
21489
        PLUGIN_DIR='${plugindir}'
 
21490
        ;;
 
21491
esac
 
21492
 
 
21493
PLUGINS_LIBTOOL_FLAGS="-no-undefined -avoid-version -module"
 
21494
STACKLIB_LDFLAGS='-shared -module -no-undefined -avoid-version'
 
21495
 
 
21496
 
 
21497
 
 
21498
 
 
21499
 
 
21500
 
 
21501
 
 
21502
 
 
21503
ac_config_files="$ac_config_files Makefile Doxyfile src/ekiga-config-tool ekiga.schemas.in ekiga.desktop.in lib/Makefile po/Makefile.in man/Makefile src/Makefile pixmaps/Makefile sounds/Makefile help/Makefile plugins/Makefile plugins/avahi/Makefile plugins/evolution/Makefile plugins/gstreamer/Makefile plugins/kab/Makefile plugins/kde/Makefile plugins/ldap/Makefile plugins/libnotify/Makefile plugins/loudmouth/Makefile plugins/resource-list/Makefile plugins/xcap/Makefile"
 
21504
 
 
21505
cat >confcache <<\_ACEOF
 
21506
# This file is a shell script that caches the results of configure
 
21507
# tests run on this system so they can be shared between configure
 
21508
# scripts and configure runs, see configure's option --config-cache.
 
21509
# It is not useful on other systems.  If it contains results you don't
 
21510
# want to keep, you may remove or edit it.
 
21511
#
 
21512
# config.status only pays attention to the cache file if you give it
 
21513
# the --recheck option to rerun configure.
 
21514
#
 
21515
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21516
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21517
# following values.
 
21518
 
 
21519
_ACEOF
 
21520
 
 
21521
# The following way of writing the cache mishandles newlines in values,
 
21522
# but we know of no workaround that is simple, portable, and efficient.
 
21523
# So, we kill variables containing newlines.
 
21524
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21525
# and sets the high bit in the cache file unless we assign to the vars.
 
21526
(
 
21527
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
21528
    eval ac_val=\$$ac_var
 
21529
    case $ac_val in #(
 
21530
    *${as_nl}*)
 
21531
      case $ac_var in #(
 
21532
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
21533
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
21534
      esac
 
21535
      case $ac_var in #(
 
21536
      _ | IFS | as_nl) ;; #(
 
21537
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
21538
      *) { eval $ac_var=; unset $ac_var;} ;;
 
21539
      esac ;;
 
21540
    esac
 
21541
  done
 
21542
 
 
21543
  (set) 2>&1 |
 
21544
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
21545
    *${as_nl}ac_space=\ *)
 
21546
      # `set' does not quote correctly, so add quotes: double-quote
 
21547
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
21548
      sed -n \
 
21549
        "s/'/'\\\\''/g;
 
21550
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21551
      ;; #(
 
21552
    *)
 
21553
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21554
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
21555
      ;;
 
21556
    esac |
 
21557
    sort
 
21558
) |
 
21559
  sed '
 
21560
     /^ac_cv_env_/b end
 
21561
     t clear
 
21562
     :clear
 
21563
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21564
     t end
 
21565
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21566
     :end' >>confcache
 
21567
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
21568
  if test -w "$cache_file"; then
 
21569
    if test "x$cache_file" != "x/dev/null"; then
 
21570
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
21571
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
21572
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
21573
        cat confcache >"$cache_file"
 
21574
      else
 
21575
        case $cache_file in #(
 
21576
        */* | ?:*)
 
21577
          mv -f confcache "$cache_file"$$ &&
 
21578
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
21579
        *)
 
21580
          mv -f confcache "$cache_file" ;;
 
21581
        esac
 
21582
      fi
 
21583
    fi
 
21584
  else
 
21585
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
21586
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
21587
  fi
 
21588
fi
 
21589
rm -f confcache
 
21590
 
 
21591
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21592
# Let make expand exec_prefix.
 
21593
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21594
 
 
21595
DEFS=-DHAVE_CONFIG_H
 
21596
 
 
21597
ac_libobjs=
 
21598
ac_ltlibobjs=
 
21599
U=
 
21600
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
21601
  # 1. Remove the extension, and $U if already installed.
 
21602
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
21603
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
21604
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
21605
  #    will be set to the directory where LIBOBJS objects are built.
 
21606
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
21607
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
21608
done
 
21609
LIBOBJS=$ac_libobjs
 
21610
 
 
21611
LTLIBOBJS=$ac_ltlibobjs
 
21612
 
 
21613
 
 
21614
 if test -n "$EXEEXT"; then
 
21615
  am__EXEEXT_TRUE=
 
21616
  am__EXEEXT_FALSE='#'
 
21617
else
 
21618
  am__EXEEXT_TRUE='#'
 
21619
  am__EXEEXT_FALSE=
 
21620
fi
 
21621
 
 
21622
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
21623
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
21624
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21625
fi
 
21626
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
21627
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
21628
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21629
fi
 
21630
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21631
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
21632
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21633
fi
 
21634
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21635
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
21636
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21637
fi
 
21638
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21639
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
21640
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21641
fi
 
21642
if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
 
21643
  as_fn_error $? "conditional \"WIN32\" was never defined.
 
21644
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21645
fi
 
21646
 
 
21647
 
 
21648
  ac_config_commands="$ac_config_commands po/stamp-it"
 
21649
 
 
21650
 
 
21651
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
 
21652
  as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
 
21653
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21654
fi
 
21655
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
 
21656
  as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
 
21657
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21658
fi
 
21659
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
 
21660
  as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
 
21661
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21662
fi
 
21663
if test -z "${HAVE_GCONF_TRUE}" && test -z "${HAVE_GCONF_FALSE}"; then
 
21664
  as_fn_error $? "conditional \"HAVE_GCONF\" was never defined.
 
21665
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21666
fi
 
21667
if test -z "${HAVE_EDS_TRUE}" && test -z "${HAVE_EDS_FALSE}"; then
 
21668
  as_fn_error $? "conditional \"HAVE_EDS\" was never defined.
 
21669
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21670
fi
 
21671
if test -z "${HAVE_NOTIFY_TRUE}" && test -z "${HAVE_NOTIFY_FALSE}"; then
 
21672
  as_fn_error $? "conditional \"HAVE_NOTIFY\" was never defined.
 
21673
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21674
fi
 
21675
if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
 
21676
  as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
 
21677
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21678
fi
 
21679
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
 
21680
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
 
21681
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21682
fi
 
21683
if test -z "${USE_MMX_TRUE}" && test -z "${USE_MMX_FALSE}"; then
 
21684
  as_fn_error $? "conditional \"USE_MMX\" was never defined.
 
21685
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21686
fi
 
21687
if test -z "${HAVE_SHM_TRUE}" && test -z "${HAVE_SHM_FALSE}"; then
 
21688
  as_fn_error $? "conditional \"HAVE_SHM\" was never defined.
 
21689
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21690
fi
 
21691
if test -z "${HAVE_XV_TRUE}" && test -z "${HAVE_XV_FALSE}"; then
 
21692
  as_fn_error $? "conditional \"HAVE_XV\" was never defined.
 
21693
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21694
fi
 
21695
if test -z "${HAVE_DX_TRUE}" && test -z "${HAVE_DX_FALSE}"; then
 
21696
  as_fn_error $? "conditional \"HAVE_DX\" was never defined.
 
21697
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21698
fi
 
21699
if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
 
21700
  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
 
21701
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21702
fi
 
21703
if test -z "${INSTALL_DBUS_SERVICE_TRUE}" && test -z "${INSTALL_DBUS_SERVICE_FALSE}"; then
 
21704
  as_fn_error $? "conditional \"INSTALL_DBUS_SERVICE\" was never defined.
 
21705
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21706
fi
 
21707
if test -z "${HAVE_V4L_TRUE}" && test -z "${HAVE_V4L_FALSE}"; then
 
21708
  as_fn_error $? "conditional \"HAVE_V4L\" was never defined.
 
21709
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21710
fi
 
21711
if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
 
21712
  as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
 
21713
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21714
fi
 
21715
if test -z "${HAVE_GSTREAMER_TRUE}" && test -z "${HAVE_GSTREAMER_FALSE}"; then
 
21716
  as_fn_error $? "conditional \"HAVE_GSTREAMER\" was never defined.
 
21717
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21718
fi
 
21719
if test -z "${HAVE_KDE_TRUE}" && test -z "${HAVE_KDE_FALSE}"; then
 
21720
  as_fn_error $? "conditional \"HAVE_KDE\" was never defined.
 
21721
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21722
fi
 
21723
if test -z "${HAVE_KAB_TRUE}" && test -z "${HAVE_KAB_FALSE}"; then
 
21724
  as_fn_error $? "conditional \"HAVE_KAB\" was never defined.
 
21725
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21726
fi
 
21727
if test -z "${HAVE_XCAP_TRUE}" && test -z "${HAVE_XCAP_FALSE}"; then
 
21728
  as_fn_error $? "conditional \"HAVE_XCAP\" was never defined.
 
21729
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21730
fi
 
21731
if test -z "${HAVE_LOUDMOUTH_TRUE}" && test -z "${HAVE_LOUDMOUTH_FALSE}"; then
 
21732
  as_fn_error $? "conditional \"HAVE_LOUDMOUTH\" was never defined.
 
21733
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21734
fi
 
21735
if test -z "${ENABLE_SK_TRUE}" && test -z "${ENABLE_SK_FALSE}"; then
 
21736
  as_fn_error $? "conditional \"ENABLE_SK\" was never defined.
 
21737
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21738
fi
 
21739
if test -z "${HAVE_GNOME_DOC_UTILS_TRUE}" && test -z "${HAVE_GNOME_DOC_UTILS_FALSE}"; then
 
21740
  as_fn_error $? "conditional \"HAVE_GNOME_DOC_UTILS\" was never defined.
 
21741
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21742
fi
 
21743
if test -z "${HAVE_GNOME_DOC_UTILS_TRUE}" && test -z "${HAVE_GNOME_DOC_UTILS_FALSE}"; then
 
21744
  as_fn_error $? "conditional \"HAVE_GNOME_DOC_UTILS\" was never defined.
 
21745
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21746
fi
 
21747
if test -z "${HAVE_H323_TRUE}" && test -z "${HAVE_H323_FALSE}"; then
 
21748
  as_fn_error $? "conditional \"HAVE_H323\" was never defined.
 
21749
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21750
fi
 
21751
if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
 
21752
  as_fn_error $? "conditional \"DEBUG\" was never defined.
 
21753
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
21754
fi
 
21755
 
 
21756
: "${CONFIG_STATUS=./config.status}"
 
21757
ac_write_fail=0
 
21758
ac_clean_files_save=$ac_clean_files
 
21759
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21760
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
21761
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21762
as_write_fail=0
 
21763
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
21764
#! $SHELL
 
21765
# Generated by $as_me.
 
21766
# Run this file to recreate the current configuration.
 
21767
# Compiler output produced by configure, useful for debugging
 
21768
# configure, is in config.log if it exists.
 
21769
 
 
21770
debug=false
 
21771
ac_cs_recheck=false
 
21772
ac_cs_silent=false
 
21773
 
 
21774
SHELL=\${CONFIG_SHELL-$SHELL}
 
21775
export SHELL
 
21776
_ASEOF
 
21777
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
21778
## -------------------- ##
 
21779
## M4sh Initialization. ##
 
21780
## -------------------- ##
 
21781
 
 
21782
# Be more Bourne compatible
 
21783
DUALCASE=1; export DUALCASE # for MKS sh
 
21784
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
21785
  emulate sh
 
21786
  NULLCMD=:
 
21787
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21788
  # is contrary to our usage.  Disable this feature.
 
21789
  alias -g '${1+"$@"}'='"$@"'
 
21790
  setopt NO_GLOB_SUBST
 
21791
else
 
21792
  case `(set -o) 2>/dev/null` in #(
 
21793
  *posix*) :
 
21794
    set -o posix ;; #(
 
21795
  *) :
 
21796
     ;;
 
21797
esac
 
21798
fi
 
21799
 
 
21800
 
 
21801
as_nl='
 
21802
'
 
21803
export as_nl
 
21804
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
21805
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
21806
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
21807
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
21808
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
21809
# but without wasting forks for bash or zsh.
 
21810
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
21811
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
21812
  as_echo='print -r --'
 
21813
  as_echo_n='print -rn --'
 
21814
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
21815
  as_echo='printf %s\n'
 
21816
  as_echo_n='printf %s'
 
21817
else
 
21818
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
21819
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
21820
    as_echo_n='/usr/ucb/echo -n'
 
21821
  else
 
21822
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
21823
    as_echo_n_body='eval
 
21824
      arg=$1;
 
21825
      case $arg in #(
 
21826
      *"$as_nl"*)
 
21827
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
21828
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
21829
      esac;
 
21830
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
21831
    '
 
21832
    export as_echo_n_body
 
21833
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
21834
  fi
 
21835
  export as_echo_body
 
21836
  as_echo='sh -c $as_echo_body as_echo'
 
21837
fi
 
21838
 
 
21839
# The user is always right.
 
21840
if test "${PATH_SEPARATOR+set}" != set; then
 
21841
  PATH_SEPARATOR=:
 
21842
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
21843
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
21844
      PATH_SEPARATOR=';'
 
21845
  }
 
21846
fi
 
21847
 
 
21848
 
 
21849
# IFS
 
21850
# We need space, tab and new line, in precisely that order.  Quoting is
 
21851
# there to prevent editors from complaining about space-tab.
 
21852
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
21853
# splitting by setting IFS to empty value.)
 
21854
IFS=" ""        $as_nl"
 
21855
 
 
21856
# Find who we are.  Look in the path if we contain no directory separator.
 
21857
as_myself=
 
21858
case $0 in #((
 
21859
  *[\\/]* ) as_myself=$0 ;;
 
21860
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21861
for as_dir in $PATH
 
21862
do
 
21863
  IFS=$as_save_IFS
 
21864
  test -z "$as_dir" && as_dir=.
 
21865
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21866
  done
 
21867
IFS=$as_save_IFS
 
21868
 
 
21869
     ;;
 
21870
esac
 
21871
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
21872
# in which case we are not to be found in the path.
 
21873
if test "x$as_myself" = x; then
 
21874
  as_myself=$0
 
21875
fi
 
21876
if test ! -f "$as_myself"; then
 
21877
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
21878
  exit 1
 
21879
fi
 
21880
 
 
21881
# Unset variables that we do not need and which cause bugs (e.g. in
 
21882
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
21883
# suppresses any "Segmentation fault" message there.  '((' could
 
21884
# trigger a bug in pdksh 5.2.14.
 
21885
for as_var in BASH_ENV ENV MAIL MAILPATH
 
21886
do eval test x\${$as_var+set} = xset \
 
21887
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
21888
done
 
21889
PS1='$ '
 
21890
PS2='> '
 
21891
PS4='+ '
 
21892
 
 
21893
# NLS nuisances.
 
21894
LC_ALL=C
 
21895
export LC_ALL
 
21896
LANGUAGE=C
 
21897
export LANGUAGE
 
21898
 
 
21899
# CDPATH.
 
21900
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
21901
 
 
21902
 
 
21903
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
21904
# ----------------------------------------
 
21905
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
21906
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
21907
# script with STATUS, using 1 if that was 0.
 
21908
as_fn_error ()
 
21909
{
 
21910
  as_status=$1; test $as_status -eq 0 && as_status=1
 
21911
  if test "$4"; then
 
21912
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
21913
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
21914
  fi
 
21915
  $as_echo "$as_me: error: $2" >&2
 
21916
  as_fn_exit $as_status
 
21917
} # as_fn_error
 
21918
 
 
21919
 
 
21920
# as_fn_set_status STATUS
 
21921
# -----------------------
 
21922
# Set $? to STATUS, without forking.
 
21923
as_fn_set_status ()
 
21924
{
 
21925
  return $1
 
21926
} # as_fn_set_status
 
21927
 
 
21928
# as_fn_exit STATUS
 
21929
# -----------------
 
21930
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
21931
as_fn_exit ()
 
21932
{
 
21933
  set +e
 
21934
  as_fn_set_status $1
 
21935
  exit $1
 
21936
} # as_fn_exit
 
21937
 
 
21938
# as_fn_unset VAR
 
21939
# ---------------
 
21940
# Portably unset VAR.
 
21941
as_fn_unset ()
 
21942
{
 
21943
  { eval $1=; unset $1;}
 
21944
}
 
21945
as_unset=as_fn_unset
 
21946
# as_fn_append VAR VALUE
 
21947
# ----------------------
 
21948
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
21949
# advantage of any shell optimizations that allow amortized linear growth over
 
21950
# repeated appends, instead of the typical quadratic growth present in naive
 
21951
# implementations.
 
21952
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
21953
  eval 'as_fn_append ()
 
21954
  {
 
21955
    eval $1+=\$2
 
21956
  }'
 
21957
else
 
21958
  as_fn_append ()
 
21959
  {
 
21960
    eval $1=\$$1\$2
 
21961
  }
 
21962
fi # as_fn_append
 
21963
 
 
21964
# as_fn_arith ARG...
 
21965
# ------------------
 
21966
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
21967
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
21968
# must be portable across $(()) and expr.
 
21969
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
21970
  eval 'as_fn_arith ()
 
21971
  {
 
21972
    as_val=$(( $* ))
 
21973
  }'
 
21974
else
 
21975
  as_fn_arith ()
 
21976
  {
 
21977
    as_val=`expr "$@" || test $? -eq 1`
 
21978
  }
 
21979
fi # as_fn_arith
 
21980
 
 
21981
 
 
21982
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21983
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
21984
  as_expr=expr
 
21985
else
 
21986
  as_expr=false
 
21987
fi
 
21988
 
 
21989
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
21990
  as_basename=basename
 
21991
else
 
21992
  as_basename=false
 
21993
fi
 
21994
 
 
21995
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
21996
  as_dirname=dirname
 
21997
else
 
21998
  as_dirname=false
 
21999
fi
 
22000
 
 
22001
as_me=`$as_basename -- "$0" ||
 
22002
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22003
         X"$0" : 'X\(//\)$' \| \
 
22004
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
22005
$as_echo X/"$0" |
 
22006
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
22007
            s//\1/
 
22008
            q
 
22009
          }
 
22010
          /^X\/\(\/\/\)$/{
 
22011
            s//\1/
 
22012
            q
 
22013
          }
 
22014
          /^X\/\(\/\).*/{
 
22015
            s//\1/
 
22016
            q
 
22017
          }
 
22018
          s/.*/./; q'`
 
22019
 
 
22020
# Avoid depending upon Character Ranges.
 
22021
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22022
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22023
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22024
as_cr_digits='0123456789'
 
22025
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22026
 
 
22027
ECHO_C= ECHO_N= ECHO_T=
 
22028
case `echo -n x` in #(((((
 
22029
-n*)
 
22030
  case `echo 'xy\c'` in
 
22031
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
22032
  xy)  ECHO_C='\c';;
 
22033
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
22034
       ECHO_T=' ';;
 
22035
  esac;;
 
22036
*)
 
22037
  ECHO_N='-n';;
 
22038
esac
 
22039
 
 
22040
rm -f conf$$ conf$$.exe conf$$.file
 
22041
if test -d conf$$.dir; then
 
22042
  rm -f conf$$.dir/conf$$.file
 
22043
else
 
22044
  rm -f conf$$.dir
 
22045
  mkdir conf$$.dir 2>/dev/null
 
22046
fi
 
22047
if (echo >conf$$.file) 2>/dev/null; then
 
22048
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22049
    as_ln_s='ln -s'
 
22050
    # ... but there are two gotchas:
 
22051
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22052
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22053
    # In both cases, we have to default to `cp -pR'.
 
22054
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22055
      as_ln_s='cp -pR'
 
22056
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
22057
    as_ln_s=ln
 
22058
  else
 
22059
    as_ln_s='cp -pR'
 
22060
  fi
 
22061
else
 
22062
  as_ln_s='cp -pR'
 
22063
fi
 
22064
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22065
rmdir conf$$.dir 2>/dev/null
 
22066
 
 
22067
 
 
22068
# as_fn_mkdir_p
 
22069
# -------------
 
22070
# Create "$as_dir" as a directory, including parents if necessary.
 
22071
as_fn_mkdir_p ()
 
22072
{
 
22073
 
 
22074
  case $as_dir in #(
 
22075
  -*) as_dir=./$as_dir;;
 
22076
  esac
 
22077
  test -d "$as_dir" || eval $as_mkdir_p || {
 
22078
    as_dirs=
 
22079
    while :; do
 
22080
      case $as_dir in #(
 
22081
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
22082
      *) as_qdir=$as_dir;;
 
22083
      esac
 
22084
      as_dirs="'$as_qdir' $as_dirs"
 
22085
      as_dir=`$as_dirname -- "$as_dir" ||
 
22086
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22087
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22088
         X"$as_dir" : 'X\(//\)$' \| \
 
22089
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22090
$as_echo X"$as_dir" |
 
22091
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22092
            s//\1/
 
22093
            q
 
22094
          }
 
22095
          /^X\(\/\/\)[^/].*/{
 
22096
            s//\1/
 
22097
            q
 
22098
          }
 
22099
          /^X\(\/\/\)$/{
 
22100
            s//\1/
 
22101
            q
 
22102
          }
 
22103
          /^X\(\/\).*/{
 
22104
            s//\1/
 
22105
            q
 
22106
          }
 
22107
          s/.*/./; q'`
 
22108
      test -d "$as_dir" && break
 
22109
    done
 
22110
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22111
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
22112
 
 
22113
 
 
22114
} # as_fn_mkdir_p
 
22115
if mkdir -p . 2>/dev/null; then
 
22116
  as_mkdir_p='mkdir -p "$as_dir"'
 
22117
else
 
22118
  test -d ./-p && rmdir ./-p
 
22119
  as_mkdir_p=false
 
22120
fi
 
22121
 
 
22122
 
 
22123
# as_fn_executable_p FILE
 
22124
# -----------------------
 
22125
# Test if FILE is an executable regular file.
 
22126
as_fn_executable_p ()
 
22127
{
 
22128
  test -f "$1" && test -x "$1"
 
22129
} # as_fn_executable_p
 
22130
as_test_x='test -x'
 
22131
as_executable_p=as_fn_executable_p
 
22132
 
 
22133
# Sed expression to map a string onto a valid CPP name.
 
22134
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22135
 
 
22136
# Sed expression to map a string onto a valid variable name.
 
22137
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22138
 
 
22139
 
 
22140
exec 6>&1
 
22141
## ----------------------------------- ##
 
22142
## Main body of $CONFIG_STATUS script. ##
 
22143
## ----------------------------------- ##
 
22144
_ASEOF
 
22145
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
22146
 
 
22147
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22148
# Save the log message, to keep $0 and so on meaningful, and to
 
22149
# report actual input values of CONFIG_FILES etc. instead of their
 
22150
# values after options handling.
 
22151
ac_log="
 
22152
This file was extended by ekiga $as_me 4.0.1, which was
 
22153
generated by GNU Autoconf 2.69.  Invocation command line was
 
22154
 
 
22155
  CONFIG_FILES    = $CONFIG_FILES
 
22156
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22157
  CONFIG_LINKS    = $CONFIG_LINKS
 
22158
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22159
  $ $0 $@
 
22160
 
 
22161
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22162
"
 
22163
 
 
22164
_ACEOF
 
22165
 
 
22166
case $ac_config_files in *"
 
22167
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
22168
esac
 
22169
 
 
22170
case $ac_config_headers in *"
 
22171
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
22172
esac
 
22173
 
 
22174
 
 
22175
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22176
# Files that config.status was made for.
 
22177
config_files="$ac_config_files"
 
22178
config_headers="$ac_config_headers"
 
22179
config_commands="$ac_config_commands"
 
22180
 
 
22181
_ACEOF
 
22182
 
 
22183
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22184
ac_cs_usage="\
 
22185
\`$as_me' instantiates files and other configuration actions
 
22186
from templates according to the current configuration.  Unless the files
 
22187
and actions are specified as TAGs, all are instantiated by default.
 
22188
 
 
22189
Usage: $0 [OPTION]... [TAG]...
 
22190
 
 
22191
  -h, --help       print this help, then exit
 
22192
  -V, --version    print version number and configuration settings, then exit
 
22193
      --config     print configuration, then exit
 
22194
  -q, --quiet, --silent
 
22195
                   do not print progress messages
 
22196
  -d, --debug      don't remove temporary files
 
22197
      --recheck    update $as_me by reconfiguring in the same conditions
 
22198
      --file=FILE[:TEMPLATE]
 
22199
                   instantiate the configuration file FILE
 
22200
      --header=FILE[:TEMPLATE]
 
22201
                   instantiate the configuration header FILE
 
22202
 
 
22203
Configuration files:
 
22204
$config_files
 
22205
 
 
22206
Configuration headers:
 
22207
$config_headers
 
22208
 
 
22209
Configuration commands:
 
22210
$config_commands
 
22211
 
 
22212
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=ekiga>."
 
22213
 
 
22214
_ACEOF
 
22215
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22216
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
22217
ac_cs_version="\\
 
22218
ekiga config.status 4.0.1
 
22219
configured by $0, generated by GNU Autoconf 2.69,
 
22220
  with options \\"\$ac_cs_config\\"
 
22221
 
 
22222
Copyright (C) 2012 Free Software Foundation, Inc.
 
22223
This config.status script is free software; the Free Software Foundation
 
22224
gives unlimited permission to copy, distribute and modify it."
 
22225
 
 
22226
ac_pwd='$ac_pwd'
 
22227
srcdir='$srcdir'
 
22228
INSTALL='$INSTALL'
 
22229
MKDIR_P='$MKDIR_P'
 
22230
AWK='$AWK'
 
22231
test -n "\$AWK" || AWK=awk
 
22232
_ACEOF
 
22233
 
 
22234
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22235
# The default lists apply if the user does not specify any file.
 
22236
ac_need_defaults=:
 
22237
while test $# != 0
 
22238
do
 
22239
  case $1 in
 
22240
  --*=?*)
 
22241
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22242
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
22243
    ac_shift=:
 
22244
    ;;
 
22245
  --*=)
 
22246
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22247
    ac_optarg=
 
22248
    ac_shift=:
 
22249
    ;;
 
22250
  *)
 
22251
    ac_option=$1
 
22252
    ac_optarg=$2
 
22253
    ac_shift=shift
 
22254
    ;;
 
22255
  esac
 
22256
 
 
22257
  case $ac_option in
 
22258
  # Handling of the options.
 
22259
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22260
    ac_cs_recheck=: ;;
 
22261
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
22262
    $as_echo "$ac_cs_version"; exit ;;
 
22263
  --config | --confi | --conf | --con | --co | --c )
 
22264
    $as_echo "$ac_cs_config"; exit ;;
 
22265
  --debug | --debu | --deb | --de | --d | -d )
 
22266
    debug=: ;;
 
22267
  --file | --fil | --fi | --f )
 
22268
    $ac_shift
 
22269
    case $ac_optarg in
 
22270
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22271
    '') as_fn_error $? "missing file argument" ;;
 
22272
    esac
 
22273
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
22274
    ac_need_defaults=false;;
 
22275
  --header | --heade | --head | --hea )
 
22276
    $ac_shift
 
22277
    case $ac_optarg in
 
22278
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22279
    esac
 
22280
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
22281
    ac_need_defaults=false;;
 
22282
  --he | --h)
 
22283
    # Conflict between --help and --header
 
22284
    as_fn_error $? "ambiguous option: \`$1'
 
22285
Try \`$0 --help' for more information.";;
 
22286
  --help | --hel | -h )
 
22287
    $as_echo "$ac_cs_usage"; exit ;;
 
22288
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22289
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22290
    ac_cs_silent=: ;;
 
22291
 
 
22292
  # This is an error.
 
22293
  -*) as_fn_error $? "unrecognized option: \`$1'
 
22294
Try \`$0 --help' for more information." ;;
 
22295
 
 
22296
  *) as_fn_append ac_config_targets " $1"
 
22297
     ac_need_defaults=false ;;
 
22298
 
 
22299
  esac
 
22300
  shift
 
22301
done
 
22302
 
 
22303
ac_configure_extra_args=
 
22304
 
 
22305
if $ac_cs_silent; then
 
22306
  exec 6>/dev/null
 
22307
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22308
fi
 
22309
 
 
22310
_ACEOF
 
22311
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22312
if \$ac_cs_recheck; then
 
22313
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22314
  shift
 
22315
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
22316
  CONFIG_SHELL='$SHELL'
 
22317
  export CONFIG_SHELL
 
22318
  exec "\$@"
 
22319
fi
 
22320
 
 
22321
_ACEOF
 
22322
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22323
exec 5>>config.log
 
22324
{
 
22325
  echo
 
22326
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22327
## Running $as_me. ##
 
22328
_ASBOX
 
22329
  $as_echo "$ac_log"
 
22330
} >&5
 
22331
 
 
22332
_ACEOF
 
22333
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22334
#
 
22335
# INIT-COMMANDS
 
22336
#
 
22337
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22338
 
 
22339
 
 
22340
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
22341
# if CDPATH is set.
 
22342
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
22343
 
 
22344
sed_quote_subst='$sed_quote_subst'
 
22345
double_quote_subst='$double_quote_subst'
 
22346
delay_variable_subst='$delay_variable_subst'
 
22347
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
22348
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
22349
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
22350
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
22351
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
22352
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
22353
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
22354
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
22355
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
22356
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
22357
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
22358
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
22359
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
22360
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
22361
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
22362
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
22363
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
22364
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
22365
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
22366
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
22367
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
22368
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
22369
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
22370
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
22371
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
22372
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
22373
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
22374
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
22375
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
22376
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
22377
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
22378
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
22379
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
22380
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
22381
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
22382
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
22383
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
22384
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
22385
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
22386
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
22387
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
22388
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
22389
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
22390
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
22391
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
22392
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
22393
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
22394
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
22395
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
22396
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
22397
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
22398
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
22399
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
22400
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
22401
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
22402
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
22403
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
22404
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
22405
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
22406
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
22407
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
22408
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
22409
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
22410
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
22411
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
22412
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
22413
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
22414
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
22415
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
22416
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
22417
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
22418
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
22419
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
22420
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
22421
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
22422
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
22423
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
22424
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
22425
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
22426
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
22427
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
22428
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
22429
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
22430
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
22431
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
22432
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
22433
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
22434
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
22435
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
22436
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
22437
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
22438
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
22439
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
22440
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
22441
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
22442
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
22443
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
22444
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
22445
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
22446
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
22447
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
22448
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
22449
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
22450
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
22451
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
22452
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
22453
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
22454
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
22455
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
22456
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
22457
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
22458
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
22459
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
22460
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
22461
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
22462
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
22463
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
22464
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
22465
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
22466
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
22467
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
22468
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
22469
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
22470
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
22471
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
22472
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
22473
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
22474
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
22475
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
22476
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
22477
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
22478
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
22479
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
22480
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
22481
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
22482
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
22483
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
22484
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
22485
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22486
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22487
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
22488
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
22489
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
22490
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
22491
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
22492
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
22493
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
22494
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
22495
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
22496
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
22497
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
22498
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
22499
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22500
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22501
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22502
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22503
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22504
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22505
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
22506
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
22507
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
22508
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
22509
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
22510
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
22511
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
22512
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
22513
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
22514
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
22515
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
22516
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
22517
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
22518
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22519
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
22520
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
22521
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22522
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
22523
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
22524
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
22525
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
22526
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
22527
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
22528
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
22529
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
22530
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
22531
 
 
22532
LTCC='$LTCC'
 
22533
LTCFLAGS='$LTCFLAGS'
 
22534
compiler='$compiler_DEFAULT'
 
22535
 
 
22536
# A function that is used when there is no print builtin or printf.
 
22537
func_fallback_echo ()
 
22538
{
 
22539
  eval 'cat <<_LTECHO_EOF
 
22540
\$1
 
22541
_LTECHO_EOF'
 
22542
}
 
22543
 
 
22544
# Quote evaled strings.
 
22545
for var in SHELL \
 
22546
ECHO \
 
22547
PATH_SEPARATOR \
 
22548
SED \
 
22549
GREP \
 
22550
EGREP \
 
22551
FGREP \
 
22552
LD \
 
22553
NM \
 
22554
LN_S \
 
22555
lt_SP2NL \
 
22556
lt_NL2SP \
 
22557
reload_flag \
 
22558
OBJDUMP \
 
22559
deplibs_check_method \
 
22560
file_magic_cmd \
 
22561
file_magic_glob \
 
22562
want_nocaseglob \
 
22563
DLLTOOL \
 
22564
sharedlib_from_linklib_cmd \
 
22565
AR \
 
22566
AR_FLAGS \
 
22567
archiver_list_spec \
 
22568
STRIP \
 
22569
RANLIB \
 
22570
CC \
 
22571
CFLAGS \
 
22572
compiler \
 
22573
lt_cv_sys_global_symbol_pipe \
 
22574
lt_cv_sys_global_symbol_to_cdecl \
 
22575
lt_cv_sys_global_symbol_to_c_name_address \
 
22576
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
22577
nm_file_list_spec \
 
22578
lt_prog_compiler_no_builtin_flag \
 
22579
lt_prog_compiler_pic \
 
22580
lt_prog_compiler_wl \
 
22581
lt_prog_compiler_static \
 
22582
lt_cv_prog_compiler_c_o \
 
22583
need_locks \
 
22584
MANIFEST_TOOL \
 
22585
DSYMUTIL \
 
22586
NMEDIT \
 
22587
LIPO \
 
22588
OTOOL \
 
22589
OTOOL64 \
 
22590
shrext_cmds \
 
22591
export_dynamic_flag_spec \
 
22592
whole_archive_flag_spec \
 
22593
compiler_needs_object \
 
22594
with_gnu_ld \
 
22595
allow_undefined_flag \
 
22596
no_undefined_flag \
 
22597
hardcode_libdir_flag_spec \
 
22598
hardcode_libdir_separator \
 
22599
exclude_expsyms \
 
22600
include_expsyms \
 
22601
file_list_spec \
 
22602
variables_saved_for_relink \
 
22603
libname_spec \
 
22604
library_names_spec \
 
22605
soname_spec \
 
22606
install_override_mode \
 
22607
finish_eval \
 
22608
old_striplib \
 
22609
striplib \
 
22610
compiler_lib_search_dirs \
 
22611
predep_objects \
 
22612
postdep_objects \
 
22613
predeps \
 
22614
postdeps \
 
22615
compiler_lib_search_path \
 
22616
LD_CXX \
 
22617
reload_flag_CXX \
 
22618
compiler_CXX \
 
22619
lt_prog_compiler_no_builtin_flag_CXX \
 
22620
lt_prog_compiler_pic_CXX \
 
22621
lt_prog_compiler_wl_CXX \
 
22622
lt_prog_compiler_static_CXX \
 
22623
lt_cv_prog_compiler_c_o_CXX \
 
22624
export_dynamic_flag_spec_CXX \
 
22625
whole_archive_flag_spec_CXX \
 
22626
compiler_needs_object_CXX \
 
22627
with_gnu_ld_CXX \
 
22628
allow_undefined_flag_CXX \
 
22629
no_undefined_flag_CXX \
 
22630
hardcode_libdir_flag_spec_CXX \
 
22631
hardcode_libdir_separator_CXX \
 
22632
exclude_expsyms_CXX \
 
22633
include_expsyms_CXX \
 
22634
file_list_spec_CXX \
 
22635
compiler_lib_search_dirs_CXX \
 
22636
predep_objects_CXX \
 
22637
postdep_objects_CXX \
 
22638
predeps_CXX \
 
22639
postdeps_CXX \
 
22640
compiler_lib_search_path_CXX; do
 
22641
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
22642
    *[\\\\\\\`\\"\\\$]*)
 
22643
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
22644
      ;;
 
22645
    *)
 
22646
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
22647
      ;;
 
22648
    esac
 
22649
done
 
22650
 
 
22651
# Double-quote double-evaled strings.
 
22652
for var in reload_cmds \
 
22653
old_postinstall_cmds \
 
22654
old_postuninstall_cmds \
 
22655
old_archive_cmds \
 
22656
extract_expsyms_cmds \
 
22657
old_archive_from_new_cmds \
 
22658
old_archive_from_expsyms_cmds \
 
22659
archive_cmds \
 
22660
archive_expsym_cmds \
 
22661
module_cmds \
 
22662
module_expsym_cmds \
 
22663
export_symbols_cmds \
 
22664
prelink_cmds \
 
22665
postlink_cmds \
 
22666
postinstall_cmds \
 
22667
postuninstall_cmds \
 
22668
finish_cmds \
 
22669
sys_lib_search_path_spec \
 
22670
sys_lib_dlsearch_path_spec \
 
22671
reload_cmds_CXX \
 
22672
old_archive_cmds_CXX \
 
22673
old_archive_from_new_cmds_CXX \
 
22674
old_archive_from_expsyms_cmds_CXX \
 
22675
archive_cmds_CXX \
 
22676
archive_expsym_cmds_CXX \
 
22677
module_cmds_CXX \
 
22678
module_expsym_cmds_CXX \
 
22679
export_symbols_cmds_CXX \
 
22680
prelink_cmds_CXX \
 
22681
postlink_cmds_CXX; do
 
22682
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
22683
    *[\\\\\\\`\\"\\\$]*)
 
22684
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
22685
      ;;
 
22686
    *)
 
22687
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
22688
      ;;
 
22689
    esac
 
22690
done
 
22691
 
 
22692
ac_aux_dir='$ac_aux_dir'
 
22693
xsi_shell='$xsi_shell'
 
22694
lt_shell_append='$lt_shell_append'
 
22695
 
 
22696
# See if we are running on zsh, and set the options which allow our
 
22697
# commands through without removal of \ escapes INIT.
 
22698
if test -n "\${ZSH_VERSION+set}" ; then
 
22699
   setopt NO_GLOB_SUBST
 
22700
fi
 
22701
 
 
22702
 
 
22703
    PACKAGE='$PACKAGE'
 
22704
    VERSION='$VERSION'
 
22705
    TIMESTAMP='$TIMESTAMP'
 
22706
    RM='$RM'
 
22707
    ofile='$ofile'
 
22708
 
 
22709
 
 
22710
 
 
22711
 
 
22712
 
 
22713
 
 
22714
 
 
22715
_ACEOF
 
22716
 
 
22717
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22718
 
 
22719
# Handling of arguments.
 
22720
for ac_config_target in $ac_config_targets
 
22721
do
 
22722
  case $ac_config_target in
 
22723
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
22724
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22725
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
22726
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
22727
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22728
    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
 
22729
    "src/ekiga-config-tool") CONFIG_FILES="$CONFIG_FILES src/ekiga-config-tool" ;;
 
22730
    "ekiga.schemas.in") CONFIG_FILES="$CONFIG_FILES ekiga.schemas.in" ;;
 
22731
    "ekiga.desktop.in") CONFIG_FILES="$CONFIG_FILES ekiga.desktop.in" ;;
 
22732
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
22733
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
22734
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
22735
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
22736
    "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
 
22737
    "sounds/Makefile") CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;;
 
22738
    "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
 
22739
    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
 
22740
    "plugins/avahi/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/avahi/Makefile" ;;
 
22741
    "plugins/evolution/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/evolution/Makefile" ;;
 
22742
    "plugins/gstreamer/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/gstreamer/Makefile" ;;
 
22743
    "plugins/kab/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kab/Makefile" ;;
 
22744
    "plugins/kde/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kde/Makefile" ;;
 
22745
    "plugins/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ldap/Makefile" ;;
 
22746
    "plugins/libnotify/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/libnotify/Makefile" ;;
 
22747
    "plugins/loudmouth/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/loudmouth/Makefile" ;;
 
22748
    "plugins/resource-list/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/resource-list/Makefile" ;;
 
22749
    "plugins/xcap/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/xcap/Makefile" ;;
 
22750
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
 
22751
 
 
22752
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
22753
  esac
 
22754
done
 
22755
 
 
22756
 
 
22757
# If the user did not use the arguments to specify the items to instantiate,
 
22758
# then the envvar interface is used.  Set only those that are not.
 
22759
# We use the long form for the default assignment because of an extremely
 
22760
# bizarre bug on SunOS 4.1.3.
 
22761
if $ac_need_defaults; then
 
22762
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22763
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
22764
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
22765
fi
 
22766
 
 
22767
# Have a temporary directory for convenience.  Make it in the build tree
 
22768
# simply because there is no reason against having it here, and in addition,
 
22769
# creating and moving files from /tmp can sometimes cause problems.
 
22770
# Hook for its removal unless debugging.
 
22771
# Note that there is a small window in which the directory will not be cleaned:
 
22772
# after its creation but before its name has been assigned to `$tmp'.
 
22773
$debug ||
 
22774
{
 
22775
  tmp= ac_tmp=
 
22776
  trap 'exit_status=$?
 
22777
  : "${ac_tmp:=$tmp}"
 
22778
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
22779
' 0
 
22780
  trap 'as_fn_exit 1' 1 2 13 15
 
22781
}
 
22782
# Create a (secure) tmp directory for tmp files.
 
22783
 
 
22784
{
 
22785
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
22786
  test -d "$tmp"
 
22787
}  ||
 
22788
{
 
22789
  tmp=./conf$$-$RANDOM
 
22790
  (umask 077 && mkdir "$tmp")
 
22791
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
22792
ac_tmp=$tmp
 
22793
 
 
22794
# Set up the scripts for CONFIG_FILES section.
 
22795
# No need to generate them if there are no CONFIG_FILES.
 
22796
# This happens for instance with `./config.status config.h'.
 
22797
if test -n "$CONFIG_FILES"; then
 
22798
 
 
22799
 
 
22800
ac_cr=`echo X | tr X '\015'`
 
22801
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
22802
# But we know of no other shell where ac_cr would be empty at this
 
22803
# point, so we can use a bashism as a fallback.
 
22804
if test "x$ac_cr" = x; then
 
22805
  eval ac_cr=\$\'\\r\'
 
22806
fi
 
22807
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
22808
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
22809
  ac_cs_awk_cr='\\r'
 
22810
else
 
22811
  ac_cs_awk_cr=$ac_cr
 
22812
fi
 
22813
 
 
22814
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
22815
_ACEOF
 
22816
 
 
22817
 
 
22818
{
 
22819
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
22820
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
22821
  echo "_ACEOF"
 
22822
} >conf$$subs.sh ||
 
22823
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
22824
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
22825
ac_delim='%!_!# '
 
22826
for ac_last_try in false false false false false :; do
 
22827
  . ./conf$$subs.sh ||
 
22828
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
22829
 
 
22830
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
22831
  if test $ac_delim_n = $ac_delim_num; then
 
22832
    break
 
22833
  elif $ac_last_try; then
 
22834
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
22835
  else
 
22836
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22837
  fi
 
22838
done
 
22839
rm -f conf$$subs.sh
 
22840
 
 
22841
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22842
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
22843
_ACEOF
 
22844
sed -n '
 
22845
h
 
22846
s/^/S["/; s/!.*/"]=/
 
22847
p
 
22848
g
 
22849
s/^[^!]*!//
 
22850
:repl
 
22851
t repl
 
22852
s/'"$ac_delim"'$//
 
22853
t delim
 
22854
:nl
 
22855
h
 
22856
s/\(.\{148\}\)..*/\1/
 
22857
t more1
 
22858
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
22859
p
 
22860
n
 
22861
b repl
 
22862
:more1
 
22863
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
22864
p
 
22865
g
 
22866
s/.\{148\}//
 
22867
t nl
 
22868
:delim
 
22869
h
 
22870
s/\(.\{148\}\)..*/\1/
 
22871
t more2
 
22872
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
22873
p
 
22874
b
 
22875
:more2
 
22876
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
22877
p
 
22878
g
 
22879
s/.\{148\}//
 
22880
t delim
 
22881
' <conf$$subs.awk | sed '
 
22882
/^[^""]/{
 
22883
  N
 
22884
  s/\n//
 
22885
}
 
22886
' >>$CONFIG_STATUS || ac_write_fail=1
 
22887
rm -f conf$$subs.awk
 
22888
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22889
_ACAWK
 
22890
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
22891
  for (key in S) S_is_set[key] = 1
 
22892
  FS = ""
 
22893
 
 
22894
}
 
22895
{
 
22896
  line = $ 0
 
22897
  nfields = split(line, field, "@")
 
22898
  substed = 0
 
22899
  len = length(field[1])
 
22900
  for (i = 2; i < nfields; i++) {
 
22901
    key = field[i]
 
22902
    keylen = length(key)
 
22903
    if (S_is_set[key]) {
 
22904
      value = S[key]
 
22905
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
22906
      len += length(value) + length(field[++i])
 
22907
      substed = 1
 
22908
    } else
 
22909
      len += 1 + keylen
 
22910
  }
 
22911
 
 
22912
  print line
 
22913
}
 
22914
 
 
22915
_ACAWK
 
22916
_ACEOF
 
22917
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22918
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
22919
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
22920
else
 
22921
  cat
 
22922
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
22923
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
22924
_ACEOF
 
22925
 
 
22926
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
22927
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
22928
# trailing colons and then remove the whole line if VPATH becomes empty
 
22929
# (actually we leave an empty line to preserve line numbers).
 
22930
if test "x$srcdir" = x.; then
 
22931
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
22932
h
 
22933
s///
 
22934
s/^/:/
 
22935
s/[      ]*$/:/
 
22936
s/:\$(srcdir):/:/g
 
22937
s/:\${srcdir}:/:/g
 
22938
s/:@srcdir@:/:/g
 
22939
s/^:*//
 
22940
s/:*$//
 
22941
x
 
22942
s/\(=[   ]*\).*/\1/
 
22943
G
 
22944
s/\n//
 
22945
s/^[^=]*=[       ]*$//
 
22946
}'
 
22947
fi
 
22948
 
 
22949
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22950
fi # test -n "$CONFIG_FILES"
 
22951
 
 
22952
# Set up the scripts for CONFIG_HEADERS section.
 
22953
# No need to generate them if there are no CONFIG_HEADERS.
 
22954
# This happens for instance with `./config.status Makefile'.
 
22955
if test -n "$CONFIG_HEADERS"; then
 
22956
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
22957
BEGIN {
 
22958
_ACEOF
 
22959
 
 
22960
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
22961
# here-document in config.status, that substitutes the proper values into
 
22962
# config.h.in to produce config.h.
 
22963
 
 
22964
# Create a delimiter string that does not exist in confdefs.h, to ease
 
22965
# handling of long lines.
 
22966
ac_delim='%!_!# '
 
22967
for ac_last_try in false false :; do
 
22968
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
22969
  if test -z "$ac_tt"; then
 
22970
    break
 
22971
  elif $ac_last_try; then
 
22972
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
22973
  else
 
22974
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22975
  fi
 
22976
done
 
22977
 
 
22978
# For the awk script, D is an array of macro values keyed by name,
 
22979
# likewise P contains macro parameters if any.  Preserve backslash
 
22980
# newline sequences.
 
22981
 
 
22982
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
22983
sed -n '
 
22984
s/.\{148\}/&'"$ac_delim"'/g
 
22985
t rset
 
22986
:rset
 
22987
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
22988
t def
 
22989
d
 
22990
:def
 
22991
s/\\$//
 
22992
t bsnl
 
22993
s/["\\]/\\&/g
 
22994
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
22995
D["\1"]=" \3"/p
 
22996
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
22997
d
 
22998
:bsnl
 
22999
s/["\\]/\\&/g
 
23000
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
23001
D["\1"]=" \3\\\\\\n"\\/p
 
23002
t cont
 
23003
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
23004
t cont
 
23005
d
 
23006
:cont
 
23007
n
 
23008
s/.\{148\}/&'"$ac_delim"'/g
 
23009
t clear
 
23010
:clear
 
23011
s/\\$//
 
23012
t bsnlc
 
23013
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
23014
d
 
23015
:bsnlc
 
23016
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
23017
b cont
 
23018
' <confdefs.h | sed '
 
23019
s/'"$ac_delim"'/"\\\
 
23020
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
23021
 
 
23022
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23023
  for (key in D) D_is_set[key] = 1
 
23024
  FS = ""
 
23025
}
 
23026
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
23027
  line = \$ 0
 
23028
  split(line, arg, " ")
 
23029
  if (arg[1] == "#") {
 
23030
    defundef = arg[2]
 
23031
    mac1 = arg[3]
 
23032
  } else {
 
23033
    defundef = substr(arg[1], 2)
 
23034
    mac1 = arg[2]
 
23035
  }
 
23036
  split(mac1, mac2, "(") #)
 
23037
  macro = mac2[1]
 
23038
  prefix = substr(line, 1, index(line, defundef) - 1)
 
23039
  if (D_is_set[macro]) {
 
23040
    # Preserve the white space surrounding the "#".
 
23041
    print prefix "define", macro P[macro] D[macro]
 
23042
    next
 
23043
  } else {
 
23044
    # Replace #undef with comments.  This is necessary, for example,
 
23045
    # in the case of _POSIX_SOURCE, which is predefined and required
 
23046
    # on some systems where configure will not decide to define it.
 
23047
    if (defundef == "undef") {
 
23048
      print "/*", prefix defundef, macro, "*/"
 
23049
      next
 
23050
    }
 
23051
  }
 
23052
}
 
23053
{ print }
 
23054
_ACAWK
 
23055
_ACEOF
 
23056
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23057
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
23058
fi # test -n "$CONFIG_HEADERS"
 
23059
 
 
23060
 
 
23061
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
23062
shift
 
23063
for ac_tag
 
23064
do
 
23065
  case $ac_tag in
 
23066
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
23067
  esac
 
23068
  case $ac_mode$ac_tag in
 
23069
  :[FHL]*:*);;
 
23070
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
23071
  :[FH]-) ac_tag=-:-;;
 
23072
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
23073
  esac
 
23074
  ac_save_IFS=$IFS
 
23075
  IFS=:
 
23076
  set x $ac_tag
 
23077
  IFS=$ac_save_IFS
 
23078
  shift
 
23079
  ac_file=$1
 
23080
  shift
 
23081
 
 
23082
  case $ac_mode in
 
23083
  :L) ac_source=$1;;
 
23084
  :[FH])
 
23085
    ac_file_inputs=
 
23086
    for ac_f
 
23087
    do
 
23088
      case $ac_f in
 
23089
      -) ac_f="$ac_tmp/stdin";;
 
23090
      *) # Look for the file first in the build tree, then in the source tree
 
23091
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
23092
         # because $ac_f cannot contain `:'.
 
23093
         test -f "$ac_f" ||
 
23094
           case $ac_f in
 
23095
           [\\/$]*) false;;
 
23096
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
23097
           esac ||
 
23098
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
23099
      esac
 
23100
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
23101
      as_fn_append ac_file_inputs " '$ac_f'"
 
23102
    done
 
23103
 
 
23104
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23105
    # use $as_me), people would be surprised to read:
 
23106
    #    /* config.h.  Generated by config.status.  */
 
23107
    configure_input='Generated from '`
 
23108
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
23109
        `' by configure.'
 
23110
    if test x"$ac_file" != x-; then
 
23111
      configure_input="$ac_file.  $configure_input"
 
23112
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
23113
$as_echo "$as_me: creating $ac_file" >&6;}
 
23114
    fi
 
23115
    # Neutralize special characters interpreted by sed in replacement strings.
 
23116
    case $configure_input in #(
 
23117
    *\&* | *\|* | *\\* )
 
23118
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
23119
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
23120
    *) ac_sed_conf_input=$configure_input;;
 
23121
    esac
 
23122
 
 
23123
    case $ac_tag in
 
23124
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
23125
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
23126
    esac
 
23127
    ;;
 
23128
  esac
 
23129
 
 
23130
  ac_dir=`$as_dirname -- "$ac_file" ||
 
23131
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23132
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23133
         X"$ac_file" : 'X\(//\)$' \| \
 
23134
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
23135
$as_echo X"$ac_file" |
 
23136
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23137
            s//\1/
 
23138
            q
 
23139
          }
 
23140
          /^X\(\/\/\)[^/].*/{
 
23141
            s//\1/
 
23142
            q
 
23143
          }
 
23144
          /^X\(\/\/\)$/{
 
23145
            s//\1/
 
23146
            q
 
23147
          }
 
23148
          /^X\(\/\).*/{
 
23149
            s//\1/
 
23150
            q
 
23151
          }
 
23152
          s/.*/./; q'`
 
23153
  as_dir="$ac_dir"; as_fn_mkdir_p
 
23154
  ac_builddir=.
 
23155
 
 
23156
case "$ac_dir" in
 
23157
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23158
*)
 
23159
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
23160
  # A ".." for each directory in $ac_dir_suffix.
 
23161
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
23162
  case $ac_top_builddir_sub in
 
23163
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23164
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
23165
  esac ;;
 
23166
esac
 
23167
ac_abs_top_builddir=$ac_pwd
 
23168
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
23169
# for backward compatibility:
 
23170
ac_top_builddir=$ac_top_build_prefix
 
23171
 
 
23172
case $srcdir in
 
23173
  .)  # We are building in place.
 
23174
    ac_srcdir=.
 
23175
    ac_top_srcdir=$ac_top_builddir_sub
 
23176
    ac_abs_top_srcdir=$ac_pwd ;;
 
23177
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
23178
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23179
    ac_top_srcdir=$srcdir
 
23180
    ac_abs_top_srcdir=$srcdir ;;
 
23181
  *) # Relative name.
 
23182
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
23183
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
23184
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
23185
esac
 
23186
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
23187
 
 
23188
 
 
23189
  case $ac_mode in
 
23190
  :F)
 
23191
  #
 
23192
  # CONFIG_FILE
 
23193
  #
 
23194
 
 
23195
  case $INSTALL in
 
23196
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23197
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
23198
  esac
 
23199
  ac_MKDIR_P=$MKDIR_P
 
23200
  case $MKDIR_P in
 
23201
  [\\/$]* | ?:[\\/]* ) ;;
 
23202
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
23203
  esac
 
23204
_ACEOF
 
23205
 
 
23206
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23207
# If the template does not know about datarootdir, expand it.
 
23208
# FIXME: This hack should be removed a few years after 2.60.
 
23209
ac_datarootdir_hack=; ac_datarootdir_seen=
 
23210
ac_sed_dataroot='
 
23211
/datarootdir/ {
 
23212
  p
 
23213
  q
 
23214
}
 
23215
/@datadir@/p
 
23216
/@docdir@/p
 
23217
/@infodir@/p
 
23218
/@localedir@/p
 
23219
/@mandir@/p'
 
23220
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
23221
*datarootdir*) ac_datarootdir_seen=yes;;
 
23222
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
23223
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
23224
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
23225
_ACEOF
 
23226
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23227
  ac_datarootdir_hack='
 
23228
  s&@datadir@&$datadir&g
 
23229
  s&@docdir@&$docdir&g
 
23230
  s&@infodir@&$infodir&g
 
23231
  s&@localedir@&$localedir&g
 
23232
  s&@mandir@&$mandir&g
 
23233
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
23234
esac
 
23235
_ACEOF
 
23236
 
 
23237
# Neutralize VPATH when `$srcdir' = `.'.
 
23238
# Shell code in configure.ac might set extrasub.
 
23239
# FIXME: do we really want to maintain this feature?
 
23240
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23241
ac_sed_extra="$ac_vpsub
 
23242
$extrasub
 
23243
_ACEOF
 
23244
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23245
:t
 
23246
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23247
s|@configure_input@|$ac_sed_conf_input|;t t
 
23248
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
23249
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
23250
s&@srcdir@&$ac_srcdir&;t t
 
23251
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
23252
s&@top_srcdir@&$ac_top_srcdir&;t t
 
23253
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
23254
s&@builddir@&$ac_builddir&;t t
 
23255
s&@abs_builddir@&$ac_abs_builddir&;t t
 
23256
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
23257
s&@INSTALL@&$ac_INSTALL&;t t
 
23258
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
23259
$ac_datarootdir_hack
 
23260
"
 
23261
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
23262
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
23263
 
 
23264
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
23265
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
23266
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
23267
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
23268
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23269
which seems to be undefined.  Please make sure it is defined" >&5
 
23270
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23271
which seems to be undefined.  Please make sure it is defined" >&2;}
 
23272
 
 
23273
  rm -f "$ac_tmp/stdin"
 
23274
  case $ac_file in
 
23275
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
23276
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
23277
  esac \
 
23278
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
23279
 ;;
 
23280
  :H)
 
23281
  #
 
23282
  # CONFIG_HEADER
 
23283
  #
 
23284
  if test x"$ac_file" != x-; then
 
23285
    {
 
23286
      $as_echo "/* $configure_input  */" \
 
23287
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
23288
    } >"$ac_tmp/config.h" \
 
23289
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
23290
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
23291
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
23292
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
23293
    else
 
23294
      rm -f "$ac_file"
 
23295
      mv "$ac_tmp/config.h" "$ac_file" \
 
23296
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
23297
    fi
 
23298
  else
 
23299
    $as_echo "/* $configure_input  */" \
 
23300
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
23301
      || as_fn_error $? "could not create -" "$LINENO" 5
 
23302
  fi
 
23303
# Compute "$ac_file"'s index in $config_headers.
 
23304
_am_arg="$ac_file"
 
23305
_am_stamp_count=1
 
23306
for _am_header in $config_headers :; do
 
23307
  case $_am_header in
 
23308
    $_am_arg | $_am_arg:* )
 
23309
      break ;;
 
23310
    * )
 
23311
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23312
  esac
 
23313
done
 
23314
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
23315
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23316
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
23317
         X"$_am_arg" : 'X\(//\)$' \| \
 
23318
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
23319
$as_echo X"$_am_arg" |
 
23320
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23321
            s//\1/
 
23322
            q
 
23323
          }
 
23324
          /^X\(\/\/\)[^/].*/{
 
23325
            s//\1/
 
23326
            q
 
23327
          }
 
23328
          /^X\(\/\/\)$/{
 
23329
            s//\1/
 
23330
            q
 
23331
          }
 
23332
          /^X\(\/\).*/{
 
23333
            s//\1/
 
23334
            q
 
23335
          }
 
23336
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23337
 ;;
 
23338
 
 
23339
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
23340
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
23341
 ;;
 
23342
  esac
 
23343
 
 
23344
 
 
23345
  case $ac_file$ac_mode in
 
23346
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
23347
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
23348
  # are listed without --file.  Let's play safe and only enable the eval
 
23349
  # if we detect the quoting.
 
23350
  case $CONFIG_FILES in
 
23351
  *\'*) eval set x "$CONFIG_FILES" ;;
 
23352
  *)   set x $CONFIG_FILES ;;
 
23353
  esac
 
23354
  shift
 
23355
  for mf
 
23356
  do
 
23357
    # Strip MF so we end up with the name of the file.
 
23358
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23359
    # Check whether this is an Automake generated Makefile or not.
 
23360
    # We used to match only the files named `Makefile.in', but
 
23361
    # some people rename them; so instead we look at the file content.
 
23362
    # Grep'ing the first line is not enough: some people post-process
 
23363
    # each Makefile.in and add a new line on top of each file to say so.
 
23364
    # Grep'ing the whole file is not good either: AIX grep has a line
 
23365
    # limit of 2048, but all sed's we know have understand at least 4000.
 
23366
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
23367
      dirpart=`$as_dirname -- "$mf" ||
 
23368
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23369
         X"$mf" : 'X\(//\)[^/]' \| \
 
23370
         X"$mf" : 'X\(//\)$' \| \
 
23371
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
23372
$as_echo X"$mf" |
 
23373
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23374
            s//\1/
 
23375
            q
 
23376
          }
 
23377
          /^X\(\/\/\)[^/].*/{
 
23378
            s//\1/
 
23379
            q
 
23380
          }
 
23381
          /^X\(\/\/\)$/{
 
23382
            s//\1/
 
23383
            q
 
23384
          }
 
23385
          /^X\(\/\).*/{
 
23386
            s//\1/
 
23387
            q
 
23388
          }
 
23389
          s/.*/./; q'`
 
23390
    else
 
23391
      continue
 
23392
    fi
 
23393
    # Extract the definition of DEPDIR, am__include, and am__quote
 
23394
    # from the Makefile without running `make'.
 
23395
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23396
    test -z "$DEPDIR" && continue
 
23397
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23398
    test -z "am__include" && continue
 
23399
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23400
    # When using ansi2knr, U may be empty or an underscore; expand it
 
23401
    U=`sed -n 's/^U = //p' < "$mf"`
 
23402
    # Find all dependency output files, they are included files with
 
23403
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23404
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
23405
    # expansion.
 
23406
    for file in `sed -n "
 
23407
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23408
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23409
      # Make sure the directory exists.
 
23410
      test -f "$dirpart/$file" && continue
 
23411
      fdir=`$as_dirname -- "$file" ||
 
23412
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23413
         X"$file" : 'X\(//\)[^/]' \| \
 
23414
         X"$file" : 'X\(//\)$' \| \
 
23415
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
23416
$as_echo X"$file" |
 
23417
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23418
            s//\1/
 
23419
            q
 
23420
          }
 
23421
          /^X\(\/\/\)[^/].*/{
 
23422
            s//\1/
 
23423
            q
 
23424
          }
 
23425
          /^X\(\/\/\)$/{
 
23426
            s//\1/
 
23427
            q
 
23428
          }
 
23429
          /^X\(\/\).*/{
 
23430
            s//\1/
 
23431
            q
 
23432
          }
 
23433
          s/.*/./; q'`
 
23434
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
23435
      # echo "creating $dirpart/$file"
 
23436
      echo '# dummy' > "$dirpart/$file"
 
23437
    done
 
23438
  done
 
23439
}
 
23440
 ;;
 
23441
    "libtool":C)
 
23442
 
 
23443
    # See if we are running on zsh, and set the options which allow our
 
23444
    # commands through without removal of \ escapes.
 
23445
    if test -n "${ZSH_VERSION+set}" ; then
 
23446
      setopt NO_GLOB_SUBST
 
23447
    fi
 
23448
 
 
23449
    cfgfile="${ofile}T"
 
23450
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
23451
    $RM "$cfgfile"
 
23452
 
 
23453
    cat <<_LT_EOF >> "$cfgfile"
 
23454
#! $SHELL
 
23455
 
 
23456
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
23457
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
23458
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
23459
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
23460
#
 
23461
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
23462
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
23463
#                 Foundation, Inc.
 
23464
#   Written by Gordon Matzigkeit, 1996
 
23465
#
 
23466
#   This file is part of GNU Libtool.
 
23467
#
 
23468
# GNU Libtool is free software; you can redistribute it and/or
 
23469
# modify it under the terms of the GNU General Public License as
 
23470
# published by the Free Software Foundation; either version 2 of
 
23471
# the License, or (at your option) any later version.
 
23472
#
 
23473
# As a special exception to the GNU General Public License,
 
23474
# if you distribute this file as part of a program or library that
 
23475
# is built using GNU Libtool, you may include this file under the
 
23476
# same distribution terms that you use for the rest of that program.
 
23477
#
 
23478
# GNU Libtool is distributed in the hope that it will be useful,
 
23479
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
23480
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
23481
# GNU General Public License for more details.
 
23482
#
 
23483
# You should have received a copy of the GNU General Public License
 
23484
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
23485
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
23486
# obtained by writing to the Free Software Foundation, Inc.,
 
23487
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
23488
 
 
23489
 
 
23490
# The names of the tagged configurations supported by this script.
 
23491
available_tags="CXX "
 
23492
 
 
23493
# ### BEGIN LIBTOOL CONFIG
 
23494
 
 
23495
# Which release of libtool.m4 was used?
 
23496
macro_version=$macro_version
 
23497
macro_revision=$macro_revision
 
23498
 
 
23499
# Whether or not to build static libraries.
 
23500
build_old_libs=$enable_static
 
23501
 
 
23502
# Whether or not to build shared libraries.
 
23503
build_libtool_libs=$enable_shared
 
23504
 
 
23505
# What type of objects to build.
 
23506
pic_mode=$pic_mode
 
23507
 
 
23508
# Whether or not to optimize for fast installation.
 
23509
fast_install=$enable_fast_install
 
23510
 
 
23511
# Shell to use when invoking shell scripts.
 
23512
SHELL=$lt_SHELL
 
23513
 
 
23514
# An echo program that protects backslashes.
 
23515
ECHO=$lt_ECHO
 
23516
 
 
23517
# The PATH separator for the build system.
 
23518
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
23519
 
 
23520
# The host system.
 
23521
host_alias=$host_alias
 
23522
host=$host
 
23523
host_os=$host_os
 
23524
 
 
23525
# The build system.
 
23526
build_alias=$build_alias
 
23527
build=$build
 
23528
build_os=$build_os
 
23529
 
 
23530
# A sed program that does not truncate output.
 
23531
SED=$lt_SED
 
23532
 
 
23533
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
23534
Xsed="\$SED -e 1s/^X//"
 
23535
 
 
23536
# A grep program that handles long lines.
 
23537
GREP=$lt_GREP
 
23538
 
 
23539
# An ERE matcher.
 
23540
EGREP=$lt_EGREP
 
23541
 
 
23542
# A literal string matcher.
 
23543
FGREP=$lt_FGREP
 
23544
 
 
23545
# A BSD- or MS-compatible name lister.
 
23546
NM=$lt_NM
 
23547
 
 
23548
# Whether we need soft or hard links.
 
23549
LN_S=$lt_LN_S
 
23550
 
 
23551
# What is the maximum length of a command?
 
23552
max_cmd_len=$max_cmd_len
 
23553
 
 
23554
# Object file suffix (normally "o").
 
23555
objext=$ac_objext
 
23556
 
 
23557
# Executable file suffix (normally "").
 
23558
exeext=$exeext
 
23559
 
 
23560
# whether the shell understands "unset".
 
23561
lt_unset=$lt_unset
 
23562
 
 
23563
# turn spaces into newlines.
 
23564
SP2NL=$lt_lt_SP2NL
 
23565
 
 
23566
# turn newlines into spaces.
 
23567
NL2SP=$lt_lt_NL2SP
 
23568
 
 
23569
# convert \$build file names to \$host format.
 
23570
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
23571
 
 
23572
# convert \$build files to toolchain format.
 
23573
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
23574
 
 
23575
# An object symbol dumper.
 
23576
OBJDUMP=$lt_OBJDUMP
 
23577
 
 
23578
# Method to check whether dependent libraries are shared objects.
 
23579
deplibs_check_method=$lt_deplibs_check_method
 
23580
 
 
23581
# Command to use when deplibs_check_method = "file_magic".
 
23582
file_magic_cmd=$lt_file_magic_cmd
 
23583
 
 
23584
# How to find potential files when deplibs_check_method = "file_magic".
 
23585
file_magic_glob=$lt_file_magic_glob
 
23586
 
 
23587
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
23588
want_nocaseglob=$lt_want_nocaseglob
 
23589
 
 
23590
# DLL creation program.
 
23591
DLLTOOL=$lt_DLLTOOL
 
23592
 
 
23593
# Command to associate shared and link libraries.
 
23594
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
23595
 
 
23596
# The archiver.
 
23597
AR=$lt_AR
 
23598
 
 
23599
# Flags to create an archive.
 
23600
AR_FLAGS=$lt_AR_FLAGS
 
23601
 
 
23602
# How to feed a file listing to the archiver.
 
23603
archiver_list_spec=$lt_archiver_list_spec
 
23604
 
 
23605
# A symbol stripping program.
 
23606
STRIP=$lt_STRIP
 
23607
 
 
23608
# Commands used to install an old-style archive.
 
23609
RANLIB=$lt_RANLIB
 
23610
old_postinstall_cmds=$lt_old_postinstall_cmds
 
23611
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
23612
 
 
23613
# Whether to use a lock for old archive extraction.
 
23614
lock_old_archive_extraction=$lock_old_archive_extraction
 
23615
 
 
23616
# A C compiler.
 
23617
LTCC=$lt_CC
 
23618
 
 
23619
# LTCC compiler flags.
 
23620
LTCFLAGS=$lt_CFLAGS
 
23621
 
 
23622
# Take the output of nm and produce a listing of raw symbols and C names.
 
23623
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
23624
 
 
23625
# Transform the output of nm in a proper C declaration.
 
23626
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
23627
 
 
23628
# Transform the output of nm in a C name address pair.
 
23629
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
23630
 
 
23631
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
23632
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
23633
 
 
23634
# Specify filename containing input files for \$NM.
 
23635
nm_file_list_spec=$lt_nm_file_list_spec
 
23636
 
 
23637
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
23638
lt_sysroot=$lt_sysroot
 
23639
 
 
23640
# The name of the directory that contains temporary libtool files.
 
23641
objdir=$objdir
 
23642
 
 
23643
# Used to examine libraries when file_magic_cmd begins with "file".
 
23644
MAGIC_CMD=$MAGIC_CMD
 
23645
 
 
23646
# Must we lock files when doing compilation?
 
23647
need_locks=$lt_need_locks
 
23648
 
 
23649
# Manifest tool.
 
23650
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
23651
 
 
23652
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
23653
DSYMUTIL=$lt_DSYMUTIL
 
23654
 
 
23655
# Tool to change global to local symbols on Mac OS X.
 
23656
NMEDIT=$lt_NMEDIT
 
23657
 
 
23658
# Tool to manipulate fat objects and archives on Mac OS X.
 
23659
LIPO=$lt_LIPO
 
23660
 
 
23661
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
23662
OTOOL=$lt_OTOOL
 
23663
 
 
23664
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
23665
OTOOL64=$lt_OTOOL64
 
23666
 
 
23667
# Old archive suffix (normally "a").
 
23668
libext=$libext
 
23669
 
 
23670
# Shared library suffix (normally ".so").
 
23671
shrext_cmds=$lt_shrext_cmds
 
23672
 
 
23673
# The commands to extract the exported symbol list from a shared archive.
 
23674
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
23675
 
 
23676
# Variables whose values should be saved in libtool wrapper scripts and
 
23677
# restored at link time.
 
23678
variables_saved_for_relink=$lt_variables_saved_for_relink
 
23679
 
 
23680
# Do we need the "lib" prefix for modules?
 
23681
need_lib_prefix=$need_lib_prefix
 
23682
 
 
23683
# Do we need a version for libraries?
 
23684
need_version=$need_version
 
23685
 
 
23686
# Library versioning type.
 
23687
version_type=$version_type
 
23688
 
 
23689
# Shared library runtime path variable.
 
23690
runpath_var=$runpath_var
 
23691
 
 
23692
# Shared library path variable.
 
23693
shlibpath_var=$shlibpath_var
 
23694
 
 
23695
# Is shlibpath searched before the hard-coded library search path?
 
23696
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
23697
 
 
23698
# Format of library name prefix.
 
23699
libname_spec=$lt_libname_spec
 
23700
 
 
23701
# List of archive names.  First name is the real one, the rest are links.
 
23702
# The last name is the one that the linker finds with -lNAME
 
23703
library_names_spec=$lt_library_names_spec
 
23704
 
 
23705
# The coded name of the library, if different from the real name.
 
23706
soname_spec=$lt_soname_spec
 
23707
 
 
23708
# Permission mode override for installation of shared libraries.
 
23709
install_override_mode=$lt_install_override_mode
 
23710
 
 
23711
# Command to use after installation of a shared archive.
 
23712
postinstall_cmds=$lt_postinstall_cmds
 
23713
 
 
23714
# Command to use after uninstallation of a shared archive.
 
23715
postuninstall_cmds=$lt_postuninstall_cmds
 
23716
 
 
23717
# Commands used to finish a libtool library installation in a directory.
 
23718
finish_cmds=$lt_finish_cmds
 
23719
 
 
23720
# As "finish_cmds", except a single script fragment to be evaled but
 
23721
# not shown.
 
23722
finish_eval=$lt_finish_eval
 
23723
 
 
23724
# Whether we should hardcode library paths into libraries.
 
23725
hardcode_into_libs=$hardcode_into_libs
 
23726
 
 
23727
# Compile-time system search path for libraries.
 
23728
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
23729
 
 
23730
# Run-time system search path for libraries.
 
23731
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
23732
 
 
23733
# Whether dlopen is supported.
 
23734
dlopen_support=$enable_dlopen
 
23735
 
 
23736
# Whether dlopen of programs is supported.
 
23737
dlopen_self=$enable_dlopen_self
 
23738
 
 
23739
# Whether dlopen of statically linked programs is supported.
 
23740
dlopen_self_static=$enable_dlopen_self_static
 
23741
 
 
23742
# Commands to strip libraries.
 
23743
old_striplib=$lt_old_striplib
 
23744
striplib=$lt_striplib
 
23745
 
 
23746
 
 
23747
# The linker used to build libraries.
 
23748
LD=$lt_LD
 
23749
 
 
23750
# How to create reloadable object files.
 
23751
reload_flag=$lt_reload_flag
 
23752
reload_cmds=$lt_reload_cmds
 
23753
 
 
23754
# Commands used to build an old-style archive.
 
23755
old_archive_cmds=$lt_old_archive_cmds
 
23756
 
 
23757
# A language specific compiler.
 
23758
CC=$lt_compiler
 
23759
 
 
23760
# Is the compiler the GNU compiler?
 
23761
with_gcc=$GCC
 
23762
 
 
23763
# Compiler flag to turn off builtin functions.
 
23764
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
23765
 
 
23766
# Additional compiler flags for building library objects.
 
23767
pic_flag=$lt_lt_prog_compiler_pic
 
23768
 
 
23769
# How to pass a linker flag through the compiler.
 
23770
wl=$lt_lt_prog_compiler_wl
 
23771
 
 
23772
# Compiler flag to prevent dynamic linking.
 
23773
link_static_flag=$lt_lt_prog_compiler_static
 
23774
 
 
23775
# Does compiler simultaneously support -c and -o options?
 
23776
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
23777
 
 
23778
# Whether or not to add -lc for building shared libraries.
 
23779
build_libtool_need_lc=$archive_cmds_need_lc
 
23780
 
 
23781
# Whether or not to disallow shared libs when runtime libs are static.
 
23782
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
23783
 
 
23784
# Compiler flag to allow reflexive dlopens.
 
23785
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
23786
 
 
23787
# Compiler flag to generate shared objects directly from archives.
 
23788
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
23789
 
 
23790
# Whether the compiler copes with passing no objects directly.
 
23791
compiler_needs_object=$lt_compiler_needs_object
 
23792
 
 
23793
# Create an old-style archive from a shared archive.
 
23794
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
23795
 
 
23796
# Create a temporary old-style archive to link instead of a shared archive.
 
23797
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
23798
 
 
23799
# Commands used to build a shared archive.
 
23800
archive_cmds=$lt_archive_cmds
 
23801
archive_expsym_cmds=$lt_archive_expsym_cmds
 
23802
 
 
23803
# Commands used to build a loadable module if different from building
 
23804
# a shared archive.
 
23805
module_cmds=$lt_module_cmds
 
23806
module_expsym_cmds=$lt_module_expsym_cmds
 
23807
 
 
23808
# Whether we are building with GNU ld or not.
 
23809
with_gnu_ld=$lt_with_gnu_ld
 
23810
 
 
23811
# Flag that allows shared libraries with undefined symbols to be built.
 
23812
allow_undefined_flag=$lt_allow_undefined_flag
 
23813
 
 
23814
# Flag that enforces no undefined symbols.
 
23815
no_undefined_flag=$lt_no_undefined_flag
 
23816
 
 
23817
# Flag to hardcode \$libdir into a binary during linking.
 
23818
# This must work even if \$libdir does not exist
 
23819
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
23820
 
 
23821
# Whether we need a single "-rpath" flag with a separated argument.
 
23822
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
23823
 
 
23824
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
23825
# DIR into the resulting binary.
 
23826
hardcode_direct=$hardcode_direct
 
23827
 
 
23828
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
23829
# DIR into the resulting binary and the resulting library dependency is
 
23830
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
23831
# library is relocated.
 
23832
hardcode_direct_absolute=$hardcode_direct_absolute
 
23833
 
 
23834
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
23835
# into the resulting binary.
 
23836
hardcode_minus_L=$hardcode_minus_L
 
23837
 
 
23838
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
23839
# into the resulting binary.
 
23840
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
23841
 
 
23842
# Set to "yes" if building a shared library automatically hardcodes DIR
 
23843
# into the library and all subsequent libraries and executables linked
 
23844
# against it.
 
23845
hardcode_automatic=$hardcode_automatic
 
23846
 
 
23847
# Set to yes if linker adds runtime paths of dependent libraries
 
23848
# to runtime path list.
 
23849
inherit_rpath=$inherit_rpath
 
23850
 
 
23851
# Whether libtool must link a program against all its dependency libraries.
 
23852
link_all_deplibs=$link_all_deplibs
 
23853
 
 
23854
# Set to "yes" if exported symbols are required.
 
23855
always_export_symbols=$always_export_symbols
 
23856
 
 
23857
# The commands to list exported symbols.
 
23858
export_symbols_cmds=$lt_export_symbols_cmds
 
23859
 
 
23860
# Symbols that should not be listed in the preloaded symbols.
 
23861
exclude_expsyms=$lt_exclude_expsyms
 
23862
 
 
23863
# Symbols that must always be exported.
 
23864
include_expsyms=$lt_include_expsyms
 
23865
 
 
23866
# Commands necessary for linking programs (against libraries) with templates.
 
23867
prelink_cmds=$lt_prelink_cmds
 
23868
 
 
23869
# Commands necessary for finishing linking programs.
 
23870
postlink_cmds=$lt_postlink_cmds
 
23871
 
 
23872
# Specify filename containing input files.
 
23873
file_list_spec=$lt_file_list_spec
 
23874
 
 
23875
# How to hardcode a shared library path into an executable.
 
23876
hardcode_action=$hardcode_action
 
23877
 
 
23878
# The directories searched by this compiler when creating a shared library.
 
23879
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
23880
 
 
23881
# Dependencies to place before and after the objects being linked to
 
23882
# create a shared library.
 
23883
predep_objects=$lt_predep_objects
 
23884
postdep_objects=$lt_postdep_objects
 
23885
predeps=$lt_predeps
 
23886
postdeps=$lt_postdeps
 
23887
 
 
23888
# The library search path used internally by the compiler when linking
 
23889
# a shared library.
 
23890
compiler_lib_search_path=$lt_compiler_lib_search_path
 
23891
 
 
23892
# ### END LIBTOOL CONFIG
 
23893
 
 
23894
_LT_EOF
 
23895
 
 
23896
  case $host_os in
 
23897
  aix3*)
 
23898
    cat <<\_LT_EOF >> "$cfgfile"
 
23899
# AIX sometimes has problems with the GCC collect2 program.  For some
 
23900
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
23901
# vanish in a puff of smoke.
 
23902
if test "X${COLLECT_NAMES+set}" != Xset; then
 
23903
  COLLECT_NAMES=
 
23904
  export COLLECT_NAMES
 
23905
fi
 
23906
_LT_EOF
 
23907
    ;;
 
23908
  esac
 
23909
 
 
23910
 
 
23911
ltmain="$ac_aux_dir/ltmain.sh"
 
23912
 
 
23913
 
 
23914
  # We use sed instead of cat because bash on DJGPP gets confused if
 
23915
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
23916
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
23917
  # is reportedly fixed, but why not run on old versions too?
 
23918
  sed '$q' "$ltmain" >> "$cfgfile" \
 
23919
     || (rm -f "$cfgfile"; exit 1)
 
23920
 
 
23921
  if test x"$xsi_shell" = xyes; then
 
23922
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
23923
func_dirname ()\
 
23924
{\
 
23925
\    case ${1} in\
 
23926
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
23927
\      *  ) func_dirname_result="${3}" ;;\
 
23928
\    esac\
 
23929
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
23930
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
23931
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
23932
test 0 -eq $? || _lt_function_replace_fail=:
 
23933
 
 
23934
 
 
23935
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
23936
func_basename ()\
 
23937
{\
 
23938
\    func_basename_result="${1##*/}"\
 
23939
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
23940
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
23941
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
23942
test 0 -eq $? || _lt_function_replace_fail=:
 
23943
 
 
23944
 
 
23945
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
23946
func_dirname_and_basename ()\
 
23947
{\
 
23948
\    case ${1} in\
 
23949
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
23950
\      *  ) func_dirname_result="${3}" ;;\
 
23951
\    esac\
 
23952
\    func_basename_result="${1##*/}"\
 
23953
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
23954
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
23955
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
23956
test 0 -eq $? || _lt_function_replace_fail=:
 
23957
 
 
23958
 
 
23959
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
23960
func_stripname ()\
 
23961
{\
 
23962
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
23963
\    # positional parameters, so assign one to ordinary parameter first.\
 
23964
\    func_stripname_result=${3}\
 
23965
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
23966
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
23967
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
23968
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
23969
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
23970
test 0 -eq $? || _lt_function_replace_fail=:
 
23971
 
 
23972
 
 
23973
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
23974
func_split_long_opt ()\
 
23975
{\
 
23976
\    func_split_long_opt_name=${1%%=*}\
 
23977
\    func_split_long_opt_arg=${1#*=}\
 
23978
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
23979
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
23980
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
23981
test 0 -eq $? || _lt_function_replace_fail=:
 
23982
 
 
23983
 
 
23984
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
23985
func_split_short_opt ()\
 
23986
{\
 
23987
\    func_split_short_opt_arg=${1#??}\
 
23988
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
23989
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
23990
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
23991
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
23992
test 0 -eq $? || _lt_function_replace_fail=:
 
23993
 
 
23994
 
 
23995
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
23996
func_lo2o ()\
 
23997
{\
 
23998
\    case ${1} in\
 
23999
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
24000
\      *)    func_lo2o_result=${1} ;;\
 
24001
\    esac\
 
24002
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
24003
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
24004
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
24005
test 0 -eq $? || _lt_function_replace_fail=:
 
24006
 
 
24007
 
 
24008
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
24009
func_xform ()\
 
24010
{\
 
24011
    func_xform_result=${1%.*}.lo\
 
24012
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
24013
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
24014
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
24015
test 0 -eq $? || _lt_function_replace_fail=:
 
24016
 
 
24017
 
 
24018
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
24019
func_arith ()\
 
24020
{\
 
24021
    func_arith_result=$(( $* ))\
 
24022
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
24023
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
24024
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
24025
test 0 -eq $? || _lt_function_replace_fail=:
 
24026
 
 
24027
 
 
24028
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
24029
func_len ()\
 
24030
{\
 
24031
    func_len_result=${#1}\
 
24032
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
24033
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
24034
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
24035
test 0 -eq $? || _lt_function_replace_fail=:
 
24036
 
 
24037
fi
 
24038
 
 
24039
if test x"$lt_shell_append" = xyes; then
 
24040
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
24041
func_append ()\
 
24042
{\
 
24043
    eval "${1}+=\\${2}"\
 
24044
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
24045
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
24046
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
24047
test 0 -eq $? || _lt_function_replace_fail=:
 
24048
 
 
24049
 
 
24050
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
24051
func_append_quoted ()\
 
24052
{\
 
24053
\    func_quote_for_eval "${2}"\
 
24054
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
24055
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
24056
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
24057
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
24058
test 0 -eq $? || _lt_function_replace_fail=:
 
24059
 
 
24060
 
 
24061
  # Save a `func_append' function call where possible by direct use of '+='
 
24062
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
24063
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
24064
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
24065
  test 0 -eq $? || _lt_function_replace_fail=:
 
24066
else
 
24067
  # Save a `func_append' function call even when '+=' is not available
 
24068
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
24069
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
24070
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
24071
  test 0 -eq $? || _lt_function_replace_fail=:
 
24072
fi
 
24073
 
 
24074
if test x"$_lt_function_replace_fail" = x":"; then
 
24075
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
24076
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
24077
fi
 
24078
 
 
24079
 
 
24080
   mv -f "$cfgfile" "$ofile" ||
 
24081
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
24082
  chmod +x "$ofile"
 
24083
 
 
24084
 
 
24085
    cat <<_LT_EOF >> "$ofile"
 
24086
 
 
24087
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
24088
 
 
24089
# The linker used to build libraries.
 
24090
LD=$lt_LD_CXX
 
24091
 
 
24092
# How to create reloadable object files.
 
24093
reload_flag=$lt_reload_flag_CXX
 
24094
reload_cmds=$lt_reload_cmds_CXX
 
24095
 
 
24096
# Commands used to build an old-style archive.
 
24097
old_archive_cmds=$lt_old_archive_cmds_CXX
 
24098
 
 
24099
# A language specific compiler.
 
24100
CC=$lt_compiler_CXX
 
24101
 
 
24102
# Is the compiler the GNU compiler?
 
24103
with_gcc=$GCC_CXX
 
24104
 
 
24105
# Compiler flag to turn off builtin functions.
 
24106
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
24107
 
 
24108
# Additional compiler flags for building library objects.
 
24109
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
24110
 
 
24111
# How to pass a linker flag through the compiler.
 
24112
wl=$lt_lt_prog_compiler_wl_CXX
 
24113
 
 
24114
# Compiler flag to prevent dynamic linking.
 
24115
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
24116
 
 
24117
# Does compiler simultaneously support -c and -o options?
 
24118
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
24119
 
 
24120
# Whether or not to add -lc for building shared libraries.
 
24121
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
24122
 
 
24123
# Whether or not to disallow shared libs when runtime libs are static.
 
24124
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
24125
 
 
24126
# Compiler flag to allow reflexive dlopens.
 
24127
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
24128
 
 
24129
# Compiler flag to generate shared objects directly from archives.
 
24130
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
24131
 
 
24132
# Whether the compiler copes with passing no objects directly.
 
24133
compiler_needs_object=$lt_compiler_needs_object_CXX
 
24134
 
 
24135
# Create an old-style archive from a shared archive.
 
24136
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
24137
 
 
24138
# Create a temporary old-style archive to link instead of a shared archive.
 
24139
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
24140
 
 
24141
# Commands used to build a shared archive.
 
24142
archive_cmds=$lt_archive_cmds_CXX
 
24143
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
24144
 
 
24145
# Commands used to build a loadable module if different from building
 
24146
# a shared archive.
 
24147
module_cmds=$lt_module_cmds_CXX
 
24148
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
24149
 
 
24150
# Whether we are building with GNU ld or not.
 
24151
with_gnu_ld=$lt_with_gnu_ld_CXX
 
24152
 
 
24153
# Flag that allows shared libraries with undefined symbols to be built.
 
24154
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
24155
 
 
24156
# Flag that enforces no undefined symbols.
 
24157
no_undefined_flag=$lt_no_undefined_flag_CXX
 
24158
 
 
24159
# Flag to hardcode \$libdir into a binary during linking.
 
24160
# This must work even if \$libdir does not exist
 
24161
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
24162
 
 
24163
# Whether we need a single "-rpath" flag with a separated argument.
 
24164
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
24165
 
 
24166
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
24167
# DIR into the resulting binary.
 
24168
hardcode_direct=$hardcode_direct_CXX
 
24169
 
 
24170
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
24171
# DIR into the resulting binary and the resulting library dependency is
 
24172
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
24173
# library is relocated.
 
24174
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
24175
 
 
24176
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
24177
# into the resulting binary.
 
24178
hardcode_minus_L=$hardcode_minus_L_CXX
 
24179
 
 
24180
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
24181
# into the resulting binary.
 
24182
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
24183
 
 
24184
# Set to "yes" if building a shared library automatically hardcodes DIR
 
24185
# into the library and all subsequent libraries and executables linked
 
24186
# against it.
 
24187
hardcode_automatic=$hardcode_automatic_CXX
 
24188
 
 
24189
# Set to yes if linker adds runtime paths of dependent libraries
 
24190
# to runtime path list.
 
24191
inherit_rpath=$inherit_rpath_CXX
 
24192
 
 
24193
# Whether libtool must link a program against all its dependency libraries.
 
24194
link_all_deplibs=$link_all_deplibs_CXX
 
24195
 
 
24196
# Set to "yes" if exported symbols are required.
 
24197
always_export_symbols=$always_export_symbols_CXX
 
24198
 
 
24199
# The commands to list exported symbols.
 
24200
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
24201
 
 
24202
# Symbols that should not be listed in the preloaded symbols.
 
24203
exclude_expsyms=$lt_exclude_expsyms_CXX
 
24204
 
 
24205
# Symbols that must always be exported.
 
24206
include_expsyms=$lt_include_expsyms_CXX
 
24207
 
 
24208
# Commands necessary for linking programs (against libraries) with templates.
 
24209
prelink_cmds=$lt_prelink_cmds_CXX
 
24210
 
 
24211
# Commands necessary for finishing linking programs.
 
24212
postlink_cmds=$lt_postlink_cmds_CXX
 
24213
 
 
24214
# Specify filename containing input files.
 
24215
file_list_spec=$lt_file_list_spec_CXX
 
24216
 
 
24217
# How to hardcode a shared library path into an executable.
 
24218
hardcode_action=$hardcode_action_CXX
 
24219
 
 
24220
# The directories searched by this compiler when creating a shared library.
 
24221
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
24222
 
 
24223
# Dependencies to place before and after the objects being linked to
 
24224
# create a shared library.
 
24225
predep_objects=$lt_predep_objects_CXX
 
24226
postdep_objects=$lt_postdep_objects_CXX
 
24227
predeps=$lt_predeps_CXX
 
24228
postdeps=$lt_postdeps_CXX
 
24229
 
 
24230
# The library search path used internally by the compiler when linking
 
24231
# a shared library.
 
24232
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
24233
 
 
24234
# ### END LIBTOOL TAG CONFIG: CXX
 
24235
_LT_EOF
 
24236
 
 
24237
 ;;
 
24238
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 
24239
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
24240
      esac ;;
 
24241
    "po/stamp-it":C)
 
24242
    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
 
24243
       as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
 
24244
    fi
 
24245
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
 
24246
    >"po/stamp-it.tmp"
 
24247
    sed '/^#/d
 
24248
         s/^[[].*] *//
 
24249
         /^[    ]*$/d
 
24250
        '"s|^|  $ac_top_srcdir/|" \
 
24251
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
 
24252
 
 
24253
    sed '/^POTFILES =/,/[^\\]$/ {
 
24254
                /^POTFILES =/!d
 
24255
                r po/POTFILES
 
24256
          }
 
24257
         ' "po/Makefile.in" >"po/Makefile"
 
24258
    rm -f "po/Makefile.tmp"
 
24259
    mv "po/stamp-it.tmp" "po/stamp-it"
 
24260
   ;;
 
24261
 
 
24262
  esac
 
24263
done # for ac_tag
 
24264
 
 
24265
 
 
24266
as_fn_exit 0
 
24267
_ACEOF
 
24268
ac_clean_files=$ac_clean_files_save
 
24269
 
 
24270
test $ac_write_fail = 0 ||
 
24271
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
24272
 
 
24273
 
 
24274
# configure is writing to config.log, and then calls config.status.
 
24275
# config.status does its own redirection, appending to config.log.
 
24276
# Unfortunately, on DOS this fails, as config.log is still kept open
 
24277
# by configure, so config.status won't be able to write to it; its
 
24278
# output is simply discarded.  So we exec the FD to /dev/null,
 
24279
# effectively closing config.log, so it can be properly (re)opened and
 
24280
# appended to by config.status.  When coming back to configure, we
 
24281
# need to make the FD available again.
 
24282
if test "$no_create" != yes; then
 
24283
  ac_cs_success=:
 
24284
  ac_config_status_args=
 
24285
  test "$silent" = yes &&
 
24286
    ac_config_status_args="$ac_config_status_args --quiet"
 
24287
  exec 5>/dev/null
 
24288
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
24289
  exec 5>>config.log
 
24290
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
24291
  # would make configure fail if this is the last instruction.
 
24292
  $ac_cs_success || as_fn_exit 1
 
24293
fi
 
24294
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
24295
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
24296
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
24297
fi
 
24298
 
 
24299
 
 
24300
 
 
24301
echo ""
 
24302
echo "================ Final configuration ==================="
 
24303
echo "          Installing into prefix  :  $prefix"
 
24304
echo ""
 
24305
if test "x${gm_platform}" != "xmingw" ; then
 
24306
echo "                     GDU support  :  $GDU"
 
24307
echo "                   GConf support  :  $GCONF"
 
24308
echo "   Evolution-Data-Server support  :  $EDS"
 
24309
echo "                  NOTIFY support  :  $NOTIFY"
 
24310
fi
 
24311
echo "                    LDAP support  :  $LDAP"
 
24312
if test "x${gm_platform}" != "xmingw" ; then
 
24313
echo ""
 
24314
echo "             Video4Linux support  :  $VIDEO4LINUX"
 
24315
fi
 
24316
echo ""
 
24317
echo "                  XVideo support  :  $XV"
 
24318
echo "           Shared Memory support  :  $SHM"
 
24319
if test "x${gm_platform}" = "xmingw" ; then
 
24320
echo "                 DirectX support  :  $DX"
 
24321
fi
 
24322
echo ""
 
24323
echo "                   H.323 support  :  $H323"
 
24324
echo ""
 
24325
if test "x${gm_platform}" != "xmingw" ; then
 
24326
echo "                    DBUS support  :  $DBUS"
 
24327
echo "            DBUS service support  :  $DBUS_SERVICE"
 
24328
echo "             mDNS/DNS-SD support  :  $AVAHI"
 
24329
fi
 
24330
echo ""
 
24331
echo "The following features are experimental -- you've been warned:"
 
24332
echo "               GStreamer support  :  $GSTREAMER"
 
24333
echo "            KAddressBook support  :  $KAB"
 
24334
echo "                     KDE support  :  $KDE"
 
24335
echo "                    XCAP support  :  $XCAP"
 
24336
echo "               Loudmouth support  :  $LOUDMOUTH"
 
24337
echo ""
 
24338
echo "                         OS Type  :  $target_os"
 
24339
echo "                    Machine Type  :  $target_cpu"
 
24340
echo "                      Byte Order  :  $byte_order"
 
24341
echo ""
 
24342
echo " If all settings are OK, type make and make install "
 
24343
echo "========================================================"