~dylanmccall/ubuntu/oneiric/network-manager-applet/lp852961-disable-autostart-for-gnome-shell

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2007-06-15 12:46:22 UTC
  • Revision ID: james.westby@ubuntu.com-20070615124622-01cyrnf0uxxun4lz
Tags: upstream-0.6.5
ImportĀ upstreamĀ versionĀ 0.6.5

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.61 for nm-applet 0.6.5.
 
4
#
 
5
# Report bugs to <dcbw@redhat.com>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
 
 
555
# Check that we are running under the correct shell.
 
556
SHELL=${CONFIG_SHELL-/bin/sh}
 
557
 
 
558
case X$ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
echo=${ECHO-echo}
 
566
if test "X$1" = X--no-reexec; then
 
567
  # Discard the --no-reexec flag, and continue.
 
568
  shift
 
569
elif test "X$1" = X--fallback-echo; then
 
570
  # Avoid inline document here, it may be left over
 
571
  :
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
 
574
  :
 
575
else
 
576
  # Restart under the correct shell.
 
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
578
fi
 
579
 
 
580
if test "X$1" = X--fallback-echo; then
 
581
  # used as fallback echo
 
582
  shift
 
583
  cat <<EOF
 
584
$*
 
585
EOF
 
586
  exit 0
 
587
fi
 
588
 
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
590
# if CDPATH is set.
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
592
 
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
 
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
 
630
 
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
668
      else
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
 
676
          fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
fi
 
693
 
 
694
# Copy echo and quote the copy suitably for passing to libtool from
 
695
# the Makefile, instead of quoting the original, which is used later.
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
699
fi
 
700
 
 
701
 
 
702
 
 
703
 
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
 
710
# Name of the host.
 
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
712
# so uname gets run too.
 
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
714
 
 
715
#
 
716
# Initializations.
 
717
#
 
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
 
720
ac_config_libobj_dir=.
 
721
LIBOBJS=
 
722
cross_compiling=no
 
723
subdirs=
 
724
MFLAGS=
 
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
 
727
 
 
728
# Identity of this package.
 
729
PACKAGE_NAME='nm-applet'
 
730
PACKAGE_TARNAME='nm-applet'
 
731
PACKAGE_VERSION='0.6.5'
 
732
PACKAGE_STRING='nm-applet 0.6.5'
 
733
PACKAGE_BUGREPORT='dcbw@redhat.com'
 
734
 
 
735
# Factoring default headers for most tests.
 
736
ac_includes_default="\
 
737
#include <stdio.h>
 
738
#ifdef HAVE_SYS_TYPES_H
 
739
# include <sys/types.h>
 
740
#endif
 
741
#ifdef HAVE_SYS_STAT_H
 
742
# include <sys/stat.h>
 
743
#endif
 
744
#ifdef STDC_HEADERS
 
745
# include <stdlib.h>
 
746
# include <stddef.h>
 
747
#else
 
748
# ifdef HAVE_STDLIB_H
 
749
#  include <stdlib.h>
 
750
# endif
 
751
#endif
 
752
#ifdef HAVE_STRING_H
 
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
754
#  include <memory.h>
 
755
# endif
 
756
# include <string.h>
 
757
#endif
 
758
#ifdef HAVE_STRINGS_H
 
759
# include <strings.h>
 
760
#endif
 
761
#ifdef HAVE_INTTYPES_H
 
762
# include <inttypes.h>
 
763
#endif
 
764
#ifdef HAVE_STDINT_H
 
765
# include <stdint.h>
 
766
#endif
 
767
#ifdef HAVE_UNISTD_H
 
768
# include <unistd.h>
 
769
#endif"
 
770
 
 
771
ac_subst_vars='SHELL
 
772
PATH_SEPARATOR
 
773
PACKAGE_NAME
 
774
PACKAGE_TARNAME
 
775
PACKAGE_VERSION
 
776
PACKAGE_STRING
 
777
PACKAGE_BUGREPORT
 
778
exec_prefix
 
779
prefix
 
780
program_transform_name
 
781
bindir
 
782
sbindir
 
783
libexecdir
 
784
datarootdir
 
785
datadir
 
786
sysconfdir
 
787
sharedstatedir
 
788
localstatedir
 
789
includedir
 
790
oldincludedir
 
791
docdir
 
792
infodir
 
793
htmldir
 
794
dvidir
 
795
pdfdir
 
796
psdir
 
797
libdir
 
798
localedir
 
799
mandir
 
800
DEFS
 
801
ECHO_C
 
802
ECHO_N
 
803
ECHO_T
 
804
LIBS
 
805
build_alias
 
806
host_alias
 
807
target_alias
 
808
INSTALL_PROGRAM
 
809
INSTALL_SCRIPT
 
810
INSTALL_DATA
 
811
am__isrc
 
812
CYGPATH_W
 
813
PACKAGE
 
814
VERSION
 
815
ACLOCAL
 
816
AUTOCONF
 
817
AUTOMAKE
 
818
AUTOHEADER
 
819
MAKEINFO
 
820
install_sh
 
821
STRIP
 
822
INSTALL_STRIP_PROGRAM
 
823
mkdir_p
 
824
AWK
 
825
SET_MAKE
 
826
am__leading_dot
 
827
AMTAR
 
828
am__tar
 
829
am__untar
 
830
MAINTAINER_MODE_TRUE
 
831
MAINTAINER_MODE_FALSE
 
832
MAINT
 
833
CC
 
834
CFLAGS
 
835
LDFLAGS
 
836
CPPFLAGS
 
837
ac_ct_CC
 
838
EXEEXT
 
839
OBJEXT
 
840
DEPDIR
 
841
am__include
 
842
am__quote
 
843
AMDEP_TRUE
 
844
AMDEP_FALSE
 
845
AMDEPBACKSLASH
 
846
CCDEPMODE
 
847
am__fastdepCC_TRUE
 
848
am__fastdepCC_FALSE
 
849
build
 
850
build_cpu
 
851
build_vendor
 
852
build_os
 
853
host
 
854
host_cpu
 
855
host_vendor
 
856
host_os
 
857
SED
 
858
GREP
 
859
EGREP
 
860
LN_S
 
861
ECHO
 
862
AR
 
863
RANLIB
 
864
CPP
 
865
CXX
 
866
CXXFLAGS
 
867
ac_ct_CXX
 
868
CXXDEPMODE
 
869
am__fastdepCXX_TRUE
 
870
am__fastdepCXX_FALSE
 
871
CXXCPP
 
872
F77
 
873
FFLAGS
 
874
ac_ct_F77
 
875
LIBTOOL
 
876
ACLOCAL_AMFLAGS
 
877
WARN_CFLAGS
 
878
DISABLE_DEPRECATED
 
879
LIBOBJS
 
880
GETTEXT_PACKAGE
 
881
INTLTOOL_DESKTOP_RULE
 
882
INTLTOOL_DIRECTORY_RULE
 
883
INTLTOOL_KEYS_RULE
 
884
INTLTOOL_PROP_RULE
 
885
INTLTOOL_OAF_RULE
 
886
INTLTOOL_PONG_RULE
 
887
INTLTOOL_SERVER_RULE
 
888
INTLTOOL_SHEET_RULE
 
889
INTLTOOL_SOUNDLIST_RULE
 
890
INTLTOOL_UI_RULE
 
891
INTLTOOL_XAM_RULE
 
892
INTLTOOL_KBD_RULE
 
893
INTLTOOL_XML_RULE
 
894
INTLTOOL_XML_NOMERGE_RULE
 
895
INTLTOOL_CAVES_RULE
 
896
INTLTOOL_SCHEMAS_RULE
 
897
INTLTOOL_THEME_RULE
 
898
INTLTOOL_SERVICE_RULE
 
899
INTLTOOL_EXTRACT
 
900
INTLTOOL_MERGE
 
901
INTLTOOL_UPDATE
 
902
INTLTOOL_PERL
 
903
INTLTOOL_ICONV
 
904
INTLTOOL_MSGFMT
 
905
INTLTOOL_MSGMERGE
 
906
INTLTOOL_XGETTEXT
 
907
ALL_LINGUAS
 
908
DATADIRNAME
 
909
USE_NLS
 
910
MSGFMT
 
911
MSGFMT_OPTS
 
912
GMSGFMT
 
913
XGETTEXT
 
914
CATALOGS
 
915
CATOBJEXT
 
916
GMOFILES
 
917
INSTOBJEXT
 
918
INTLLIBS
 
919
PO_IN_DATADIR_TRUE
 
920
PO_IN_DATADIR_FALSE
 
921
POFILES
 
922
POSUB
 
923
MKINSTALLDIRS
 
924
PKG_CONFIG
 
925
DBUS_CFLAGS
 
926
DBUS_LIBS
 
927
GTHREAD_CFLAGS
 
928
GTHREAD_LIBS
 
929
GLIB_CFLAGS
 
930
GLIB_LIBS
 
931
GMODULE_CFLAGS
 
932
GMODULE_LIBS
 
933
GOBJECT_CFLAGS
 
934
GOBJECT_LIBS
 
935
NM_CFLAGS
 
936
NM_LIBS
 
937
GTK_CFLAGS
 
938
GTK_LIBS
 
939
GDK_PIXBUF_CFLAGS
 
940
GDK_PIXBUF_LIBS
 
941
GLADE_CFLAGS
 
942
GLADE_LIBS
 
943
GCONF_CFLAGS
 
944
GCONF_LIBS
 
945
GNOME_KEYRING_CFLAGS
 
946
GNOME_KEYRING_LIBS
 
947
NOTIFY_CFLAGS
 
948
NOTIFY_LIBS
 
949
WITH_NOTIFY_TRUE
 
950
WITH_NOTIFY_FALSE
 
951
LIBGNOMEUI_CFLAGS
 
952
LIBGNOMEUI_LIBS
 
953
IWLIB
 
954
DBUS_SYS_DIR
 
955
EXPANDED_BINDIR
 
956
LTLIBOBJS'
 
957
ac_subst_files=''
 
958
      ac_precious_vars='build_alias
 
959
host_alias
 
960
target_alias
 
961
CC
 
962
CFLAGS
 
963
LDFLAGS
 
964
LIBS
 
965
CPPFLAGS
 
966
CPP
 
967
CXX
 
968
CXXFLAGS
 
969
CCC
 
970
CXXCPP
 
971
F77
 
972
FFLAGS
 
973
PKG_CONFIG
 
974
DBUS_CFLAGS
 
975
DBUS_LIBS
 
976
GTHREAD_CFLAGS
 
977
GTHREAD_LIBS
 
978
GLIB_CFLAGS
 
979
GLIB_LIBS
 
980
GMODULE_CFLAGS
 
981
GMODULE_LIBS
 
982
GOBJECT_CFLAGS
 
983
GOBJECT_LIBS
 
984
NM_CFLAGS
 
985
NM_LIBS
 
986
GTK_CFLAGS
 
987
GTK_LIBS
 
988
GDK_PIXBUF_CFLAGS
 
989
GDK_PIXBUF_LIBS
 
990
GLADE_CFLAGS
 
991
GLADE_LIBS
 
992
GCONF_CFLAGS
 
993
GCONF_LIBS
 
994
GNOME_KEYRING_CFLAGS
 
995
GNOME_KEYRING_LIBS
 
996
NOTIFY_CFLAGS
 
997
NOTIFY_LIBS
 
998
LIBGNOMEUI_CFLAGS
 
999
LIBGNOMEUI_LIBS'
 
1000
 
 
1001
 
 
1002
# Initialize some variables set by options.
 
1003
ac_init_help=
 
1004
ac_init_version=false
 
1005
# The variables have the same names as the options, with
 
1006
# dashes changed to underlines.
 
1007
cache_file=/dev/null
 
1008
exec_prefix=NONE
 
1009
no_create=
 
1010
no_recursion=
 
1011
prefix=NONE
 
1012
program_prefix=NONE
 
1013
program_suffix=NONE
 
1014
program_transform_name=s,x,x,
 
1015
silent=
 
1016
site=
 
1017
srcdir=
 
1018
verbose=
 
1019
x_includes=NONE
 
1020
x_libraries=NONE
 
1021
 
 
1022
# Installation directory options.
 
1023
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1024
# and all the variables that are supposed to be based on exec_prefix
 
1025
# by default will actually change.
 
1026
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1027
# (The list follows the same order as the GNU Coding Standards.)
 
1028
bindir='${exec_prefix}/bin'
 
1029
sbindir='${exec_prefix}/sbin'
 
1030
libexecdir='${exec_prefix}/libexec'
 
1031
datarootdir='${prefix}/share'
 
1032
datadir='${datarootdir}'
 
1033
sysconfdir='${prefix}/etc'
 
1034
sharedstatedir='${prefix}/com'
 
1035
localstatedir='${prefix}/var'
 
1036
includedir='${prefix}/include'
 
1037
oldincludedir='/usr/include'
 
1038
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1039
infodir='${datarootdir}/info'
 
1040
htmldir='${docdir}'
 
1041
dvidir='${docdir}'
 
1042
pdfdir='${docdir}'
 
1043
psdir='${docdir}'
 
1044
libdir='${exec_prefix}/lib'
 
1045
localedir='${datarootdir}/locale'
 
1046
mandir='${datarootdir}/man'
 
1047
 
 
1048
ac_prev=
 
1049
ac_dashdash=
 
1050
for ac_option
 
1051
do
 
1052
  # If the previous option needs an argument, assign it.
 
1053
  if test -n "$ac_prev"; then
 
1054
    eval $ac_prev=\$ac_option
 
1055
    ac_prev=
 
1056
    continue
 
1057
  fi
 
1058
 
 
1059
  case $ac_option in
 
1060
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1061
  *)    ac_optarg=yes ;;
 
1062
  esac
 
1063
 
 
1064
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1065
 
 
1066
  case $ac_dashdash$ac_option in
 
1067
  --)
 
1068
    ac_dashdash=yes ;;
 
1069
 
 
1070
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1071
    ac_prev=bindir ;;
 
1072
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1073
    bindir=$ac_optarg ;;
 
1074
 
 
1075
  -build | --build | --buil | --bui | --bu)
 
1076
    ac_prev=build_alias ;;
 
1077
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1078
    build_alias=$ac_optarg ;;
 
1079
 
 
1080
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1081
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1082
    ac_prev=cache_file ;;
 
1083
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1084
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1085
    cache_file=$ac_optarg ;;
 
1086
 
 
1087
  --config-cache | -C)
 
1088
    cache_file=config.cache ;;
 
1089
 
 
1090
  -datadir | --datadir | --datadi | --datad)
 
1091
    ac_prev=datadir ;;
 
1092
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1093
    datadir=$ac_optarg ;;
 
1094
 
 
1095
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1096
  | --dataroo | --dataro | --datar)
 
1097
    ac_prev=datarootdir ;;
 
1098
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1099
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1100
    datarootdir=$ac_optarg ;;
 
1101
 
 
1102
  -disable-* | --disable-*)
 
1103
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1104
    # Reject names that are not valid shell variable names.
 
1105
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1106
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1107
   { (exit 1); exit 1; }; }
 
1108
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1109
    eval enable_$ac_feature=no ;;
 
1110
 
 
1111
  -docdir | --docdir | --docdi | --doc | --do)
 
1112
    ac_prev=docdir ;;
 
1113
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1114
    docdir=$ac_optarg ;;
 
1115
 
 
1116
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1117
    ac_prev=dvidir ;;
 
1118
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1119
    dvidir=$ac_optarg ;;
 
1120
 
 
1121
  -enable-* | --enable-*)
 
1122
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1123
    # Reject names that are not valid shell variable names.
 
1124
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1125
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1126
   { (exit 1); exit 1; }; }
 
1127
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1128
    eval enable_$ac_feature=\$ac_optarg ;;
 
1129
 
 
1130
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1131
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1132
  | --exec | --exe | --ex)
 
1133
    ac_prev=exec_prefix ;;
 
1134
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1135
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1136
  | --exec=* | --exe=* | --ex=*)
 
1137
    exec_prefix=$ac_optarg ;;
 
1138
 
 
1139
  -gas | --gas | --ga | --g)
 
1140
    # Obsolete; use --with-gas.
 
1141
    with_gas=yes ;;
 
1142
 
 
1143
  -help | --help | --hel | --he | -h)
 
1144
    ac_init_help=long ;;
 
1145
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1146
    ac_init_help=recursive ;;
 
1147
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1148
    ac_init_help=short ;;
 
1149
 
 
1150
  -host | --host | --hos | --ho)
 
1151
    ac_prev=host_alias ;;
 
1152
  -host=* | --host=* | --hos=* | --ho=*)
 
1153
    host_alias=$ac_optarg ;;
 
1154
 
 
1155
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1156
    ac_prev=htmldir ;;
 
1157
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1158
  | --ht=*)
 
1159
    htmldir=$ac_optarg ;;
 
1160
 
 
1161
  -includedir | --includedir | --includedi | --included | --include \
 
1162
  | --includ | --inclu | --incl | --inc)
 
1163
    ac_prev=includedir ;;
 
1164
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1165
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1166
    includedir=$ac_optarg ;;
 
1167
 
 
1168
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1169
    ac_prev=infodir ;;
 
1170
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1171
    infodir=$ac_optarg ;;
 
1172
 
 
1173
  -libdir | --libdir | --libdi | --libd)
 
1174
    ac_prev=libdir ;;
 
1175
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1176
    libdir=$ac_optarg ;;
 
1177
 
 
1178
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1179
  | --libexe | --libex | --libe)
 
1180
    ac_prev=libexecdir ;;
 
1181
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1182
  | --libexe=* | --libex=* | --libe=*)
 
1183
    libexecdir=$ac_optarg ;;
 
1184
 
 
1185
  -localedir | --localedir | --localedi | --localed | --locale)
 
1186
    ac_prev=localedir ;;
 
1187
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1188
    localedir=$ac_optarg ;;
 
1189
 
 
1190
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1191
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1192
    ac_prev=localstatedir ;;
 
1193
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1194
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1195
    localstatedir=$ac_optarg ;;
 
1196
 
 
1197
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1198
    ac_prev=mandir ;;
 
1199
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1200
    mandir=$ac_optarg ;;
 
1201
 
 
1202
  -nfp | --nfp | --nf)
 
1203
    # Obsolete; use --without-fp.
 
1204
    with_fp=no ;;
 
1205
 
 
1206
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1207
  | --no-cr | --no-c | -n)
 
1208
    no_create=yes ;;
 
1209
 
 
1210
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1211
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1212
    no_recursion=yes ;;
 
1213
 
 
1214
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1215
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1216
  | --oldin | --oldi | --old | --ol | --o)
 
1217
    ac_prev=oldincludedir ;;
 
1218
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1219
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1220
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1221
    oldincludedir=$ac_optarg ;;
 
1222
 
 
1223
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1224
    ac_prev=prefix ;;
 
1225
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1226
    prefix=$ac_optarg ;;
 
1227
 
 
1228
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1229
  | --program-pre | --program-pr | --program-p)
 
1230
    ac_prev=program_prefix ;;
 
1231
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1232
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1233
    program_prefix=$ac_optarg ;;
 
1234
 
 
1235
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1236
  | --program-suf | --program-su | --program-s)
 
1237
    ac_prev=program_suffix ;;
 
1238
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1239
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1240
    program_suffix=$ac_optarg ;;
 
1241
 
 
1242
  -program-transform-name | --program-transform-name \
 
1243
  | --program-transform-nam | --program-transform-na \
 
1244
  | --program-transform-n | --program-transform- \
 
1245
  | --program-transform | --program-transfor \
 
1246
  | --program-transfo | --program-transf \
 
1247
  | --program-trans | --program-tran \
 
1248
  | --progr-tra | --program-tr | --program-t)
 
1249
    ac_prev=program_transform_name ;;
 
1250
  -program-transform-name=* | --program-transform-name=* \
 
1251
  | --program-transform-nam=* | --program-transform-na=* \
 
1252
  | --program-transform-n=* | --program-transform-=* \
 
1253
  | --program-transform=* | --program-transfor=* \
 
1254
  | --program-transfo=* | --program-transf=* \
 
1255
  | --program-trans=* | --program-tran=* \
 
1256
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1257
    program_transform_name=$ac_optarg ;;
 
1258
 
 
1259
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1260
    ac_prev=pdfdir ;;
 
1261
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1262
    pdfdir=$ac_optarg ;;
 
1263
 
 
1264
  -psdir | --psdir | --psdi | --psd | --ps)
 
1265
    ac_prev=psdir ;;
 
1266
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1267
    psdir=$ac_optarg ;;
 
1268
 
 
1269
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1270
  | -silent | --silent | --silen | --sile | --sil)
 
1271
    silent=yes ;;
 
1272
 
 
1273
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1274
    ac_prev=sbindir ;;
 
1275
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1276
  | --sbi=* | --sb=*)
 
1277
    sbindir=$ac_optarg ;;
 
1278
 
 
1279
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1280
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1281
  | --sharedst | --shareds | --shared | --share | --shar \
 
1282
  | --sha | --sh)
 
1283
    ac_prev=sharedstatedir ;;
 
1284
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1285
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1286
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1287
  | --sha=* | --sh=*)
 
1288
    sharedstatedir=$ac_optarg ;;
 
1289
 
 
1290
  -site | --site | --sit)
 
1291
    ac_prev=site ;;
 
1292
  -site=* | --site=* | --sit=*)
 
1293
    site=$ac_optarg ;;
 
1294
 
 
1295
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1296
    ac_prev=srcdir ;;
 
1297
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1298
    srcdir=$ac_optarg ;;
 
1299
 
 
1300
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1301
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1302
    ac_prev=sysconfdir ;;
 
1303
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1304
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1305
    sysconfdir=$ac_optarg ;;
 
1306
 
 
1307
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1308
    ac_prev=target_alias ;;
 
1309
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1310
    target_alias=$ac_optarg ;;
 
1311
 
 
1312
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1313
    verbose=yes ;;
 
1314
 
 
1315
  -version | --version | --versio | --versi | --vers | -V)
 
1316
    ac_init_version=: ;;
 
1317
 
 
1318
  -with-* | --with-*)
 
1319
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1320
    # Reject names that are not valid shell variable names.
 
1321
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1322
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1323
   { (exit 1); exit 1; }; }
 
1324
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1325
    eval with_$ac_package=\$ac_optarg ;;
 
1326
 
 
1327
  -without-* | --without-*)
 
1328
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1329
    # Reject names that are not valid shell variable names.
 
1330
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1331
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1332
   { (exit 1); exit 1; }; }
 
1333
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1334
    eval with_$ac_package=no ;;
 
1335
 
 
1336
  --x)
 
1337
    # Obsolete; use --with-x.
 
1338
    with_x=yes ;;
 
1339
 
 
1340
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1341
  | --x-incl | --x-inc | --x-in | --x-i)
 
1342
    ac_prev=x_includes ;;
 
1343
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1344
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1345
    x_includes=$ac_optarg ;;
 
1346
 
 
1347
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1348
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1349
    ac_prev=x_libraries ;;
 
1350
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1351
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1352
    x_libraries=$ac_optarg ;;
 
1353
 
 
1354
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1355
Try \`$0 --help' for more information." >&2
 
1356
   { (exit 1); exit 1; }; }
 
1357
    ;;
 
1358
 
 
1359
  *=*)
 
1360
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1361
    # Reject names that are not valid shell variable names.
 
1362
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1363
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1364
   { (exit 1); exit 1; }; }
 
1365
    eval $ac_envvar=\$ac_optarg
 
1366
    export $ac_envvar ;;
 
1367
 
 
1368
  *)
 
1369
    # FIXME: should be removed in autoconf 3.0.
 
1370
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1371
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1372
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1373
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1374
    ;;
 
1375
 
 
1376
  esac
 
1377
done
 
1378
 
 
1379
if test -n "$ac_prev"; then
 
1380
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1381
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1382
   { (exit 1); exit 1; }; }
 
1383
fi
 
1384
 
 
1385
# Be sure to have absolute directory names.
 
1386
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1387
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1388
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1389
                libdir localedir mandir
 
1390
do
 
1391
  eval ac_val=\$$ac_var
 
1392
  case $ac_val in
 
1393
    [\\/$]* | ?:[\\/]* )  continue;;
 
1394
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1395
  esac
 
1396
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1397
   { (exit 1); exit 1; }; }
 
1398
done
 
1399
 
 
1400
# There might be people who depend on the old broken behavior: `$host'
 
1401
# used to hold the argument of --host etc.
 
1402
# FIXME: To remove some day.
 
1403
build=$build_alias
 
1404
host=$host_alias
 
1405
target=$target_alias
 
1406
 
 
1407
# FIXME: To remove some day.
 
1408
if test "x$host_alias" != x; then
 
1409
  if test "x$build_alias" = x; then
 
1410
    cross_compiling=maybe
 
1411
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1412
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1413
  elif test "x$build_alias" != "x$host_alias"; then
 
1414
    cross_compiling=yes
 
1415
  fi
 
1416
fi
 
1417
 
 
1418
ac_tool_prefix=
 
1419
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1420
 
 
1421
test "$silent" = yes && exec 6>/dev/null
 
1422
 
 
1423
 
 
1424
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1425
ac_ls_di=`ls -di .` &&
 
1426
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1427
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1428
   { (exit 1); exit 1; }; }
 
1429
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1430
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1431
   { (exit 1); exit 1; }; }
 
1432
 
 
1433
 
 
1434
# Find the source files, if location was not specified.
 
1435
if test -z "$srcdir"; then
 
1436
  ac_srcdir_defaulted=yes
 
1437
  # Try the directory containing this script, then the parent directory.
 
1438
  ac_confdir=`$as_dirname -- "$0" ||
 
1439
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1440
         X"$0" : 'X\(//\)[^/]' \| \
 
1441
         X"$0" : 'X\(//\)$' \| \
 
1442
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1443
echo X"$0" |
 
1444
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1445
            s//\1/
 
1446
            q
 
1447
          }
 
1448
          /^X\(\/\/\)[^/].*/{
 
1449
            s//\1/
 
1450
            q
 
1451
          }
 
1452
          /^X\(\/\/\)$/{
 
1453
            s//\1/
 
1454
            q
 
1455
          }
 
1456
          /^X\(\/\).*/{
 
1457
            s//\1/
 
1458
            q
 
1459
          }
 
1460
          s/.*/./; q'`
 
1461
  srcdir=$ac_confdir
 
1462
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1463
    srcdir=..
 
1464
  fi
 
1465
else
 
1466
  ac_srcdir_defaulted=no
 
1467
fi
 
1468
if test ! -r "$srcdir/$ac_unique_file"; then
 
1469
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1470
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1471
   { (exit 1); exit 1; }; }
 
1472
fi
 
1473
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1474
ac_abs_confdir=`(
 
1475
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1476
   { (exit 1); exit 1; }; }
 
1477
        pwd)`
 
1478
# When building in place, set srcdir=.
 
1479
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1480
  srcdir=.
 
1481
fi
 
1482
# Remove unnecessary trailing slashes from srcdir.
 
1483
# Double slashes in file names in object file debugging info
 
1484
# mess up M-x gdb in Emacs.
 
1485
case $srcdir in
 
1486
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1487
esac
 
1488
for ac_var in $ac_precious_vars; do
 
1489
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1490
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1491
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1492
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1493
done
 
1494
 
 
1495
#
 
1496
# Report the --help message.
 
1497
#
 
1498
if test "$ac_init_help" = "long"; then
 
1499
  # Omit some internal or obsolete options to make the list less imposing.
 
1500
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1501
  cat <<_ACEOF
 
1502
\`configure' configures nm-applet 0.6.5 to adapt to many kinds of systems.
 
1503
 
 
1504
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1505
 
 
1506
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1507
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1508
 
 
1509
Defaults for the options are specified in brackets.
 
1510
 
 
1511
Configuration:
 
1512
  -h, --help              display this help and exit
 
1513
      --help=short        display options specific to this package
 
1514
      --help=recursive    display the short help of all the included packages
 
1515
  -V, --version           display version information and exit
 
1516
  -q, --quiet, --silent   do not print \`checking...' messages
 
1517
      --cache-file=FILE   cache test results in FILE [disabled]
 
1518
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1519
  -n, --no-create         do not create output files
 
1520
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1521
 
 
1522
Installation directories:
 
1523
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1524
                          [$ac_default_prefix]
 
1525
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1526
                          [PREFIX]
 
1527
 
 
1528
By default, \`make install' will install all the files in
 
1529
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1530
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1531
for instance \`--prefix=\$HOME'.
 
1532
 
 
1533
For better control, use the options below.
 
1534
 
 
1535
Fine tuning of the installation directories:
 
1536
  --bindir=DIR           user executables [EPREFIX/bin]
 
1537
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1538
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1539
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1540
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1541
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1542
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1543
  --includedir=DIR       C header files [PREFIX/include]
 
1544
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1545
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1546
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1547
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1548
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1549
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1550
  --docdir=DIR           documentation root [DATAROOTDIR/doc/nm-applet]
 
1551
  --htmldir=DIR          html documentation [DOCDIR]
 
1552
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1553
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1554
  --psdir=DIR            ps documentation [DOCDIR]
 
1555
_ACEOF
 
1556
 
 
1557
  cat <<\_ACEOF
 
1558
 
 
1559
Program names:
 
1560
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1561
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1562
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1563
 
 
1564
System types:
 
1565
  --build=BUILD     configure for building on BUILD [guessed]
 
1566
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1567
_ACEOF
 
1568
fi
 
1569
 
 
1570
if test -n "$ac_init_help"; then
 
1571
  case $ac_init_help in
 
1572
     short | recursive ) echo "Configuration of nm-applet 0.6.5:";;
 
1573
   esac
 
1574
  cat <<\_ACEOF
 
1575
 
 
1576
Optional Features:
 
1577
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1578
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1579
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1580
                          (and sometimes confusing) to the casual installer
 
1581
  --disable-dependency-tracking  speeds up one-time build
 
1582
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1583
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1584
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1585
  --enable-fast-install[=PKGS]
 
1586
                          optimize for fast installation [default=yes]
 
1587
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1588
  --enable-debug          turn on debugging
 
1589
  --enable-compile-warnings=[no/minimum/yes/maximum/error]
 
1590
                          Turn on compiler warnings
 
1591
  --enable-iso-c          Try to warn if code is not ISO C
 
1592
  --enable-more-warnings  Maximum compiler warnings
 
1593
 
 
1594
Optional Packages:
 
1595
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1596
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1597
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1598
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1599
                          both]
 
1600
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1601
  --with-notify           Use libnotify
 
1602
  --with-dbus-sys=DIR     where D-BUS system.d directory is
 
1603
 
 
1604
Some influential environment variables:
 
1605
  CC          C compiler command
 
1606
  CFLAGS      C compiler flags
 
1607
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1608
              nonstandard directory <lib dir>
 
1609
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1610
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1611
              you have headers in a nonstandard directory <include dir>
 
1612
  CPP         C preprocessor
 
1613
  CXX         C++ compiler command
 
1614
  CXXFLAGS    C++ compiler flags
 
1615
  CXXCPP      C++ preprocessor
 
1616
  F77         Fortran 77 compiler command
 
1617
  FFLAGS      Fortran 77 compiler flags
 
1618
  PKG_CONFIG  path to pkg-config utility
 
1619
  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
 
1620
  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
 
1621
  GTHREAD_CFLAGS
 
1622
              C compiler flags for GTHREAD, overriding pkg-config
 
1623
  GTHREAD_LIBS
 
1624
              linker flags for GTHREAD, overriding pkg-config
 
1625
  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
 
1626
  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
 
1627
  GMODULE_CFLAGS
 
1628
              C compiler flags for GMODULE, overriding pkg-config
 
1629
  GMODULE_LIBS
 
1630
              linker flags for GMODULE, overriding pkg-config
 
1631
  GOBJECT_CFLAGS
 
1632
              C compiler flags for GOBJECT, overriding pkg-config
 
1633
  GOBJECT_LIBS
 
1634
              linker flags for GOBJECT, overriding pkg-config
 
1635
  NM_CFLAGS   C compiler flags for NM, overriding pkg-config
 
1636
  NM_LIBS     linker flags for NM, overriding pkg-config
 
1637
  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
 
1638
  GTK_LIBS    linker flags for GTK, overriding pkg-config
 
1639
  GDK_PIXBUF_CFLAGS
 
1640
              C compiler flags for GDK_PIXBUF, overriding pkg-config
 
1641
  GDK_PIXBUF_LIBS
 
1642
              linker flags for GDK_PIXBUF, overriding pkg-config
 
1643
  GLADE_CFLAGS
 
1644
              C compiler flags for GLADE, overriding pkg-config
 
1645
  GLADE_LIBS  linker flags for GLADE, overriding pkg-config
 
1646
  GCONF_CFLAGS
 
1647
              C compiler flags for GCONF, overriding pkg-config
 
1648
  GCONF_LIBS  linker flags for GCONF, overriding pkg-config
 
1649
  GNOME_KEYRING_CFLAGS
 
1650
              C compiler flags for GNOME_KEYRING, overriding pkg-config
 
1651
  GNOME_KEYRING_LIBS
 
1652
              linker flags for GNOME_KEYRING, overriding pkg-config
 
1653
  NOTIFY_CFLAGS
 
1654
              C compiler flags for NOTIFY, overriding pkg-config
 
1655
  NOTIFY_LIBS linker flags for NOTIFY, overriding pkg-config
 
1656
  LIBGNOMEUI_CFLAGS
 
1657
              C compiler flags for LIBGNOMEUI, overriding pkg-config
 
1658
  LIBGNOMEUI_LIBS
 
1659
              linker flags for LIBGNOMEUI, overriding pkg-config
 
1660
 
 
1661
Use these variables to override the choices made by `configure' or to help
 
1662
it to find libraries and programs with nonstandard names/locations.
 
1663
 
 
1664
Report bugs to <dcbw@redhat.com>.
 
1665
_ACEOF
 
1666
ac_status=$?
 
1667
fi
 
1668
 
 
1669
if test "$ac_init_help" = "recursive"; then
 
1670
  # If there are subdirs, report their specific --help.
 
1671
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1672
    test -d "$ac_dir" || continue
 
1673
    ac_builddir=.
 
1674
 
 
1675
case "$ac_dir" in
 
1676
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1677
*)
 
1678
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1679
  # A ".." for each directory in $ac_dir_suffix.
 
1680
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1681
  case $ac_top_builddir_sub in
 
1682
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1683
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1684
  esac ;;
 
1685
esac
 
1686
ac_abs_top_builddir=$ac_pwd
 
1687
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1688
# for backward compatibility:
 
1689
ac_top_builddir=$ac_top_build_prefix
 
1690
 
 
1691
case $srcdir in
 
1692
  .)  # We are building in place.
 
1693
    ac_srcdir=.
 
1694
    ac_top_srcdir=$ac_top_builddir_sub
 
1695
    ac_abs_top_srcdir=$ac_pwd ;;
 
1696
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1697
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1698
    ac_top_srcdir=$srcdir
 
1699
    ac_abs_top_srcdir=$srcdir ;;
 
1700
  *) # Relative name.
 
1701
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1702
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1703
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1704
esac
 
1705
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1706
 
 
1707
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1708
    # Check for guested configure.
 
1709
    if test -f "$ac_srcdir/configure.gnu"; then
 
1710
      echo &&
 
1711
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1712
    elif test -f "$ac_srcdir/configure"; then
 
1713
      echo &&
 
1714
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1715
    else
 
1716
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1717
    fi || ac_status=$?
 
1718
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1719
  done
 
1720
fi
 
1721
 
 
1722
test -n "$ac_init_help" && exit $ac_status
 
1723
if $ac_init_version; then
 
1724
  cat <<\_ACEOF
 
1725
nm-applet configure 0.6.5
 
1726
generated by GNU Autoconf 2.61
 
1727
 
 
1728
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1729
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1730
This configure script is free software; the Free Software Foundation
 
1731
gives unlimited permission to copy, distribute and modify it.
 
1732
_ACEOF
 
1733
  exit
 
1734
fi
 
1735
cat >config.log <<_ACEOF
 
1736
This file contains any messages produced by compilers while
 
1737
running configure, to aid debugging if configure makes a mistake.
 
1738
 
 
1739
It was created by nm-applet $as_me 0.6.5, which was
 
1740
generated by GNU Autoconf 2.61.  Invocation command line was
 
1741
 
 
1742
  $ $0 $@
 
1743
 
 
1744
_ACEOF
 
1745
exec 5>>config.log
 
1746
{
 
1747
cat <<_ASUNAME
 
1748
## --------- ##
 
1749
## Platform. ##
 
1750
## --------- ##
 
1751
 
 
1752
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1753
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1754
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1755
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1756
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1757
 
 
1758
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1759
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1760
 
 
1761
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1762
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1763
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1764
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1765
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1766
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1767
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1768
 
 
1769
_ASUNAME
 
1770
 
 
1771
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1772
for as_dir in $PATH
 
1773
do
 
1774
  IFS=$as_save_IFS
 
1775
  test -z "$as_dir" && as_dir=.
 
1776
  echo "PATH: $as_dir"
 
1777
done
 
1778
IFS=$as_save_IFS
 
1779
 
 
1780
} >&5
 
1781
 
 
1782
cat >&5 <<_ACEOF
 
1783
 
 
1784
 
 
1785
## ----------- ##
 
1786
## Core tests. ##
 
1787
## ----------- ##
 
1788
 
 
1789
_ACEOF
 
1790
 
 
1791
 
 
1792
# Keep a trace of the command line.
 
1793
# Strip out --no-create and --no-recursion so they do not pile up.
 
1794
# Strip out --silent because we don't want to record it for future runs.
 
1795
# Also quote any args containing shell meta-characters.
 
1796
# Make two passes to allow for proper duplicate-argument suppression.
 
1797
ac_configure_args=
 
1798
ac_configure_args0=
 
1799
ac_configure_args1=
 
1800
ac_must_keep_next=false
 
1801
for ac_pass in 1 2
 
1802
do
 
1803
  for ac_arg
 
1804
  do
 
1805
    case $ac_arg in
 
1806
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1807
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1808
    | -silent | --silent | --silen | --sile | --sil)
 
1809
      continue ;;
 
1810
    *\'*)
 
1811
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1812
    esac
 
1813
    case $ac_pass in
 
1814
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1815
    2)
 
1816
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1817
      if test $ac_must_keep_next = true; then
 
1818
        ac_must_keep_next=false # Got value, back to normal.
 
1819
      else
 
1820
        case $ac_arg in
 
1821
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1822
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1823
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1824
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1825
            case "$ac_configure_args0 " in
 
1826
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1827
            esac
 
1828
            ;;
 
1829
          -* ) ac_must_keep_next=true ;;
 
1830
        esac
 
1831
      fi
 
1832
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1833
      ;;
 
1834
    esac
 
1835
  done
 
1836
done
 
1837
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1838
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1839
 
 
1840
# When interrupted or exit'd, cleanup temporary files, and complete
 
1841
# config.log.  We remove comments because anyway the quotes in there
 
1842
# would cause problems or look ugly.
 
1843
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1844
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1845
trap 'exit_status=$?
 
1846
  # Save into config.log some information that might help in debugging.
 
1847
  {
 
1848
    echo
 
1849
 
 
1850
    cat <<\_ASBOX
 
1851
## ---------------- ##
 
1852
## Cache variables. ##
 
1853
## ---------------- ##
 
1854
_ASBOX
 
1855
    echo
 
1856
    # The following way of writing the cache mishandles newlines in values,
 
1857
(
 
1858
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1859
    eval ac_val=\$$ac_var
 
1860
    case $ac_val in #(
 
1861
    *${as_nl}*)
 
1862
      case $ac_var in #(
 
1863
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1864
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1865
      esac
 
1866
      case $ac_var in #(
 
1867
      _ | IFS | as_nl) ;; #(
 
1868
      *) $as_unset $ac_var ;;
 
1869
      esac ;;
 
1870
    esac
 
1871
  done
 
1872
  (set) 2>&1 |
 
1873
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1874
    *${as_nl}ac_space=\ *)
 
1875
      sed -n \
 
1876
        "s/'\''/'\''\\\\'\'''\''/g;
 
1877
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1878
      ;; #(
 
1879
    *)
 
1880
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1881
      ;;
 
1882
    esac |
 
1883
    sort
 
1884
)
 
1885
    echo
 
1886
 
 
1887
    cat <<\_ASBOX
 
1888
## ----------------- ##
 
1889
## Output variables. ##
 
1890
## ----------------- ##
 
1891
_ASBOX
 
1892
    echo
 
1893
    for ac_var in $ac_subst_vars
 
1894
    do
 
1895
      eval ac_val=\$$ac_var
 
1896
      case $ac_val in
 
1897
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1898
      esac
 
1899
      echo "$ac_var='\''$ac_val'\''"
 
1900
    done | sort
 
1901
    echo
 
1902
 
 
1903
    if test -n "$ac_subst_files"; then
 
1904
      cat <<\_ASBOX
 
1905
## ------------------- ##
 
1906
## File substitutions. ##
 
1907
## ------------------- ##
 
1908
_ASBOX
 
1909
      echo
 
1910
      for ac_var in $ac_subst_files
 
1911
      do
 
1912
        eval ac_val=\$$ac_var
 
1913
        case $ac_val in
 
1914
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1915
        esac
 
1916
        echo "$ac_var='\''$ac_val'\''"
 
1917
      done | sort
 
1918
      echo
 
1919
    fi
 
1920
 
 
1921
    if test -s confdefs.h; then
 
1922
      cat <<\_ASBOX
 
1923
## ----------- ##
 
1924
## confdefs.h. ##
 
1925
## ----------- ##
 
1926
_ASBOX
 
1927
      echo
 
1928
      cat confdefs.h
 
1929
      echo
 
1930
    fi
 
1931
    test "$ac_signal" != 0 &&
 
1932
      echo "$as_me: caught signal $ac_signal"
 
1933
    echo "$as_me: exit $exit_status"
 
1934
  } >&5
 
1935
  rm -f core *.core core.conftest.* &&
 
1936
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1937
    exit $exit_status
 
1938
' 0
 
1939
for ac_signal in 1 2 13 15; do
 
1940
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1941
done
 
1942
ac_signal=0
 
1943
 
 
1944
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1945
rm -f -r conftest* confdefs.h
 
1946
 
 
1947
# Predefined preprocessor variables.
 
1948
 
 
1949
cat >>confdefs.h <<_ACEOF
 
1950
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1951
_ACEOF
 
1952
 
 
1953
 
 
1954
cat >>confdefs.h <<_ACEOF
 
1955
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1956
_ACEOF
 
1957
 
 
1958
 
 
1959
cat >>confdefs.h <<_ACEOF
 
1960
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1961
_ACEOF
 
1962
 
 
1963
 
 
1964
cat >>confdefs.h <<_ACEOF
 
1965
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1966
_ACEOF
 
1967
 
 
1968
 
 
1969
cat >>confdefs.h <<_ACEOF
 
1970
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1971
_ACEOF
 
1972
 
 
1973
 
 
1974
# Let the site file select an alternate cache file if it wants to.
 
1975
# Prefer explicitly selected file to automatically selected ones.
 
1976
if test -n "$CONFIG_SITE"; then
 
1977
  set x "$CONFIG_SITE"
 
1978
elif test "x$prefix" != xNONE; then
 
1979
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1980
else
 
1981
  set x "$ac_default_prefix/share/config.site" \
 
1982
        "$ac_default_prefix/etc/config.site"
 
1983
fi
 
1984
shift
 
1985
for ac_site_file
 
1986
do
 
1987
  if test -r "$ac_site_file"; then
 
1988
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1989
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1990
    sed 's/^/| /' "$ac_site_file" >&5
 
1991
    . "$ac_site_file"
 
1992
  fi
 
1993
done
 
1994
 
 
1995
if test -r "$cache_file"; then
 
1996
  # Some versions of bash will fail to source /dev/null (special
 
1997
  # files actually), so we avoid doing that.
 
1998
  if test -f "$cache_file"; then
 
1999
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2000
echo "$as_me: loading cache $cache_file" >&6;}
 
2001
    case $cache_file in
 
2002
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2003
      *)                      . "./$cache_file";;
 
2004
    esac
 
2005
  fi
 
2006
else
 
2007
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2008
echo "$as_me: creating cache $cache_file" >&6;}
 
2009
  >$cache_file
 
2010
fi
 
2011
 
 
2012
# Check that the precious variables saved in the cache have kept the same
 
2013
# value.
 
2014
ac_cache_corrupted=false
 
2015
for ac_var in $ac_precious_vars; do
 
2016
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2017
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2018
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2019
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2020
  case $ac_old_set,$ac_new_set in
 
2021
    set,)
 
2022
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2023
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2024
      ac_cache_corrupted=: ;;
 
2025
    ,set)
 
2026
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2027
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2028
      ac_cache_corrupted=: ;;
 
2029
    ,);;
 
2030
    *)
 
2031
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2032
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2033
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2034
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
2035
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
2036
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
2037
echo "$as_me:   current value: $ac_new_val" >&2;}
 
2038
        ac_cache_corrupted=:
 
2039
      fi;;
 
2040
  esac
 
2041
  # Pass precious variables to config.status.
 
2042
  if test "$ac_new_set" = set; then
 
2043
    case $ac_new_val in
 
2044
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2045
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2046
    esac
 
2047
    case " $ac_configure_args " in
 
2048
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2049
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2050
    esac
 
2051
  fi
 
2052
done
 
2053
if $ac_cache_corrupted; then
 
2054
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2055
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2056
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2057
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2058
   { (exit 1); exit 1; }; }
 
2059
fi
 
2060
 
 
2061
 
 
2062
 
 
2063
 
 
2064
 
 
2065
 
 
2066
 
 
2067
 
 
2068
 
 
2069
 
 
2070
 
 
2071
 
 
2072
 
 
2073
 
 
2074
 
 
2075
 
 
2076
 
 
2077
 
 
2078
 
 
2079
 
 
2080
 
 
2081
 
 
2082
 
 
2083
 
 
2084
 
 
2085
ac_ext=c
 
2086
ac_cpp='$CPP $CPPFLAGS'
 
2087
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2088
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2089
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2090
 
 
2091
 
 
2092
am__api_version='1.10'
 
2093
 
 
2094
ac_aux_dir=
 
2095
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2096
  if test -f "$ac_dir/install-sh"; then
 
2097
    ac_aux_dir=$ac_dir
 
2098
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2099
    break
 
2100
  elif test -f "$ac_dir/install.sh"; then
 
2101
    ac_aux_dir=$ac_dir
 
2102
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2103
    break
 
2104
  elif test -f "$ac_dir/shtool"; then
 
2105
    ac_aux_dir=$ac_dir
 
2106
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2107
    break
 
2108
  fi
 
2109
done
 
2110
if test -z "$ac_aux_dir"; then
 
2111
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2112
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2113
   { (exit 1); exit 1; }; }
 
2114
fi
 
2115
 
 
2116
# These three variables are undocumented and unsupported,
 
2117
# and are intended to be withdrawn in a future Autoconf release.
 
2118
# They can cause serious problems if a builder's source tree is in a directory
 
2119
# whose full name contains unusual characters.
 
2120
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2121
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2122
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2123
 
 
2124
 
 
2125
# Find a good install program.  We prefer a C program (faster),
 
2126
# so one script is as good as another.  But avoid the broken or
 
2127
# incompatible versions:
 
2128
# SysV /etc/install, /usr/sbin/install
 
2129
# SunOS /usr/etc/install
 
2130
# IRIX /sbin/install
 
2131
# AIX /bin/install
 
2132
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2133
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2134
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2135
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2136
# OS/2's system install, which has a completely different semantic
 
2137
# ./install, which can be erroneously created by make from ./install.sh.
 
2138
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2139
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2140
if test -z "$INSTALL"; then
 
2141
if test "${ac_cv_path_install+set}" = set; then
 
2142
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2143
else
 
2144
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2145
for as_dir in $PATH
 
2146
do
 
2147
  IFS=$as_save_IFS
 
2148
  test -z "$as_dir" && as_dir=.
 
2149
  # Account for people who put trailing slashes in PATH elements.
 
2150
case $as_dir/ in
 
2151
  ./ | .// | /cC/* | \
 
2152
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2153
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2154
  /usr/ucb/* ) ;;
 
2155
  *)
 
2156
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2157
    # Don't use installbsd from OSF since it installs stuff as root
 
2158
    # by default.
 
2159
    for ac_prog in ginstall scoinst install; do
 
2160
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2161
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2162
          if test $ac_prog = install &&
 
2163
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2164
            # AIX install.  It has an incompatible calling convention.
 
2165
            :
 
2166
          elif test $ac_prog = install &&
 
2167
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2168
            # program-specific install script used by HP pwplus--don't use.
 
2169
            :
 
2170
          else
 
2171
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2172
            break 3
 
2173
          fi
 
2174
        fi
 
2175
      done
 
2176
    done
 
2177
    ;;
 
2178
esac
 
2179
done
 
2180
IFS=$as_save_IFS
 
2181
 
 
2182
 
 
2183
fi
 
2184
  if test "${ac_cv_path_install+set}" = set; then
 
2185
    INSTALL=$ac_cv_path_install
 
2186
  else
 
2187
    # As a last resort, use the slow shell script.  Don't cache a
 
2188
    # value for INSTALL within a source directory, because that will
 
2189
    # break other packages using the cache if that directory is
 
2190
    # removed, or if the value is a relative name.
 
2191
    INSTALL=$ac_install_sh
 
2192
  fi
 
2193
fi
 
2194
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2195
echo "${ECHO_T}$INSTALL" >&6; }
 
2196
 
 
2197
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2198
# It thinks the first close brace ends the variable substitution.
 
2199
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2200
 
 
2201
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2202
 
 
2203
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2204
 
 
2205
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2206
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2207
# Just in case
 
2208
sleep 1
 
2209
echo timestamp > conftest.file
 
2210
# Do `set' in a subshell so we don't clobber the current shell's
 
2211
# arguments.  Must try -L first in case configure is actually a
 
2212
# symlink; some systems play weird games with the mod time of symlinks
 
2213
# (eg FreeBSD returns the mod time of the symlink's containing
 
2214
# directory).
 
2215
if (
 
2216
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2217
   if test "$*" = "X"; then
 
2218
      # -L didn't work.
 
2219
      set X `ls -t $srcdir/configure conftest.file`
 
2220
   fi
 
2221
   rm -f conftest.file
 
2222
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2223
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2224
 
 
2225
      # If neither matched, then we have a broken ls.  This can happen
 
2226
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2227
      # broken ls alias from the environment.  This has actually
 
2228
      # happened.  Such a system could not be considered "sane".
 
2229
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2230
alias in your environment" >&5
 
2231
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2232
alias in your environment" >&2;}
 
2233
   { (exit 1); exit 1; }; }
 
2234
   fi
 
2235
 
 
2236
   test "$2" = conftest.file
 
2237
   )
 
2238
then
 
2239
   # Ok.
 
2240
   :
 
2241
else
 
2242
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2243
Check your system clock" >&5
 
2244
echo "$as_me: error: newly created file is older than distributed files!
 
2245
Check your system clock" >&2;}
 
2246
   { (exit 1); exit 1; }; }
 
2247
fi
 
2248
{ echo "$as_me:$LINENO: result: yes" >&5
 
2249
echo "${ECHO_T}yes" >&6; }
 
2250
test "$program_prefix" != NONE &&
 
2251
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2252
# Use a double $ so make ignores it.
 
2253
test "$program_suffix" != NONE &&
 
2254
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2255
# Double any \ or $.  echo might interpret backslashes.
 
2256
# By default was `s,x,x', remove it if useless.
 
2257
cat <<\_ACEOF >conftest.sed
 
2258
s/[\\$]/&&/g;s/;s,x,x,$//
 
2259
_ACEOF
 
2260
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2261
rm -f conftest.sed
 
2262
 
 
2263
# expand $ac_aux_dir to an absolute path
 
2264
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2265
 
 
2266
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2267
# Use eval to expand $SHELL
 
2268
if eval "$MISSING --run true"; then
 
2269
  am_missing_run="$MISSING --run "
 
2270
else
 
2271
  am_missing_run=
 
2272
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2273
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2274
fi
 
2275
 
 
2276
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2277
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2278
if test -z "$MKDIR_P"; then
 
2279
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2281
else
 
2282
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2283
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2284
do
 
2285
  IFS=$as_save_IFS
 
2286
  test -z "$as_dir" && as_dir=.
 
2287
  for ac_prog in mkdir gmkdir; do
 
2288
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2289
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2290
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2291
             'mkdir (GNU coreutils) '* | \
 
2292
             'mkdir (coreutils) '* | \
 
2293
             'mkdir (fileutils) '4.1*)
 
2294
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2295
               break 3;;
 
2296
           esac
 
2297
         done
 
2298
       done
 
2299
done
 
2300
IFS=$as_save_IFS
 
2301
 
 
2302
fi
 
2303
 
 
2304
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2305
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2306
  else
 
2307
    # As a last resort, use the slow shell script.  Don't cache a
 
2308
    # value for MKDIR_P within a source directory, because that will
 
2309
    # break other packages using the cache if that directory is
 
2310
    # removed, or if the value is a relative name.
 
2311
    test -d ./--version && rmdir ./--version
 
2312
    MKDIR_P="$ac_install_sh -d"
 
2313
  fi
 
2314
fi
 
2315
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2316
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2317
 
 
2318
mkdir_p="$MKDIR_P"
 
2319
case $mkdir_p in
 
2320
  [\\/$]* | ?:[\\/]*) ;;
 
2321
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2322
esac
 
2323
 
 
2324
for ac_prog in gawk mawk nawk awk
 
2325
do
 
2326
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2327
set dummy $ac_prog; ac_word=$2
 
2328
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2330
if test "${ac_cv_prog_AWK+set}" = set; then
 
2331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2332
else
 
2333
  if test -n "$AWK"; then
 
2334
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2335
else
 
2336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2337
for as_dir in $PATH
 
2338
do
 
2339
  IFS=$as_save_IFS
 
2340
  test -z "$as_dir" && as_dir=.
 
2341
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2343
    ac_cv_prog_AWK="$ac_prog"
 
2344
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2345
    break 2
 
2346
  fi
 
2347
done
 
2348
done
 
2349
IFS=$as_save_IFS
 
2350
 
 
2351
fi
 
2352
fi
 
2353
AWK=$ac_cv_prog_AWK
 
2354
if test -n "$AWK"; then
 
2355
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2356
echo "${ECHO_T}$AWK" >&6; }
 
2357
else
 
2358
  { echo "$as_me:$LINENO: result: no" >&5
 
2359
echo "${ECHO_T}no" >&6; }
 
2360
fi
 
2361
 
 
2362
 
 
2363
  test -n "$AWK" && break
 
2364
done
 
2365
 
 
2366
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2367
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2368
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2369
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2371
else
 
2372
  cat >conftest.make <<\_ACEOF
 
2373
SHELL = /bin/sh
 
2374
all:
 
2375
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2376
_ACEOF
 
2377
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2378
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2379
  *@@@%%%=?*=@@@%%%*)
 
2380
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2381
  *)
 
2382
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2383
esac
 
2384
rm -f conftest.make
 
2385
fi
 
2386
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2387
  { echo "$as_me:$LINENO: result: yes" >&5
 
2388
echo "${ECHO_T}yes" >&6; }
 
2389
  SET_MAKE=
 
2390
else
 
2391
  { echo "$as_me:$LINENO: result: no" >&5
 
2392
echo "${ECHO_T}no" >&6; }
 
2393
  SET_MAKE="MAKE=${MAKE-make}"
 
2394
fi
 
2395
 
 
2396
rm -rf .tst 2>/dev/null
 
2397
mkdir .tst 2>/dev/null
 
2398
if test -d .tst; then
 
2399
  am__leading_dot=.
 
2400
else
 
2401
  am__leading_dot=_
 
2402
fi
 
2403
rmdir .tst 2>/dev/null
 
2404
 
 
2405
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2406
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2407
  # is not polluted with repeated "-I."
 
2408
  am__isrc=' -I$(srcdir)'
 
2409
  # test to see if srcdir already configured
 
2410
  if test -f $srcdir/config.status; then
 
2411
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2412
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2413
   { (exit 1); exit 1; }; }
 
2414
  fi
 
2415
fi
 
2416
 
 
2417
# test whether we have cygpath
 
2418
if test -z "$CYGPATH_W"; then
 
2419
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2420
    CYGPATH_W='cygpath -w'
 
2421
  else
 
2422
    CYGPATH_W=echo
 
2423
  fi
 
2424
fi
 
2425
 
 
2426
 
 
2427
# Define the identity of the package.
 
2428
 PACKAGE='nm-applet'
 
2429
 VERSION='0.6.5'
 
2430
 
 
2431
 
 
2432
cat >>confdefs.h <<_ACEOF
 
2433
#define PACKAGE "$PACKAGE"
 
2434
_ACEOF
 
2435
 
 
2436
 
 
2437
cat >>confdefs.h <<_ACEOF
 
2438
#define VERSION "$VERSION"
 
2439
_ACEOF
 
2440
 
 
2441
# Some tools Automake needs.
 
2442
 
 
2443
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2444
 
 
2445
 
 
2446
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2447
 
 
2448
 
 
2449
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2450
 
 
2451
 
 
2452
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2453
 
 
2454
 
 
2455
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2456
 
 
2457
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2458
 
 
2459
# Installed binaries are usually stripped using `strip' when the user
 
2460
# run `make install-strip'.  However `strip' might not be the right
 
2461
# tool to use in cross-compilation environments, therefore Automake
 
2462
# will honor the `STRIP' environment variable to overrule this program.
 
2463
if test "$cross_compiling" != no; then
 
2464
  if test -n "$ac_tool_prefix"; then
 
2465
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2466
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2467
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2469
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2471
else
 
2472
  if test -n "$STRIP"; then
 
2473
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2474
else
 
2475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2476
for as_dir in $PATH
 
2477
do
 
2478
  IFS=$as_save_IFS
 
2479
  test -z "$as_dir" && as_dir=.
 
2480
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2481
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2482
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2483
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2484
    break 2
 
2485
  fi
 
2486
done
 
2487
done
 
2488
IFS=$as_save_IFS
 
2489
 
 
2490
fi
 
2491
fi
 
2492
STRIP=$ac_cv_prog_STRIP
 
2493
if test -n "$STRIP"; then
 
2494
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2495
echo "${ECHO_T}$STRIP" >&6; }
 
2496
else
 
2497
  { echo "$as_me:$LINENO: result: no" >&5
 
2498
echo "${ECHO_T}no" >&6; }
 
2499
fi
 
2500
 
 
2501
 
 
2502
fi
 
2503
if test -z "$ac_cv_prog_STRIP"; then
 
2504
  ac_ct_STRIP=$STRIP
 
2505
  # Extract the first word of "strip", so it can be a program name with args.
 
2506
set dummy strip; ac_word=$2
 
2507
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2508
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2509
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2511
else
 
2512
  if test -n "$ac_ct_STRIP"; then
 
2513
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2514
else
 
2515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2516
for as_dir in $PATH
 
2517
do
 
2518
  IFS=$as_save_IFS
 
2519
  test -z "$as_dir" && as_dir=.
 
2520
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2521
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2522
    ac_cv_prog_ac_ct_STRIP="strip"
 
2523
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2524
    break 2
 
2525
  fi
 
2526
done
 
2527
done
 
2528
IFS=$as_save_IFS
 
2529
 
 
2530
fi
 
2531
fi
 
2532
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2533
if test -n "$ac_ct_STRIP"; then
 
2534
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2535
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2536
else
 
2537
  { echo "$as_me:$LINENO: result: no" >&5
 
2538
echo "${ECHO_T}no" >&6; }
 
2539
fi
 
2540
 
 
2541
  if test "x$ac_ct_STRIP" = x; then
 
2542
    STRIP=":"
 
2543
  else
 
2544
    case $cross_compiling:$ac_tool_warned in
 
2545
yes:)
 
2546
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2547
whose name does not start with the host triplet.  If you think this
 
2548
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2549
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2550
whose name does not start with the host triplet.  If you think this
 
2551
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2552
ac_tool_warned=yes ;;
 
2553
esac
 
2554
    STRIP=$ac_ct_STRIP
 
2555
  fi
 
2556
else
 
2557
  STRIP="$ac_cv_prog_STRIP"
 
2558
fi
 
2559
 
 
2560
fi
 
2561
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2562
 
 
2563
# We need awk for the "check" target.  The system "awk" is bad on
 
2564
# some platforms.
 
2565
# Always define AMTAR for backward compatibility.
 
2566
 
 
2567
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2568
 
 
2569
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2570
 
 
2571
 
 
2572
 
 
2573
 
 
2574
 
 
2575
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2576
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
2577
    # Check whether --enable-maintainer-mode was given.
 
2578
if test "${enable_maintainer_mode+set}" = set; then
 
2579
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2580
else
 
2581
  USE_MAINTAINER_MODE=no
 
2582
fi
 
2583
 
 
2584
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2585
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
 
2586
   if test $USE_MAINTAINER_MODE = yes; then
 
2587
  MAINTAINER_MODE_TRUE=
 
2588
  MAINTAINER_MODE_FALSE='#'
 
2589
else
 
2590
  MAINTAINER_MODE_TRUE='#'
 
2591
  MAINTAINER_MODE_FALSE=
 
2592
fi
 
2593
 
 
2594
  MAINT=$MAINTAINER_MODE_TRUE
 
2595
 
 
2596
 
 
2597
 
 
2598
ac_config_headers="$ac_config_headers config.h"
 
2599
 
 
2600
 
 
2601
ac_ext=c
 
2602
ac_cpp='$CPP $CPPFLAGS'
 
2603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2606
if test -n "$ac_tool_prefix"; then
 
2607
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2608
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2609
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2610
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2611
if test "${ac_cv_prog_CC+set}" = set; then
 
2612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2613
else
 
2614
  if test -n "$CC"; then
 
2615
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2616
else
 
2617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2618
for as_dir in $PATH
 
2619
do
 
2620
  IFS=$as_save_IFS
 
2621
  test -z "$as_dir" && as_dir=.
 
2622
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2623
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2624
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2625
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2626
    break 2
 
2627
  fi
 
2628
done
 
2629
done
 
2630
IFS=$as_save_IFS
 
2631
 
 
2632
fi
 
2633
fi
 
2634
CC=$ac_cv_prog_CC
 
2635
if test -n "$CC"; then
 
2636
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2637
echo "${ECHO_T}$CC" >&6; }
 
2638
else
 
2639
  { echo "$as_me:$LINENO: result: no" >&5
 
2640
echo "${ECHO_T}no" >&6; }
 
2641
fi
 
2642
 
 
2643
 
 
2644
fi
 
2645
if test -z "$ac_cv_prog_CC"; then
 
2646
  ac_ct_CC=$CC
 
2647
  # Extract the first word of "gcc", so it can be a program name with args.
 
2648
set dummy gcc; ac_word=$2
 
2649
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2651
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2653
else
 
2654
  if test -n "$ac_ct_CC"; then
 
2655
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2656
else
 
2657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2658
for as_dir in $PATH
 
2659
do
 
2660
  IFS=$as_save_IFS
 
2661
  test -z "$as_dir" && as_dir=.
 
2662
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2663
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2664
    ac_cv_prog_ac_ct_CC="gcc"
 
2665
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2666
    break 2
 
2667
  fi
 
2668
done
 
2669
done
 
2670
IFS=$as_save_IFS
 
2671
 
 
2672
fi
 
2673
fi
 
2674
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2675
if test -n "$ac_ct_CC"; then
 
2676
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2677
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2678
else
 
2679
  { echo "$as_me:$LINENO: result: no" >&5
 
2680
echo "${ECHO_T}no" >&6; }
 
2681
fi
 
2682
 
 
2683
  if test "x$ac_ct_CC" = x; then
 
2684
    CC=""
 
2685
  else
 
2686
    case $cross_compiling:$ac_tool_warned in
 
2687
yes:)
 
2688
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2689
whose name does not start with the host triplet.  If you think this
 
2690
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2691
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2692
whose name does not start with the host triplet.  If you think this
 
2693
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2694
ac_tool_warned=yes ;;
 
2695
esac
 
2696
    CC=$ac_ct_CC
 
2697
  fi
 
2698
else
 
2699
  CC="$ac_cv_prog_CC"
 
2700
fi
 
2701
 
 
2702
if test -z "$CC"; then
 
2703
          if test -n "$ac_tool_prefix"; then
 
2704
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2705
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2706
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2708
if test "${ac_cv_prog_CC+set}" = set; then
 
2709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2710
else
 
2711
  if test -n "$CC"; then
 
2712
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2713
else
 
2714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2715
for as_dir in $PATH
 
2716
do
 
2717
  IFS=$as_save_IFS
 
2718
  test -z "$as_dir" && as_dir=.
 
2719
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2720
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2721
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2722
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2723
    break 2
 
2724
  fi
 
2725
done
 
2726
done
 
2727
IFS=$as_save_IFS
 
2728
 
 
2729
fi
 
2730
fi
 
2731
CC=$ac_cv_prog_CC
 
2732
if test -n "$CC"; then
 
2733
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2734
echo "${ECHO_T}$CC" >&6; }
 
2735
else
 
2736
  { echo "$as_me:$LINENO: result: no" >&5
 
2737
echo "${ECHO_T}no" >&6; }
 
2738
fi
 
2739
 
 
2740
 
 
2741
  fi
 
2742
fi
 
2743
if test -z "$CC"; then
 
2744
  # Extract the first word of "cc", so it can be a program name with args.
 
2745
set dummy cc; ac_word=$2
 
2746
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2747
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2748
if test "${ac_cv_prog_CC+set}" = set; then
 
2749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2750
else
 
2751
  if test -n "$CC"; then
 
2752
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2753
else
 
2754
  ac_prog_rejected=no
 
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2756
for as_dir in $PATH
 
2757
do
 
2758
  IFS=$as_save_IFS
 
2759
  test -z "$as_dir" && as_dir=.
 
2760
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2762
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2763
       ac_prog_rejected=yes
 
2764
       continue
 
2765
     fi
 
2766
    ac_cv_prog_CC="cc"
 
2767
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2768
    break 2
 
2769
  fi
 
2770
done
 
2771
done
 
2772
IFS=$as_save_IFS
 
2773
 
 
2774
if test $ac_prog_rejected = yes; then
 
2775
  # We found a bogon in the path, so make sure we never use it.
 
2776
  set dummy $ac_cv_prog_CC
 
2777
  shift
 
2778
  if test $# != 0; then
 
2779
    # We chose a different compiler from the bogus one.
 
2780
    # However, it has the same basename, so the bogon will be chosen
 
2781
    # first if we set CC to just the basename; use the full file name.
 
2782
    shift
 
2783
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2784
  fi
 
2785
fi
 
2786
fi
 
2787
fi
 
2788
CC=$ac_cv_prog_CC
 
2789
if test -n "$CC"; then
 
2790
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2791
echo "${ECHO_T}$CC" >&6; }
 
2792
else
 
2793
  { echo "$as_me:$LINENO: result: no" >&5
 
2794
echo "${ECHO_T}no" >&6; }
 
2795
fi
 
2796
 
 
2797
 
 
2798
fi
 
2799
if test -z "$CC"; then
 
2800
  if test -n "$ac_tool_prefix"; then
 
2801
  for ac_prog in cl.exe
 
2802
  do
 
2803
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2804
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2805
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2806
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2807
if test "${ac_cv_prog_CC+set}" = set; then
 
2808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2809
else
 
2810
  if test -n "$CC"; then
 
2811
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2812
else
 
2813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2814
for as_dir in $PATH
 
2815
do
 
2816
  IFS=$as_save_IFS
 
2817
  test -z "$as_dir" && as_dir=.
 
2818
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2819
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2820
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2821
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2822
    break 2
 
2823
  fi
 
2824
done
 
2825
done
 
2826
IFS=$as_save_IFS
 
2827
 
 
2828
fi
 
2829
fi
 
2830
CC=$ac_cv_prog_CC
 
2831
if test -n "$CC"; then
 
2832
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2833
echo "${ECHO_T}$CC" >&6; }
 
2834
else
 
2835
  { echo "$as_me:$LINENO: result: no" >&5
 
2836
echo "${ECHO_T}no" >&6; }
 
2837
fi
 
2838
 
 
2839
 
 
2840
    test -n "$CC" && break
 
2841
  done
 
2842
fi
 
2843
if test -z "$CC"; then
 
2844
  ac_ct_CC=$CC
 
2845
  for ac_prog in cl.exe
 
2846
do
 
2847
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2848
set dummy $ac_prog; ac_word=$2
 
2849
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2850
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2851
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2853
else
 
2854
  if test -n "$ac_ct_CC"; then
 
2855
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2856
else
 
2857
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2858
for as_dir in $PATH
 
2859
do
 
2860
  IFS=$as_save_IFS
 
2861
  test -z "$as_dir" && as_dir=.
 
2862
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2863
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2864
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2865
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2866
    break 2
 
2867
  fi
 
2868
done
 
2869
done
 
2870
IFS=$as_save_IFS
 
2871
 
 
2872
fi
 
2873
fi
 
2874
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2875
if test -n "$ac_ct_CC"; then
 
2876
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2877
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2878
else
 
2879
  { echo "$as_me:$LINENO: result: no" >&5
 
2880
echo "${ECHO_T}no" >&6; }
 
2881
fi
 
2882
 
 
2883
 
 
2884
  test -n "$ac_ct_CC" && break
 
2885
done
 
2886
 
 
2887
  if test "x$ac_ct_CC" = x; then
 
2888
    CC=""
 
2889
  else
 
2890
    case $cross_compiling:$ac_tool_warned in
 
2891
yes:)
 
2892
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2893
whose name does not start with the host triplet.  If you think this
 
2894
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2895
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2896
whose name does not start with the host triplet.  If you think this
 
2897
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2898
ac_tool_warned=yes ;;
 
2899
esac
 
2900
    CC=$ac_ct_CC
 
2901
  fi
 
2902
fi
 
2903
 
 
2904
fi
 
2905
 
 
2906
 
 
2907
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2908
See \`config.log' for more details." >&5
 
2909
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2910
See \`config.log' for more details." >&2;}
 
2911
   { (exit 1); exit 1; }; }
 
2912
 
 
2913
# Provide some information about the compiler.
 
2914
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2915
ac_compiler=`set X $ac_compile; echo $2`
 
2916
{ (ac_try="$ac_compiler --version >&5"
 
2917
case "(($ac_try" in
 
2918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2919
  *) ac_try_echo=$ac_try;;
 
2920
esac
 
2921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2922
  (eval "$ac_compiler --version >&5") 2>&5
 
2923
  ac_status=$?
 
2924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2925
  (exit $ac_status); }
 
2926
{ (ac_try="$ac_compiler -v >&5"
 
2927
case "(($ac_try" in
 
2928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2929
  *) ac_try_echo=$ac_try;;
 
2930
esac
 
2931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2932
  (eval "$ac_compiler -v >&5") 2>&5
 
2933
  ac_status=$?
 
2934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2935
  (exit $ac_status); }
 
2936
{ (ac_try="$ac_compiler -V >&5"
 
2937
case "(($ac_try" in
 
2938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2939
  *) ac_try_echo=$ac_try;;
 
2940
esac
 
2941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2942
  (eval "$ac_compiler -V >&5") 2>&5
 
2943
  ac_status=$?
 
2944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2945
  (exit $ac_status); }
 
2946
 
 
2947
cat >conftest.$ac_ext <<_ACEOF
 
2948
/* confdefs.h.  */
 
2949
_ACEOF
 
2950
cat confdefs.h >>conftest.$ac_ext
 
2951
cat >>conftest.$ac_ext <<_ACEOF
 
2952
/* end confdefs.h.  */
 
2953
 
 
2954
int
 
2955
main ()
 
2956
{
 
2957
 
 
2958
  ;
 
2959
  return 0;
 
2960
}
 
2961
_ACEOF
 
2962
ac_clean_files_save=$ac_clean_files
 
2963
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2964
# Try to create an executable without -o first, disregard a.out.
 
2965
# It will help us diagnose broken compilers, and finding out an intuition
 
2966
# of exeext.
 
2967
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2968
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2969
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2970
#
 
2971
# List of possible output files, starting from the most likely.
 
2972
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2973
# only as a last resort.  b.out is created by i960 compilers.
 
2974
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2975
#
 
2976
# The IRIX 6 linker writes into existing files which may not be
 
2977
# executable, retaining their permissions.  Remove them first so a
 
2978
# subsequent execution test works.
 
2979
ac_rmfiles=
 
2980
for ac_file in $ac_files
 
2981
do
 
2982
  case $ac_file in
 
2983
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2984
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2985
  esac
 
2986
done
 
2987
rm -f $ac_rmfiles
 
2988
 
 
2989
if { (ac_try="$ac_link_default"
 
2990
case "(($ac_try" in
 
2991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2992
  *) ac_try_echo=$ac_try;;
 
2993
esac
 
2994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2995
  (eval "$ac_link_default") 2>&5
 
2996
  ac_status=$?
 
2997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2998
  (exit $ac_status); }; then
 
2999
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3000
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3001
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3002
# so that the user can short-circuit this test for compilers unknown to
 
3003
# Autoconf.
 
3004
for ac_file in $ac_files ''
 
3005
do
 
3006
  test -f "$ac_file" || continue
 
3007
  case $ac_file in
 
3008
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3009
        ;;
 
3010
    [ab].out )
 
3011
        # We found the default executable, but exeext='' is most
 
3012
        # certainly right.
 
3013
        break;;
 
3014
    *.* )
 
3015
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3016
        then :; else
 
3017
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3018
        fi
 
3019
        # We set ac_cv_exeext here because the later test for it is not
 
3020
        # safe: cross compilers may not add the suffix if given an `-o'
 
3021
        # argument, so we may need to know it at that point already.
 
3022
        # Even if this section looks crufty: it has the advantage of
 
3023
        # actually working.
 
3024
        break;;
 
3025
    * )
 
3026
        break;;
 
3027
  esac
 
3028
done
 
3029
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3030
 
 
3031
else
 
3032
  ac_file=''
 
3033
fi
 
3034
 
 
3035
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3036
echo "${ECHO_T}$ac_file" >&6; }
 
3037
if test -z "$ac_file"; then
 
3038
  echo "$as_me: failed program was:" >&5
 
3039
sed 's/^/| /' conftest.$ac_ext >&5
 
3040
 
 
3041
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3042
See \`config.log' for more details." >&5
 
3043
echo "$as_me: error: C compiler cannot create executables
 
3044
See \`config.log' for more details." >&2;}
 
3045
   { (exit 77); exit 77; }; }
 
3046
fi
 
3047
 
 
3048
ac_exeext=$ac_cv_exeext
 
3049
 
 
3050
# Check that the compiler produces executables we can run.  If not, either
 
3051
# the compiler is broken, or we cross compile.
 
3052
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3053
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3054
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3055
# If not cross compiling, check that we can run a simple program.
 
3056
if test "$cross_compiling" != yes; then
 
3057
  if { ac_try='./$ac_file'
 
3058
  { (case "(($ac_try" in
 
3059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3060
  *) ac_try_echo=$ac_try;;
 
3061
esac
 
3062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3063
  (eval "$ac_try") 2>&5
 
3064
  ac_status=$?
 
3065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3066
  (exit $ac_status); }; }; then
 
3067
    cross_compiling=no
 
3068
  else
 
3069
    if test "$cross_compiling" = maybe; then
 
3070
        cross_compiling=yes
 
3071
    else
 
3072
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3073
If you meant to cross compile, use \`--host'.
 
3074
See \`config.log' for more details." >&5
 
3075
echo "$as_me: error: cannot run C compiled programs.
 
3076
If you meant to cross compile, use \`--host'.
 
3077
See \`config.log' for more details." >&2;}
 
3078
   { (exit 1); exit 1; }; }
 
3079
    fi
 
3080
  fi
 
3081
fi
 
3082
{ echo "$as_me:$LINENO: result: yes" >&5
 
3083
echo "${ECHO_T}yes" >&6; }
 
3084
 
 
3085
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3086
ac_clean_files=$ac_clean_files_save
 
3087
# Check that the compiler produces executables we can run.  If not, either
 
3088
# the compiler is broken, or we cross compile.
 
3089
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3090
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3091
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3092
echo "${ECHO_T}$cross_compiling" >&6; }
 
3093
 
 
3094
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3095
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3096
if { (ac_try="$ac_link"
 
3097
case "(($ac_try" in
 
3098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3099
  *) ac_try_echo=$ac_try;;
 
3100
esac
 
3101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3102
  (eval "$ac_link") 2>&5
 
3103
  ac_status=$?
 
3104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3105
  (exit $ac_status); }; then
 
3106
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3107
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3108
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3109
# `rm'.
 
3110
for ac_file in conftest.exe conftest conftest.*; do
 
3111
  test -f "$ac_file" || continue
 
3112
  case $ac_file in
 
3113
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3114
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3115
          break;;
 
3116
    * ) break;;
 
3117
  esac
 
3118
done
 
3119
else
 
3120
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3121
See \`config.log' for more details." >&5
 
3122
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3123
See \`config.log' for more details." >&2;}
 
3124
   { (exit 1); exit 1; }; }
 
3125
fi
 
3126
 
 
3127
rm -f conftest$ac_cv_exeext
 
3128
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3129
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3130
 
 
3131
rm -f conftest.$ac_ext
 
3132
EXEEXT=$ac_cv_exeext
 
3133
ac_exeext=$EXEEXT
 
3134
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3135
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3136
if test "${ac_cv_objext+set}" = set; then
 
3137
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3138
else
 
3139
  cat >conftest.$ac_ext <<_ACEOF
 
3140
/* confdefs.h.  */
 
3141
_ACEOF
 
3142
cat confdefs.h >>conftest.$ac_ext
 
3143
cat >>conftest.$ac_ext <<_ACEOF
 
3144
/* end confdefs.h.  */
 
3145
 
 
3146
int
 
3147
main ()
 
3148
{
 
3149
 
 
3150
  ;
 
3151
  return 0;
 
3152
}
 
3153
_ACEOF
 
3154
rm -f conftest.o conftest.obj
 
3155
if { (ac_try="$ac_compile"
 
3156
case "(($ac_try" in
 
3157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3158
  *) ac_try_echo=$ac_try;;
 
3159
esac
 
3160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3161
  (eval "$ac_compile") 2>&5
 
3162
  ac_status=$?
 
3163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3164
  (exit $ac_status); }; then
 
3165
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3166
  test -f "$ac_file" || continue;
 
3167
  case $ac_file in
 
3168
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3169
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3170
       break;;
 
3171
  esac
 
3172
done
 
3173
else
 
3174
  echo "$as_me: failed program was:" >&5
 
3175
sed 's/^/| /' conftest.$ac_ext >&5
 
3176
 
 
3177
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3178
See \`config.log' for more details." >&5
 
3179
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3180
See \`config.log' for more details." >&2;}
 
3181
   { (exit 1); exit 1; }; }
 
3182
fi
 
3183
 
 
3184
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3185
fi
 
3186
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3187
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3188
OBJEXT=$ac_cv_objext
 
3189
ac_objext=$OBJEXT
 
3190
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3191
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3192
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3194
else
 
3195
  cat >conftest.$ac_ext <<_ACEOF
 
3196
/* confdefs.h.  */
 
3197
_ACEOF
 
3198
cat confdefs.h >>conftest.$ac_ext
 
3199
cat >>conftest.$ac_ext <<_ACEOF
 
3200
/* end confdefs.h.  */
 
3201
 
 
3202
int
 
3203
main ()
 
3204
{
 
3205
#ifndef __GNUC__
 
3206
       choke me
 
3207
#endif
 
3208
 
 
3209
  ;
 
3210
  return 0;
 
3211
}
 
3212
_ACEOF
 
3213
rm -f conftest.$ac_objext
 
3214
if { (ac_try="$ac_compile"
 
3215
case "(($ac_try" in
 
3216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3217
  *) ac_try_echo=$ac_try;;
 
3218
esac
 
3219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3220
  (eval "$ac_compile") 2>conftest.er1
 
3221
  ac_status=$?
 
3222
  grep -v '^ *+' conftest.er1 >conftest.err
 
3223
  rm -f conftest.er1
 
3224
  cat conftest.err >&5
 
3225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3226
  (exit $ac_status); } && {
 
3227
         test -z "$ac_c_werror_flag" ||
 
3228
         test ! -s conftest.err
 
3229
       } && test -s conftest.$ac_objext; then
 
3230
  ac_compiler_gnu=yes
 
3231
else
 
3232
  echo "$as_me: failed program was:" >&5
 
3233
sed 's/^/| /' conftest.$ac_ext >&5
 
3234
 
 
3235
        ac_compiler_gnu=no
 
3236
fi
 
3237
 
 
3238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3239
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3240
 
 
3241
fi
 
3242
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3243
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3244
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3245
ac_test_CFLAGS=${CFLAGS+set}
 
3246
ac_save_CFLAGS=$CFLAGS
 
3247
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3248
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3249
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3251
else
 
3252
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3253
   ac_c_werror_flag=yes
 
3254
   ac_cv_prog_cc_g=no
 
3255
   CFLAGS="-g"
 
3256
   cat >conftest.$ac_ext <<_ACEOF
 
3257
/* confdefs.h.  */
 
3258
_ACEOF
 
3259
cat confdefs.h >>conftest.$ac_ext
 
3260
cat >>conftest.$ac_ext <<_ACEOF
 
3261
/* end confdefs.h.  */
 
3262
 
 
3263
int
 
3264
main ()
 
3265
{
 
3266
 
 
3267
  ;
 
3268
  return 0;
 
3269
}
 
3270
_ACEOF
 
3271
rm -f conftest.$ac_objext
 
3272
if { (ac_try="$ac_compile"
 
3273
case "(($ac_try" in
 
3274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3275
  *) ac_try_echo=$ac_try;;
 
3276
esac
 
3277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3278
  (eval "$ac_compile") 2>conftest.er1
 
3279
  ac_status=$?
 
3280
  grep -v '^ *+' conftest.er1 >conftest.err
 
3281
  rm -f conftest.er1
 
3282
  cat conftest.err >&5
 
3283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3284
  (exit $ac_status); } && {
 
3285
         test -z "$ac_c_werror_flag" ||
 
3286
         test ! -s conftest.err
 
3287
       } && test -s conftest.$ac_objext; then
 
3288
  ac_cv_prog_cc_g=yes
 
3289
else
 
3290
  echo "$as_me: failed program was:" >&5
 
3291
sed 's/^/| /' conftest.$ac_ext >&5
 
3292
 
 
3293
        CFLAGS=""
 
3294
      cat >conftest.$ac_ext <<_ACEOF
 
3295
/* confdefs.h.  */
 
3296
_ACEOF
 
3297
cat confdefs.h >>conftest.$ac_ext
 
3298
cat >>conftest.$ac_ext <<_ACEOF
 
3299
/* end confdefs.h.  */
 
3300
 
 
3301
int
 
3302
main ()
 
3303
{
 
3304
 
 
3305
  ;
 
3306
  return 0;
 
3307
}
 
3308
_ACEOF
 
3309
rm -f conftest.$ac_objext
 
3310
if { (ac_try="$ac_compile"
 
3311
case "(($ac_try" in
 
3312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3313
  *) ac_try_echo=$ac_try;;
 
3314
esac
 
3315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3316
  (eval "$ac_compile") 2>conftest.er1
 
3317
  ac_status=$?
 
3318
  grep -v '^ *+' conftest.er1 >conftest.err
 
3319
  rm -f conftest.er1
 
3320
  cat conftest.err >&5
 
3321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3322
  (exit $ac_status); } && {
 
3323
         test -z "$ac_c_werror_flag" ||
 
3324
         test ! -s conftest.err
 
3325
       } && test -s conftest.$ac_objext; then
 
3326
  :
 
3327
else
 
3328
  echo "$as_me: failed program was:" >&5
 
3329
sed 's/^/| /' conftest.$ac_ext >&5
 
3330
 
 
3331
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3332
         CFLAGS="-g"
 
3333
         cat >conftest.$ac_ext <<_ACEOF
 
3334
/* confdefs.h.  */
 
3335
_ACEOF
 
3336
cat confdefs.h >>conftest.$ac_ext
 
3337
cat >>conftest.$ac_ext <<_ACEOF
 
3338
/* end confdefs.h.  */
 
3339
 
 
3340
int
 
3341
main ()
 
3342
{
 
3343
 
 
3344
  ;
 
3345
  return 0;
 
3346
}
 
3347
_ACEOF
 
3348
rm -f conftest.$ac_objext
 
3349
if { (ac_try="$ac_compile"
 
3350
case "(($ac_try" in
 
3351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3352
  *) ac_try_echo=$ac_try;;
 
3353
esac
 
3354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3355
  (eval "$ac_compile") 2>conftest.er1
 
3356
  ac_status=$?
 
3357
  grep -v '^ *+' conftest.er1 >conftest.err
 
3358
  rm -f conftest.er1
 
3359
  cat conftest.err >&5
 
3360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3361
  (exit $ac_status); } && {
 
3362
         test -z "$ac_c_werror_flag" ||
 
3363
         test ! -s conftest.err
 
3364
       } && test -s conftest.$ac_objext; then
 
3365
  ac_cv_prog_cc_g=yes
 
3366
else
 
3367
  echo "$as_me: failed program was:" >&5
 
3368
sed 's/^/| /' conftest.$ac_ext >&5
 
3369
 
 
3370
 
 
3371
fi
 
3372
 
 
3373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3374
fi
 
3375
 
 
3376
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3377
fi
 
3378
 
 
3379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3380
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3381
fi
 
3382
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3383
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3384
if test "$ac_test_CFLAGS" = set; then
 
3385
  CFLAGS=$ac_save_CFLAGS
 
3386
elif test $ac_cv_prog_cc_g = yes; then
 
3387
  if test "$GCC" = yes; then
 
3388
    CFLAGS="-g -O2"
 
3389
  else
 
3390
    CFLAGS="-g"
 
3391
  fi
 
3392
else
 
3393
  if test "$GCC" = yes; then
 
3394
    CFLAGS="-O2"
 
3395
  else
 
3396
    CFLAGS=
 
3397
  fi
 
3398
fi
 
3399
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3400
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3401
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3402
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3403
else
 
3404
  ac_cv_prog_cc_c89=no
 
3405
ac_save_CC=$CC
 
3406
cat >conftest.$ac_ext <<_ACEOF
 
3407
/* confdefs.h.  */
 
3408
_ACEOF
 
3409
cat confdefs.h >>conftest.$ac_ext
 
3410
cat >>conftest.$ac_ext <<_ACEOF
 
3411
/* end confdefs.h.  */
 
3412
#include <stdarg.h>
 
3413
#include <stdio.h>
 
3414
#include <sys/types.h>
 
3415
#include <sys/stat.h>
 
3416
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3417
struct buf { int x; };
 
3418
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3419
static char *e (p, i)
 
3420
     char **p;
 
3421
     int i;
 
3422
{
 
3423
  return p[i];
 
3424
}
 
3425
static char *f (char * (*g) (char **, int), char **p, ...)
 
3426
{
 
3427
  char *s;
 
3428
  va_list v;
 
3429
  va_start (v,p);
 
3430
  s = g (p, va_arg (v,int));
 
3431
  va_end (v);
 
3432
  return s;
 
3433
}
 
3434
 
 
3435
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3436
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3437
   These don't provoke an error unfortunately, instead are silently treated
 
3438
   as 'x'.  The following induces an error, until -std is added to get
 
3439
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3440
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3441
   that's true only with -std.  */
 
3442
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3443
 
 
3444
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3445
   inside strings and character constants.  */
 
3446
#define FOO(x) 'x'
 
3447
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3448
 
 
3449
int test (int i, double x);
 
3450
struct s1 {int (*f) (int a);};
 
3451
struct s2 {int (*f) (double a);};
 
3452
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3453
int argc;
 
3454
char **argv;
 
3455
int
 
3456
main ()
 
3457
{
 
3458
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3459
  ;
 
3460
  return 0;
 
3461
}
 
3462
_ACEOF
 
3463
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3464
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3465
do
 
3466
  CC="$ac_save_CC $ac_arg"
 
3467
  rm -f conftest.$ac_objext
 
3468
if { (ac_try="$ac_compile"
 
3469
case "(($ac_try" in
 
3470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3471
  *) ac_try_echo=$ac_try;;
 
3472
esac
 
3473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3474
  (eval "$ac_compile") 2>conftest.er1
 
3475
  ac_status=$?
 
3476
  grep -v '^ *+' conftest.er1 >conftest.err
 
3477
  rm -f conftest.er1
 
3478
  cat conftest.err >&5
 
3479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3480
  (exit $ac_status); } && {
 
3481
         test -z "$ac_c_werror_flag" ||
 
3482
         test ! -s conftest.err
 
3483
       } && test -s conftest.$ac_objext; then
 
3484
  ac_cv_prog_cc_c89=$ac_arg
 
3485
else
 
3486
  echo "$as_me: failed program was:" >&5
 
3487
sed 's/^/| /' conftest.$ac_ext >&5
 
3488
 
 
3489
 
 
3490
fi
 
3491
 
 
3492
rm -f core conftest.err conftest.$ac_objext
 
3493
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3494
done
 
3495
rm -f conftest.$ac_ext
 
3496
CC=$ac_save_CC
 
3497
 
 
3498
fi
 
3499
# AC_CACHE_VAL
 
3500
case "x$ac_cv_prog_cc_c89" in
 
3501
  x)
 
3502
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3503
echo "${ECHO_T}none needed" >&6; } ;;
 
3504
  xno)
 
3505
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3506
echo "${ECHO_T}unsupported" >&6; } ;;
 
3507
  *)
 
3508
    CC="$CC $ac_cv_prog_cc_c89"
 
3509
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3510
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3511
esac
 
3512
 
 
3513
 
 
3514
ac_ext=c
 
3515
ac_cpp='$CPP $CPPFLAGS'
 
3516
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3517
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3518
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3519
DEPDIR="${am__leading_dot}deps"
 
3520
 
 
3521
ac_config_commands="$ac_config_commands depfiles"
 
3522
 
 
3523
 
 
3524
am_make=${MAKE-make}
 
3525
cat > confinc << 'END'
 
3526
am__doit:
 
3527
        @echo done
 
3528
.PHONY: am__doit
 
3529
END
 
3530
# If we don't find an include directive, just comment out the code.
 
3531
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3532
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3533
am__include="#"
 
3534
am__quote=
 
3535
_am_result=none
 
3536
# First try GNU make style include.
 
3537
echo "include confinc" > confmf
 
3538
# We grep out `Entering directory' and `Leaving directory'
 
3539
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3540
# In particular we don't look at `^make:' because GNU make might
 
3541
# be invoked under some other name (usually "gmake"), in which
 
3542
# case it prints its new name instead of `make'.
 
3543
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3544
   am__include=include
 
3545
   am__quote=
 
3546
   _am_result=GNU
 
3547
fi
 
3548
# Now try BSD make style include.
 
3549
if test "$am__include" = "#"; then
 
3550
   echo '.include "confinc"' > confmf
 
3551
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3552
      am__include=.include
 
3553
      am__quote="\""
 
3554
      _am_result=BSD
 
3555
   fi
 
3556
fi
 
3557
 
 
3558
 
 
3559
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3560
echo "${ECHO_T}$_am_result" >&6; }
 
3561
rm -f confinc confmf
 
3562
 
 
3563
# Check whether --enable-dependency-tracking was given.
 
3564
if test "${enable_dependency_tracking+set}" = set; then
 
3565
  enableval=$enable_dependency_tracking;
 
3566
fi
 
3567
 
 
3568
if test "x$enable_dependency_tracking" != xno; then
 
3569
  am_depcomp="$ac_aux_dir/depcomp"
 
3570
  AMDEPBACKSLASH='\'
 
3571
fi
 
3572
 if test "x$enable_dependency_tracking" != xno; then
 
3573
  AMDEP_TRUE=
 
3574
  AMDEP_FALSE='#'
 
3575
else
 
3576
  AMDEP_TRUE='#'
 
3577
  AMDEP_FALSE=
 
3578
fi
 
3579
 
 
3580
 
 
3581
 
 
3582
depcc="$CC"   am_compiler_list=
 
3583
 
 
3584
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3585
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3586
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3588
else
 
3589
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3590
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3591
  # making bogus files that we don't know about and never remove.  For
 
3592
  # instance it was reported that on HP-UX the gcc test will end up
 
3593
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3594
  # in D'.
 
3595
  mkdir conftest.dir
 
3596
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3597
  # using a relative directory.
 
3598
  cp "$am_depcomp" conftest.dir
 
3599
  cd conftest.dir
 
3600
  # We will build objects and dependencies in a subdirectory because
 
3601
  # it helps to detect inapplicable dependency modes.  For instance
 
3602
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3603
  # side effect of compilation, but ICC will put the dependencies in
 
3604
  # the current directory while Tru64 will put them in the object
 
3605
  # directory.
 
3606
  mkdir sub
 
3607
 
 
3608
  am_cv_CC_dependencies_compiler_type=none
 
3609
  if test "$am_compiler_list" = ""; then
 
3610
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3611
  fi
 
3612
  for depmode in $am_compiler_list; do
 
3613
    # Setup a source with many dependencies, because some compilers
 
3614
    # like to wrap large dependency lists on column 80 (with \), and
 
3615
    # we should not choose a depcomp mode which is confused by this.
 
3616
    #
 
3617
    # We need to recreate these files for each test, as the compiler may
 
3618
    # overwrite some of them when testing with obscure command lines.
 
3619
    # This happens at least with the AIX C compiler.
 
3620
    : > sub/conftest.c
 
3621
    for i in 1 2 3 4 5 6; do
 
3622
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3623
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3624
      # Solaris 8's {/usr,}/bin/sh.
 
3625
      touch sub/conftst$i.h
 
3626
    done
 
3627
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3628
 
 
3629
    case $depmode in
 
3630
    nosideeffect)
 
3631
      # after this tag, mechanisms are not by side-effect, so they'll
 
3632
      # only be used when explicitly requested
 
3633
      if test "x$enable_dependency_tracking" = xyes; then
 
3634
        continue
 
3635
      else
 
3636
        break
 
3637
      fi
 
3638
      ;;
 
3639
    none) break ;;
 
3640
    esac
 
3641
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3642
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3643
    # handle `-M -o', and we need to detect this.
 
3644
    if depmode=$depmode \
 
3645
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3646
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3647
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3648
         >/dev/null 2>conftest.err &&
 
3649
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3650
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3651
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3652
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3653
      # icc doesn't choke on unknown options, it will just issue warnings
 
3654
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3655
      # that says an option was ignored or not supported.
 
3656
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3657
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3658
      # The diagnosis changed in icc 8.0:
 
3659
      #   icc: Command line remark: option '-MP' not supported
 
3660
      if (grep 'ignoring option' conftest.err ||
 
3661
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3662
        am_cv_CC_dependencies_compiler_type=$depmode
 
3663
        break
 
3664
      fi
 
3665
    fi
 
3666
  done
 
3667
 
 
3668
  cd ..
 
3669
  rm -rf conftest.dir
 
3670
else
 
3671
  am_cv_CC_dependencies_compiler_type=none
 
3672
fi
 
3673
 
 
3674
fi
 
3675
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3676
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3677
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3678
 
 
3679
 if
 
3680
  test "x$enable_dependency_tracking" != xno \
 
3681
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3682
  am__fastdepCC_TRUE=
 
3683
  am__fastdepCC_FALSE='#'
 
3684
else
 
3685
  am__fastdepCC_TRUE='#'
 
3686
  am__fastdepCC_FALSE=
 
3687
fi
 
3688
 
 
3689
 
 
3690
if test "x$CC" != xcc; then
 
3691
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
3692
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
3693
else
 
3694
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
3695
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
3696
fi
 
3697
set dummy $CC; ac_cc=`echo $2 |
 
3698
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3699
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
3700
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3701
else
 
3702
  cat >conftest.$ac_ext <<_ACEOF
 
3703
/* confdefs.h.  */
 
3704
_ACEOF
 
3705
cat confdefs.h >>conftest.$ac_ext
 
3706
cat >>conftest.$ac_ext <<_ACEOF
 
3707
/* end confdefs.h.  */
 
3708
 
 
3709
int
 
3710
main ()
 
3711
{
 
3712
 
 
3713
  ;
 
3714
  return 0;
 
3715
}
 
3716
_ACEOF
 
3717
# Make sure it works both with $CC and with simple cc.
 
3718
# We do the test twice because some compilers refuse to overwrite an
 
3719
# existing .o file with -o, though they will create one.
 
3720
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3721
rm -f conftest2.*
 
3722
if { (case "(($ac_try" in
 
3723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3724
  *) ac_try_echo=$ac_try;;
 
3725
esac
 
3726
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3727
  (eval "$ac_try") 2>&5
 
3728
  ac_status=$?
 
3729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3730
  (exit $ac_status); } &&
 
3731
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3733
  *) ac_try_echo=$ac_try;;
 
3734
esac
 
3735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3736
  (eval "$ac_try") 2>&5
 
3737
  ac_status=$?
 
3738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3739
  (exit $ac_status); };
 
3740
then
 
3741
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
3742
  if test "x$CC" != xcc; then
 
3743
    # Test first that cc exists at all.
 
3744
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
3745
  { (case "(($ac_try" in
 
3746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3747
  *) ac_try_echo=$ac_try;;
 
3748
esac
 
3749
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3750
  (eval "$ac_try") 2>&5
 
3751
  ac_status=$?
 
3752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3753
  (exit $ac_status); }; }; then
 
3754
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3755
      rm -f conftest2.*
 
3756
      if { (case "(($ac_try" in
 
3757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3758
  *) ac_try_echo=$ac_try;;
 
3759
esac
 
3760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3761
  (eval "$ac_try") 2>&5
 
3762
  ac_status=$?
 
3763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3764
  (exit $ac_status); } &&
 
3765
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3767
  *) ac_try_echo=$ac_try;;
 
3768
esac
 
3769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3770
  (eval "$ac_try") 2>&5
 
3771
  ac_status=$?
 
3772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3773
  (exit $ac_status); };
 
3774
      then
 
3775
        # cc works too.
 
3776
        :
 
3777
      else
 
3778
        # cc exists but doesn't like -o.
 
3779
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3780
      fi
 
3781
    fi
 
3782
  fi
 
3783
else
 
3784
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3785
fi
 
3786
rm -f core conftest*
 
3787
 
 
3788
fi
 
3789
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
3790
  { echo "$as_me:$LINENO: result: yes" >&5
 
3791
echo "${ECHO_T}yes" >&6; }
 
3792
else
 
3793
  { echo "$as_me:$LINENO: result: no" >&5
 
3794
echo "${ECHO_T}no" >&6; }
 
3795
 
 
3796
cat >>confdefs.h <<\_ACEOF
 
3797
#define NO_MINUS_C_MINUS_O 1
 
3798
_ACEOF
 
3799
 
 
3800
fi
 
3801
 
 
3802
# FIXME: we rely on the cache variable name because
 
3803
# there is no other way.
 
3804
set dummy $CC
 
3805
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3806
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
3807
   # Losing compiler, so override with the script.
 
3808
   # FIXME: It is wrong to rewrite CC.
 
3809
   # But if we don't then we get into trouble of one sort or another.
 
3810
   # A longer-term fix would be to have automake use am__CC in this case,
 
3811
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3812
   CC="$am_aux_dir/compile $CC"
 
3813
fi
 
3814
 
 
3815
 
 
3816
# Find a good install program.  We prefer a C program (faster),
 
3817
# so one script is as good as another.  But avoid the broken or
 
3818
# incompatible versions:
 
3819
# SysV /etc/install, /usr/sbin/install
 
3820
# SunOS /usr/etc/install
 
3821
# IRIX /sbin/install
 
3822
# AIX /bin/install
 
3823
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3824
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3825
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3826
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3827
# OS/2's system install, which has a completely different semantic
 
3828
# ./install, which can be erroneously created by make from ./install.sh.
 
3829
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3830
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
3831
if test -z "$INSTALL"; then
 
3832
if test "${ac_cv_path_install+set}" = set; then
 
3833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3834
else
 
3835
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3836
for as_dir in $PATH
 
3837
do
 
3838
  IFS=$as_save_IFS
 
3839
  test -z "$as_dir" && as_dir=.
 
3840
  # Account for people who put trailing slashes in PATH elements.
 
3841
case $as_dir/ in
 
3842
  ./ | .// | /cC/* | \
 
3843
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3844
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3845
  /usr/ucb/* ) ;;
 
3846
  *)
 
3847
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3848
    # Don't use installbsd from OSF since it installs stuff as root
 
3849
    # by default.
 
3850
    for ac_prog in ginstall scoinst install; do
 
3851
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3852
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3853
          if test $ac_prog = install &&
 
3854
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3855
            # AIX install.  It has an incompatible calling convention.
 
3856
            :
 
3857
          elif test $ac_prog = install &&
 
3858
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3859
            # program-specific install script used by HP pwplus--don't use.
 
3860
            :
 
3861
          else
 
3862
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3863
            break 3
 
3864
          fi
 
3865
        fi
 
3866
      done
 
3867
    done
 
3868
    ;;
 
3869
esac
 
3870
done
 
3871
IFS=$as_save_IFS
 
3872
 
 
3873
 
 
3874
fi
 
3875
  if test "${ac_cv_path_install+set}" = set; then
 
3876
    INSTALL=$ac_cv_path_install
 
3877
  else
 
3878
    # As a last resort, use the slow shell script.  Don't cache a
 
3879
    # value for INSTALL within a source directory, because that will
 
3880
    # break other packages using the cache if that directory is
 
3881
    # removed, or if the value is a relative name.
 
3882
    INSTALL=$ac_install_sh
 
3883
  fi
 
3884
fi
 
3885
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3886
echo "${ECHO_T}$INSTALL" >&6; }
 
3887
 
 
3888
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3889
# It thinks the first close brace ends the variable substitution.
 
3890
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3891
 
 
3892
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3893
 
 
3894
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3895
 
 
3896
# Check whether --enable-shared was given.
 
3897
if test "${enable_shared+set}" = set; then
 
3898
  enableval=$enable_shared; p=${PACKAGE-default}
 
3899
    case $enableval in
 
3900
    yes) enable_shared=yes ;;
 
3901
    no) enable_shared=no ;;
 
3902
    *)
 
3903
      enable_shared=no
 
3904
      # Look at the argument we got.  We use all the common list separators.
 
3905
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3906
      for pkg in $enableval; do
 
3907
        IFS="$lt_save_ifs"
 
3908
        if test "X$pkg" = "X$p"; then
 
3909
          enable_shared=yes
 
3910
        fi
 
3911
      done
 
3912
      IFS="$lt_save_ifs"
 
3913
      ;;
 
3914
    esac
 
3915
else
 
3916
  enable_shared=yes
 
3917
fi
 
3918
 
 
3919
 
 
3920
# Check whether --enable-static was given.
 
3921
if test "${enable_static+set}" = set; then
 
3922
  enableval=$enable_static; p=${PACKAGE-default}
 
3923
    case $enableval in
 
3924
    yes) enable_static=yes ;;
 
3925
    no) enable_static=no ;;
 
3926
    *)
 
3927
     enable_static=no
 
3928
      # Look at the argument we got.  We use all the common list separators.
 
3929
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3930
      for pkg in $enableval; do
 
3931
        IFS="$lt_save_ifs"
 
3932
        if test "X$pkg" = "X$p"; then
 
3933
          enable_static=yes
 
3934
        fi
 
3935
      done
 
3936
      IFS="$lt_save_ifs"
 
3937
      ;;
 
3938
    esac
 
3939
else
 
3940
  enable_static=yes
 
3941
fi
 
3942
 
 
3943
 
 
3944
# Check whether --enable-fast-install was given.
 
3945
if test "${enable_fast_install+set}" = set; then
 
3946
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3947
    case $enableval in
 
3948
    yes) enable_fast_install=yes ;;
 
3949
    no) enable_fast_install=no ;;
 
3950
    *)
 
3951
      enable_fast_install=no
 
3952
      # Look at the argument we got.  We use all the common list separators.
 
3953
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3954
      for pkg in $enableval; do
 
3955
        IFS="$lt_save_ifs"
 
3956
        if test "X$pkg" = "X$p"; then
 
3957
          enable_fast_install=yes
 
3958
        fi
 
3959
      done
 
3960
      IFS="$lt_save_ifs"
 
3961
      ;;
 
3962
    esac
 
3963
else
 
3964
  enable_fast_install=yes
 
3965
fi
 
3966
 
 
3967
 
 
3968
# Make sure we can run config.sub.
 
3969
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3970
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3971
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3972
   { (exit 1); exit 1; }; }
 
3973
 
 
3974
{ echo "$as_me:$LINENO: checking build system type" >&5
 
3975
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
3976
if test "${ac_cv_build+set}" = set; then
 
3977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3978
else
 
3979
  ac_build_alias=$build_alias
 
3980
test "x$ac_build_alias" = x &&
 
3981
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3982
test "x$ac_build_alias" = x &&
 
3983
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3984
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3985
   { (exit 1); exit 1; }; }
 
3986
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3987
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3988
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3989
   { (exit 1); exit 1; }; }
 
3990
 
 
3991
fi
 
3992
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3993
echo "${ECHO_T}$ac_cv_build" >&6; }
 
3994
case $ac_cv_build in
 
3995
*-*-*) ;;
 
3996
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3997
echo "$as_me: error: invalid value of canonical build" >&2;}
 
3998
   { (exit 1); exit 1; }; };;
 
3999
esac
 
4000
build=$ac_cv_build
 
4001
ac_save_IFS=$IFS; IFS='-'
 
4002
set x $ac_cv_build
 
4003
shift
 
4004
build_cpu=$1
 
4005
build_vendor=$2
 
4006
shift; shift
 
4007
# Remember, the first character of IFS is used to create $*,
 
4008
# except with old shells:
 
4009
build_os=$*
 
4010
IFS=$ac_save_IFS
 
4011
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4012
 
 
4013
 
 
4014
{ echo "$as_me:$LINENO: checking host system type" >&5
 
4015
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
4016
if test "${ac_cv_host+set}" = set; then
 
4017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4018
else
 
4019
  if test "x$host_alias" = x; then
 
4020
  ac_cv_host=$ac_cv_build
 
4021
else
 
4022
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4023
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
4024
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
4025
   { (exit 1); exit 1; }; }
 
4026
fi
 
4027
 
 
4028
fi
 
4029
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4030
echo "${ECHO_T}$ac_cv_host" >&6; }
 
4031
case $ac_cv_host in
 
4032
*-*-*) ;;
 
4033
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
4034
echo "$as_me: error: invalid value of canonical host" >&2;}
 
4035
   { (exit 1); exit 1; }; };;
 
4036
esac
 
4037
host=$ac_cv_host
 
4038
ac_save_IFS=$IFS; IFS='-'
 
4039
set x $ac_cv_host
 
4040
shift
 
4041
host_cpu=$1
 
4042
host_vendor=$2
 
4043
shift; shift
 
4044
# Remember, the first character of IFS is used to create $*,
 
4045
# except with old shells:
 
4046
host_os=$*
 
4047
IFS=$ac_save_IFS
 
4048
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4049
 
 
4050
 
 
4051
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4052
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
4053
if test "${lt_cv_path_SED+set}" = set; then
 
4054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4055
else
 
4056
  # Loop through the user's path and test for sed and gsed.
 
4057
# Then use that list of sed's as ones to test for truncation.
 
4058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4059
for as_dir in $PATH
 
4060
do
 
4061
  IFS=$as_save_IFS
 
4062
  test -z "$as_dir" && as_dir=.
 
4063
  for lt_ac_prog in sed gsed; do
 
4064
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4065
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4066
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4067
      fi
 
4068
    done
 
4069
  done
 
4070
done
 
4071
IFS=$as_save_IFS
 
4072
lt_ac_max=0
 
4073
lt_ac_count=0
 
4074
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4075
# along with /bin/sed that truncates output.
 
4076
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4077
  test ! -f $lt_ac_sed && continue
 
4078
  cat /dev/null > conftest.in
 
4079
  lt_ac_count=0
 
4080
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4081
  # Check for GNU sed and select it if it is found.
 
4082
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4083
    lt_cv_path_SED=$lt_ac_sed
 
4084
    break
 
4085
  fi
 
4086
  while true; do
 
4087
    cat conftest.in conftest.in >conftest.tmp
 
4088
    mv conftest.tmp conftest.in
 
4089
    cp conftest.in conftest.nl
 
4090
    echo >>conftest.nl
 
4091
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4092
    cmp -s conftest.out conftest.nl || break
 
4093
    # 10000 chars as input seems more than enough
 
4094
    test $lt_ac_count -gt 10 && break
 
4095
    lt_ac_count=`expr $lt_ac_count + 1`
 
4096
    if test $lt_ac_count -gt $lt_ac_max; then
 
4097
      lt_ac_max=$lt_ac_count
 
4098
      lt_cv_path_SED=$lt_ac_sed
 
4099
    fi
 
4100
  done
 
4101
done
 
4102
 
 
4103
fi
 
4104
 
 
4105
SED=$lt_cv_path_SED
 
4106
 
 
4107
{ echo "$as_me:$LINENO: result: $SED" >&5
 
4108
echo "${ECHO_T}$SED" >&6; }
 
4109
 
 
4110
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4111
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4112
if test "${ac_cv_path_GREP+set}" = set; then
 
4113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4114
else
 
4115
  # Extract the first word of "grep ggrep" to use in msg output
 
4116
if test -z "$GREP"; then
 
4117
set dummy grep ggrep; ac_prog_name=$2
 
4118
if test "${ac_cv_path_GREP+set}" = set; then
 
4119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4120
else
 
4121
  ac_path_GREP_found=false
 
4122
# Loop through the user's path and test for each of PROGNAME-LIST
 
4123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4124
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4125
do
 
4126
  IFS=$as_save_IFS
 
4127
  test -z "$as_dir" && as_dir=.
 
4128
  for ac_prog in grep ggrep; do
 
4129
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4130
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4131
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4132
    # Check for GNU ac_path_GREP and select it if it is found.
 
4133
  # Check for GNU $ac_path_GREP
 
4134
case `"$ac_path_GREP" --version 2>&1` in
 
4135
*GNU*)
 
4136
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4137
*)
 
4138
  ac_count=0
 
4139
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4140
  while :
 
4141
  do
 
4142
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4143
    mv "conftest.tmp" "conftest.in"
 
4144
    cp "conftest.in" "conftest.nl"
 
4145
    echo 'GREP' >> "conftest.nl"
 
4146
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4147
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4148
    ac_count=`expr $ac_count + 1`
 
4149
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4150
      # Best one so far, save it but keep looking for a better one
 
4151
      ac_cv_path_GREP="$ac_path_GREP"
 
4152
      ac_path_GREP_max=$ac_count
 
4153
    fi
 
4154
    # 10*(2^10) chars as input seems more than enough
 
4155
    test $ac_count -gt 10 && break
 
4156
  done
 
4157
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4158
esac
 
4159
 
 
4160
 
 
4161
    $ac_path_GREP_found && break 3
 
4162
  done
 
4163
done
 
4164
 
 
4165
done
 
4166
IFS=$as_save_IFS
 
4167
 
 
4168
 
 
4169
fi
 
4170
 
 
4171
GREP="$ac_cv_path_GREP"
 
4172
if test -z "$GREP"; then
 
4173
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4174
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4175
   { (exit 1); exit 1; }; }
 
4176
fi
 
4177
 
 
4178
else
 
4179
  ac_cv_path_GREP=$GREP
 
4180
fi
 
4181
 
 
4182
 
 
4183
fi
 
4184
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4185
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4186
 GREP="$ac_cv_path_GREP"
 
4187
 
 
4188
 
 
4189
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4190
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4191
if test "${ac_cv_path_EGREP+set}" = set; then
 
4192
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4193
else
 
4194
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4195
   then ac_cv_path_EGREP="$GREP -E"
 
4196
   else
 
4197
     # Extract the first word of "egrep" to use in msg output
 
4198
if test -z "$EGREP"; then
 
4199
set dummy egrep; ac_prog_name=$2
 
4200
if test "${ac_cv_path_EGREP+set}" = set; then
 
4201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4202
else
 
4203
  ac_path_EGREP_found=false
 
4204
# Loop through the user's path and test for each of PROGNAME-LIST
 
4205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4206
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4207
do
 
4208
  IFS=$as_save_IFS
 
4209
  test -z "$as_dir" && as_dir=.
 
4210
  for ac_prog in egrep; do
 
4211
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4212
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4213
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4214
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4215
  # Check for GNU $ac_path_EGREP
 
4216
case `"$ac_path_EGREP" --version 2>&1` in
 
4217
*GNU*)
 
4218
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4219
*)
 
4220
  ac_count=0
 
4221
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4222
  while :
 
4223
  do
 
4224
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4225
    mv "conftest.tmp" "conftest.in"
 
4226
    cp "conftest.in" "conftest.nl"
 
4227
    echo 'EGREP' >> "conftest.nl"
 
4228
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4229
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4230
    ac_count=`expr $ac_count + 1`
 
4231
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4232
      # Best one so far, save it but keep looking for a better one
 
4233
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4234
      ac_path_EGREP_max=$ac_count
 
4235
    fi
 
4236
    # 10*(2^10) chars as input seems more than enough
 
4237
    test $ac_count -gt 10 && break
 
4238
  done
 
4239
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4240
esac
 
4241
 
 
4242
 
 
4243
    $ac_path_EGREP_found && break 3
 
4244
  done
 
4245
done
 
4246
 
 
4247
done
 
4248
IFS=$as_save_IFS
 
4249
 
 
4250
 
 
4251
fi
 
4252
 
 
4253
EGREP="$ac_cv_path_EGREP"
 
4254
if test -z "$EGREP"; then
 
4255
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4256
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4257
   { (exit 1); exit 1; }; }
 
4258
fi
 
4259
 
 
4260
else
 
4261
  ac_cv_path_EGREP=$EGREP
 
4262
fi
 
4263
 
 
4264
 
 
4265
   fi
 
4266
fi
 
4267
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4268
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4269
 EGREP="$ac_cv_path_EGREP"
 
4270
 
 
4271
 
 
4272
 
 
4273
# Check whether --with-gnu-ld was given.
 
4274
if test "${with_gnu_ld+set}" = set; then
 
4275
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4276
else
 
4277
  with_gnu_ld=no
 
4278
fi
 
4279
 
 
4280
ac_prog=ld
 
4281
if test "$GCC" = yes; then
 
4282
  # Check if gcc -print-prog-name=ld gives a path.
 
4283
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4284
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4285
  case $host in
 
4286
  *-*-mingw*)
 
4287
    # gcc leaves a trailing carriage return which upsets mingw
 
4288
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4289
  *)
 
4290
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4291
  esac
 
4292
  case $ac_prog in
 
4293
    # Accept absolute paths.
 
4294
    [\\/]* | ?:[\\/]*)
 
4295
      re_direlt='/[^/][^/]*/\.\./'
 
4296
      # Canonicalize the pathname of ld
 
4297
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4298
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4299
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4300
      done
 
4301
      test -z "$LD" && LD="$ac_prog"
 
4302
      ;;
 
4303
  "")
 
4304
    # If it fails, then pretend we aren't using GCC.
 
4305
    ac_prog=ld
 
4306
    ;;
 
4307
  *)
 
4308
    # If it is relative, then search for the first ld in PATH.
 
4309
    with_gnu_ld=unknown
 
4310
    ;;
 
4311
  esac
 
4312
elif test "$with_gnu_ld" = yes; then
 
4313
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4314
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4315
else
 
4316
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4317
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4318
fi
 
4319
if test "${lt_cv_path_LD+set}" = set; then
 
4320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4321
else
 
4322
  if test -z "$LD"; then
 
4323
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4324
  for ac_dir in $PATH; do
 
4325
    IFS="$lt_save_ifs"
 
4326
    test -z "$ac_dir" && ac_dir=.
 
4327
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4328
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4329
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4330
      # but apparently some variants of GNU ld only accept -v.
 
4331
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4332
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4333
      *GNU* | *'with BFD'*)
 
4334
        test "$with_gnu_ld" != no && break
 
4335
        ;;
 
4336
      *)
 
4337
        test "$with_gnu_ld" != yes && break
 
4338
        ;;
 
4339
      esac
 
4340
    fi
 
4341
  done
 
4342
  IFS="$lt_save_ifs"
 
4343
else
 
4344
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4345
fi
 
4346
fi
 
4347
 
 
4348
LD="$lt_cv_path_LD"
 
4349
if test -n "$LD"; then
 
4350
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4351
echo "${ECHO_T}$LD" >&6; }
 
4352
else
 
4353
  { echo "$as_me:$LINENO: result: no" >&5
 
4354
echo "${ECHO_T}no" >&6; }
 
4355
fi
 
4356
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4357
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4358
   { (exit 1); exit 1; }; }
 
4359
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4360
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4361
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4363
else
 
4364
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4365
case `$LD -v 2>&1 </dev/null` in
 
4366
*GNU* | *'with BFD'*)
 
4367
  lt_cv_prog_gnu_ld=yes
 
4368
  ;;
 
4369
*)
 
4370
  lt_cv_prog_gnu_ld=no
 
4371
  ;;
 
4372
esac
 
4373
fi
 
4374
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4375
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4376
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4377
 
 
4378
 
 
4379
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4380
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4381
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4383
else
 
4384
  lt_cv_ld_reload_flag='-r'
 
4385
fi
 
4386
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4387
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4388
reload_flag=$lt_cv_ld_reload_flag
 
4389
case $reload_flag in
 
4390
"" | " "*) ;;
 
4391
*) reload_flag=" $reload_flag" ;;
 
4392
esac
 
4393
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4394
case $host_os in
 
4395
  darwin*)
 
4396
    if test "$GCC" = yes; then
 
4397
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4398
    else
 
4399
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4400
    fi
 
4401
    ;;
 
4402
esac
 
4403
 
 
4404
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4405
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4406
if test "${lt_cv_path_NM+set}" = set; then
 
4407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4408
else
 
4409
  if test -n "$NM"; then
 
4410
  # Let the user override the test.
 
4411
  lt_cv_path_NM="$NM"
 
4412
else
 
4413
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4414
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4415
    lt_nm_to_check="$lt_nm_to_check nm"
 
4416
  fi
 
4417
  for lt_tmp_nm in $lt_nm_to_check; do
 
4418
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4419
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4420
      IFS="$lt_save_ifs"
 
4421
      test -z "$ac_dir" && ac_dir=.
 
4422
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4423
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4424
        # Check to see if the nm accepts a BSD-compat flag.
 
4425
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4426
        #   nm: unknown option "B" ignored
 
4427
        # Tru64's nm complains that /dev/null is an invalid object file
 
4428
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4429
        */dev/null* | *'Invalid file or object type'*)
 
4430
          lt_cv_path_NM="$tmp_nm -B"
 
4431
          break
 
4432
          ;;
 
4433
        *)
 
4434
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4435
          */dev/null*)
 
4436
            lt_cv_path_NM="$tmp_nm -p"
 
4437
            break
 
4438
            ;;
 
4439
          *)
 
4440
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4441
            continue # so that we can try to find one that supports BSD flags
 
4442
            ;;
 
4443
          esac
 
4444
          ;;
 
4445
        esac
 
4446
      fi
 
4447
    done
 
4448
    IFS="$lt_save_ifs"
 
4449
  done
 
4450
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4451
fi
 
4452
fi
 
4453
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4454
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4455
NM="$lt_cv_path_NM"
 
4456
 
 
4457
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4458
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4459
LN_S=$as_ln_s
 
4460
if test "$LN_S" = "ln -s"; then
 
4461
  { echo "$as_me:$LINENO: result: yes" >&5
 
4462
echo "${ECHO_T}yes" >&6; }
 
4463
else
 
4464
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4465
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4466
fi
 
4467
 
 
4468
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4469
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4470
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4472
else
 
4473
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4474
lt_cv_file_magic_test_file=
 
4475
lt_cv_deplibs_check_method='unknown'
 
4476
# Need to set the preceding variable on all platforms that support
 
4477
# interlibrary dependencies.
 
4478
# 'none' -- dependencies not supported.
 
4479
# `unknown' -- same as none, but documents that we really don't know.
 
4480
# 'pass_all' -- all dependencies passed with no checks.
 
4481
# 'test_compile' -- check by making test program.
 
4482
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4483
# which responds to the $file_magic_cmd with a given extended regex.
 
4484
# If you have `file' or equivalent on your system and you're not sure
 
4485
# whether `pass_all' will *always* work, you probably want this one.
 
4486
 
 
4487
case $host_os in
 
4488
aix4* | aix5*)
 
4489
  lt_cv_deplibs_check_method=pass_all
 
4490
  ;;
 
4491
 
 
4492
beos*)
 
4493
  lt_cv_deplibs_check_method=pass_all
 
4494
  ;;
 
4495
 
 
4496
bsdi[45]*)
 
4497
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4498
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4499
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4500
  ;;
 
4501
 
 
4502
cygwin*)
 
4503
  # func_win32_libid is a shell function defined in ltmain.sh
 
4504
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4505
  lt_cv_file_magic_cmd='func_win32_libid'
 
4506
  ;;
 
4507
 
 
4508
mingw* | pw32*)
 
4509
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4510
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4511
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4512
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4513
  ;;
 
4514
 
 
4515
darwin* | rhapsody*)
 
4516
  lt_cv_deplibs_check_method=pass_all
 
4517
  ;;
 
4518
 
 
4519
freebsd* | kfreebsd*-gnu | dragonfly*)
 
4520
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4521
    case $host_cpu in
 
4522
    i*86 )
 
4523
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4524
      # Let's accept both of them until this is cleared up.
 
4525
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4526
      lt_cv_file_magic_cmd=/usr/bin/file
 
4527
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4528
      ;;
 
4529
    esac
 
4530
  else
 
4531
    lt_cv_deplibs_check_method=pass_all
 
4532
  fi
 
4533
  ;;
 
4534
 
 
4535
gnu*)
 
4536
  lt_cv_deplibs_check_method=pass_all
 
4537
  ;;
 
4538
 
 
4539
hpux10.20* | hpux11*)
 
4540
  lt_cv_file_magic_cmd=/usr/bin/file
 
4541
  case $host_cpu in
 
4542
  ia64*)
 
4543
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4544
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4545
    ;;
 
4546
  hppa*64*)
 
4547
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4548
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4549
    ;;
 
4550
  *)
 
4551
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4552
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4553
    ;;
 
4554
  esac
 
4555
  ;;
 
4556
 
 
4557
interix3*)
 
4558
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4559
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4560
  ;;
 
4561
 
 
4562
irix5* | irix6* | nonstopux*)
 
4563
  case $LD in
 
4564
  *-32|*"-32 ") libmagic=32-bit;;
 
4565
  *-n32|*"-n32 ") libmagic=N32;;
 
4566
  *-64|*"-64 ") libmagic=64-bit;;
 
4567
  *) libmagic=never-match;;
 
4568
  esac
 
4569
  lt_cv_deplibs_check_method=pass_all
 
4570
  ;;
 
4571
 
 
4572
# This must be Linux ELF.
 
4573
linux*)
 
4574
  lt_cv_deplibs_check_method=pass_all
 
4575
  ;;
 
4576
 
 
4577
netbsd*)
 
4578
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4579
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4580
  else
 
4581
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4582
  fi
 
4583
  ;;
 
4584
 
 
4585
newos6*)
 
4586
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4587
  lt_cv_file_magic_cmd=/usr/bin/file
 
4588
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4589
  ;;
 
4590
 
 
4591
nto-qnx*)
 
4592
  lt_cv_deplibs_check_method=unknown
 
4593
  ;;
 
4594
 
 
4595
openbsd*)
 
4596
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4597
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4598
  else
 
4599
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4600
  fi
 
4601
  ;;
 
4602
 
 
4603
osf3* | osf4* | osf5*)
 
4604
  lt_cv_deplibs_check_method=pass_all
 
4605
  ;;
 
4606
 
 
4607
solaris*)
 
4608
  lt_cv_deplibs_check_method=pass_all
 
4609
  ;;
 
4610
 
 
4611
sysv4 | sysv4.3*)
 
4612
  case $host_vendor in
 
4613
  motorola)
 
4614
    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]'
 
4615
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4616
    ;;
 
4617
  ncr)
 
4618
    lt_cv_deplibs_check_method=pass_all
 
4619
    ;;
 
4620
  sequent)
 
4621
    lt_cv_file_magic_cmd='/bin/file'
 
4622
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4623
    ;;
 
4624
  sni)
 
4625
    lt_cv_file_magic_cmd='/bin/file'
 
4626
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4627
    lt_cv_file_magic_test_file=/lib/libc.so
 
4628
    ;;
 
4629
  siemens)
 
4630
    lt_cv_deplibs_check_method=pass_all
 
4631
    ;;
 
4632
  pc)
 
4633
    lt_cv_deplibs_check_method=pass_all
 
4634
    ;;
 
4635
  esac
 
4636
  ;;
 
4637
 
 
4638
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4639
  lt_cv_deplibs_check_method=pass_all
 
4640
  ;;
 
4641
esac
 
4642
 
 
4643
fi
 
4644
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4645
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4646
file_magic_cmd=$lt_cv_file_magic_cmd
 
4647
deplibs_check_method=$lt_cv_deplibs_check_method
 
4648
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4649
 
 
4650
 
 
4651
 
 
4652
 
 
4653
# If no C compiler was specified, use CC.
 
4654
LTCC=${LTCC-"$CC"}
 
4655
 
 
4656
# If no C compiler flags were specified, use CFLAGS.
 
4657
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4658
 
 
4659
# Allow CC to be a program name with arguments.
 
4660
compiler=$CC
 
4661
 
 
4662
 
 
4663
# Check whether --enable-libtool-lock was given.
 
4664
if test "${enable_libtool_lock+set}" = set; then
 
4665
  enableval=$enable_libtool_lock;
 
4666
fi
 
4667
 
 
4668
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4669
 
 
4670
# Some flags need to be propagated to the compiler or linker for good
 
4671
# libtool support.
 
4672
case $host in
 
4673
ia64-*-hpux*)
 
4674
  # Find out which ABI we are using.
 
4675
  echo 'int i;' > conftest.$ac_ext
 
4676
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4677
  (eval $ac_compile) 2>&5
 
4678
  ac_status=$?
 
4679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4680
  (exit $ac_status); }; then
 
4681
    case `/usr/bin/file conftest.$ac_objext` in
 
4682
    *ELF-32*)
 
4683
      HPUX_IA64_MODE="32"
 
4684
      ;;
 
4685
    *ELF-64*)
 
4686
      HPUX_IA64_MODE="64"
 
4687
      ;;
 
4688
    esac
 
4689
  fi
 
4690
  rm -rf conftest*
 
4691
  ;;
 
4692
*-*-irix6*)
 
4693
  # Find out which ABI we are using.
 
4694
  echo '#line 4694 "configure"' > conftest.$ac_ext
 
4695
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4696
  (eval $ac_compile) 2>&5
 
4697
  ac_status=$?
 
4698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4699
  (exit $ac_status); }; then
 
4700
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4701
    case `/usr/bin/file conftest.$ac_objext` in
 
4702
    *32-bit*)
 
4703
      LD="${LD-ld} -melf32bsmip"
 
4704
      ;;
 
4705
    *N32*)
 
4706
      LD="${LD-ld} -melf32bmipn32"
 
4707
      ;;
 
4708
    *64-bit*)
 
4709
      LD="${LD-ld} -melf64bmip"
 
4710
      ;;
 
4711
    esac
 
4712
   else
 
4713
    case `/usr/bin/file conftest.$ac_objext` in
 
4714
    *32-bit*)
 
4715
      LD="${LD-ld} -32"
 
4716
      ;;
 
4717
    *N32*)
 
4718
      LD="${LD-ld} -n32"
 
4719
      ;;
 
4720
    *64-bit*)
 
4721
      LD="${LD-ld} -64"
 
4722
      ;;
 
4723
    esac
 
4724
   fi
 
4725
  fi
 
4726
  rm -rf conftest*
 
4727
  ;;
 
4728
 
 
4729
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4730
  # Find out which ABI we are using.
 
4731
  echo 'int i;' > conftest.$ac_ext
 
4732
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4733
  (eval $ac_compile) 2>&5
 
4734
  ac_status=$?
 
4735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4736
  (exit $ac_status); }; then
 
4737
    case `/usr/bin/file conftest.o` in
 
4738
    *32-bit*)
 
4739
      case $host in
 
4740
        x86_64-*linux*)
 
4741
          LD="${LD-ld} -m elf_i386"
 
4742
          ;;
 
4743
        ppc64-*linux*|powerpc64-*linux*)
 
4744
          LD="${LD-ld} -m elf32ppclinux"
 
4745
          ;;
 
4746
        s390x-*linux*)
 
4747
          LD="${LD-ld} -m elf_s390"
 
4748
          ;;
 
4749
        sparc64-*linux*)
 
4750
          LD="${LD-ld} -m elf32_sparc"
 
4751
          ;;
 
4752
      esac
 
4753
      ;;
 
4754
    *64-bit*)
 
4755
      case $host in
 
4756
        x86_64-*linux*)
 
4757
          LD="${LD-ld} -m elf_x86_64"
 
4758
          ;;
 
4759
        ppc*-*linux*|powerpc*-*linux*)
 
4760
          LD="${LD-ld} -m elf64ppc"
 
4761
          ;;
 
4762
        s390*-*linux*)
 
4763
          LD="${LD-ld} -m elf64_s390"
 
4764
          ;;
 
4765
        sparc*-*linux*)
 
4766
          LD="${LD-ld} -m elf64_sparc"
 
4767
          ;;
 
4768
      esac
 
4769
      ;;
 
4770
    esac
 
4771
  fi
 
4772
  rm -rf conftest*
 
4773
  ;;
 
4774
 
 
4775
*-*-sco3.2v5*)
 
4776
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4777
  SAVE_CFLAGS="$CFLAGS"
 
4778
  CFLAGS="$CFLAGS -belf"
 
4779
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4780
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4781
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4783
else
 
4784
  ac_ext=c
 
4785
ac_cpp='$CPP $CPPFLAGS'
 
4786
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4787
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4788
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4789
 
 
4790
     cat >conftest.$ac_ext <<_ACEOF
 
4791
/* confdefs.h.  */
 
4792
_ACEOF
 
4793
cat confdefs.h >>conftest.$ac_ext
 
4794
cat >>conftest.$ac_ext <<_ACEOF
 
4795
/* end confdefs.h.  */
 
4796
 
 
4797
int
 
4798
main ()
 
4799
{
 
4800
 
 
4801
  ;
 
4802
  return 0;
 
4803
}
 
4804
_ACEOF
 
4805
rm -f conftest.$ac_objext conftest$ac_exeext
 
4806
if { (ac_try="$ac_link"
 
4807
case "(($ac_try" in
 
4808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4809
  *) ac_try_echo=$ac_try;;
 
4810
esac
 
4811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4812
  (eval "$ac_link") 2>conftest.er1
 
4813
  ac_status=$?
 
4814
  grep -v '^ *+' conftest.er1 >conftest.err
 
4815
  rm -f conftest.er1
 
4816
  cat conftest.err >&5
 
4817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4818
  (exit $ac_status); } && {
 
4819
         test -z "$ac_c_werror_flag" ||
 
4820
         test ! -s conftest.err
 
4821
       } && test -s conftest$ac_exeext &&
 
4822
       $as_test_x conftest$ac_exeext; then
 
4823
  lt_cv_cc_needs_belf=yes
 
4824
else
 
4825
  echo "$as_me: failed program was:" >&5
 
4826
sed 's/^/| /' conftest.$ac_ext >&5
 
4827
 
 
4828
        lt_cv_cc_needs_belf=no
 
4829
fi
 
4830
 
 
4831
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4832
      conftest$ac_exeext conftest.$ac_ext
 
4833
     ac_ext=c
 
4834
ac_cpp='$CPP $CPPFLAGS'
 
4835
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4836
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4837
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4838
 
 
4839
fi
 
4840
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4841
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4842
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4843
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4844
    CFLAGS="$SAVE_CFLAGS"
 
4845
  fi
 
4846
  ;;
 
4847
sparc*-*solaris*)
 
4848
  # Find out which ABI we are using.
 
4849
  echo 'int i;' > conftest.$ac_ext
 
4850
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4851
  (eval $ac_compile) 2>&5
 
4852
  ac_status=$?
 
4853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4854
  (exit $ac_status); }; then
 
4855
    case `/usr/bin/file conftest.o` in
 
4856
    *64-bit*)
 
4857
      case $lt_cv_prog_gnu_ld in
 
4858
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4859
      *)    LD="${LD-ld} -64" ;;
 
4860
      esac
 
4861
      ;;
 
4862
    esac
 
4863
  fi
 
4864
  rm -rf conftest*
 
4865
  ;;
 
4866
 
 
4867
 
 
4868
esac
 
4869
 
 
4870
need_locks="$enable_libtool_lock"
 
4871
 
 
4872
 
 
4873
ac_ext=c
 
4874
ac_cpp='$CPP $CPPFLAGS'
 
4875
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4876
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4877
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4878
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4879
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4880
# On Suns, sometimes $CPP names a directory.
 
4881
if test -n "$CPP" && test -d "$CPP"; then
 
4882
  CPP=
 
4883
fi
 
4884
if test -z "$CPP"; then
 
4885
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4886
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4887
else
 
4888
      # Double quotes because CPP needs to be expanded
 
4889
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4890
    do
 
4891
      ac_preproc_ok=false
 
4892
for ac_c_preproc_warn_flag in '' yes
 
4893
do
 
4894
  # Use a header file that comes with gcc, so configuring glibc
 
4895
  # with a fresh cross-compiler works.
 
4896
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4897
  # <limits.h> exists even on freestanding compilers.
 
4898
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4899
  # not just through cpp. "Syntax error" is here to catch this case.
 
4900
  cat >conftest.$ac_ext <<_ACEOF
 
4901
/* confdefs.h.  */
 
4902
_ACEOF
 
4903
cat confdefs.h >>conftest.$ac_ext
 
4904
cat >>conftest.$ac_ext <<_ACEOF
 
4905
/* end confdefs.h.  */
 
4906
#ifdef __STDC__
 
4907
# include <limits.h>
 
4908
#else
 
4909
# include <assert.h>
 
4910
#endif
 
4911
                     Syntax error
 
4912
_ACEOF
 
4913
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4914
case "(($ac_try" in
 
4915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4916
  *) ac_try_echo=$ac_try;;
 
4917
esac
 
4918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4919
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4920
  ac_status=$?
 
4921
  grep -v '^ *+' conftest.er1 >conftest.err
 
4922
  rm -f conftest.er1
 
4923
  cat conftest.err >&5
 
4924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4925
  (exit $ac_status); } >/dev/null && {
 
4926
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4927
         test ! -s conftest.err
 
4928
       }; then
 
4929
  :
 
4930
else
 
4931
  echo "$as_me: failed program was:" >&5
 
4932
sed 's/^/| /' conftest.$ac_ext >&5
 
4933
 
 
4934
  # Broken: fails on valid input.
 
4935
continue
 
4936
fi
 
4937
 
 
4938
rm -f conftest.err conftest.$ac_ext
 
4939
 
 
4940
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4941
  # can be detected and how.
 
4942
  cat >conftest.$ac_ext <<_ACEOF
 
4943
/* confdefs.h.  */
 
4944
_ACEOF
 
4945
cat confdefs.h >>conftest.$ac_ext
 
4946
cat >>conftest.$ac_ext <<_ACEOF
 
4947
/* end confdefs.h.  */
 
4948
#include <ac_nonexistent.h>
 
4949
_ACEOF
 
4950
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4951
case "(($ac_try" in
 
4952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4953
  *) ac_try_echo=$ac_try;;
 
4954
esac
 
4955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4956
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4957
  ac_status=$?
 
4958
  grep -v '^ *+' conftest.er1 >conftest.err
 
4959
  rm -f conftest.er1
 
4960
  cat conftest.err >&5
 
4961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4962
  (exit $ac_status); } >/dev/null && {
 
4963
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4964
         test ! -s conftest.err
 
4965
       }; then
 
4966
  # Broken: success on invalid input.
 
4967
continue
 
4968
else
 
4969
  echo "$as_me: failed program was:" >&5
 
4970
sed 's/^/| /' conftest.$ac_ext >&5
 
4971
 
 
4972
  # Passes both tests.
 
4973
ac_preproc_ok=:
 
4974
break
 
4975
fi
 
4976
 
 
4977
rm -f conftest.err conftest.$ac_ext
 
4978
 
 
4979
done
 
4980
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4981
rm -f conftest.err conftest.$ac_ext
 
4982
if $ac_preproc_ok; then
 
4983
  break
 
4984
fi
 
4985
 
 
4986
    done
 
4987
    ac_cv_prog_CPP=$CPP
 
4988
 
 
4989
fi
 
4990
  CPP=$ac_cv_prog_CPP
 
4991
else
 
4992
  ac_cv_prog_CPP=$CPP
 
4993
fi
 
4994
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4995
echo "${ECHO_T}$CPP" >&6; }
 
4996
ac_preproc_ok=false
 
4997
for ac_c_preproc_warn_flag in '' yes
 
4998
do
 
4999
  # Use a header file that comes with gcc, so configuring glibc
 
5000
  # with a fresh cross-compiler works.
 
5001
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5002
  # <limits.h> exists even on freestanding compilers.
 
5003
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5004
  # not just through cpp. "Syntax error" is here to catch this case.
 
5005
  cat >conftest.$ac_ext <<_ACEOF
 
5006
/* confdefs.h.  */
 
5007
_ACEOF
 
5008
cat confdefs.h >>conftest.$ac_ext
 
5009
cat >>conftest.$ac_ext <<_ACEOF
 
5010
/* end confdefs.h.  */
 
5011
#ifdef __STDC__
 
5012
# include <limits.h>
 
5013
#else
 
5014
# include <assert.h>
 
5015
#endif
 
5016
                     Syntax error
 
5017
_ACEOF
 
5018
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5019
case "(($ac_try" in
 
5020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5021
  *) ac_try_echo=$ac_try;;
 
5022
esac
 
5023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5024
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5025
  ac_status=$?
 
5026
  grep -v '^ *+' conftest.er1 >conftest.err
 
5027
  rm -f conftest.er1
 
5028
  cat conftest.err >&5
 
5029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5030
  (exit $ac_status); } >/dev/null && {
 
5031
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5032
         test ! -s conftest.err
 
5033
       }; then
 
5034
  :
 
5035
else
 
5036
  echo "$as_me: failed program was:" >&5
 
5037
sed 's/^/| /' conftest.$ac_ext >&5
 
5038
 
 
5039
  # Broken: fails on valid input.
 
5040
continue
 
5041
fi
 
5042
 
 
5043
rm -f conftest.err conftest.$ac_ext
 
5044
 
 
5045
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5046
  # can be detected and how.
 
5047
  cat >conftest.$ac_ext <<_ACEOF
 
5048
/* confdefs.h.  */
 
5049
_ACEOF
 
5050
cat confdefs.h >>conftest.$ac_ext
 
5051
cat >>conftest.$ac_ext <<_ACEOF
 
5052
/* end confdefs.h.  */
 
5053
#include <ac_nonexistent.h>
 
5054
_ACEOF
 
5055
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5056
case "(($ac_try" in
 
5057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5058
  *) ac_try_echo=$ac_try;;
 
5059
esac
 
5060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5061
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5062
  ac_status=$?
 
5063
  grep -v '^ *+' conftest.er1 >conftest.err
 
5064
  rm -f conftest.er1
 
5065
  cat conftest.err >&5
 
5066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5067
  (exit $ac_status); } >/dev/null && {
 
5068
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5069
         test ! -s conftest.err
 
5070
       }; then
 
5071
  # Broken: success on invalid input.
 
5072
continue
 
5073
else
 
5074
  echo "$as_me: failed program was:" >&5
 
5075
sed 's/^/| /' conftest.$ac_ext >&5
 
5076
 
 
5077
  # Passes both tests.
 
5078
ac_preproc_ok=:
 
5079
break
 
5080
fi
 
5081
 
 
5082
rm -f conftest.err conftest.$ac_ext
 
5083
 
 
5084
done
 
5085
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5086
rm -f conftest.err conftest.$ac_ext
 
5087
if $ac_preproc_ok; then
 
5088
  :
 
5089
else
 
5090
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5091
See \`config.log' for more details." >&5
 
5092
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5093
See \`config.log' for more details." >&2;}
 
5094
   { (exit 1); exit 1; }; }
 
5095
fi
 
5096
 
 
5097
ac_ext=c
 
5098
ac_cpp='$CPP $CPPFLAGS'
 
5099
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5100
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5101
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5102
 
 
5103
 
 
5104
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5105
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5106
if test "${ac_cv_header_stdc+set}" = set; then
 
5107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5108
else
 
5109
  cat >conftest.$ac_ext <<_ACEOF
 
5110
/* confdefs.h.  */
 
5111
_ACEOF
 
5112
cat confdefs.h >>conftest.$ac_ext
 
5113
cat >>conftest.$ac_ext <<_ACEOF
 
5114
/* end confdefs.h.  */
 
5115
#include <stdlib.h>
 
5116
#include <stdarg.h>
 
5117
#include <string.h>
 
5118
#include <float.h>
 
5119
 
 
5120
int
 
5121
main ()
 
5122
{
 
5123
 
 
5124
  ;
 
5125
  return 0;
 
5126
}
 
5127
_ACEOF
 
5128
rm -f conftest.$ac_objext
 
5129
if { (ac_try="$ac_compile"
 
5130
case "(($ac_try" in
 
5131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5132
  *) ac_try_echo=$ac_try;;
 
5133
esac
 
5134
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5135
  (eval "$ac_compile") 2>conftest.er1
 
5136
  ac_status=$?
 
5137
  grep -v '^ *+' conftest.er1 >conftest.err
 
5138
  rm -f conftest.er1
 
5139
  cat conftest.err >&5
 
5140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5141
  (exit $ac_status); } && {
 
5142
         test -z "$ac_c_werror_flag" ||
 
5143
         test ! -s conftest.err
 
5144
       } && test -s conftest.$ac_objext; then
 
5145
  ac_cv_header_stdc=yes
 
5146
else
 
5147
  echo "$as_me: failed program was:" >&5
 
5148
sed 's/^/| /' conftest.$ac_ext >&5
 
5149
 
 
5150
        ac_cv_header_stdc=no
 
5151
fi
 
5152
 
 
5153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5154
 
 
5155
if test $ac_cv_header_stdc = yes; then
 
5156
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5157
  cat >conftest.$ac_ext <<_ACEOF
 
5158
/* confdefs.h.  */
 
5159
_ACEOF
 
5160
cat confdefs.h >>conftest.$ac_ext
 
5161
cat >>conftest.$ac_ext <<_ACEOF
 
5162
/* end confdefs.h.  */
 
5163
#include <string.h>
 
5164
 
 
5165
_ACEOF
 
5166
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5167
  $EGREP "memchr" >/dev/null 2>&1; then
 
5168
  :
 
5169
else
 
5170
  ac_cv_header_stdc=no
 
5171
fi
 
5172
rm -f conftest*
 
5173
 
 
5174
fi
 
5175
 
 
5176
if test $ac_cv_header_stdc = yes; then
 
5177
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5178
  cat >conftest.$ac_ext <<_ACEOF
 
5179
/* confdefs.h.  */
 
5180
_ACEOF
 
5181
cat confdefs.h >>conftest.$ac_ext
 
5182
cat >>conftest.$ac_ext <<_ACEOF
 
5183
/* end confdefs.h.  */
 
5184
#include <stdlib.h>
 
5185
 
 
5186
_ACEOF
 
5187
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5188
  $EGREP "free" >/dev/null 2>&1; then
 
5189
  :
 
5190
else
 
5191
  ac_cv_header_stdc=no
 
5192
fi
 
5193
rm -f conftest*
 
5194
 
 
5195
fi
 
5196
 
 
5197
if test $ac_cv_header_stdc = yes; then
 
5198
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5199
  if test "$cross_compiling" = yes; then
 
5200
  :
 
5201
else
 
5202
  cat >conftest.$ac_ext <<_ACEOF
 
5203
/* confdefs.h.  */
 
5204
_ACEOF
 
5205
cat confdefs.h >>conftest.$ac_ext
 
5206
cat >>conftest.$ac_ext <<_ACEOF
 
5207
/* end confdefs.h.  */
 
5208
#include <ctype.h>
 
5209
#include <stdlib.h>
 
5210
#if ((' ' & 0x0FF) == 0x020)
 
5211
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5212
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5213
#else
 
5214
# define ISLOWER(c) \
 
5215
                   (('a' <= (c) && (c) <= 'i') \
 
5216
                     || ('j' <= (c) && (c) <= 'r') \
 
5217
                     || ('s' <= (c) && (c) <= 'z'))
 
5218
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5219
#endif
 
5220
 
 
5221
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5222
int
 
5223
main ()
 
5224
{
 
5225
  int i;
 
5226
  for (i = 0; i < 256; i++)
 
5227
    if (XOR (islower (i), ISLOWER (i))
 
5228
        || toupper (i) != TOUPPER (i))
 
5229
      return 2;
 
5230
  return 0;
 
5231
}
 
5232
_ACEOF
 
5233
rm -f conftest$ac_exeext
 
5234
if { (ac_try="$ac_link"
 
5235
case "(($ac_try" in
 
5236
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5237
  *) ac_try_echo=$ac_try;;
 
5238
esac
 
5239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5240
  (eval "$ac_link") 2>&5
 
5241
  ac_status=$?
 
5242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5243
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5244
  { (case "(($ac_try" in
 
5245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5246
  *) ac_try_echo=$ac_try;;
 
5247
esac
 
5248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5249
  (eval "$ac_try") 2>&5
 
5250
  ac_status=$?
 
5251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5252
  (exit $ac_status); }; }; then
 
5253
  :
 
5254
else
 
5255
  echo "$as_me: program exited with status $ac_status" >&5
 
5256
echo "$as_me: failed program was:" >&5
 
5257
sed 's/^/| /' conftest.$ac_ext >&5
 
5258
 
 
5259
( exit $ac_status )
 
5260
ac_cv_header_stdc=no
 
5261
fi
 
5262
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5263
fi
 
5264
 
 
5265
 
 
5266
fi
 
5267
fi
 
5268
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5269
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5270
if test $ac_cv_header_stdc = yes; then
 
5271
 
 
5272
cat >>confdefs.h <<\_ACEOF
 
5273
#define STDC_HEADERS 1
 
5274
_ACEOF
 
5275
 
 
5276
fi
 
5277
 
 
5278
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5279
 
 
5280
 
 
5281
 
 
5282
 
 
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
 
 
5288
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5289
                  inttypes.h stdint.h unistd.h
 
5290
do
 
5291
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5292
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5293
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5294
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5296
else
 
5297
  cat >conftest.$ac_ext <<_ACEOF
 
5298
/* confdefs.h.  */
 
5299
_ACEOF
 
5300
cat confdefs.h >>conftest.$ac_ext
 
5301
cat >>conftest.$ac_ext <<_ACEOF
 
5302
/* end confdefs.h.  */
 
5303
$ac_includes_default
 
5304
 
 
5305
#include <$ac_header>
 
5306
_ACEOF
 
5307
rm -f conftest.$ac_objext
 
5308
if { (ac_try="$ac_compile"
 
5309
case "(($ac_try" in
 
5310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5311
  *) ac_try_echo=$ac_try;;
 
5312
esac
 
5313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5314
  (eval "$ac_compile") 2>conftest.er1
 
5315
  ac_status=$?
 
5316
  grep -v '^ *+' conftest.er1 >conftest.err
 
5317
  rm -f conftest.er1
 
5318
  cat conftest.err >&5
 
5319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5320
  (exit $ac_status); } && {
 
5321
         test -z "$ac_c_werror_flag" ||
 
5322
         test ! -s conftest.err
 
5323
       } && test -s conftest.$ac_objext; then
 
5324
  eval "$as_ac_Header=yes"
 
5325
else
 
5326
  echo "$as_me: failed program was:" >&5
 
5327
sed 's/^/| /' conftest.$ac_ext >&5
 
5328
 
 
5329
        eval "$as_ac_Header=no"
 
5330
fi
 
5331
 
 
5332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5333
fi
 
5334
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5335
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5336
echo "${ECHO_T}$ac_res" >&6; }
 
5337
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5338
  cat >>confdefs.h <<_ACEOF
 
5339
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5340
_ACEOF
 
5341
 
 
5342
fi
 
5343
 
 
5344
done
 
5345
 
 
5346
 
 
5347
 
 
5348
for ac_header in dlfcn.h
 
5349
do
 
5350
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5351
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5352
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5353
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5354
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5356
fi
 
5357
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5358
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5359
echo "${ECHO_T}$ac_res" >&6; }
 
5360
else
 
5361
  # Is the header compilable?
 
5362
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5363
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5364
cat >conftest.$ac_ext <<_ACEOF
 
5365
/* confdefs.h.  */
 
5366
_ACEOF
 
5367
cat confdefs.h >>conftest.$ac_ext
 
5368
cat >>conftest.$ac_ext <<_ACEOF
 
5369
/* end confdefs.h.  */
 
5370
$ac_includes_default
 
5371
#include <$ac_header>
 
5372
_ACEOF
 
5373
rm -f conftest.$ac_objext
 
5374
if { (ac_try="$ac_compile"
 
5375
case "(($ac_try" in
 
5376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5377
  *) ac_try_echo=$ac_try;;
 
5378
esac
 
5379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5380
  (eval "$ac_compile") 2>conftest.er1
 
5381
  ac_status=$?
 
5382
  grep -v '^ *+' conftest.er1 >conftest.err
 
5383
  rm -f conftest.er1
 
5384
  cat conftest.err >&5
 
5385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5386
  (exit $ac_status); } && {
 
5387
         test -z "$ac_c_werror_flag" ||
 
5388
         test ! -s conftest.err
 
5389
       } && test -s conftest.$ac_objext; then
 
5390
  ac_header_compiler=yes
 
5391
else
 
5392
  echo "$as_me: failed program was:" >&5
 
5393
sed 's/^/| /' conftest.$ac_ext >&5
 
5394
 
 
5395
        ac_header_compiler=no
 
5396
fi
 
5397
 
 
5398
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5399
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5400
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5401
 
 
5402
# Is the header present?
 
5403
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5404
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5405
cat >conftest.$ac_ext <<_ACEOF
 
5406
/* confdefs.h.  */
 
5407
_ACEOF
 
5408
cat confdefs.h >>conftest.$ac_ext
 
5409
cat >>conftest.$ac_ext <<_ACEOF
 
5410
/* end confdefs.h.  */
 
5411
#include <$ac_header>
 
5412
_ACEOF
 
5413
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5414
case "(($ac_try" in
 
5415
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5416
  *) ac_try_echo=$ac_try;;
 
5417
esac
 
5418
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5419
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5420
  ac_status=$?
 
5421
  grep -v '^ *+' conftest.er1 >conftest.err
 
5422
  rm -f conftest.er1
 
5423
  cat conftest.err >&5
 
5424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5425
  (exit $ac_status); } >/dev/null && {
 
5426
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5427
         test ! -s conftest.err
 
5428
       }; then
 
5429
  ac_header_preproc=yes
 
5430
else
 
5431
  echo "$as_me: failed program was:" >&5
 
5432
sed 's/^/| /' conftest.$ac_ext >&5
 
5433
 
 
5434
  ac_header_preproc=no
 
5435
fi
 
5436
 
 
5437
rm -f conftest.err conftest.$ac_ext
 
5438
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5439
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5440
 
 
5441
# So?  What about this header?
 
5442
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5443
  yes:no: )
 
5444
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5445
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5446
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5447
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5448
    ac_header_preproc=yes
 
5449
    ;;
 
5450
  no:yes:* )
 
5451
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5452
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5453
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5454
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5455
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5456
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5457
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5458
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5459
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5460
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5461
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5462
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5463
    ( cat <<\_ASBOX
 
5464
## ------------------------------ ##
 
5465
## Report this to dcbw@redhat.com ##
 
5466
## ------------------------------ ##
 
5467
_ASBOX
 
5468
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5469
    ;;
 
5470
esac
 
5471
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5472
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5473
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5475
else
 
5476
  eval "$as_ac_Header=\$ac_header_preproc"
 
5477
fi
 
5478
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5479
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5480
echo "${ECHO_T}$ac_res" >&6; }
 
5481
 
 
5482
fi
 
5483
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5484
  cat >>confdefs.h <<_ACEOF
 
5485
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5486
_ACEOF
 
5487
 
 
5488
fi
 
5489
 
 
5490
done
 
5491
 
 
5492
ac_ext=cpp
 
5493
ac_cpp='$CXXCPP $CPPFLAGS'
 
5494
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5495
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5496
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5497
if test -z "$CXX"; then
 
5498
  if test -n "$CCC"; then
 
5499
    CXX=$CCC
 
5500
  else
 
5501
    if test -n "$ac_tool_prefix"; then
 
5502
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5503
  do
 
5504
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5505
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5506
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5507
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5508
if test "${ac_cv_prog_CXX+set}" = set; then
 
5509
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5510
else
 
5511
  if test -n "$CXX"; then
 
5512
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5513
else
 
5514
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5515
for as_dir in $PATH
 
5516
do
 
5517
  IFS=$as_save_IFS
 
5518
  test -z "$as_dir" && as_dir=.
 
5519
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5520
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5521
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5522
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5523
    break 2
 
5524
  fi
 
5525
done
 
5526
done
 
5527
IFS=$as_save_IFS
 
5528
 
 
5529
fi
 
5530
fi
 
5531
CXX=$ac_cv_prog_CXX
 
5532
if test -n "$CXX"; then
 
5533
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5534
echo "${ECHO_T}$CXX" >&6; }
 
5535
else
 
5536
  { echo "$as_me:$LINENO: result: no" >&5
 
5537
echo "${ECHO_T}no" >&6; }
 
5538
fi
 
5539
 
 
5540
 
 
5541
    test -n "$CXX" && break
 
5542
  done
 
5543
fi
 
5544
if test -z "$CXX"; then
 
5545
  ac_ct_CXX=$CXX
 
5546
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5547
do
 
5548
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5549
set dummy $ac_prog; ac_word=$2
 
5550
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5552
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5554
else
 
5555
  if test -n "$ac_ct_CXX"; then
 
5556
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5557
else
 
5558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5559
for as_dir in $PATH
 
5560
do
 
5561
  IFS=$as_save_IFS
 
5562
  test -z "$as_dir" && as_dir=.
 
5563
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5564
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5565
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5566
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5567
    break 2
 
5568
  fi
 
5569
done
 
5570
done
 
5571
IFS=$as_save_IFS
 
5572
 
 
5573
fi
 
5574
fi
 
5575
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5576
if test -n "$ac_ct_CXX"; then
 
5577
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5578
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5579
else
 
5580
  { echo "$as_me:$LINENO: result: no" >&5
 
5581
echo "${ECHO_T}no" >&6; }
 
5582
fi
 
5583
 
 
5584
 
 
5585
  test -n "$ac_ct_CXX" && break
 
5586
done
 
5587
 
 
5588
  if test "x$ac_ct_CXX" = x; then
 
5589
    CXX="g++"
 
5590
  else
 
5591
    case $cross_compiling:$ac_tool_warned in
 
5592
yes:)
 
5593
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5594
whose name does not start with the host triplet.  If you think this
 
5595
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5596
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5597
whose name does not start with the host triplet.  If you think this
 
5598
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5599
ac_tool_warned=yes ;;
 
5600
esac
 
5601
    CXX=$ac_ct_CXX
 
5602
  fi
 
5603
fi
 
5604
 
 
5605
  fi
 
5606
fi
 
5607
# Provide some information about the compiler.
 
5608
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5609
ac_compiler=`set X $ac_compile; echo $2`
 
5610
{ (ac_try="$ac_compiler --version >&5"
 
5611
case "(($ac_try" in
 
5612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5613
  *) ac_try_echo=$ac_try;;
 
5614
esac
 
5615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5616
  (eval "$ac_compiler --version >&5") 2>&5
 
5617
  ac_status=$?
 
5618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5619
  (exit $ac_status); }
 
5620
{ (ac_try="$ac_compiler -v >&5"
 
5621
case "(($ac_try" in
 
5622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5623
  *) ac_try_echo=$ac_try;;
 
5624
esac
 
5625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5626
  (eval "$ac_compiler -v >&5") 2>&5
 
5627
  ac_status=$?
 
5628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5629
  (exit $ac_status); }
 
5630
{ (ac_try="$ac_compiler -V >&5"
 
5631
case "(($ac_try" in
 
5632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5633
  *) ac_try_echo=$ac_try;;
 
5634
esac
 
5635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5636
  (eval "$ac_compiler -V >&5") 2>&5
 
5637
  ac_status=$?
 
5638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5639
  (exit $ac_status); }
 
5640
 
 
5641
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5642
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5643
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5645
else
 
5646
  cat >conftest.$ac_ext <<_ACEOF
 
5647
/* confdefs.h.  */
 
5648
_ACEOF
 
5649
cat confdefs.h >>conftest.$ac_ext
 
5650
cat >>conftest.$ac_ext <<_ACEOF
 
5651
/* end confdefs.h.  */
 
5652
 
 
5653
int
 
5654
main ()
 
5655
{
 
5656
#ifndef __GNUC__
 
5657
       choke me
 
5658
#endif
 
5659
 
 
5660
  ;
 
5661
  return 0;
 
5662
}
 
5663
_ACEOF
 
5664
rm -f conftest.$ac_objext
 
5665
if { (ac_try="$ac_compile"
 
5666
case "(($ac_try" in
 
5667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5668
  *) ac_try_echo=$ac_try;;
 
5669
esac
 
5670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5671
  (eval "$ac_compile") 2>conftest.er1
 
5672
  ac_status=$?
 
5673
  grep -v '^ *+' conftest.er1 >conftest.err
 
5674
  rm -f conftest.er1
 
5675
  cat conftest.err >&5
 
5676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5677
  (exit $ac_status); } && {
 
5678
         test -z "$ac_cxx_werror_flag" ||
 
5679
         test ! -s conftest.err
 
5680
       } && test -s conftest.$ac_objext; then
 
5681
  ac_compiler_gnu=yes
 
5682
else
 
5683
  echo "$as_me: failed program was:" >&5
 
5684
sed 's/^/| /' conftest.$ac_ext >&5
 
5685
 
 
5686
        ac_compiler_gnu=no
 
5687
fi
 
5688
 
 
5689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5690
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5691
 
 
5692
fi
 
5693
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5694
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5695
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5696
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5697
ac_save_CXXFLAGS=$CXXFLAGS
 
5698
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5699
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5700
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5702
else
 
5703
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5704
   ac_cxx_werror_flag=yes
 
5705
   ac_cv_prog_cxx_g=no
 
5706
   CXXFLAGS="-g"
 
5707
   cat >conftest.$ac_ext <<_ACEOF
 
5708
/* confdefs.h.  */
 
5709
_ACEOF
 
5710
cat confdefs.h >>conftest.$ac_ext
 
5711
cat >>conftest.$ac_ext <<_ACEOF
 
5712
/* end confdefs.h.  */
 
5713
 
 
5714
int
 
5715
main ()
 
5716
{
 
5717
 
 
5718
  ;
 
5719
  return 0;
 
5720
}
 
5721
_ACEOF
 
5722
rm -f conftest.$ac_objext
 
5723
if { (ac_try="$ac_compile"
 
5724
case "(($ac_try" in
 
5725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5726
  *) ac_try_echo=$ac_try;;
 
5727
esac
 
5728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5729
  (eval "$ac_compile") 2>conftest.er1
 
5730
  ac_status=$?
 
5731
  grep -v '^ *+' conftest.er1 >conftest.err
 
5732
  rm -f conftest.er1
 
5733
  cat conftest.err >&5
 
5734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5735
  (exit $ac_status); } && {
 
5736
         test -z "$ac_cxx_werror_flag" ||
 
5737
         test ! -s conftest.err
 
5738
       } && test -s conftest.$ac_objext; then
 
5739
  ac_cv_prog_cxx_g=yes
 
5740
else
 
5741
  echo "$as_me: failed program was:" >&5
 
5742
sed 's/^/| /' conftest.$ac_ext >&5
 
5743
 
 
5744
        CXXFLAGS=""
 
5745
      cat >conftest.$ac_ext <<_ACEOF
 
5746
/* confdefs.h.  */
 
5747
_ACEOF
 
5748
cat confdefs.h >>conftest.$ac_ext
 
5749
cat >>conftest.$ac_ext <<_ACEOF
 
5750
/* end confdefs.h.  */
 
5751
 
 
5752
int
 
5753
main ()
 
5754
{
 
5755
 
 
5756
  ;
 
5757
  return 0;
 
5758
}
 
5759
_ACEOF
 
5760
rm -f conftest.$ac_objext
 
5761
if { (ac_try="$ac_compile"
 
5762
case "(($ac_try" in
 
5763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5764
  *) ac_try_echo=$ac_try;;
 
5765
esac
 
5766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5767
  (eval "$ac_compile") 2>conftest.er1
 
5768
  ac_status=$?
 
5769
  grep -v '^ *+' conftest.er1 >conftest.err
 
5770
  rm -f conftest.er1
 
5771
  cat conftest.err >&5
 
5772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5773
  (exit $ac_status); } && {
 
5774
         test -z "$ac_cxx_werror_flag" ||
 
5775
         test ! -s conftest.err
 
5776
       } && test -s conftest.$ac_objext; then
 
5777
  :
 
5778
else
 
5779
  echo "$as_me: failed program was:" >&5
 
5780
sed 's/^/| /' conftest.$ac_ext >&5
 
5781
 
 
5782
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5783
         CXXFLAGS="-g"
 
5784
         cat >conftest.$ac_ext <<_ACEOF
 
5785
/* confdefs.h.  */
 
5786
_ACEOF
 
5787
cat confdefs.h >>conftest.$ac_ext
 
5788
cat >>conftest.$ac_ext <<_ACEOF
 
5789
/* end confdefs.h.  */
 
5790
 
 
5791
int
 
5792
main ()
 
5793
{
 
5794
 
 
5795
  ;
 
5796
  return 0;
 
5797
}
 
5798
_ACEOF
 
5799
rm -f conftest.$ac_objext
 
5800
if { (ac_try="$ac_compile"
 
5801
case "(($ac_try" in
 
5802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5803
  *) ac_try_echo=$ac_try;;
 
5804
esac
 
5805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5806
  (eval "$ac_compile") 2>conftest.er1
 
5807
  ac_status=$?
 
5808
  grep -v '^ *+' conftest.er1 >conftest.err
 
5809
  rm -f conftest.er1
 
5810
  cat conftest.err >&5
 
5811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5812
  (exit $ac_status); } && {
 
5813
         test -z "$ac_cxx_werror_flag" ||
 
5814
         test ! -s conftest.err
 
5815
       } && test -s conftest.$ac_objext; then
 
5816
  ac_cv_prog_cxx_g=yes
 
5817
else
 
5818
  echo "$as_me: failed program was:" >&5
 
5819
sed 's/^/| /' conftest.$ac_ext >&5
 
5820
 
 
5821
 
 
5822
fi
 
5823
 
 
5824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5825
fi
 
5826
 
 
5827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5828
fi
 
5829
 
 
5830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5831
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5832
fi
 
5833
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5834
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5835
if test "$ac_test_CXXFLAGS" = set; then
 
5836
  CXXFLAGS=$ac_save_CXXFLAGS
 
5837
elif test $ac_cv_prog_cxx_g = yes; then
 
5838
  if test "$GXX" = yes; then
 
5839
    CXXFLAGS="-g -O2"
 
5840
  else
 
5841
    CXXFLAGS="-g"
 
5842
  fi
 
5843
else
 
5844
  if test "$GXX" = yes; then
 
5845
    CXXFLAGS="-O2"
 
5846
  else
 
5847
    CXXFLAGS=
 
5848
  fi
 
5849
fi
 
5850
ac_ext=cpp
 
5851
ac_cpp='$CXXCPP $CPPFLAGS'
 
5852
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5853
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5854
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5855
 
 
5856
depcc="$CXX"  am_compiler_list=
 
5857
 
 
5858
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5859
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5860
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5862
else
 
5863
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5864
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5865
  # making bogus files that we don't know about and never remove.  For
 
5866
  # instance it was reported that on HP-UX the gcc test will end up
 
5867
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5868
  # in D'.
 
5869
  mkdir conftest.dir
 
5870
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5871
  # using a relative directory.
 
5872
  cp "$am_depcomp" conftest.dir
 
5873
  cd conftest.dir
 
5874
  # We will build objects and dependencies in a subdirectory because
 
5875
  # it helps to detect inapplicable dependency modes.  For instance
 
5876
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5877
  # side effect of compilation, but ICC will put the dependencies in
 
5878
  # the current directory while Tru64 will put them in the object
 
5879
  # directory.
 
5880
  mkdir sub
 
5881
 
 
5882
  am_cv_CXX_dependencies_compiler_type=none
 
5883
  if test "$am_compiler_list" = ""; then
 
5884
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5885
  fi
 
5886
  for depmode in $am_compiler_list; do
 
5887
    # Setup a source with many dependencies, because some compilers
 
5888
    # like to wrap large dependency lists on column 80 (with \), and
 
5889
    # we should not choose a depcomp mode which is confused by this.
 
5890
    #
 
5891
    # We need to recreate these files for each test, as the compiler may
 
5892
    # overwrite some of them when testing with obscure command lines.
 
5893
    # This happens at least with the AIX C compiler.
 
5894
    : > sub/conftest.c
 
5895
    for i in 1 2 3 4 5 6; do
 
5896
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5897
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5898
      # Solaris 8's {/usr,}/bin/sh.
 
5899
      touch sub/conftst$i.h
 
5900
    done
 
5901
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5902
 
 
5903
    case $depmode in
 
5904
    nosideeffect)
 
5905
      # after this tag, mechanisms are not by side-effect, so they'll
 
5906
      # only be used when explicitly requested
 
5907
      if test "x$enable_dependency_tracking" = xyes; then
 
5908
        continue
 
5909
      else
 
5910
        break
 
5911
      fi
 
5912
      ;;
 
5913
    none) break ;;
 
5914
    esac
 
5915
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5916
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5917
    # handle `-M -o', and we need to detect this.
 
5918
    if depmode=$depmode \
 
5919
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5920
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5921
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5922
         >/dev/null 2>conftest.err &&
 
5923
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5924
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5925
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5926
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5927
      # icc doesn't choke on unknown options, it will just issue warnings
 
5928
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5929
      # that says an option was ignored or not supported.
 
5930
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5931
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5932
      # The diagnosis changed in icc 8.0:
 
5933
      #   icc: Command line remark: option '-MP' not supported
 
5934
      if (grep 'ignoring option' conftest.err ||
 
5935
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5936
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5937
        break
 
5938
      fi
 
5939
    fi
 
5940
  done
 
5941
 
 
5942
  cd ..
 
5943
  rm -rf conftest.dir
 
5944
else
 
5945
  am_cv_CXX_dependencies_compiler_type=none
 
5946
fi
 
5947
 
 
5948
fi
 
5949
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5950
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5951
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5952
 
 
5953
 if
 
5954
  test "x$enable_dependency_tracking" != xno \
 
5955
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5956
  am__fastdepCXX_TRUE=
 
5957
  am__fastdepCXX_FALSE='#'
 
5958
else
 
5959
  am__fastdepCXX_TRUE='#'
 
5960
  am__fastdepCXX_FALSE=
 
5961
fi
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5967
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5968
    (test "X$CXX" != "Xg++"))) ; then
 
5969
  ac_ext=cpp
 
5970
ac_cpp='$CXXCPP $CPPFLAGS'
 
5971
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5972
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5973
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5974
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5975
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5976
if test -z "$CXXCPP"; then
 
5977
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5979
else
 
5980
      # Double quotes because CXXCPP needs to be expanded
 
5981
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5982
    do
 
5983
      ac_preproc_ok=false
 
5984
for ac_cxx_preproc_warn_flag in '' yes
 
5985
do
 
5986
  # Use a header file that comes with gcc, so configuring glibc
 
5987
  # with a fresh cross-compiler works.
 
5988
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5989
  # <limits.h> exists even on freestanding compilers.
 
5990
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5991
  # not just through cpp. "Syntax error" is here to catch this case.
 
5992
  cat >conftest.$ac_ext <<_ACEOF
 
5993
/* confdefs.h.  */
 
5994
_ACEOF
 
5995
cat confdefs.h >>conftest.$ac_ext
 
5996
cat >>conftest.$ac_ext <<_ACEOF
 
5997
/* end confdefs.h.  */
 
5998
#ifdef __STDC__
 
5999
# include <limits.h>
 
6000
#else
 
6001
# include <assert.h>
 
6002
#endif
 
6003
                     Syntax error
 
6004
_ACEOF
 
6005
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6006
case "(($ac_try" in
 
6007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6008
  *) ac_try_echo=$ac_try;;
 
6009
esac
 
6010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6011
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6012
  ac_status=$?
 
6013
  grep -v '^ *+' conftest.er1 >conftest.err
 
6014
  rm -f conftest.er1
 
6015
  cat conftest.err >&5
 
6016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6017
  (exit $ac_status); } >/dev/null && {
 
6018
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6019
         test ! -s conftest.err
 
6020
       }; then
 
6021
  :
 
6022
else
 
6023
  echo "$as_me: failed program was:" >&5
 
6024
sed 's/^/| /' conftest.$ac_ext >&5
 
6025
 
 
6026
  # Broken: fails on valid input.
 
6027
continue
 
6028
fi
 
6029
 
 
6030
rm -f conftest.err conftest.$ac_ext
 
6031
 
 
6032
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6033
  # can be detected and how.
 
6034
  cat >conftest.$ac_ext <<_ACEOF
 
6035
/* confdefs.h.  */
 
6036
_ACEOF
 
6037
cat confdefs.h >>conftest.$ac_ext
 
6038
cat >>conftest.$ac_ext <<_ACEOF
 
6039
/* end confdefs.h.  */
 
6040
#include <ac_nonexistent.h>
 
6041
_ACEOF
 
6042
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6043
case "(($ac_try" in
 
6044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6045
  *) ac_try_echo=$ac_try;;
 
6046
esac
 
6047
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6048
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6049
  ac_status=$?
 
6050
  grep -v '^ *+' conftest.er1 >conftest.err
 
6051
  rm -f conftest.er1
 
6052
  cat conftest.err >&5
 
6053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6054
  (exit $ac_status); } >/dev/null && {
 
6055
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6056
         test ! -s conftest.err
 
6057
       }; then
 
6058
  # Broken: success on invalid input.
 
6059
continue
 
6060
else
 
6061
  echo "$as_me: failed program was:" >&5
 
6062
sed 's/^/| /' conftest.$ac_ext >&5
 
6063
 
 
6064
  # Passes both tests.
 
6065
ac_preproc_ok=:
 
6066
break
 
6067
fi
 
6068
 
 
6069
rm -f conftest.err conftest.$ac_ext
 
6070
 
 
6071
done
 
6072
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6073
rm -f conftest.err conftest.$ac_ext
 
6074
if $ac_preproc_ok; then
 
6075
  break
 
6076
fi
 
6077
 
 
6078
    done
 
6079
    ac_cv_prog_CXXCPP=$CXXCPP
 
6080
 
 
6081
fi
 
6082
  CXXCPP=$ac_cv_prog_CXXCPP
 
6083
else
 
6084
  ac_cv_prog_CXXCPP=$CXXCPP
 
6085
fi
 
6086
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6087
echo "${ECHO_T}$CXXCPP" >&6; }
 
6088
ac_preproc_ok=false
 
6089
for ac_cxx_preproc_warn_flag in '' yes
 
6090
do
 
6091
  # Use a header file that comes with gcc, so configuring glibc
 
6092
  # with a fresh cross-compiler works.
 
6093
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6094
  # <limits.h> exists even on freestanding compilers.
 
6095
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6096
  # not just through cpp. "Syntax error" is here to catch this case.
 
6097
  cat >conftest.$ac_ext <<_ACEOF
 
6098
/* confdefs.h.  */
 
6099
_ACEOF
 
6100
cat confdefs.h >>conftest.$ac_ext
 
6101
cat >>conftest.$ac_ext <<_ACEOF
 
6102
/* end confdefs.h.  */
 
6103
#ifdef __STDC__
 
6104
# include <limits.h>
 
6105
#else
 
6106
# include <assert.h>
 
6107
#endif
 
6108
                     Syntax error
 
6109
_ACEOF
 
6110
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6111
case "(($ac_try" in
 
6112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6113
  *) ac_try_echo=$ac_try;;
 
6114
esac
 
6115
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6116
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6117
  ac_status=$?
 
6118
  grep -v '^ *+' conftest.er1 >conftest.err
 
6119
  rm -f conftest.er1
 
6120
  cat conftest.err >&5
 
6121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6122
  (exit $ac_status); } >/dev/null && {
 
6123
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6124
         test ! -s conftest.err
 
6125
       }; then
 
6126
  :
 
6127
else
 
6128
  echo "$as_me: failed program was:" >&5
 
6129
sed 's/^/| /' conftest.$ac_ext >&5
 
6130
 
 
6131
  # Broken: fails on valid input.
 
6132
continue
 
6133
fi
 
6134
 
 
6135
rm -f conftest.err conftest.$ac_ext
 
6136
 
 
6137
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6138
  # can be detected and how.
 
6139
  cat >conftest.$ac_ext <<_ACEOF
 
6140
/* confdefs.h.  */
 
6141
_ACEOF
 
6142
cat confdefs.h >>conftest.$ac_ext
 
6143
cat >>conftest.$ac_ext <<_ACEOF
 
6144
/* end confdefs.h.  */
 
6145
#include <ac_nonexistent.h>
 
6146
_ACEOF
 
6147
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6148
case "(($ac_try" in
 
6149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6150
  *) ac_try_echo=$ac_try;;
 
6151
esac
 
6152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6153
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6154
  ac_status=$?
 
6155
  grep -v '^ *+' conftest.er1 >conftest.err
 
6156
  rm -f conftest.er1
 
6157
  cat conftest.err >&5
 
6158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6159
  (exit $ac_status); } >/dev/null && {
 
6160
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6161
         test ! -s conftest.err
 
6162
       }; then
 
6163
  # Broken: success on invalid input.
 
6164
continue
 
6165
else
 
6166
  echo "$as_me: failed program was:" >&5
 
6167
sed 's/^/| /' conftest.$ac_ext >&5
 
6168
 
 
6169
  # Passes both tests.
 
6170
ac_preproc_ok=:
 
6171
break
 
6172
fi
 
6173
 
 
6174
rm -f conftest.err conftest.$ac_ext
 
6175
 
 
6176
done
 
6177
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6178
rm -f conftest.err conftest.$ac_ext
 
6179
if $ac_preproc_ok; then
 
6180
  :
 
6181
else
 
6182
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6183
See \`config.log' for more details." >&5
 
6184
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6185
See \`config.log' for more details." >&2;}
 
6186
   { (exit 1); exit 1; }; }
 
6187
fi
 
6188
 
 
6189
ac_ext=cpp
 
6190
ac_cpp='$CXXCPP $CPPFLAGS'
 
6191
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6192
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6193
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6194
 
 
6195
fi
 
6196
 
 
6197
 
 
6198
ac_ext=f
 
6199
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6200
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6201
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6202
if test -n "$ac_tool_prefix"; then
 
6203
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6204
  do
 
6205
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6206
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6207
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6208
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6209
if test "${ac_cv_prog_F77+set}" = set; then
 
6210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6211
else
 
6212
  if test -n "$F77"; then
 
6213
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6214
else
 
6215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6216
for as_dir in $PATH
 
6217
do
 
6218
  IFS=$as_save_IFS
 
6219
  test -z "$as_dir" && as_dir=.
 
6220
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6221
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6222
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6223
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6224
    break 2
 
6225
  fi
 
6226
done
 
6227
done
 
6228
IFS=$as_save_IFS
 
6229
 
 
6230
fi
 
6231
fi
 
6232
F77=$ac_cv_prog_F77
 
6233
if test -n "$F77"; then
 
6234
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6235
echo "${ECHO_T}$F77" >&6; }
 
6236
else
 
6237
  { echo "$as_me:$LINENO: result: no" >&5
 
6238
echo "${ECHO_T}no" >&6; }
 
6239
fi
 
6240
 
 
6241
 
 
6242
    test -n "$F77" && break
 
6243
  done
 
6244
fi
 
6245
if test -z "$F77"; then
 
6246
  ac_ct_F77=$F77
 
6247
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6248
do
 
6249
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6250
set dummy $ac_prog; ac_word=$2
 
6251
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6253
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6255
else
 
6256
  if test -n "$ac_ct_F77"; then
 
6257
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6258
else
 
6259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6260
for as_dir in $PATH
 
6261
do
 
6262
  IFS=$as_save_IFS
 
6263
  test -z "$as_dir" && as_dir=.
 
6264
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6265
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6266
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6267
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6268
    break 2
 
6269
  fi
 
6270
done
 
6271
done
 
6272
IFS=$as_save_IFS
 
6273
 
 
6274
fi
 
6275
fi
 
6276
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6277
if test -n "$ac_ct_F77"; then
 
6278
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6279
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6280
else
 
6281
  { echo "$as_me:$LINENO: result: no" >&5
 
6282
echo "${ECHO_T}no" >&6; }
 
6283
fi
 
6284
 
 
6285
 
 
6286
  test -n "$ac_ct_F77" && break
 
6287
done
 
6288
 
 
6289
  if test "x$ac_ct_F77" = x; then
 
6290
    F77=""
 
6291
  else
 
6292
    case $cross_compiling:$ac_tool_warned in
 
6293
yes:)
 
6294
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6295
whose name does not start with the host triplet.  If you think this
 
6296
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6297
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6298
whose name does not start with the host triplet.  If you think this
 
6299
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6300
ac_tool_warned=yes ;;
 
6301
esac
 
6302
    F77=$ac_ct_F77
 
6303
  fi
 
6304
fi
 
6305
 
 
6306
 
 
6307
# Provide some information about the compiler.
 
6308
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6309
ac_compiler=`set X $ac_compile; echo $2`
 
6310
{ (ac_try="$ac_compiler --version >&5"
 
6311
case "(($ac_try" in
 
6312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6313
  *) ac_try_echo=$ac_try;;
 
6314
esac
 
6315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6316
  (eval "$ac_compiler --version >&5") 2>&5
 
6317
  ac_status=$?
 
6318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6319
  (exit $ac_status); }
 
6320
{ (ac_try="$ac_compiler -v >&5"
 
6321
case "(($ac_try" in
 
6322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6323
  *) ac_try_echo=$ac_try;;
 
6324
esac
 
6325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6326
  (eval "$ac_compiler -v >&5") 2>&5
 
6327
  ac_status=$?
 
6328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6329
  (exit $ac_status); }
 
6330
{ (ac_try="$ac_compiler -V >&5"
 
6331
case "(($ac_try" in
 
6332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6333
  *) ac_try_echo=$ac_try;;
 
6334
esac
 
6335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6336
  (eval "$ac_compiler -V >&5") 2>&5
 
6337
  ac_status=$?
 
6338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6339
  (exit $ac_status); }
 
6340
rm -f a.out
 
6341
 
 
6342
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6343
# input file.  (Note that this only needs to work for GNU compilers.)
 
6344
ac_save_ext=$ac_ext
 
6345
ac_ext=F
 
6346
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6347
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6348
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6350
else
 
6351
  cat >conftest.$ac_ext <<_ACEOF
 
6352
      program main
 
6353
#ifndef __GNUC__
 
6354
       choke me
 
6355
#endif
 
6356
 
 
6357
      end
 
6358
_ACEOF
 
6359
rm -f conftest.$ac_objext
 
6360
if { (ac_try="$ac_compile"
 
6361
case "(($ac_try" in
 
6362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6363
  *) ac_try_echo=$ac_try;;
 
6364
esac
 
6365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6366
  (eval "$ac_compile") 2>conftest.er1
 
6367
  ac_status=$?
 
6368
  grep -v '^ *+' conftest.er1 >conftest.err
 
6369
  rm -f conftest.er1
 
6370
  cat conftest.err >&5
 
6371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6372
  (exit $ac_status); } && {
 
6373
         test -z "$ac_f77_werror_flag" ||
 
6374
         test ! -s conftest.err
 
6375
       } && test -s conftest.$ac_objext; then
 
6376
  ac_compiler_gnu=yes
 
6377
else
 
6378
  echo "$as_me: failed program was:" >&5
 
6379
sed 's/^/| /' conftest.$ac_ext >&5
 
6380
 
 
6381
        ac_compiler_gnu=no
 
6382
fi
 
6383
 
 
6384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6385
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6386
 
 
6387
fi
 
6388
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6389
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6390
ac_ext=$ac_save_ext
 
6391
ac_test_FFLAGS=${FFLAGS+set}
 
6392
ac_save_FFLAGS=$FFLAGS
 
6393
FFLAGS=
 
6394
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6395
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6396
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6398
else
 
6399
  FFLAGS=-g
 
6400
cat >conftest.$ac_ext <<_ACEOF
 
6401
      program main
 
6402
 
 
6403
      end
 
6404
_ACEOF
 
6405
rm -f conftest.$ac_objext
 
6406
if { (ac_try="$ac_compile"
 
6407
case "(($ac_try" in
 
6408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6409
  *) ac_try_echo=$ac_try;;
 
6410
esac
 
6411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6412
  (eval "$ac_compile") 2>conftest.er1
 
6413
  ac_status=$?
 
6414
  grep -v '^ *+' conftest.er1 >conftest.err
 
6415
  rm -f conftest.er1
 
6416
  cat conftest.err >&5
 
6417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6418
  (exit $ac_status); } && {
 
6419
         test -z "$ac_f77_werror_flag" ||
 
6420
         test ! -s conftest.err
 
6421
       } && test -s conftest.$ac_objext; then
 
6422
  ac_cv_prog_f77_g=yes
 
6423
else
 
6424
  echo "$as_me: failed program was:" >&5
 
6425
sed 's/^/| /' conftest.$ac_ext >&5
 
6426
 
 
6427
        ac_cv_prog_f77_g=no
 
6428
fi
 
6429
 
 
6430
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6431
 
 
6432
fi
 
6433
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6434
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6435
if test "$ac_test_FFLAGS" = set; then
 
6436
  FFLAGS=$ac_save_FFLAGS
 
6437
elif test $ac_cv_prog_f77_g = yes; then
 
6438
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6439
    FFLAGS="-g -O2"
 
6440
  else
 
6441
    FFLAGS="-g"
 
6442
  fi
 
6443
else
 
6444
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6445
    FFLAGS="-O2"
 
6446
  else
 
6447
    FFLAGS=
 
6448
  fi
 
6449
fi
 
6450
 
 
6451
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6452
ac_ext=c
 
6453
ac_cpp='$CPP $CPPFLAGS'
 
6454
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6455
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6456
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6457
 
 
6458
 
 
6459
 
 
6460
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6461
 
 
6462
# find the maximum length of command line arguments
 
6463
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6464
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6465
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6467
else
 
6468
    i=0
 
6469
  teststring="ABCD"
 
6470
 
 
6471
  case $build_os in
 
6472
  msdosdjgpp*)
 
6473
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6474
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6475
    # during glob expansion).  Even if it were fixed, the result of this
 
6476
    # check would be larger than it should be.
 
6477
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6478
    ;;
 
6479
 
 
6480
  gnu*)
 
6481
    # Under GNU Hurd, this test is not required because there is
 
6482
    # no limit to the length of command line arguments.
 
6483
    # Libtool will interpret -1 as no limit whatsoever
 
6484
    lt_cv_sys_max_cmd_len=-1;
 
6485
    ;;
 
6486
 
 
6487
  cygwin* | mingw*)
 
6488
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6489
    # about 5 minutes as the teststring grows exponentially.
 
6490
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6491
    # you end up with a "frozen" computer, even though with patience
 
6492
    # the test eventually succeeds (with a max line length of 256k).
 
6493
    # Instead, let's just punt: use the minimum linelength reported by
 
6494
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6495
    lt_cv_sys_max_cmd_len=8192;
 
6496
    ;;
 
6497
 
 
6498
  amigaos*)
 
6499
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6500
    # So we just punt and use a minimum line length of 8192.
 
6501
    lt_cv_sys_max_cmd_len=8192;
 
6502
    ;;
 
6503
 
 
6504
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6505
    # This has been around since 386BSD, at least.  Likely further.
 
6506
    if test -x /sbin/sysctl; then
 
6507
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6508
    elif test -x /usr/sbin/sysctl; then
 
6509
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6510
    else
 
6511
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6512
    fi
 
6513
    # And add a safety zone
 
6514
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6515
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6516
    ;;
 
6517
 
 
6518
  interix*)
 
6519
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6520
    lt_cv_sys_max_cmd_len=196608
 
6521
    ;;
 
6522
 
 
6523
  osf*)
 
6524
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6525
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6526
    # nice to cause kernel panics so lets avoid the loop below.
 
6527
    # First set a reasonable default.
 
6528
    lt_cv_sys_max_cmd_len=16384
 
6529
    #
 
6530
    if test -x /sbin/sysconfig; then
 
6531
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6532
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6533
      esac
 
6534
    fi
 
6535
    ;;
 
6536
  sco3.2v5*)
 
6537
    lt_cv_sys_max_cmd_len=102400
 
6538
    ;;
 
6539
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6540
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6541
    if test -n "$kargmax"; then
 
6542
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6543
    else
 
6544
      lt_cv_sys_max_cmd_len=32768
 
6545
    fi
 
6546
    ;;
 
6547
  *)
 
6548
    # If test is not a shell built-in, we'll probably end up computing a
 
6549
    # maximum length that is only half of the actual maximum length, but
 
6550
    # we can't tell.
 
6551
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6552
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6553
               = "XX$teststring") >/dev/null 2>&1 &&
 
6554
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6555
            lt_cv_sys_max_cmd_len=$new_result &&
 
6556
            test $i != 17 # 1/2 MB should be enough
 
6557
    do
 
6558
      i=`expr $i + 1`
 
6559
      teststring=$teststring$teststring
 
6560
    done
 
6561
    teststring=
 
6562
    # Add a significant safety factor because C++ compilers can tack on massive
 
6563
    # amounts of additional arguments before passing them to the linker.
 
6564
    # It appears as though 1/2 is a usable value.
 
6565
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6566
    ;;
 
6567
  esac
 
6568
 
 
6569
fi
 
6570
 
 
6571
if test -n $lt_cv_sys_max_cmd_len ; then
 
6572
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6573
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6574
else
 
6575
  { echo "$as_me:$LINENO: result: none" >&5
 
6576
echo "${ECHO_T}none" >&6; }
 
6577
fi
 
6578
 
 
6579
 
 
6580
 
 
6581
 
 
6582
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6583
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6584
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6585
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6587
else
 
6588
 
 
6589
# These are sane defaults that work on at least a few old systems.
 
6590
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6591
 
 
6592
# Character class describing NM global symbol codes.
 
6593
symcode='[BCDEGRST]'
 
6594
 
 
6595
# Regexp to match symbols that can be accessed directly from C.
 
6596
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6597
 
 
6598
# Transform an extracted symbol line into a proper C declaration
 
6599
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6600
 
 
6601
# Transform an extracted symbol line into symbol name and symbol address
 
6602
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6603
 
 
6604
# Define system-specific variables.
 
6605
case $host_os in
 
6606
aix*)
 
6607
  symcode='[BCDT]'
 
6608
  ;;
 
6609
cygwin* | mingw* | pw32*)
 
6610
  symcode='[ABCDGISTW]'
 
6611
  ;;
 
6612
hpux*) # Its linker distinguishes data from code symbols
 
6613
  if test "$host_cpu" = ia64; then
 
6614
    symcode='[ABCDEGRST]'
 
6615
  fi
 
6616
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6617
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6618
  ;;
 
6619
linux*)
 
6620
  if test "$host_cpu" = ia64; then
 
6621
    symcode='[ABCDGIRSTW]'
 
6622
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6623
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6624
  fi
 
6625
  ;;
 
6626
irix* | nonstopux*)
 
6627
  symcode='[BCDEGRST]'
 
6628
  ;;
 
6629
osf*)
 
6630
  symcode='[BCDEGQRST]'
 
6631
  ;;
 
6632
solaris*)
 
6633
  symcode='[BDRT]'
 
6634
  ;;
 
6635
sco3.2v5*)
 
6636
  symcode='[DT]'
 
6637
  ;;
 
6638
sysv4.2uw2*)
 
6639
  symcode='[DT]'
 
6640
  ;;
 
6641
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6642
  symcode='[ABDT]'
 
6643
  ;;
 
6644
sysv4)
 
6645
  symcode='[DFNSTU]'
 
6646
  ;;
 
6647
esac
 
6648
 
 
6649
# Handle CRLF in mingw tool chain
 
6650
opt_cr=
 
6651
case $build_os in
 
6652
mingw*)
 
6653
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6654
  ;;
 
6655
esac
 
6656
 
 
6657
# If we're using GNU nm, then use its standard symbol codes.
 
6658
case `$NM -V 2>&1` in
 
6659
*GNU* | *'with BFD'*)
 
6660
  symcode='[ABCDGIRSTW]' ;;
 
6661
esac
 
6662
 
 
6663
# Try without a prefix undercore, then with it.
 
6664
for ac_symprfx in "" "_"; do
 
6665
 
 
6666
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6667
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6668
 
 
6669
  # Write the raw and C identifiers.
 
6670
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6671
 
 
6672
  # Check to see that the pipe works correctly.
 
6673
  pipe_works=no
 
6674
 
 
6675
  rm -f conftest*
 
6676
  cat > conftest.$ac_ext <<EOF
 
6677
#ifdef __cplusplus
 
6678
extern "C" {
 
6679
#endif
 
6680
char nm_test_var;
 
6681
void nm_test_func(){}
 
6682
#ifdef __cplusplus
 
6683
}
 
6684
#endif
 
6685
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6686
EOF
 
6687
 
 
6688
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6689
  (eval $ac_compile) 2>&5
 
6690
  ac_status=$?
 
6691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6692
  (exit $ac_status); }; then
 
6693
    # Now try to grab the symbols.
 
6694
    nlist=conftest.nm
 
6695
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6696
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6697
  ac_status=$?
 
6698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6699
  (exit $ac_status); } && test -s "$nlist"; then
 
6700
      # Try sorting and uniquifying the output.
 
6701
      if sort "$nlist" | uniq > "$nlist"T; then
 
6702
        mv -f "$nlist"T "$nlist"
 
6703
      else
 
6704
        rm -f "$nlist"T
 
6705
      fi
 
6706
 
 
6707
      # Make sure that we snagged all the symbols we need.
 
6708
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6709
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6710
          cat <<EOF > conftest.$ac_ext
 
6711
#ifdef __cplusplus
 
6712
extern "C" {
 
6713
#endif
 
6714
 
 
6715
EOF
 
6716
          # Now generate the symbol file.
 
6717
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6718
 
 
6719
          cat <<EOF >> conftest.$ac_ext
 
6720
#if defined (__STDC__) && __STDC__
 
6721
# define lt_ptr_t void *
 
6722
#else
 
6723
# define lt_ptr_t char *
 
6724
# define const
 
6725
#endif
 
6726
 
 
6727
/* The mapping between symbol names and symbols. */
 
6728
const struct {
 
6729
  const char *name;
 
6730
  lt_ptr_t address;
 
6731
}
 
6732
lt_preloaded_symbols[] =
 
6733
{
 
6734
EOF
 
6735
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6736
          cat <<\EOF >> conftest.$ac_ext
 
6737
  {0, (lt_ptr_t) 0}
 
6738
};
 
6739
 
 
6740
#ifdef __cplusplus
 
6741
}
 
6742
#endif
 
6743
EOF
 
6744
          # Now try linking the two files.
 
6745
          mv conftest.$ac_objext conftstm.$ac_objext
 
6746
          lt_save_LIBS="$LIBS"
 
6747
          lt_save_CFLAGS="$CFLAGS"
 
6748
          LIBS="conftstm.$ac_objext"
 
6749
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6750
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6751
  (eval $ac_link) 2>&5
 
6752
  ac_status=$?
 
6753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6754
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6755
            pipe_works=yes
 
6756
          fi
 
6757
          LIBS="$lt_save_LIBS"
 
6758
          CFLAGS="$lt_save_CFLAGS"
 
6759
        else
 
6760
          echo "cannot find nm_test_func in $nlist" >&5
 
6761
        fi
 
6762
      else
 
6763
        echo "cannot find nm_test_var in $nlist" >&5
 
6764
      fi
 
6765
    else
 
6766
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6767
    fi
 
6768
  else
 
6769
    echo "$progname: failed program was:" >&5
 
6770
    cat conftest.$ac_ext >&5
 
6771
  fi
 
6772
  rm -f conftest* conftst*
 
6773
 
 
6774
  # Do not use the global_symbol_pipe unless it works.
 
6775
  if test "$pipe_works" = yes; then
 
6776
    break
 
6777
  else
 
6778
    lt_cv_sys_global_symbol_pipe=
 
6779
  fi
 
6780
done
 
6781
 
 
6782
fi
 
6783
 
 
6784
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6785
  lt_cv_sys_global_symbol_to_cdecl=
 
6786
fi
 
6787
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6788
  { echo "$as_me:$LINENO: result: failed" >&5
 
6789
echo "${ECHO_T}failed" >&6; }
 
6790
else
 
6791
  { echo "$as_me:$LINENO: result: ok" >&5
 
6792
echo "${ECHO_T}ok" >&6; }
 
6793
fi
 
6794
 
 
6795
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6796
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6797
if test "${lt_cv_objdir+set}" = set; then
 
6798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6799
else
 
6800
  rm -f .libs 2>/dev/null
 
6801
mkdir .libs 2>/dev/null
 
6802
if test -d .libs; then
 
6803
  lt_cv_objdir=.libs
 
6804
else
 
6805
  # MS-DOS does not allow filenames that begin with a dot.
 
6806
  lt_cv_objdir=_libs
 
6807
fi
 
6808
rmdir .libs 2>/dev/null
 
6809
fi
 
6810
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6811
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6812
objdir=$lt_cv_objdir
 
6813
 
 
6814
 
 
6815
 
 
6816
 
 
6817
 
 
6818
case $host_os in
 
6819
aix3*)
 
6820
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6821
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6822
  # vanish in a puff of smoke.
 
6823
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6824
    COLLECT_NAMES=
 
6825
    export COLLECT_NAMES
 
6826
  fi
 
6827
  ;;
 
6828
esac
 
6829
 
 
6830
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6831
# metacharacters that are still active within double-quoted strings.
 
6832
Xsed='sed -e 1s/^X//'
 
6833
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6834
 
 
6835
# Same as above, but do not quote variable references.
 
6836
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6837
 
 
6838
# Sed substitution to delay expansion of an escaped shell variable in a
 
6839
# double_quote_subst'ed string.
 
6840
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6841
 
 
6842
# Sed substitution to avoid accidental globbing in evaled expressions
 
6843
no_glob_subst='s/\*/\\\*/g'
 
6844
 
 
6845
# Constants:
 
6846
rm="rm -f"
 
6847
 
 
6848
# Global variables:
 
6849
default_ofile=libtool
 
6850
can_build_shared=yes
 
6851
 
 
6852
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6853
# which needs '.lib').
 
6854
libext=a
 
6855
ltmain="$ac_aux_dir/ltmain.sh"
 
6856
ofile="$default_ofile"
 
6857
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6858
 
 
6859
if test -n "$ac_tool_prefix"; then
 
6860
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6861
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6862
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6863
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6864
if test "${ac_cv_prog_AR+set}" = set; then
 
6865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6866
else
 
6867
  if test -n "$AR"; then
 
6868
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6869
else
 
6870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6871
for as_dir in $PATH
 
6872
do
 
6873
  IFS=$as_save_IFS
 
6874
  test -z "$as_dir" && as_dir=.
 
6875
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6876
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6877
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6878
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6879
    break 2
 
6880
  fi
 
6881
done
 
6882
done
 
6883
IFS=$as_save_IFS
 
6884
 
 
6885
fi
 
6886
fi
 
6887
AR=$ac_cv_prog_AR
 
6888
if test -n "$AR"; then
 
6889
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6890
echo "${ECHO_T}$AR" >&6; }
 
6891
else
 
6892
  { echo "$as_me:$LINENO: result: no" >&5
 
6893
echo "${ECHO_T}no" >&6; }
 
6894
fi
 
6895
 
 
6896
 
 
6897
fi
 
6898
if test -z "$ac_cv_prog_AR"; then
 
6899
  ac_ct_AR=$AR
 
6900
  # Extract the first word of "ar", so it can be a program name with args.
 
6901
set dummy ar; ac_word=$2
 
6902
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6903
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6904
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6906
else
 
6907
  if test -n "$ac_ct_AR"; then
 
6908
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6909
else
 
6910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6911
for as_dir in $PATH
 
6912
do
 
6913
  IFS=$as_save_IFS
 
6914
  test -z "$as_dir" && as_dir=.
 
6915
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6916
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6917
    ac_cv_prog_ac_ct_AR="ar"
 
6918
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6919
    break 2
 
6920
  fi
 
6921
done
 
6922
done
 
6923
IFS=$as_save_IFS
 
6924
 
 
6925
fi
 
6926
fi
 
6927
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6928
if test -n "$ac_ct_AR"; then
 
6929
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6930
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6931
else
 
6932
  { echo "$as_me:$LINENO: result: no" >&5
 
6933
echo "${ECHO_T}no" >&6; }
 
6934
fi
 
6935
 
 
6936
  if test "x$ac_ct_AR" = x; then
 
6937
    AR="false"
 
6938
  else
 
6939
    case $cross_compiling:$ac_tool_warned in
 
6940
yes:)
 
6941
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6942
whose name does not start with the host triplet.  If you think this
 
6943
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6944
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6945
whose name does not start with the host triplet.  If you think this
 
6946
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6947
ac_tool_warned=yes ;;
 
6948
esac
 
6949
    AR=$ac_ct_AR
 
6950
  fi
 
6951
else
 
6952
  AR="$ac_cv_prog_AR"
 
6953
fi
 
6954
 
 
6955
if test -n "$ac_tool_prefix"; then
 
6956
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6957
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6958
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6960
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6962
else
 
6963
  if test -n "$RANLIB"; then
 
6964
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6965
else
 
6966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6967
for as_dir in $PATH
 
6968
do
 
6969
  IFS=$as_save_IFS
 
6970
  test -z "$as_dir" && as_dir=.
 
6971
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6972
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6973
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6974
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6975
    break 2
 
6976
  fi
 
6977
done
 
6978
done
 
6979
IFS=$as_save_IFS
 
6980
 
 
6981
fi
 
6982
fi
 
6983
RANLIB=$ac_cv_prog_RANLIB
 
6984
if test -n "$RANLIB"; then
 
6985
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6986
echo "${ECHO_T}$RANLIB" >&6; }
 
6987
else
 
6988
  { echo "$as_me:$LINENO: result: no" >&5
 
6989
echo "${ECHO_T}no" >&6; }
 
6990
fi
 
6991
 
 
6992
 
 
6993
fi
 
6994
if test -z "$ac_cv_prog_RANLIB"; then
 
6995
  ac_ct_RANLIB=$RANLIB
 
6996
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6997
set dummy ranlib; ac_word=$2
 
6998
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6999
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7000
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7002
else
 
7003
  if test -n "$ac_ct_RANLIB"; then
 
7004
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7005
else
 
7006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7007
for as_dir in $PATH
 
7008
do
 
7009
  IFS=$as_save_IFS
 
7010
  test -z "$as_dir" && as_dir=.
 
7011
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7012
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7013
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7014
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7015
    break 2
 
7016
  fi
 
7017
done
 
7018
done
 
7019
IFS=$as_save_IFS
 
7020
 
 
7021
fi
 
7022
fi
 
7023
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7024
if test -n "$ac_ct_RANLIB"; then
 
7025
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7026
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
7027
else
 
7028
  { echo "$as_me:$LINENO: result: no" >&5
 
7029
echo "${ECHO_T}no" >&6; }
 
7030
fi
 
7031
 
 
7032
  if test "x$ac_ct_RANLIB" = x; then
 
7033
    RANLIB=":"
 
7034
  else
 
7035
    case $cross_compiling:$ac_tool_warned in
 
7036
yes:)
 
7037
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7038
whose name does not start with the host triplet.  If you think this
 
7039
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7040
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7041
whose name does not start with the host triplet.  If you think this
 
7042
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7043
ac_tool_warned=yes ;;
 
7044
esac
 
7045
    RANLIB=$ac_ct_RANLIB
 
7046
  fi
 
7047
else
 
7048
  RANLIB="$ac_cv_prog_RANLIB"
 
7049
fi
 
7050
 
 
7051
if test -n "$ac_tool_prefix"; then
 
7052
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7053
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7054
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7056
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7058
else
 
7059
  if test -n "$STRIP"; then
 
7060
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7061
else
 
7062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7063
for as_dir in $PATH
 
7064
do
 
7065
  IFS=$as_save_IFS
 
7066
  test -z "$as_dir" && as_dir=.
 
7067
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7068
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7069
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7070
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7071
    break 2
 
7072
  fi
 
7073
done
 
7074
done
 
7075
IFS=$as_save_IFS
 
7076
 
 
7077
fi
 
7078
fi
 
7079
STRIP=$ac_cv_prog_STRIP
 
7080
if test -n "$STRIP"; then
 
7081
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7082
echo "${ECHO_T}$STRIP" >&6; }
 
7083
else
 
7084
  { echo "$as_me:$LINENO: result: no" >&5
 
7085
echo "${ECHO_T}no" >&6; }
 
7086
fi
 
7087
 
 
7088
 
 
7089
fi
 
7090
if test -z "$ac_cv_prog_STRIP"; then
 
7091
  ac_ct_STRIP=$STRIP
 
7092
  # Extract the first word of "strip", so it can be a program name with args.
 
7093
set dummy strip; ac_word=$2
 
7094
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7096
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7098
else
 
7099
  if test -n "$ac_ct_STRIP"; then
 
7100
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7101
else
 
7102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7103
for as_dir in $PATH
 
7104
do
 
7105
  IFS=$as_save_IFS
 
7106
  test -z "$as_dir" && as_dir=.
 
7107
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7108
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7109
    ac_cv_prog_ac_ct_STRIP="strip"
 
7110
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7111
    break 2
 
7112
  fi
 
7113
done
 
7114
done
 
7115
IFS=$as_save_IFS
 
7116
 
 
7117
fi
 
7118
fi
 
7119
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7120
if test -n "$ac_ct_STRIP"; then
 
7121
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7122
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
7123
else
 
7124
  { echo "$as_me:$LINENO: result: no" >&5
 
7125
echo "${ECHO_T}no" >&6; }
 
7126
fi
 
7127
 
 
7128
  if test "x$ac_ct_STRIP" = x; then
 
7129
    STRIP=":"
 
7130
  else
 
7131
    case $cross_compiling:$ac_tool_warned in
 
7132
yes:)
 
7133
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7134
whose name does not start with the host triplet.  If you think this
 
7135
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7136
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7137
whose name does not start with the host triplet.  If you think this
 
7138
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7139
ac_tool_warned=yes ;;
 
7140
esac
 
7141
    STRIP=$ac_ct_STRIP
 
7142
  fi
 
7143
else
 
7144
  STRIP="$ac_cv_prog_STRIP"
 
7145
fi
 
7146
 
 
7147
 
 
7148
old_CC="$CC"
 
7149
old_CFLAGS="$CFLAGS"
 
7150
 
 
7151
# Set sane defaults for various variables
 
7152
test -z "$AR" && AR=ar
 
7153
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7154
test -z "$AS" && AS=as
 
7155
test -z "$CC" && CC=cc
 
7156
test -z "$LTCC" && LTCC=$CC
 
7157
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7158
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7159
test -z "$LD" && LD=ld
 
7160
test -z "$LN_S" && LN_S="ln -s"
 
7161
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7162
test -z "$NM" && NM=nm
 
7163
test -z "$SED" && SED=sed
 
7164
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7165
test -z "$RANLIB" && RANLIB=:
 
7166
test -z "$STRIP" && STRIP=:
 
7167
test -z "$ac_objext" && ac_objext=o
 
7168
 
 
7169
# Determine commands to create old-style static archives.
 
7170
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7171
old_postinstall_cmds='chmod 644 $oldlib'
 
7172
old_postuninstall_cmds=
 
7173
 
 
7174
if test -n "$RANLIB"; then
 
7175
  case $host_os in
 
7176
  openbsd*)
 
7177
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7178
    ;;
 
7179
  *)
 
7180
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7181
    ;;
 
7182
  esac
 
7183
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7184
fi
 
7185
 
 
7186
for cc_temp in $compiler""; do
 
7187
  case $cc_temp in
 
7188
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7189
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7190
    \-*) ;;
 
7191
    *) break;;
 
7192
  esac
 
7193
done
 
7194
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7195
 
 
7196
 
 
7197
# Only perform the check for file, if the check method requires it
 
7198
case $deplibs_check_method in
 
7199
file_magic*)
 
7200
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7201
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7202
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7203
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7204
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7205
else
 
7206
  case $MAGIC_CMD in
 
7207
[\\/*] |  ?:[\\/]*)
 
7208
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7209
  ;;
 
7210
*)
 
7211
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7212
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7213
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7214
  for ac_dir in $ac_dummy; do
 
7215
    IFS="$lt_save_ifs"
 
7216
    test -z "$ac_dir" && ac_dir=.
 
7217
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7218
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7219
      if test -n "$file_magic_test_file"; then
 
7220
        case $deplibs_check_method in
 
7221
        "file_magic "*)
 
7222
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7223
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7224
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7225
            $EGREP "$file_magic_regex" > /dev/null; then
 
7226
            :
 
7227
          else
 
7228
            cat <<EOF 1>&2
 
7229
 
 
7230
*** Warning: the command libtool uses to detect shared libraries,
 
7231
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7232
*** The result is that libtool may fail to recognize shared libraries
 
7233
*** as such.  This will affect the creation of libtool libraries that
 
7234
*** depend on shared libraries, but programs linked with such libtool
 
7235
*** libraries will work regardless of this problem.  Nevertheless, you
 
7236
*** may want to report the problem to your system manager and/or to
 
7237
*** bug-libtool@gnu.org
 
7238
 
 
7239
EOF
 
7240
          fi ;;
 
7241
        esac
 
7242
      fi
 
7243
      break
 
7244
    fi
 
7245
  done
 
7246
  IFS="$lt_save_ifs"
 
7247
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7248
  ;;
 
7249
esac
 
7250
fi
 
7251
 
 
7252
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7253
if test -n "$MAGIC_CMD"; then
 
7254
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7255
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7256
else
 
7257
  { echo "$as_me:$LINENO: result: no" >&5
 
7258
echo "${ECHO_T}no" >&6; }
 
7259
fi
 
7260
 
 
7261
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7262
  if test -n "$ac_tool_prefix"; then
 
7263
    { echo "$as_me:$LINENO: checking for file" >&5
 
7264
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7265
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7267
else
 
7268
  case $MAGIC_CMD in
 
7269
[\\/*] |  ?:[\\/]*)
 
7270
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7271
  ;;
 
7272
*)
 
7273
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7274
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7275
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7276
  for ac_dir in $ac_dummy; do
 
7277
    IFS="$lt_save_ifs"
 
7278
    test -z "$ac_dir" && ac_dir=.
 
7279
    if test -f $ac_dir/file; then
 
7280
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7281
      if test -n "$file_magic_test_file"; then
 
7282
        case $deplibs_check_method in
 
7283
        "file_magic "*)
 
7284
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7285
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7286
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7287
            $EGREP "$file_magic_regex" > /dev/null; then
 
7288
            :
 
7289
          else
 
7290
            cat <<EOF 1>&2
 
7291
 
 
7292
*** Warning: the command libtool uses to detect shared libraries,
 
7293
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7294
*** The result is that libtool may fail to recognize shared libraries
 
7295
*** as such.  This will affect the creation of libtool libraries that
 
7296
*** depend on shared libraries, but programs linked with such libtool
 
7297
*** libraries will work regardless of this problem.  Nevertheless, you
 
7298
*** may want to report the problem to your system manager and/or to
 
7299
*** bug-libtool@gnu.org
 
7300
 
 
7301
EOF
 
7302
          fi ;;
 
7303
        esac
 
7304
      fi
 
7305
      break
 
7306
    fi
 
7307
  done
 
7308
  IFS="$lt_save_ifs"
 
7309
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7310
  ;;
 
7311
esac
 
7312
fi
 
7313
 
 
7314
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7315
if test -n "$MAGIC_CMD"; then
 
7316
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7317
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7318
else
 
7319
  { echo "$as_me:$LINENO: result: no" >&5
 
7320
echo "${ECHO_T}no" >&6; }
 
7321
fi
 
7322
 
 
7323
  else
 
7324
    MAGIC_CMD=:
 
7325
  fi
 
7326
fi
 
7327
 
 
7328
  fi
 
7329
  ;;
 
7330
esac
 
7331
 
 
7332
enable_dlopen=no
 
7333
enable_win32_dll=no
 
7334
 
 
7335
# Check whether --enable-libtool-lock was given.
 
7336
if test "${enable_libtool_lock+set}" = set; then
 
7337
  enableval=$enable_libtool_lock;
 
7338
fi
 
7339
 
 
7340
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7341
 
 
7342
 
 
7343
# Check whether --with-pic was given.
 
7344
if test "${with_pic+set}" = set; then
 
7345
  withval=$with_pic; pic_mode="$withval"
 
7346
else
 
7347
  pic_mode=default
 
7348
fi
 
7349
 
 
7350
test -z "$pic_mode" && pic_mode=default
 
7351
 
 
7352
# Use C for the default configuration in the libtool script
 
7353
tagname=
 
7354
lt_save_CC="$CC"
 
7355
ac_ext=c
 
7356
ac_cpp='$CPP $CPPFLAGS'
 
7357
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7358
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7359
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7360
 
 
7361
 
 
7362
# Source file extension for C test sources.
 
7363
ac_ext=c
 
7364
 
 
7365
# Object file extension for compiled C test sources.
 
7366
objext=o
 
7367
objext=$objext
 
7368
 
 
7369
# Code to be used in simple compile tests
 
7370
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7371
 
 
7372
# Code to be used in simple link tests
 
7373
lt_simple_link_test_code='int main(){return(0);}\n'
 
7374
 
 
7375
 
 
7376
# If no C compiler was specified, use CC.
 
7377
LTCC=${LTCC-"$CC"}
 
7378
 
 
7379
# If no C compiler flags were specified, use CFLAGS.
 
7380
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7381
 
 
7382
# Allow CC to be a program name with arguments.
 
7383
compiler=$CC
 
7384
 
 
7385
 
 
7386
# save warnings/boilerplate of simple test code
 
7387
ac_outfile=conftest.$ac_objext
 
7388
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7389
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7390
_lt_compiler_boilerplate=`cat conftest.err`
 
7391
$rm conftest*
 
7392
 
 
7393
ac_outfile=conftest.$ac_objext
 
7394
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7395
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7396
_lt_linker_boilerplate=`cat conftest.err`
 
7397
$rm conftest*
 
7398
 
 
7399
 
 
7400
 
 
7401
lt_prog_compiler_no_builtin_flag=
 
7402
 
 
7403
if test "$GCC" = yes; then
 
7404
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7405
 
 
7406
 
 
7407
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7408
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7409
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7411
else
 
7412
  lt_cv_prog_compiler_rtti_exceptions=no
 
7413
  ac_outfile=conftest.$ac_objext
 
7414
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7415
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7416
   # Insert the option either (1) after the last *FLAGS variable, or
 
7417
   # (2) before a word containing "conftest.", or (3) at the end.
 
7418
   # Note that $ac_compile itself does not contain backslashes and begins
 
7419
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7420
   # The option is referenced via a variable to avoid confusing sed.
 
7421
   lt_compile=`echo "$ac_compile" | $SED \
 
7422
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7423
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7424
   -e 's:$: $lt_compiler_flag:'`
 
7425
   (eval echo "\"\$as_me:7425: $lt_compile\"" >&5)
 
7426
   (eval "$lt_compile" 2>conftest.err)
 
7427
   ac_status=$?
 
7428
   cat conftest.err >&5
 
7429
   echo "$as_me:7429: \$? = $ac_status" >&5
 
7430
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7431
     # The compiler can only warn and ignore the option if not recognized
 
7432
     # So say no if there are warnings other than the usual output.
 
7433
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7434
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7435
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7436
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7437
     fi
 
7438
   fi
 
7439
   $rm conftest*
 
7440
 
 
7441
fi
 
7442
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7443
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7444
 
 
7445
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7446
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7447
else
 
7448
    :
 
7449
fi
 
7450
 
 
7451
fi
 
7452
 
 
7453
lt_prog_compiler_wl=
 
7454
lt_prog_compiler_pic=
 
7455
lt_prog_compiler_static=
 
7456
 
 
7457
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7458
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7459
 
 
7460
  if test "$GCC" = yes; then
 
7461
    lt_prog_compiler_wl='-Wl,'
 
7462
    lt_prog_compiler_static='-static'
 
7463
 
 
7464
    case $host_os in
 
7465
      aix*)
 
7466
      # All AIX code is PIC.
 
7467
      if test "$host_cpu" = ia64; then
 
7468
        # AIX 5 now supports IA64 processor
 
7469
        lt_prog_compiler_static='-Bstatic'
 
7470
      fi
 
7471
      ;;
 
7472
 
 
7473
    amigaos*)
 
7474
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7475
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7476
      # like `-m68040'.
 
7477
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7478
      ;;
 
7479
 
 
7480
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7481
      # PIC is the default for these OSes.
 
7482
      ;;
 
7483
 
 
7484
    mingw* | pw32* | os2*)
 
7485
      # This hack is so that the source file can tell whether it is being
 
7486
      # built for inclusion in a dll (and should export symbols for example).
 
7487
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7488
      ;;
 
7489
 
 
7490
    darwin* | rhapsody*)
 
7491
      # PIC is the default on this platform
 
7492
      # Common symbols not allowed in MH_DYLIB files
 
7493
      lt_prog_compiler_pic='-fno-common'
 
7494
      ;;
 
7495
 
 
7496
    interix3*)
 
7497
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7498
      # Instead, we relocate shared libraries at runtime.
 
7499
      ;;
 
7500
 
 
7501
    msdosdjgpp*)
 
7502
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7503
      # on systems that don't support them.
 
7504
      lt_prog_compiler_can_build_shared=no
 
7505
      enable_shared=no
 
7506
      ;;
 
7507
 
 
7508
    sysv4*MP*)
 
7509
      if test -d /usr/nec; then
 
7510
        lt_prog_compiler_pic=-Kconform_pic
 
7511
      fi
 
7512
      ;;
 
7513
 
 
7514
    hpux*)
 
7515
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7516
      # not for PA HP-UX.
 
7517
      case $host_cpu in
 
7518
      hppa*64*|ia64*)
 
7519
        # +Z the default
 
7520
        ;;
 
7521
      *)
 
7522
        lt_prog_compiler_pic='-fPIC'
 
7523
        ;;
 
7524
      esac
 
7525
      ;;
 
7526
 
 
7527
    *)
 
7528
      lt_prog_compiler_pic='-fPIC'
 
7529
      ;;
 
7530
    esac
 
7531
  else
 
7532
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7533
    case $host_os in
 
7534
    aix*)
 
7535
      lt_prog_compiler_wl='-Wl,'
 
7536
      if test "$host_cpu" = ia64; then
 
7537
        # AIX 5 now supports IA64 processor
 
7538
        lt_prog_compiler_static='-Bstatic'
 
7539
      else
 
7540
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7541
      fi
 
7542
      ;;
 
7543
      darwin*)
 
7544
        # PIC is the default on this platform
 
7545
        # Common symbols not allowed in MH_DYLIB files
 
7546
       case $cc_basename in
 
7547
         xlc*)
 
7548
         lt_prog_compiler_pic='-qnocommon'
 
7549
         lt_prog_compiler_wl='-Wl,'
 
7550
         ;;
 
7551
       esac
 
7552
       ;;
 
7553
 
 
7554
    mingw* | pw32* | os2*)
 
7555
      # This hack is so that the source file can tell whether it is being
 
7556
      # built for inclusion in a dll (and should export symbols for example).
 
7557
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7558
      ;;
 
7559
 
 
7560
    hpux9* | hpux10* | hpux11*)
 
7561
      lt_prog_compiler_wl='-Wl,'
 
7562
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7563
      # not for PA HP-UX.
 
7564
      case $host_cpu in
 
7565
      hppa*64*|ia64*)
 
7566
        # +Z the default
 
7567
        ;;
 
7568
      *)
 
7569
        lt_prog_compiler_pic='+Z'
 
7570
        ;;
 
7571
      esac
 
7572
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7573
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7574
      ;;
 
7575
 
 
7576
    irix5* | irix6* | nonstopux*)
 
7577
      lt_prog_compiler_wl='-Wl,'
 
7578
      # PIC (with -KPIC) is the default.
 
7579
      lt_prog_compiler_static='-non_shared'
 
7580
      ;;
 
7581
 
 
7582
    newsos6)
 
7583
      lt_prog_compiler_pic='-KPIC'
 
7584
      lt_prog_compiler_static='-Bstatic'
 
7585
      ;;
 
7586
 
 
7587
    linux*)
 
7588
      case $cc_basename in
 
7589
      icc* | ecc*)
 
7590
        lt_prog_compiler_wl='-Wl,'
 
7591
        lt_prog_compiler_pic='-KPIC'
 
7592
        lt_prog_compiler_static='-static'
 
7593
        ;;
 
7594
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7595
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7596
        # which looks to be a dead project)
 
7597
        lt_prog_compiler_wl='-Wl,'
 
7598
        lt_prog_compiler_pic='-fpic'
 
7599
        lt_prog_compiler_static='-Bstatic'
 
7600
        ;;
 
7601
      ccc*)
 
7602
        lt_prog_compiler_wl='-Wl,'
 
7603
        # All Alpha code is PIC.
 
7604
        lt_prog_compiler_static='-non_shared'
 
7605
        ;;
 
7606
      esac
 
7607
      ;;
 
7608
 
 
7609
    osf3* | osf4* | osf5*)
 
7610
      lt_prog_compiler_wl='-Wl,'
 
7611
      # All OSF/1 code is PIC.
 
7612
      lt_prog_compiler_static='-non_shared'
 
7613
      ;;
 
7614
 
 
7615
    solaris*)
 
7616
      lt_prog_compiler_pic='-KPIC'
 
7617
      lt_prog_compiler_static='-Bstatic'
 
7618
      case $cc_basename in
 
7619
      f77* | f90* | f95*)
 
7620
        lt_prog_compiler_wl='-Qoption ld ';;
 
7621
      *)
 
7622
        lt_prog_compiler_wl='-Wl,';;
 
7623
      esac
 
7624
      ;;
 
7625
 
 
7626
    sunos4*)
 
7627
      lt_prog_compiler_wl='-Qoption ld '
 
7628
      lt_prog_compiler_pic='-PIC'
 
7629
      lt_prog_compiler_static='-Bstatic'
 
7630
      ;;
 
7631
 
 
7632
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7633
      lt_prog_compiler_wl='-Wl,'
 
7634
      lt_prog_compiler_pic='-KPIC'
 
7635
      lt_prog_compiler_static='-Bstatic'
 
7636
      ;;
 
7637
 
 
7638
    sysv4*MP*)
 
7639
      if test -d /usr/nec ;then
 
7640
        lt_prog_compiler_pic='-Kconform_pic'
 
7641
        lt_prog_compiler_static='-Bstatic'
 
7642
      fi
 
7643
      ;;
 
7644
 
 
7645
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7646
      lt_prog_compiler_wl='-Wl,'
 
7647
      lt_prog_compiler_pic='-KPIC'
 
7648
      lt_prog_compiler_static='-Bstatic'
 
7649
      ;;
 
7650
 
 
7651
    unicos*)
 
7652
      lt_prog_compiler_wl='-Wl,'
 
7653
      lt_prog_compiler_can_build_shared=no
 
7654
      ;;
 
7655
 
 
7656
    uts4*)
 
7657
      lt_prog_compiler_pic='-pic'
 
7658
      lt_prog_compiler_static='-Bstatic'
 
7659
      ;;
 
7660
 
 
7661
    *)
 
7662
      lt_prog_compiler_can_build_shared=no
 
7663
      ;;
 
7664
    esac
 
7665
  fi
 
7666
 
 
7667
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7668
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7669
 
 
7670
#
 
7671
# Check to make sure the PIC flag actually works.
 
7672
#
 
7673
if test -n "$lt_prog_compiler_pic"; then
 
7674
 
 
7675
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7676
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7677
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7679
else
 
7680
  lt_prog_compiler_pic_works=no
 
7681
  ac_outfile=conftest.$ac_objext
 
7682
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7683
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7684
   # Insert the option either (1) after the last *FLAGS variable, or
 
7685
   # (2) before a word containing "conftest.", or (3) at the end.
 
7686
   # Note that $ac_compile itself does not contain backslashes and begins
 
7687
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7688
   # The option is referenced via a variable to avoid confusing sed.
 
7689
   lt_compile=`echo "$ac_compile" | $SED \
 
7690
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7691
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7692
   -e 's:$: $lt_compiler_flag:'`
 
7693
   (eval echo "\"\$as_me:7693: $lt_compile\"" >&5)
 
7694
   (eval "$lt_compile" 2>conftest.err)
 
7695
   ac_status=$?
 
7696
   cat conftest.err >&5
 
7697
   echo "$as_me:7697: \$? = $ac_status" >&5
 
7698
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7699
     # The compiler can only warn and ignore the option if not recognized
 
7700
     # So say no if there are warnings other than the usual output.
 
7701
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7702
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7703
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7704
       lt_prog_compiler_pic_works=yes
 
7705
     fi
 
7706
   fi
 
7707
   $rm conftest*
 
7708
 
 
7709
fi
 
7710
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7711
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7712
 
 
7713
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7714
    case $lt_prog_compiler_pic in
 
7715
     "" | " "*) ;;
 
7716
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7717
     esac
 
7718
else
 
7719
    lt_prog_compiler_pic=
 
7720
     lt_prog_compiler_can_build_shared=no
 
7721
fi
 
7722
 
 
7723
fi
 
7724
case $host_os in
 
7725
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7726
  *djgpp*)
 
7727
    lt_prog_compiler_pic=
 
7728
    ;;
 
7729
  *)
 
7730
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7731
    ;;
 
7732
esac
 
7733
 
 
7734
#
 
7735
# Check to make sure the static flag actually works.
 
7736
#
 
7737
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7738
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7739
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7740
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7742
else
 
7743
  lt_prog_compiler_static_works=no
 
7744
   save_LDFLAGS="$LDFLAGS"
 
7745
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7746
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7747
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7748
     # The linker can only warn and ignore the option if not recognized
 
7749
     # So say no if there are warnings
 
7750
     if test -s conftest.err; then
 
7751
       # Append any errors to the config.log.
 
7752
       cat conftest.err 1>&5
 
7753
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7754
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7755
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7756
         lt_prog_compiler_static_works=yes
 
7757
       fi
 
7758
     else
 
7759
       lt_prog_compiler_static_works=yes
 
7760
     fi
 
7761
   fi
 
7762
   $rm conftest*
 
7763
   LDFLAGS="$save_LDFLAGS"
 
7764
 
 
7765
fi
 
7766
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7767
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7768
 
 
7769
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7770
    :
 
7771
else
 
7772
    lt_prog_compiler_static=
 
7773
fi
 
7774
 
 
7775
 
 
7776
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7777
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7778
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7780
else
 
7781
  lt_cv_prog_compiler_c_o=no
 
7782
   $rm -r conftest 2>/dev/null
 
7783
   mkdir conftest
 
7784
   cd conftest
 
7785
   mkdir out
 
7786
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7787
 
 
7788
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7789
   # Insert the option either (1) after the last *FLAGS variable, or
 
7790
   # (2) before a word containing "conftest.", or (3) at the end.
 
7791
   # Note that $ac_compile itself does not contain backslashes and begins
 
7792
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7793
   lt_compile=`echo "$ac_compile" | $SED \
 
7794
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7795
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7796
   -e 's:$: $lt_compiler_flag:'`
 
7797
   (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
 
7798
   (eval "$lt_compile" 2>out/conftest.err)
 
7799
   ac_status=$?
 
7800
   cat out/conftest.err >&5
 
7801
   echo "$as_me:7801: \$? = $ac_status" >&5
 
7802
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7803
   then
 
7804
     # The compiler can only warn and ignore the option if not recognized
 
7805
     # So say no if there are warnings
 
7806
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7807
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7808
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7809
       lt_cv_prog_compiler_c_o=yes
 
7810
     fi
 
7811
   fi
 
7812
   chmod u+w . 2>&5
 
7813
   $rm conftest*
 
7814
   # SGI C++ compiler will create directory out/ii_files/ for
 
7815
   # template instantiation
 
7816
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7817
   $rm out/* && rmdir out
 
7818
   cd ..
 
7819
   rmdir conftest
 
7820
   $rm conftest*
 
7821
 
 
7822
fi
 
7823
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7824
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7825
 
 
7826
 
 
7827
hard_links="nottested"
 
7828
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7829
  # do not overwrite the value of need_locks provided by the user
 
7830
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7831
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7832
  hard_links=yes
 
7833
  $rm conftest*
 
7834
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7835
  touch conftest.a
 
7836
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7837
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7838
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7839
echo "${ECHO_T}$hard_links" >&6; }
 
7840
  if test "$hard_links" = no; then
 
7841
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7842
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7843
    need_locks=warn
 
7844
  fi
 
7845
else
 
7846
  need_locks=no
 
7847
fi
 
7848
 
 
7849
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7850
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
7851
 
 
7852
  runpath_var=
 
7853
  allow_undefined_flag=
 
7854
  enable_shared_with_static_runtimes=no
 
7855
  archive_cmds=
 
7856
  archive_expsym_cmds=
 
7857
  old_archive_From_new_cmds=
 
7858
  old_archive_from_expsyms_cmds=
 
7859
  export_dynamic_flag_spec=
 
7860
  whole_archive_flag_spec=
 
7861
  thread_safe_flag_spec=
 
7862
  hardcode_libdir_flag_spec=
 
7863
  hardcode_libdir_flag_spec_ld=
 
7864
  hardcode_libdir_separator=
 
7865
  hardcode_direct=no
 
7866
  hardcode_minus_L=no
 
7867
  hardcode_shlibpath_var=unsupported
 
7868
  link_all_deplibs=unknown
 
7869
  hardcode_automatic=no
 
7870
  module_cmds=
 
7871
  module_expsym_cmds=
 
7872
  always_export_symbols=no
 
7873
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7874
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7875
  # included in the symbol list
 
7876
  include_expsyms=
 
7877
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7878
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7879
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7880
  # as well as any symbol that contains `d'.
 
7881
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7882
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7883
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7884
  # the symbol is explicitly referenced.  Since portable code cannot
 
7885
  # rely on this symbol name, it's probably fine to never include it in
 
7886
  # preloaded symbol tables.
 
7887
  extract_expsyms_cmds=
 
7888
  # Just being paranoid about ensuring that cc_basename is set.
 
7889
  for cc_temp in $compiler""; do
 
7890
  case $cc_temp in
 
7891
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7892
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7893
    \-*) ;;
 
7894
    *) break;;
 
7895
  esac
 
7896
done
 
7897
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7898
 
 
7899
  case $host_os in
 
7900
  cygwin* | mingw* | pw32*)
 
7901
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7902
    # When not using gcc, we currently assume that we are using
 
7903
    # Microsoft Visual C++.
 
7904
    if test "$GCC" != yes; then
 
7905
      with_gnu_ld=no
 
7906
    fi
 
7907
    ;;
 
7908
  interix*)
 
7909
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7910
    with_gnu_ld=yes
 
7911
    ;;
 
7912
  openbsd*)
 
7913
    with_gnu_ld=no
 
7914
    ;;
 
7915
  esac
 
7916
 
 
7917
  ld_shlibs=yes
 
7918
  if test "$with_gnu_ld" = yes; then
 
7919
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7920
    wlarc='${wl}'
 
7921
 
 
7922
    # Set some defaults for GNU ld with shared library support. These
 
7923
    # are reset later if shared libraries are not supported. Putting them
 
7924
    # here allows them to be overridden if necessary.
 
7925
    runpath_var=LD_RUN_PATH
 
7926
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7927
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7928
    # ancient GNU ld didn't support --whole-archive et. al.
 
7929
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7930
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7931
      else
 
7932
        whole_archive_flag_spec=
 
7933
    fi
 
7934
    supports_anon_versioning=no
 
7935
    case `$LD -v 2>/dev/null` in
 
7936
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7937
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7938
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7939
      *\ 2.11.*) ;; # other 2.11 versions
 
7940
      *) supports_anon_versioning=yes ;;
 
7941
    esac
 
7942
 
 
7943
    # See if GNU ld supports shared libraries.
 
7944
    case $host_os in
 
7945
    aix3* | aix4* | aix5*)
 
7946
      # On AIX/PPC, the GNU linker is very broken
 
7947
      if test "$host_cpu" != ia64; then
 
7948
        ld_shlibs=no
 
7949
        cat <<EOF 1>&2
 
7950
 
 
7951
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7952
*** to be unable to reliably create shared libraries on AIX.
 
7953
*** Therefore, libtool is disabling shared libraries support.  If you
 
7954
*** really care for shared libraries, you may want to modify your PATH
 
7955
*** so that a non-GNU linker is found, and then restart.
 
7956
 
 
7957
EOF
 
7958
      fi
 
7959
      ;;
 
7960
 
 
7961
    amigaos*)
 
7962
      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)'
 
7963
      hardcode_libdir_flag_spec='-L$libdir'
 
7964
      hardcode_minus_L=yes
 
7965
 
 
7966
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7967
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7968
      # to version 4, is to share data among multiple programs linked
 
7969
      # with the same dynamic library.  Since this doesn't match the
 
7970
      # behavior of shared libraries on other platforms, we can't use
 
7971
      # them.
 
7972
      ld_shlibs=no
 
7973
      ;;
 
7974
 
 
7975
    beos*)
 
7976
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7977
        allow_undefined_flag=unsupported
 
7978
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7979
        # support --undefined.  This deserves some investigation.  FIXME
 
7980
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7981
      else
 
7982
        ld_shlibs=no
 
7983
      fi
 
7984
      ;;
 
7985
 
 
7986
    cygwin* | mingw* | pw32*)
 
7987
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7988
      # as there is no search path for DLLs.
 
7989
      hardcode_libdir_flag_spec='-L$libdir'
 
7990
      allow_undefined_flag=unsupported
 
7991
      always_export_symbols=no
 
7992
      enable_shared_with_static_runtimes=yes
 
7993
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7994
 
 
7995
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7996
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7997
        # If the export-symbols file already is a .def file (1st line
 
7998
        # is EXPORTS), use it as is; otherwise, prepend...
 
7999
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8000
          cp $export_symbols $output_objdir/$soname.def;
 
8001
        else
 
8002
          echo EXPORTS > $output_objdir/$soname.def;
 
8003
          cat $export_symbols >> $output_objdir/$soname.def;
 
8004
        fi~
 
8005
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8006
      else
 
8007
        ld_shlibs=no
 
8008
      fi
 
8009
      ;;
 
8010
 
 
8011
    interix3*)
 
8012
      hardcode_direct=no
 
8013
      hardcode_shlibpath_var=no
 
8014
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8015
      export_dynamic_flag_spec='${wl}-E'
 
8016
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8017
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8018
      # default) and relocated if they conflict, which is a slow very memory
 
8019
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8020
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8021
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8022
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8023
      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'
 
8024
      ;;
 
8025
 
 
8026
    linux*)
 
8027
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8028
        tmp_addflag=
 
8029
        case $cc_basename,$host_cpu in
 
8030
        pgcc*)                          # Portland Group C compiler
 
8031
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8032
          tmp_addflag=' $pic_flag'
 
8033
          ;;
 
8034
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8035
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8036
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8037
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8038
          tmp_addflag=' -i_dynamic' ;;
 
8039
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8040
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8041
        ifc* | ifort*)                  # Intel Fortran compiler
 
8042
          tmp_addflag=' -nofor_main' ;;
 
8043
        esac
 
8044
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8045
 
 
8046
        if test $supports_anon_versioning = yes; then
 
8047
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8048
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8049
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8050
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8051
        fi
 
8052
      else
 
8053
        ld_shlibs=no
 
8054
      fi
 
8055
      ;;
 
8056
 
 
8057
    netbsd*)
 
8058
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8059
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8060
        wlarc=
 
8061
      else
 
8062
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8063
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8064
      fi
 
8065
      ;;
 
8066
 
 
8067
    solaris*)
 
8068
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8069
        ld_shlibs=no
 
8070
        cat <<EOF 1>&2
 
8071
 
 
8072
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8073
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8074
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8075
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8076
*** your PATH or compiler configuration so that the native linker is
 
8077
*** used, and then restart.
 
8078
 
 
8079
EOF
 
8080
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8081
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8082
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8083
      else
 
8084
        ld_shlibs=no
 
8085
      fi
 
8086
      ;;
 
8087
 
 
8088
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8089
      case `$LD -v 2>&1` in
 
8090
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8091
        ld_shlibs=no
 
8092
        cat <<_LT_EOF 1>&2
 
8093
 
 
8094
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8095
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8096
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8097
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8098
*** your PATH or compiler configuration so that the native linker is
 
8099
*** used, and then restart.
 
8100
 
 
8101
_LT_EOF
 
8102
        ;;
 
8103
        *)
 
8104
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8105
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8106
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8107
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8108
          else
 
8109
            ld_shlibs=no
 
8110
          fi
 
8111
        ;;
 
8112
      esac
 
8113
      ;;
 
8114
 
 
8115
    sunos4*)
 
8116
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8117
      wlarc=
 
8118
      hardcode_direct=yes
 
8119
      hardcode_shlibpath_var=no
 
8120
      ;;
 
8121
 
 
8122
    *)
 
8123
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8124
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8125
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8126
      else
 
8127
        ld_shlibs=no
 
8128
      fi
 
8129
      ;;
 
8130
    esac
 
8131
 
 
8132
    if test "$ld_shlibs" = no; then
 
8133
      runpath_var=
 
8134
      hardcode_libdir_flag_spec=
 
8135
      export_dynamic_flag_spec=
 
8136
      whole_archive_flag_spec=
 
8137
    fi
 
8138
  else
 
8139
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8140
    case $host_os in
 
8141
    aix3*)
 
8142
      allow_undefined_flag=unsupported
 
8143
      always_export_symbols=yes
 
8144
      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'
 
8145
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8146
      # are no directories specified by -L.
 
8147
      hardcode_minus_L=yes
 
8148
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8149
        # Neither direct hardcoding nor static linking is supported with a
 
8150
        # broken collect2.
 
8151
        hardcode_direct=unsupported
 
8152
      fi
 
8153
      ;;
 
8154
 
 
8155
    aix4* | aix5*)
 
8156
      if test "$host_cpu" = ia64; then
 
8157
        # On IA64, the linker does run time linking by default, so we don't
 
8158
        # have to do anything special.
 
8159
        aix_use_runtimelinking=no
 
8160
        exp_sym_flag='-Bexport'
 
8161
        no_entry_flag=""
 
8162
      else
 
8163
        # If we're using GNU nm, then we don't want the "-C" option.
 
8164
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8165
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8166
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8167
        else
 
8168
          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'
 
8169
        fi
 
8170
        aix_use_runtimelinking=no
 
8171
 
 
8172
        # Test if we are trying to use run time linking or normal
 
8173
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8174
        # need to do runtime linking.
 
8175
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8176
          for ld_flag in $LDFLAGS; do
 
8177
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8178
            aix_use_runtimelinking=yes
 
8179
            break
 
8180
          fi
 
8181
          done
 
8182
          ;;
 
8183
        esac
 
8184
 
 
8185
        exp_sym_flag='-bexport'
 
8186
        no_entry_flag='-bnoentry'
 
8187
      fi
 
8188
 
 
8189
      # When large executables or shared objects are built, AIX ld can
 
8190
      # have problems creating the table of contents.  If linking a library
 
8191
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8192
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8193
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8194
 
 
8195
      archive_cmds=''
 
8196
      hardcode_direct=yes
 
8197
      hardcode_libdir_separator=':'
 
8198
      link_all_deplibs=yes
 
8199
 
 
8200
      if test "$GCC" = yes; then
 
8201
        case $host_os in aix4.[012]|aix4.[012].*)
 
8202
        # We only want to do this on AIX 4.2 and lower, the check
 
8203
        # below for broken collect2 doesn't work under 4.3+
 
8204
          collect2name=`${CC} -print-prog-name=collect2`
 
8205
          if test -f "$collect2name" && \
 
8206
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8207
          then
 
8208
          # We have reworked collect2
 
8209
          hardcode_direct=yes
 
8210
          else
 
8211
          # We have old collect2
 
8212
          hardcode_direct=unsupported
 
8213
          # It fails to find uninstalled libraries when the uninstalled
 
8214
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8215
          # to unsupported forces relinking
 
8216
          hardcode_minus_L=yes
 
8217
          hardcode_libdir_flag_spec='-L$libdir'
 
8218
          hardcode_libdir_separator=
 
8219
          fi
 
8220
          ;;
 
8221
        esac
 
8222
        shared_flag='-shared'
 
8223
        if test "$aix_use_runtimelinking" = yes; then
 
8224
          shared_flag="$shared_flag "'${wl}-G'
 
8225
        fi
 
8226
      else
 
8227
        # not using gcc
 
8228
        if test "$host_cpu" = ia64; then
 
8229
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8230
        # chokes on -Wl,-G. The following line is correct:
 
8231
          shared_flag='-G'
 
8232
        else
 
8233
          if test "$aix_use_runtimelinking" = yes; then
 
8234
            shared_flag='${wl}-G'
 
8235
          else
 
8236
            shared_flag='${wl}-bM:SRE'
 
8237
          fi
 
8238
        fi
 
8239
      fi
 
8240
 
 
8241
      # It seems that -bexpall does not export symbols beginning with
 
8242
      # underscore (_), so it is better to generate a list of symbols to export.
 
8243
      always_export_symbols=yes
 
8244
      if test "$aix_use_runtimelinking" = yes; then
 
8245
        # Warning - without using the other runtime loading flags (-brtl),
 
8246
        # -berok will link without error, but may produce a broken library.
 
8247
        allow_undefined_flag='-berok'
 
8248
       # Determine the default libpath from the value encoded in an empty executable.
 
8249
       cat >conftest.$ac_ext <<_ACEOF
 
8250
/* confdefs.h.  */
 
8251
_ACEOF
 
8252
cat confdefs.h >>conftest.$ac_ext
 
8253
cat >>conftest.$ac_ext <<_ACEOF
 
8254
/* end confdefs.h.  */
 
8255
 
 
8256
int
 
8257
main ()
 
8258
{
 
8259
 
 
8260
  ;
 
8261
  return 0;
 
8262
}
 
8263
_ACEOF
 
8264
rm -f conftest.$ac_objext conftest$ac_exeext
 
8265
if { (ac_try="$ac_link"
 
8266
case "(($ac_try" in
 
8267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8268
  *) ac_try_echo=$ac_try;;
 
8269
esac
 
8270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8271
  (eval "$ac_link") 2>conftest.er1
 
8272
  ac_status=$?
 
8273
  grep -v '^ *+' conftest.er1 >conftest.err
 
8274
  rm -f conftest.er1
 
8275
  cat conftest.err >&5
 
8276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8277
  (exit $ac_status); } && {
 
8278
         test -z "$ac_c_werror_flag" ||
 
8279
         test ! -s conftest.err
 
8280
       } && test -s conftest$ac_exeext &&
 
8281
       $as_test_x conftest$ac_exeext; then
 
8282
 
 
8283
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8284
}'`
 
8285
# Check for a 64-bit object if we didn't find anything.
 
8286
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8287
}'`; fi
 
8288
else
 
8289
  echo "$as_me: failed program was:" >&5
 
8290
sed 's/^/| /' conftest.$ac_ext >&5
 
8291
 
 
8292
 
 
8293
fi
 
8294
 
 
8295
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8296
      conftest$ac_exeext conftest.$ac_ext
 
8297
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8298
 
 
8299
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8300
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8301
       else
 
8302
        if test "$host_cpu" = ia64; then
 
8303
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8304
          allow_undefined_flag="-z nodefs"
 
8305
          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"
 
8306
        else
 
8307
         # Determine the default libpath from the value encoded in an empty executable.
 
8308
         cat >conftest.$ac_ext <<_ACEOF
 
8309
/* confdefs.h.  */
 
8310
_ACEOF
 
8311
cat confdefs.h >>conftest.$ac_ext
 
8312
cat >>conftest.$ac_ext <<_ACEOF
 
8313
/* end confdefs.h.  */
 
8314
 
 
8315
int
 
8316
main ()
 
8317
{
 
8318
 
 
8319
  ;
 
8320
  return 0;
 
8321
}
 
8322
_ACEOF
 
8323
rm -f conftest.$ac_objext conftest$ac_exeext
 
8324
if { (ac_try="$ac_link"
 
8325
case "(($ac_try" in
 
8326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8327
  *) ac_try_echo=$ac_try;;
 
8328
esac
 
8329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8330
  (eval "$ac_link") 2>conftest.er1
 
8331
  ac_status=$?
 
8332
  grep -v '^ *+' conftest.er1 >conftest.err
 
8333
  rm -f conftest.er1
 
8334
  cat conftest.err >&5
 
8335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8336
  (exit $ac_status); } && {
 
8337
         test -z "$ac_c_werror_flag" ||
 
8338
         test ! -s conftest.err
 
8339
       } && test -s conftest$ac_exeext &&
 
8340
       $as_test_x conftest$ac_exeext; then
 
8341
 
 
8342
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8343
}'`
 
8344
# Check for a 64-bit object if we didn't find anything.
 
8345
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8346
}'`; fi
 
8347
else
 
8348
  echo "$as_me: failed program was:" >&5
 
8349
sed 's/^/| /' conftest.$ac_ext >&5
 
8350
 
 
8351
 
 
8352
fi
 
8353
 
 
8354
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8355
      conftest$ac_exeext conftest.$ac_ext
 
8356
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8357
 
 
8358
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8359
          # Warning - without using the other run time loading flags,
 
8360
          # -berok will link without error, but may produce a broken library.
 
8361
          no_undefined_flag=' ${wl}-bernotok'
 
8362
          allow_undefined_flag=' ${wl}-berok'
 
8363
          # Exported symbols can be pulled into shared objects from archives
 
8364
          whole_archive_flag_spec='$convenience'
 
8365
          archive_cmds_need_lc=yes
 
8366
          # This is similar to how AIX traditionally builds its shared libraries.
 
8367
          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'
 
8368
        fi
 
8369
      fi
 
8370
      ;;
 
8371
 
 
8372
    amigaos*)
 
8373
      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)'
 
8374
      hardcode_libdir_flag_spec='-L$libdir'
 
8375
      hardcode_minus_L=yes
 
8376
      # see comment about different semantics on the GNU ld section
 
8377
      ld_shlibs=no
 
8378
      ;;
 
8379
 
 
8380
    bsdi[45]*)
 
8381
      export_dynamic_flag_spec=-rdynamic
 
8382
      ;;
 
8383
 
 
8384
    cygwin* | mingw* | pw32*)
 
8385
      # When not using gcc, we currently assume that we are using
 
8386
      # Microsoft Visual C++.
 
8387
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8388
      # no search path for DLLs.
 
8389
      hardcode_libdir_flag_spec=' '
 
8390
      allow_undefined_flag=unsupported
 
8391
      # Tell ltmain to make .lib files, not .a files.
 
8392
      libext=lib
 
8393
      # Tell ltmain to make .dll files, not .so files.
 
8394
      shrext_cmds=".dll"
 
8395
      # FIXME: Setting linknames here is a bad hack.
 
8396
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8397
      # The linker will automatically build a .lib file if we build a DLL.
 
8398
      old_archive_From_new_cmds='true'
 
8399
      # FIXME: Should let the user specify the lib program.
 
8400
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8401
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8402
      enable_shared_with_static_runtimes=yes
 
8403
      ;;
 
8404
 
 
8405
    darwin* | rhapsody*)
 
8406
      case $host_os in
 
8407
        rhapsody* | darwin1.[012])
 
8408
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8409
         ;;
 
8410
       *) # Darwin 1.3 on
 
8411
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8412
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8413
         else
 
8414
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8415
             10.[012])
 
8416
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8417
               ;;
 
8418
             10.*)
 
8419
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8420
               ;;
 
8421
           esac
 
8422
         fi
 
8423
         ;;
 
8424
      esac
 
8425
      archive_cmds_need_lc=no
 
8426
      hardcode_direct=no
 
8427
      hardcode_automatic=yes
 
8428
      hardcode_shlibpath_var=unsupported
 
8429
      whole_archive_flag_spec=''
 
8430
      link_all_deplibs=yes
 
8431
    if test "$GCC" = yes ; then
 
8432
        output_verbose_link_cmd='echo'
 
8433
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8434
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8435
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8436
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8437
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8438
    else
 
8439
      case $cc_basename in
 
8440
        xlc*)
 
8441
         output_verbose_link_cmd='echo'
 
8442
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8443
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8444
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8445
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8446
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8447
          ;;
 
8448
       *)
 
8449
         ld_shlibs=no
 
8450
          ;;
 
8451
      esac
 
8452
    fi
 
8453
      ;;
 
8454
 
 
8455
    dgux*)
 
8456
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8457
      hardcode_libdir_flag_spec='-L$libdir'
 
8458
      hardcode_shlibpath_var=no
 
8459
      ;;
 
8460
 
 
8461
    freebsd1*)
 
8462
      ld_shlibs=no
 
8463
      ;;
 
8464
 
 
8465
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8466
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8467
    # does not break anything, and helps significantly (at the cost of a little
 
8468
    # extra space).
 
8469
    freebsd2.2*)
 
8470
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8471
      hardcode_libdir_flag_spec='-R$libdir'
 
8472
      hardcode_direct=yes
 
8473
      hardcode_shlibpath_var=no
 
8474
      ;;
 
8475
 
 
8476
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8477
    freebsd2*)
 
8478
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8479
      hardcode_direct=yes
 
8480
      hardcode_minus_L=yes
 
8481
      hardcode_shlibpath_var=no
 
8482
      ;;
 
8483
 
 
8484
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8485
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
8486
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8487
      hardcode_libdir_flag_spec='-R$libdir'
 
8488
      hardcode_direct=yes
 
8489
      hardcode_shlibpath_var=no
 
8490
      ;;
 
8491
 
 
8492
    hpux9*)
 
8493
      if test "$GCC" = yes; then
 
8494
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8495
      else
 
8496
        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'
 
8497
      fi
 
8498
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8499
      hardcode_libdir_separator=:
 
8500
      hardcode_direct=yes
 
8501
 
 
8502
      # hardcode_minus_L: Not really in the search PATH,
 
8503
      # but as the default location of the library.
 
8504
      hardcode_minus_L=yes
 
8505
      export_dynamic_flag_spec='${wl}-E'
 
8506
      ;;
 
8507
 
 
8508
    hpux10*)
 
8509
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8510
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8511
      else
 
8512
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8513
      fi
 
8514
      if test "$with_gnu_ld" = no; then
 
8515
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8516
        hardcode_libdir_separator=:
 
8517
 
 
8518
        hardcode_direct=yes
 
8519
        export_dynamic_flag_spec='${wl}-E'
 
8520
 
 
8521
        # hardcode_minus_L: Not really in the search PATH,
 
8522
        # but as the default location of the library.
 
8523
        hardcode_minus_L=yes
 
8524
      fi
 
8525
      ;;
 
8526
 
 
8527
    hpux11*)
 
8528
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8529
        case $host_cpu in
 
8530
        hppa*64*)
 
8531
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8532
          ;;
 
8533
        ia64*)
 
8534
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8535
          ;;
 
8536
        *)
 
8537
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8538
          ;;
 
8539
        esac
 
8540
      else
 
8541
        case $host_cpu in
 
8542
        hppa*64*)
 
8543
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8544
          ;;
 
8545
        ia64*)
 
8546
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8547
          ;;
 
8548
        *)
 
8549
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8550
          ;;
 
8551
        esac
 
8552
      fi
 
8553
      if test "$with_gnu_ld" = no; then
 
8554
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8555
        hardcode_libdir_separator=:
 
8556
 
 
8557
        case $host_cpu in
 
8558
        hppa*64*|ia64*)
 
8559
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8560
          hardcode_direct=no
 
8561
          hardcode_shlibpath_var=no
 
8562
          ;;
 
8563
        *)
 
8564
          hardcode_direct=yes
 
8565
          export_dynamic_flag_spec='${wl}-E'
 
8566
 
 
8567
          # hardcode_minus_L: Not really in the search PATH,
 
8568
          # but as the default location of the library.
 
8569
          hardcode_minus_L=yes
 
8570
          ;;
 
8571
        esac
 
8572
      fi
 
8573
      ;;
 
8574
 
 
8575
    irix5* | irix6* | nonstopux*)
 
8576
      if test "$GCC" = yes; then
 
8577
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8578
      else
 
8579
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8580
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8581
      fi
 
8582
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8583
      hardcode_libdir_separator=:
 
8584
      link_all_deplibs=yes
 
8585
      ;;
 
8586
 
 
8587
    netbsd*)
 
8588
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8589
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8590
      else
 
8591
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8592
      fi
 
8593
      hardcode_libdir_flag_spec='-R$libdir'
 
8594
      hardcode_direct=yes
 
8595
      hardcode_shlibpath_var=no
 
8596
      ;;
 
8597
 
 
8598
    newsos6)
 
8599
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8600
      hardcode_direct=yes
 
8601
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8602
      hardcode_libdir_separator=:
 
8603
      hardcode_shlibpath_var=no
 
8604
      ;;
 
8605
 
 
8606
    openbsd*)
 
8607
      hardcode_direct=yes
 
8608
      hardcode_shlibpath_var=no
 
8609
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8610
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8611
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8612
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8613
        export_dynamic_flag_spec='${wl}-E'
 
8614
      else
 
8615
       case $host_os in
 
8616
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8617
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8618
           hardcode_libdir_flag_spec='-R$libdir'
 
8619
           ;;
 
8620
         *)
 
8621
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8622
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8623
           ;;
 
8624
       esac
 
8625
      fi
 
8626
      ;;
 
8627
 
 
8628
    os2*)
 
8629
      hardcode_libdir_flag_spec='-L$libdir'
 
8630
      hardcode_minus_L=yes
 
8631
      allow_undefined_flag=unsupported
 
8632
      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'
 
8633
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8634
      ;;
 
8635
 
 
8636
    osf3*)
 
8637
      if test "$GCC" = yes; then
 
8638
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8639
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8640
      else
 
8641
        allow_undefined_flag=' -expect_unresolved \*'
 
8642
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8643
      fi
 
8644
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8645
      hardcode_libdir_separator=:
 
8646
      ;;
 
8647
 
 
8648
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8649
      if test "$GCC" = yes; then
 
8650
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8651
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8652
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8653
      else
 
8654
        allow_undefined_flag=' -expect_unresolved \*'
 
8655
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8656
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8657
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
8658
 
 
8659
        # Both c and cxx compiler support -rpath directly
 
8660
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8661
      fi
 
8662
      hardcode_libdir_separator=:
 
8663
      ;;
 
8664
 
 
8665
    solaris*)
 
8666
      no_undefined_flag=' -z text'
 
8667
      if test "$GCC" = yes; then
 
8668
        wlarc='${wl}'
 
8669
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8670
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8671
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8672
      else
 
8673
        wlarc=''
 
8674
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8675
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8676
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8677
      fi
 
8678
      hardcode_libdir_flag_spec='-R$libdir'
 
8679
      hardcode_shlibpath_var=no
 
8680
      case $host_os in
 
8681
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8682
      *)
 
8683
        # The compiler driver will combine linker options so we
 
8684
        # cannot just pass the convience library names through
 
8685
        # without $wl, iff we do not link with $LD.
 
8686
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8687
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8688
        case $wlarc in
 
8689
        '')
 
8690
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8691
        *)
 
8692
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
8693
        esac ;;
 
8694
      esac
 
8695
      link_all_deplibs=yes
 
8696
      ;;
 
8697
 
 
8698
    sunos4*)
 
8699
      if test "x$host_vendor" = xsequent; then
 
8700
        # Use $CC to link under sequent, because it throws in some extra .o
 
8701
        # files that make .init and .fini sections work.
 
8702
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8703
      else
 
8704
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8705
      fi
 
8706
      hardcode_libdir_flag_spec='-L$libdir'
 
8707
      hardcode_direct=yes
 
8708
      hardcode_minus_L=yes
 
8709
      hardcode_shlibpath_var=no
 
8710
      ;;
 
8711
 
 
8712
    sysv4)
 
8713
      case $host_vendor in
 
8714
        sni)
 
8715
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8716
          hardcode_direct=yes # is this really true???
 
8717
        ;;
 
8718
        siemens)
 
8719
          ## LD is ld it makes a PLAMLIB
 
8720
          ## CC just makes a GrossModule.
 
8721
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8722
          reload_cmds='$CC -r -o $output$reload_objs'
 
8723
          hardcode_direct=no
 
8724
        ;;
 
8725
        motorola)
 
8726
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8727
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8728
        ;;
 
8729
      esac
 
8730
      runpath_var='LD_RUN_PATH'
 
8731
      hardcode_shlibpath_var=no
 
8732
      ;;
 
8733
 
 
8734
    sysv4.3*)
 
8735
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8736
      hardcode_shlibpath_var=no
 
8737
      export_dynamic_flag_spec='-Bexport'
 
8738
      ;;
 
8739
 
 
8740
    sysv4*MP*)
 
8741
      if test -d /usr/nec; then
 
8742
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8743
        hardcode_shlibpath_var=no
 
8744
        runpath_var=LD_RUN_PATH
 
8745
        hardcode_runpath_var=yes
 
8746
        ld_shlibs=yes
 
8747
      fi
 
8748
      ;;
 
8749
 
 
8750
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8751
      no_undefined_flag='${wl}-z,text'
 
8752
      archive_cmds_need_lc=no
 
8753
      hardcode_shlibpath_var=no
 
8754
      runpath_var='LD_RUN_PATH'
 
8755
 
 
8756
      if test "$GCC" = yes; then
 
8757
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8758
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8759
      else
 
8760
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8761
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8762
      fi
 
8763
      ;;
 
8764
 
 
8765
    sysv5* | sco3.2v5* | sco5v6*)
 
8766
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8767
      # link with -lc, and that would cause any symbols used from libc to
 
8768
      # always be unresolved, which means just about no library would
 
8769
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8770
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8771
      # as -z defs.
 
8772
      no_undefined_flag='${wl}-z,text'
 
8773
      allow_undefined_flag='${wl}-z,nodefs'
 
8774
      archive_cmds_need_lc=no
 
8775
      hardcode_shlibpath_var=no
 
8776
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8777
      hardcode_libdir_separator=':'
 
8778
      link_all_deplibs=yes
 
8779
      export_dynamic_flag_spec='${wl}-Bexport'
 
8780
      runpath_var='LD_RUN_PATH'
 
8781
 
 
8782
      if test "$GCC" = yes; then
 
8783
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8784
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8785
      else
 
8786
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8787
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8788
      fi
 
8789
      ;;
 
8790
 
 
8791
    uts4*)
 
8792
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8793
      hardcode_libdir_flag_spec='-L$libdir'
 
8794
      hardcode_shlibpath_var=no
 
8795
      ;;
 
8796
 
 
8797
    *)
 
8798
      ld_shlibs=no
 
8799
      ;;
 
8800
    esac
 
8801
  fi
 
8802
 
 
8803
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8804
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8805
test "$ld_shlibs" = no && can_build_shared=no
 
8806
 
 
8807
#
 
8808
# Do we need to explicitly link libc?
 
8809
#
 
8810
case "x$archive_cmds_need_lc" in
 
8811
x|xyes)
 
8812
  # Assume -lc should be added
 
8813
  archive_cmds_need_lc=yes
 
8814
 
 
8815
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8816
    case $archive_cmds in
 
8817
    *'~'*)
 
8818
      # FIXME: we may have to deal with multi-command sequences.
 
8819
      ;;
 
8820
    '$CC '*)
 
8821
      # Test whether the compiler implicitly links with -lc since on some
 
8822
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8823
      # to ld, don't add -lc before -lgcc.
 
8824
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8825
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8826
      $rm conftest*
 
8827
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8828
 
 
8829
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8830
  (eval $ac_compile) 2>&5
 
8831
  ac_status=$?
 
8832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8833
  (exit $ac_status); } 2>conftest.err; then
 
8834
        soname=conftest
 
8835
        lib=conftest
 
8836
        libobjs=conftest.$ac_objext
 
8837
        deplibs=
 
8838
        wl=$lt_prog_compiler_wl
 
8839
        pic_flag=$lt_prog_compiler_pic
 
8840
        compiler_flags=-v
 
8841
        linker_flags=-v
 
8842
        verstring=
 
8843
        output_objdir=.
 
8844
        libname=conftest
 
8845
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8846
        allow_undefined_flag=
 
8847
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8848
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8849
  ac_status=$?
 
8850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8851
  (exit $ac_status); }
 
8852
        then
 
8853
          archive_cmds_need_lc=no
 
8854
        else
 
8855
          archive_cmds_need_lc=yes
 
8856
        fi
 
8857
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8858
      else
 
8859
        cat conftest.err 1>&5
 
8860
      fi
 
8861
      $rm conftest*
 
8862
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8863
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
8864
      ;;
 
8865
    esac
 
8866
  fi
 
8867
  ;;
 
8868
esac
 
8869
 
 
8870
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8871
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8872
library_names_spec=
 
8873
libname_spec='lib$name'
 
8874
soname_spec=
 
8875
shrext_cmds=".so"
 
8876
postinstall_cmds=
 
8877
postuninstall_cmds=
 
8878
finish_cmds=
 
8879
finish_eval=
 
8880
shlibpath_var=
 
8881
shlibpath_overrides_runpath=unknown
 
8882
version_type=none
 
8883
dynamic_linker="$host_os ld.so"
 
8884
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8885
if test "$GCC" = yes; then
 
8886
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8887
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8888
    # if the path contains ";" then we assume it to be the separator
 
8889
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8890
    # assumed that no part of a normal pathname contains ";" but that should
 
8891
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8892
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8893
  else
 
8894
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8895
  fi
 
8896
else
 
8897
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8898
fi
 
8899
need_lib_prefix=unknown
 
8900
hardcode_into_libs=no
 
8901
 
 
8902
# when you set need_version to no, make sure it does not cause -set_version
 
8903
# flags to be left without arguments
 
8904
need_version=unknown
 
8905
 
 
8906
case $host_os in
 
8907
aix3*)
 
8908
  version_type=linux
 
8909
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8910
  shlibpath_var=LIBPATH
 
8911
 
 
8912
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8913
  soname_spec='${libname}${release}${shared_ext}$major'
 
8914
  ;;
 
8915
 
 
8916
aix4* | aix5*)
 
8917
  version_type=linux
 
8918
  need_lib_prefix=no
 
8919
  need_version=no
 
8920
  hardcode_into_libs=yes
 
8921
  if test "$host_cpu" = ia64; then
 
8922
    # AIX 5 supports IA64
 
8923
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8924
    shlibpath_var=LD_LIBRARY_PATH
 
8925
  else
 
8926
    # With GCC up to 2.95.x, collect2 would create an import file
 
8927
    # for dependence libraries.  The import file would start with
 
8928
    # the line `#! .'.  This would cause the generated library to
 
8929
    # depend on `.', always an invalid library.  This was fixed in
 
8930
    # development snapshots of GCC prior to 3.0.
 
8931
    case $host_os in
 
8932
      aix4 | aix4.[01] | aix4.[01].*)
 
8933
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8934
           echo ' yes '
 
8935
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8936
        :
 
8937
      else
 
8938
        can_build_shared=no
 
8939
      fi
 
8940
      ;;
 
8941
    esac
 
8942
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8943
    # soname into executable. Probably we can add versioning support to
 
8944
    # collect2, so additional links can be useful in future.
 
8945
    if test "$aix_use_runtimelinking" = yes; then
 
8946
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8947
      # instead of lib<name>.a to let people know that these are not
 
8948
      # typical AIX shared libraries.
 
8949
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8950
    else
 
8951
      # We preserve .a as extension for shared libraries through AIX4.2
 
8952
      # and later when we are not doing run time linking.
 
8953
      library_names_spec='${libname}${release}.a $libname.a'
 
8954
      soname_spec='${libname}${release}${shared_ext}$major'
 
8955
    fi
 
8956
    shlibpath_var=LIBPATH
 
8957
  fi
 
8958
  ;;
 
8959
 
 
8960
amigaos*)
 
8961
  library_names_spec='$libname.ixlibrary $libname.a'
 
8962
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8963
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
8964
  ;;
 
8965
 
 
8966
beos*)
 
8967
  library_names_spec='${libname}${shared_ext}'
 
8968
  dynamic_linker="$host_os ld.so"
 
8969
  shlibpath_var=LIBRARY_PATH
 
8970
  ;;
 
8971
 
 
8972
bsdi[45]*)
 
8973
  version_type=linux
 
8974
  need_version=no
 
8975
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8976
  soname_spec='${libname}${release}${shared_ext}$major'
 
8977
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8978
  shlibpath_var=LD_LIBRARY_PATH
 
8979
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8980
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8981
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8982
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8983
  # libtool to hard-code these into programs
 
8984
  ;;
 
8985
 
 
8986
cygwin* | mingw* | pw32*)
 
8987
  version_type=windows
 
8988
  shrext_cmds=".dll"
 
8989
  need_version=no
 
8990
  need_lib_prefix=no
 
8991
 
 
8992
  case $GCC,$host_os in
 
8993
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8994
    library_names_spec='$libname.dll.a'
 
8995
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8996
    postinstall_cmds='base_file=`basename \${file}`~
 
8997
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8998
      dldir=$destdir/`dirname \$dlpath`~
 
8999
      test -d \$dldir || mkdir -p \$dldir~
 
9000
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9001
      chmod a+x \$dldir/$dlname'
 
9002
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9003
      dlpath=$dir/\$dldll~
 
9004
       $rm \$dlpath'
 
9005
    shlibpath_overrides_runpath=yes
 
9006
 
 
9007
    case $host_os in
 
9008
    cygwin*)
 
9009
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9010
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9011
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9012
      ;;
 
9013
    mingw*)
 
9014
      # MinGW DLLs use traditional 'lib' prefix
 
9015
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9016
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9017
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9018
        # It is most probably a Windows format PATH printed by
 
9019
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9020
        # path with ; separators, and with drive letters. We can handle the
 
9021
        # drive letters (cygwin fileutils understands them), so leave them,
 
9022
        # especially as we might pass files found there to a mingw objdump,
 
9023
        # which wouldn't understand a cygwinified path. Ahh.
 
9024
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9025
      else
 
9026
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9027
      fi
 
9028
      ;;
 
9029
    pw32*)
 
9030
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9031
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9032
      ;;
 
9033
    esac
 
9034
    ;;
 
9035
 
 
9036
  *)
 
9037
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9038
    ;;
 
9039
  esac
 
9040
  dynamic_linker='Win32 ld.exe'
 
9041
  # FIXME: first we should search . and the directory the executable is in
 
9042
  shlibpath_var=PATH
 
9043
  ;;
 
9044
 
 
9045
darwin* | rhapsody*)
 
9046
  dynamic_linker="$host_os dyld"
 
9047
  version_type=darwin
 
9048
  need_lib_prefix=no
 
9049
  need_version=no
 
9050
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9051
  soname_spec='${libname}${release}${major}$shared_ext'
 
9052
  shlibpath_overrides_runpath=yes
 
9053
  shlibpath_var=DYLD_LIBRARY_PATH
 
9054
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9055
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9056
  if test "$GCC" = yes; then
 
9057
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
9058
  else
 
9059
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9060
  fi
 
9061
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9062
  ;;
 
9063
 
 
9064
dgux*)
 
9065
  version_type=linux
 
9066
  need_lib_prefix=no
 
9067
  need_version=no
 
9068
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9069
  soname_spec='${libname}${release}${shared_ext}$major'
 
9070
  shlibpath_var=LD_LIBRARY_PATH
 
9071
  ;;
 
9072
 
 
9073
freebsd1*)
 
9074
  dynamic_linker=no
 
9075
  ;;
 
9076
 
 
9077
kfreebsd*-gnu)
 
9078
  version_type=linux
 
9079
  need_lib_prefix=no
 
9080
  need_version=no
 
9081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9082
  soname_spec='${libname}${release}${shared_ext}$major'
 
9083
  shlibpath_var=LD_LIBRARY_PATH
 
9084
  shlibpath_overrides_runpath=no
 
9085
  hardcode_into_libs=yes
 
9086
  dynamic_linker='GNU ld.so'
 
9087
  ;;
 
9088
 
 
9089
freebsd* | dragonfly*)
 
9090
  # DragonFly does not have aout.  When/if they implement a new
 
9091
  # versioning mechanism, adjust this.
 
9092
  if test -x /usr/bin/objformat; then
 
9093
    objformat=`/usr/bin/objformat`
 
9094
  else
 
9095
    case $host_os in
 
9096
    freebsd[123]*) objformat=aout ;;
 
9097
    *) objformat=elf ;;
 
9098
    esac
 
9099
  fi
 
9100
  version_type=freebsd-$objformat
 
9101
  case $version_type in
 
9102
    freebsd-elf*)
 
9103
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9104
      need_version=no
 
9105
      need_lib_prefix=no
 
9106
      ;;
 
9107
    freebsd-*)
 
9108
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9109
      need_version=yes
 
9110
      ;;
 
9111
  esac
 
9112
  shlibpath_var=LD_LIBRARY_PATH
 
9113
  case $host_os in
 
9114
  freebsd2*)
 
9115
    shlibpath_overrides_runpath=yes
 
9116
    ;;
 
9117
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9118
    shlibpath_overrides_runpath=yes
 
9119
    hardcode_into_libs=yes
 
9120
    ;;
 
9121
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9122
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9123
    shlibpath_overrides_runpath=no
 
9124
    hardcode_into_libs=yes
 
9125
    ;;
 
9126
  freebsd*) # from 4.6 on
 
9127
    shlibpath_overrides_runpath=yes
 
9128
    hardcode_into_libs=yes
 
9129
    ;;
 
9130
  esac
 
9131
  ;;
 
9132
 
 
9133
gnu*)
 
9134
  version_type=linux
 
9135
  need_lib_prefix=no
 
9136
  need_version=no
 
9137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9138
  soname_spec='${libname}${release}${shared_ext}$major'
 
9139
  shlibpath_var=LD_LIBRARY_PATH
 
9140
  hardcode_into_libs=yes
 
9141
  ;;
 
9142
 
 
9143
hpux9* | hpux10* | hpux11*)
 
9144
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9145
  # link against other versions.
 
9146
  version_type=sunos
 
9147
  need_lib_prefix=no
 
9148
  need_version=no
 
9149
  case $host_cpu in
 
9150
  ia64*)
 
9151
    shrext_cmds='.so'
 
9152
    hardcode_into_libs=yes
 
9153
    dynamic_linker="$host_os dld.so"
 
9154
    shlibpath_var=LD_LIBRARY_PATH
 
9155
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9156
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9157
    soname_spec='${libname}${release}${shared_ext}$major'
 
9158
    if test "X$HPUX_IA64_MODE" = X32; then
 
9159
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9160
    else
 
9161
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9162
    fi
 
9163
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9164
    ;;
 
9165
   hppa*64*)
 
9166
     shrext_cmds='.sl'
 
9167
     hardcode_into_libs=yes
 
9168
     dynamic_linker="$host_os dld.sl"
 
9169
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9170
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9171
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9172
     soname_spec='${libname}${release}${shared_ext}$major'
 
9173
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9174
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9175
     ;;
 
9176
   *)
 
9177
    shrext_cmds='.sl'
 
9178
    dynamic_linker="$host_os dld.sl"
 
9179
    shlibpath_var=SHLIB_PATH
 
9180
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9181
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9182
    soname_spec='${libname}${release}${shared_ext}$major'
 
9183
    ;;
 
9184
  esac
 
9185
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9186
  postinstall_cmds='chmod 555 $lib'
 
9187
  ;;
 
9188
 
 
9189
interix3*)
 
9190
  version_type=linux
 
9191
  need_lib_prefix=no
 
9192
  need_version=no
 
9193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9194
  soname_spec='${libname}${release}${shared_ext}$major'
 
9195
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9196
  shlibpath_var=LD_LIBRARY_PATH
 
9197
  shlibpath_overrides_runpath=no
 
9198
  hardcode_into_libs=yes
 
9199
  ;;
 
9200
 
 
9201
irix5* | irix6* | nonstopux*)
 
9202
  case $host_os in
 
9203
    nonstopux*) version_type=nonstopux ;;
 
9204
    *)
 
9205
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9206
                version_type=linux
 
9207
        else
 
9208
                version_type=irix
 
9209
        fi ;;
 
9210
  esac
 
9211
  need_lib_prefix=no
 
9212
  need_version=no
 
9213
  soname_spec='${libname}${release}${shared_ext}$major'
 
9214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9215
  case $host_os in
 
9216
  irix5* | nonstopux*)
 
9217
    libsuff= shlibsuff=
 
9218
    ;;
 
9219
  *)
 
9220
    case $LD in # libtool.m4 will add one of these switches to LD
 
9221
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9222
      libsuff= shlibsuff= libmagic=32-bit;;
 
9223
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9224
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9225
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9226
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9227
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9228
    esac
 
9229
    ;;
 
9230
  esac
 
9231
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9232
  shlibpath_overrides_runpath=no
 
9233
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9234
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9235
  hardcode_into_libs=yes
 
9236
  ;;
 
9237
 
 
9238
# No shared lib support for Linux oldld, aout, or coff.
 
9239
linux*oldld* | linux*aout* | linux*coff*)
 
9240
  dynamic_linker=no
 
9241
  ;;
 
9242
 
 
9243
# This must be Linux ELF.
 
9244
linux*)
 
9245
  version_type=linux
 
9246
  need_lib_prefix=no
 
9247
  need_version=no
 
9248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9249
  soname_spec='${libname}${release}${shared_ext}$major'
 
9250
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9251
  shlibpath_var=LD_LIBRARY_PATH
 
9252
  shlibpath_overrides_runpath=no
 
9253
  # This implies no fast_install, which is unacceptable.
 
9254
  # Some rework will be needed to allow for fast_install
 
9255
  # before this can be enabled.
 
9256
  hardcode_into_libs=yes
 
9257
 
 
9258
  # find out which ABI we are using
 
9259
  libsuff=
 
9260
  case "$host_cpu" in
 
9261
  x86_64*|s390x*|powerpc64*)
 
9262
    echo '#line 9262 "configure"' > conftest.$ac_ext
 
9263
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9264
  (eval $ac_compile) 2>&5
 
9265
  ac_status=$?
 
9266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9267
  (exit $ac_status); }; then
 
9268
      case `/usr/bin/file conftest.$ac_objext` in
 
9269
      *64-bit*)
 
9270
        libsuff=64
 
9271
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
9272
        ;;
 
9273
      esac
 
9274
    fi
 
9275
    rm -rf conftest*
 
9276
    ;;
 
9277
  esac
 
9278
 
 
9279
  # Append ld.so.conf contents to the search path
 
9280
  if test -f /etc/ld.so.conf; then
 
9281
    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/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9282
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
9283
  fi
 
9284
 
 
9285
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9286
  # powerpc, because MkLinux only supported shared libraries with the
 
9287
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9288
  # most powerpc-linux boxes support dynamic linking these days and
 
9289
  # people can always --disable-shared, the test was removed, and we
 
9290
  # assume the GNU/Linux dynamic linker is in use.
 
9291
  dynamic_linker='GNU/Linux ld.so'
 
9292
  ;;
 
9293
 
 
9294
knetbsd*-gnu)
 
9295
  version_type=linux
 
9296
  need_lib_prefix=no
 
9297
  need_version=no
 
9298
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9299
  soname_spec='${libname}${release}${shared_ext}$major'
 
9300
  shlibpath_var=LD_LIBRARY_PATH
 
9301
  shlibpath_overrides_runpath=no
 
9302
  hardcode_into_libs=yes
 
9303
  dynamic_linker='GNU ld.so'
 
9304
  ;;
 
9305
 
 
9306
netbsd*)
 
9307
  version_type=sunos
 
9308
  need_lib_prefix=no
 
9309
  need_version=no
 
9310
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9311
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9312
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9313
    dynamic_linker='NetBSD (a.out) ld.so'
 
9314
  else
 
9315
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9316
    soname_spec='${libname}${release}${shared_ext}$major'
 
9317
    dynamic_linker='NetBSD ld.elf_so'
 
9318
  fi
 
9319
  shlibpath_var=LD_LIBRARY_PATH
 
9320
  shlibpath_overrides_runpath=yes
 
9321
  hardcode_into_libs=yes
 
9322
  ;;
 
9323
 
 
9324
newsos6)
 
9325
  version_type=linux
 
9326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9327
  shlibpath_var=LD_LIBRARY_PATH
 
9328
  shlibpath_overrides_runpath=yes
 
9329
  ;;
 
9330
 
 
9331
nto-qnx*)
 
9332
  version_type=linux
 
9333
  need_lib_prefix=no
 
9334
  need_version=no
 
9335
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9336
  soname_spec='${libname}${release}${shared_ext}$major'
 
9337
  shlibpath_var=LD_LIBRARY_PATH
 
9338
  shlibpath_overrides_runpath=yes
 
9339
  ;;
 
9340
 
 
9341
openbsd*)
 
9342
  version_type=sunos
 
9343
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9344
  need_lib_prefix=no
 
9345
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9346
  case $host_os in
 
9347
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9348
    *)                         need_version=no  ;;
 
9349
  esac
 
9350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9351
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9352
  shlibpath_var=LD_LIBRARY_PATH
 
9353
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9354
    case $host_os in
 
9355
      openbsd2.[89] | openbsd2.[89].*)
 
9356
        shlibpath_overrides_runpath=no
 
9357
        ;;
 
9358
      *)
 
9359
        shlibpath_overrides_runpath=yes
 
9360
        ;;
 
9361
      esac
 
9362
  else
 
9363
    shlibpath_overrides_runpath=yes
 
9364
  fi
 
9365
  ;;
 
9366
 
 
9367
os2*)
 
9368
  libname_spec='$name'
 
9369
  shrext_cmds=".dll"
 
9370
  need_lib_prefix=no
 
9371
  library_names_spec='$libname${shared_ext} $libname.a'
 
9372
  dynamic_linker='OS/2 ld.exe'
 
9373
  shlibpath_var=LIBPATH
 
9374
  ;;
 
9375
 
 
9376
osf3* | osf4* | osf5*)
 
9377
  version_type=osf
 
9378
  need_lib_prefix=no
 
9379
  need_version=no
 
9380
  soname_spec='${libname}${release}${shared_ext}$major'
 
9381
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9382
  shlibpath_var=LD_LIBRARY_PATH
 
9383
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9384
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9385
  ;;
 
9386
 
 
9387
solaris*)
 
9388
  version_type=linux
 
9389
  need_lib_prefix=no
 
9390
  need_version=no
 
9391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9392
  soname_spec='${libname}${release}${shared_ext}$major'
 
9393
  shlibpath_var=LD_LIBRARY_PATH
 
9394
  shlibpath_overrides_runpath=yes
 
9395
  hardcode_into_libs=yes
 
9396
  # ldd complains unless libraries are executable
 
9397
  postinstall_cmds='chmod +x $lib'
 
9398
  ;;
 
9399
 
 
9400
sunos4*)
 
9401
  version_type=sunos
 
9402
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9403
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9404
  shlibpath_var=LD_LIBRARY_PATH
 
9405
  shlibpath_overrides_runpath=yes
 
9406
  if test "$with_gnu_ld" = yes; then
 
9407
    need_lib_prefix=no
 
9408
  fi
 
9409
  need_version=yes
 
9410
  ;;
 
9411
 
 
9412
sysv4 | sysv4.3*)
 
9413
  version_type=linux
 
9414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9415
  soname_spec='${libname}${release}${shared_ext}$major'
 
9416
  shlibpath_var=LD_LIBRARY_PATH
 
9417
  case $host_vendor in
 
9418
    sni)
 
9419
      shlibpath_overrides_runpath=no
 
9420
      need_lib_prefix=no
 
9421
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9422
      runpath_var=LD_RUN_PATH
 
9423
      ;;
 
9424
    siemens)
 
9425
      need_lib_prefix=no
 
9426
      ;;
 
9427
    motorola)
 
9428
      need_lib_prefix=no
 
9429
      need_version=no
 
9430
      shlibpath_overrides_runpath=no
 
9431
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9432
      ;;
 
9433
  esac
 
9434
  ;;
 
9435
 
 
9436
sysv4*MP*)
 
9437
  if test -d /usr/nec ;then
 
9438
    version_type=linux
 
9439
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9440
    soname_spec='$libname${shared_ext}.$major'
 
9441
    shlibpath_var=LD_LIBRARY_PATH
 
9442
  fi
 
9443
  ;;
 
9444
 
 
9445
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9446
  version_type=freebsd-elf
 
9447
  need_lib_prefix=no
 
9448
  need_version=no
 
9449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9450
  soname_spec='${libname}${release}${shared_ext}$major'
 
9451
  shlibpath_var=LD_LIBRARY_PATH
 
9452
  hardcode_into_libs=yes
 
9453
  if test "$with_gnu_ld" = yes; then
 
9454
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9455
    shlibpath_overrides_runpath=no
 
9456
  else
 
9457
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9458
    shlibpath_overrides_runpath=yes
 
9459
    case $host_os in
 
9460
      sco3.2v5*)
 
9461
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9462
        ;;
 
9463
    esac
 
9464
  fi
 
9465
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9466
  ;;
 
9467
 
 
9468
uts4*)
 
9469
  version_type=linux
 
9470
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9471
  soname_spec='${libname}${release}${shared_ext}$major'
 
9472
  shlibpath_var=LD_LIBRARY_PATH
 
9473
  ;;
 
9474
 
 
9475
*)
 
9476
  dynamic_linker=no
 
9477
  ;;
 
9478
esac
 
9479
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9480
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9481
test "$dynamic_linker" = no && can_build_shared=no
 
9482
 
 
9483
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9484
if test "$GCC" = yes; then
 
9485
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9486
fi
 
9487
 
 
9488
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9489
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9490
hardcode_action=
 
9491
if test -n "$hardcode_libdir_flag_spec" || \
 
9492
   test -n "$runpath_var" || \
 
9493
   test "X$hardcode_automatic" = "Xyes" ; then
 
9494
 
 
9495
  # We can hardcode non-existant directories.
 
9496
  if test "$hardcode_direct" != no &&
 
9497
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9498
     # have to relink, otherwise we might link with an installed library
 
9499
     # when we should be linking with a yet-to-be-installed one
 
9500
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9501
     test "$hardcode_minus_L" != no; then
 
9502
    # Linking always hardcodes the temporary library directory.
 
9503
    hardcode_action=relink
 
9504
  else
 
9505
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9506
    hardcode_action=immediate
 
9507
  fi
 
9508
else
 
9509
  # We cannot hardcode anything, or else we can only hardcode existing
 
9510
  # directories.
 
9511
  hardcode_action=unsupported
 
9512
fi
 
9513
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9514
echo "${ECHO_T}$hardcode_action" >&6; }
 
9515
 
 
9516
if test "$hardcode_action" = relink; then
 
9517
  # Fast installation is not supported
 
9518
  enable_fast_install=no
 
9519
elif test "$shlibpath_overrides_runpath" = yes ||
 
9520
     test "$enable_shared" = no; then
 
9521
  # Fast installation is not necessary
 
9522
  enable_fast_install=needless
 
9523
fi
 
9524
 
 
9525
striplib=
 
9526
old_striplib=
 
9527
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9528
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9529
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9530
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9531
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9532
  { echo "$as_me:$LINENO: result: yes" >&5
 
9533
echo "${ECHO_T}yes" >&6; }
 
9534
else
 
9535
# FIXME - insert some real tests, host_os isn't really good enough
 
9536
  case $host_os in
 
9537
   darwin*)
 
9538
       if test -n "$STRIP" ; then
 
9539
         striplib="$STRIP -x"
 
9540
         { echo "$as_me:$LINENO: result: yes" >&5
 
9541
echo "${ECHO_T}yes" >&6; }
 
9542
       else
 
9543
  { echo "$as_me:$LINENO: result: no" >&5
 
9544
echo "${ECHO_T}no" >&6; }
 
9545
fi
 
9546
       ;;
 
9547
   *)
 
9548
  { echo "$as_me:$LINENO: result: no" >&5
 
9549
echo "${ECHO_T}no" >&6; }
 
9550
    ;;
 
9551
  esac
 
9552
fi
 
9553
 
 
9554
if test "x$enable_dlopen" != xyes; then
 
9555
  enable_dlopen=unknown
 
9556
  enable_dlopen_self=unknown
 
9557
  enable_dlopen_self_static=unknown
 
9558
else
 
9559
  lt_cv_dlopen=no
 
9560
  lt_cv_dlopen_libs=
 
9561
 
 
9562
  case $host_os in
 
9563
  beos*)
 
9564
    lt_cv_dlopen="load_add_on"
 
9565
    lt_cv_dlopen_libs=
 
9566
    lt_cv_dlopen_self=yes
 
9567
    ;;
 
9568
 
 
9569
  mingw* | pw32*)
 
9570
    lt_cv_dlopen="LoadLibrary"
 
9571
    lt_cv_dlopen_libs=
 
9572
   ;;
 
9573
 
 
9574
  cygwin*)
 
9575
    lt_cv_dlopen="dlopen"
 
9576
    lt_cv_dlopen_libs=
 
9577
   ;;
 
9578
 
 
9579
  darwin*)
 
9580
  # if libdl is installed we need to link against it
 
9581
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9582
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9583
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9585
else
 
9586
  ac_check_lib_save_LIBS=$LIBS
 
9587
LIBS="-ldl  $LIBS"
 
9588
cat >conftest.$ac_ext <<_ACEOF
 
9589
/* confdefs.h.  */
 
9590
_ACEOF
 
9591
cat confdefs.h >>conftest.$ac_ext
 
9592
cat >>conftest.$ac_ext <<_ACEOF
 
9593
/* end confdefs.h.  */
 
9594
 
 
9595
/* Override any GCC internal prototype to avoid an error.
 
9596
   Use char because int might match the return type of a GCC
 
9597
   builtin and then its argument prototype would still apply.  */
 
9598
#ifdef __cplusplus
 
9599
extern "C"
 
9600
#endif
 
9601
char dlopen ();
 
9602
int
 
9603
main ()
 
9604
{
 
9605
return dlopen ();
 
9606
  ;
 
9607
  return 0;
 
9608
}
 
9609
_ACEOF
 
9610
rm -f conftest.$ac_objext conftest$ac_exeext
 
9611
if { (ac_try="$ac_link"
 
9612
case "(($ac_try" in
 
9613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9614
  *) ac_try_echo=$ac_try;;
 
9615
esac
 
9616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9617
  (eval "$ac_link") 2>conftest.er1
 
9618
  ac_status=$?
 
9619
  grep -v '^ *+' conftest.er1 >conftest.err
 
9620
  rm -f conftest.er1
 
9621
  cat conftest.err >&5
 
9622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9623
  (exit $ac_status); } && {
 
9624
         test -z "$ac_c_werror_flag" ||
 
9625
         test ! -s conftest.err
 
9626
       } && test -s conftest$ac_exeext &&
 
9627
       $as_test_x conftest$ac_exeext; then
 
9628
  ac_cv_lib_dl_dlopen=yes
 
9629
else
 
9630
  echo "$as_me: failed program was:" >&5
 
9631
sed 's/^/| /' conftest.$ac_ext >&5
 
9632
 
 
9633
        ac_cv_lib_dl_dlopen=no
 
9634
fi
 
9635
 
 
9636
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9637
      conftest$ac_exeext conftest.$ac_ext
 
9638
LIBS=$ac_check_lib_save_LIBS
 
9639
fi
 
9640
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9641
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9642
if test $ac_cv_lib_dl_dlopen = yes; then
 
9643
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9644
else
 
9645
 
 
9646
    lt_cv_dlopen="dyld"
 
9647
    lt_cv_dlopen_libs=
 
9648
    lt_cv_dlopen_self=yes
 
9649
 
 
9650
fi
 
9651
 
 
9652
   ;;
 
9653
 
 
9654
  *)
 
9655
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9656
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9657
if test "${ac_cv_func_shl_load+set}" = set; then
 
9658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9659
else
 
9660
  cat >conftest.$ac_ext <<_ACEOF
 
9661
/* confdefs.h.  */
 
9662
_ACEOF
 
9663
cat confdefs.h >>conftest.$ac_ext
 
9664
cat >>conftest.$ac_ext <<_ACEOF
 
9665
/* end confdefs.h.  */
 
9666
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9667
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9668
#define shl_load innocuous_shl_load
 
9669
 
 
9670
/* System header to define __stub macros and hopefully few prototypes,
 
9671
    which can conflict with char shl_load (); below.
 
9672
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9673
    <limits.h> exists even on freestanding compilers.  */
 
9674
 
 
9675
#ifdef __STDC__
 
9676
# include <limits.h>
 
9677
#else
 
9678
# include <assert.h>
 
9679
#endif
 
9680
 
 
9681
#undef shl_load
 
9682
 
 
9683
/* Override any GCC internal prototype to avoid an error.
 
9684
   Use char because int might match the return type of a GCC
 
9685
   builtin and then its argument prototype would still apply.  */
 
9686
#ifdef __cplusplus
 
9687
extern "C"
 
9688
#endif
 
9689
char shl_load ();
 
9690
/* The GNU C library defines this for functions which it implements
 
9691
    to always fail with ENOSYS.  Some functions are actually named
 
9692
    something starting with __ and the normal name is an alias.  */
 
9693
#if defined __stub_shl_load || defined __stub___shl_load
 
9694
choke me
 
9695
#endif
 
9696
 
 
9697
int
 
9698
main ()
 
9699
{
 
9700
return shl_load ();
 
9701
  ;
 
9702
  return 0;
 
9703
}
 
9704
_ACEOF
 
9705
rm -f conftest.$ac_objext conftest$ac_exeext
 
9706
if { (ac_try="$ac_link"
 
9707
case "(($ac_try" in
 
9708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9709
  *) ac_try_echo=$ac_try;;
 
9710
esac
 
9711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9712
  (eval "$ac_link") 2>conftest.er1
 
9713
  ac_status=$?
 
9714
  grep -v '^ *+' conftest.er1 >conftest.err
 
9715
  rm -f conftest.er1
 
9716
  cat conftest.err >&5
 
9717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9718
  (exit $ac_status); } && {
 
9719
         test -z "$ac_c_werror_flag" ||
 
9720
         test ! -s conftest.err
 
9721
       } && test -s conftest$ac_exeext &&
 
9722
       $as_test_x conftest$ac_exeext; then
 
9723
  ac_cv_func_shl_load=yes
 
9724
else
 
9725
  echo "$as_me: failed program was:" >&5
 
9726
sed 's/^/| /' conftest.$ac_ext >&5
 
9727
 
 
9728
        ac_cv_func_shl_load=no
 
9729
fi
 
9730
 
 
9731
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9732
      conftest$ac_exeext conftest.$ac_ext
 
9733
fi
 
9734
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9735
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9736
if test $ac_cv_func_shl_load = yes; then
 
9737
  lt_cv_dlopen="shl_load"
 
9738
else
 
9739
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9740
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9741
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9743
else
 
9744
  ac_check_lib_save_LIBS=$LIBS
 
9745
LIBS="-ldld  $LIBS"
 
9746
cat >conftest.$ac_ext <<_ACEOF
 
9747
/* confdefs.h.  */
 
9748
_ACEOF
 
9749
cat confdefs.h >>conftest.$ac_ext
 
9750
cat >>conftest.$ac_ext <<_ACEOF
 
9751
/* end confdefs.h.  */
 
9752
 
 
9753
/* Override any GCC internal prototype to avoid an error.
 
9754
   Use char because int might match the return type of a GCC
 
9755
   builtin and then its argument prototype would still apply.  */
 
9756
#ifdef __cplusplus
 
9757
extern "C"
 
9758
#endif
 
9759
char shl_load ();
 
9760
int
 
9761
main ()
 
9762
{
 
9763
return shl_load ();
 
9764
  ;
 
9765
  return 0;
 
9766
}
 
9767
_ACEOF
 
9768
rm -f conftest.$ac_objext conftest$ac_exeext
 
9769
if { (ac_try="$ac_link"
 
9770
case "(($ac_try" in
 
9771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9772
  *) ac_try_echo=$ac_try;;
 
9773
esac
 
9774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9775
  (eval "$ac_link") 2>conftest.er1
 
9776
  ac_status=$?
 
9777
  grep -v '^ *+' conftest.er1 >conftest.err
 
9778
  rm -f conftest.er1
 
9779
  cat conftest.err >&5
 
9780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9781
  (exit $ac_status); } && {
 
9782
         test -z "$ac_c_werror_flag" ||
 
9783
         test ! -s conftest.err
 
9784
       } && test -s conftest$ac_exeext &&
 
9785
       $as_test_x conftest$ac_exeext; then
 
9786
  ac_cv_lib_dld_shl_load=yes
 
9787
else
 
9788
  echo "$as_me: failed program was:" >&5
 
9789
sed 's/^/| /' conftest.$ac_ext >&5
 
9790
 
 
9791
        ac_cv_lib_dld_shl_load=no
 
9792
fi
 
9793
 
 
9794
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9795
      conftest$ac_exeext conftest.$ac_ext
 
9796
LIBS=$ac_check_lib_save_LIBS
 
9797
fi
 
9798
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9799
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9800
if test $ac_cv_lib_dld_shl_load = yes; then
 
9801
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9802
else
 
9803
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9804
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9805
if test "${ac_cv_func_dlopen+set}" = set; then
 
9806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9807
else
 
9808
  cat >conftest.$ac_ext <<_ACEOF
 
9809
/* confdefs.h.  */
 
9810
_ACEOF
 
9811
cat confdefs.h >>conftest.$ac_ext
 
9812
cat >>conftest.$ac_ext <<_ACEOF
 
9813
/* end confdefs.h.  */
 
9814
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9815
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9816
#define dlopen innocuous_dlopen
 
9817
 
 
9818
/* System header to define __stub macros and hopefully few prototypes,
 
9819
    which can conflict with char dlopen (); below.
 
9820
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9821
    <limits.h> exists even on freestanding compilers.  */
 
9822
 
 
9823
#ifdef __STDC__
 
9824
# include <limits.h>
 
9825
#else
 
9826
# include <assert.h>
 
9827
#endif
 
9828
 
 
9829
#undef dlopen
 
9830
 
 
9831
/* Override any GCC internal prototype to avoid an error.
 
9832
   Use char because int might match the return type of a GCC
 
9833
   builtin and then its argument prototype would still apply.  */
 
9834
#ifdef __cplusplus
 
9835
extern "C"
 
9836
#endif
 
9837
char dlopen ();
 
9838
/* The GNU C library defines this for functions which it implements
 
9839
    to always fail with ENOSYS.  Some functions are actually named
 
9840
    something starting with __ and the normal name is an alias.  */
 
9841
#if defined __stub_dlopen || defined __stub___dlopen
 
9842
choke me
 
9843
#endif
 
9844
 
 
9845
int
 
9846
main ()
 
9847
{
 
9848
return dlopen ();
 
9849
  ;
 
9850
  return 0;
 
9851
}
 
9852
_ACEOF
 
9853
rm -f conftest.$ac_objext conftest$ac_exeext
 
9854
if { (ac_try="$ac_link"
 
9855
case "(($ac_try" in
 
9856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9857
  *) ac_try_echo=$ac_try;;
 
9858
esac
 
9859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9860
  (eval "$ac_link") 2>conftest.er1
 
9861
  ac_status=$?
 
9862
  grep -v '^ *+' conftest.er1 >conftest.err
 
9863
  rm -f conftest.er1
 
9864
  cat conftest.err >&5
 
9865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9866
  (exit $ac_status); } && {
 
9867
         test -z "$ac_c_werror_flag" ||
 
9868
         test ! -s conftest.err
 
9869
       } && test -s conftest$ac_exeext &&
 
9870
       $as_test_x conftest$ac_exeext; then
 
9871
  ac_cv_func_dlopen=yes
 
9872
else
 
9873
  echo "$as_me: failed program was:" >&5
 
9874
sed 's/^/| /' conftest.$ac_ext >&5
 
9875
 
 
9876
        ac_cv_func_dlopen=no
 
9877
fi
 
9878
 
 
9879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9880
      conftest$ac_exeext conftest.$ac_ext
 
9881
fi
 
9882
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9883
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9884
if test $ac_cv_func_dlopen = yes; then
 
9885
  lt_cv_dlopen="dlopen"
 
9886
else
 
9887
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9888
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9889
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9891
else
 
9892
  ac_check_lib_save_LIBS=$LIBS
 
9893
LIBS="-ldl  $LIBS"
 
9894
cat >conftest.$ac_ext <<_ACEOF
 
9895
/* confdefs.h.  */
 
9896
_ACEOF
 
9897
cat confdefs.h >>conftest.$ac_ext
 
9898
cat >>conftest.$ac_ext <<_ACEOF
 
9899
/* end confdefs.h.  */
 
9900
 
 
9901
/* Override any GCC internal prototype to avoid an error.
 
9902
   Use char because int might match the return type of a GCC
 
9903
   builtin and then its argument prototype would still apply.  */
 
9904
#ifdef __cplusplus
 
9905
extern "C"
 
9906
#endif
 
9907
char dlopen ();
 
9908
int
 
9909
main ()
 
9910
{
 
9911
return dlopen ();
 
9912
  ;
 
9913
  return 0;
 
9914
}
 
9915
_ACEOF
 
9916
rm -f conftest.$ac_objext conftest$ac_exeext
 
9917
if { (ac_try="$ac_link"
 
9918
case "(($ac_try" in
 
9919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9920
  *) ac_try_echo=$ac_try;;
 
9921
esac
 
9922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9923
  (eval "$ac_link") 2>conftest.er1
 
9924
  ac_status=$?
 
9925
  grep -v '^ *+' conftest.er1 >conftest.err
 
9926
  rm -f conftest.er1
 
9927
  cat conftest.err >&5
 
9928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9929
  (exit $ac_status); } && {
 
9930
         test -z "$ac_c_werror_flag" ||
 
9931
         test ! -s conftest.err
 
9932
       } && test -s conftest$ac_exeext &&
 
9933
       $as_test_x conftest$ac_exeext; then
 
9934
  ac_cv_lib_dl_dlopen=yes
 
9935
else
 
9936
  echo "$as_me: failed program was:" >&5
 
9937
sed 's/^/| /' conftest.$ac_ext >&5
 
9938
 
 
9939
        ac_cv_lib_dl_dlopen=no
 
9940
fi
 
9941
 
 
9942
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9943
      conftest$ac_exeext conftest.$ac_ext
 
9944
LIBS=$ac_check_lib_save_LIBS
 
9945
fi
 
9946
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9947
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9948
if test $ac_cv_lib_dl_dlopen = yes; then
 
9949
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9950
else
 
9951
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9952
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
9953
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9955
else
 
9956
  ac_check_lib_save_LIBS=$LIBS
 
9957
LIBS="-lsvld  $LIBS"
 
9958
cat >conftest.$ac_ext <<_ACEOF
 
9959
/* confdefs.h.  */
 
9960
_ACEOF
 
9961
cat confdefs.h >>conftest.$ac_ext
 
9962
cat >>conftest.$ac_ext <<_ACEOF
 
9963
/* end confdefs.h.  */
 
9964
 
 
9965
/* Override any GCC internal prototype to avoid an error.
 
9966
   Use char because int might match the return type of a GCC
 
9967
   builtin and then its argument prototype would still apply.  */
 
9968
#ifdef __cplusplus
 
9969
extern "C"
 
9970
#endif
 
9971
char dlopen ();
 
9972
int
 
9973
main ()
 
9974
{
 
9975
return dlopen ();
 
9976
  ;
 
9977
  return 0;
 
9978
}
 
9979
_ACEOF
 
9980
rm -f conftest.$ac_objext conftest$ac_exeext
 
9981
if { (ac_try="$ac_link"
 
9982
case "(($ac_try" in
 
9983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9984
  *) ac_try_echo=$ac_try;;
 
9985
esac
 
9986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9987
  (eval "$ac_link") 2>conftest.er1
 
9988
  ac_status=$?
 
9989
  grep -v '^ *+' conftest.er1 >conftest.err
 
9990
  rm -f conftest.er1
 
9991
  cat conftest.err >&5
 
9992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9993
  (exit $ac_status); } && {
 
9994
         test -z "$ac_c_werror_flag" ||
 
9995
         test ! -s conftest.err
 
9996
       } && test -s conftest$ac_exeext &&
 
9997
       $as_test_x conftest$ac_exeext; then
 
9998
  ac_cv_lib_svld_dlopen=yes
 
9999
else
 
10000
  echo "$as_me: failed program was:" >&5
 
10001
sed 's/^/| /' conftest.$ac_ext >&5
 
10002
 
 
10003
        ac_cv_lib_svld_dlopen=no
 
10004
fi
 
10005
 
 
10006
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10007
      conftest$ac_exeext conftest.$ac_ext
 
10008
LIBS=$ac_check_lib_save_LIBS
 
10009
fi
 
10010
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10011
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10012
if test $ac_cv_lib_svld_dlopen = yes; then
 
10013
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10014
else
 
10015
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10016
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10017
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10019
else
 
10020
  ac_check_lib_save_LIBS=$LIBS
 
10021
LIBS="-ldld  $LIBS"
 
10022
cat >conftest.$ac_ext <<_ACEOF
 
10023
/* confdefs.h.  */
 
10024
_ACEOF
 
10025
cat confdefs.h >>conftest.$ac_ext
 
10026
cat >>conftest.$ac_ext <<_ACEOF
 
10027
/* end confdefs.h.  */
 
10028
 
 
10029
/* Override any GCC internal prototype to avoid an error.
 
10030
   Use char because int might match the return type of a GCC
 
10031
   builtin and then its argument prototype would still apply.  */
 
10032
#ifdef __cplusplus
 
10033
extern "C"
 
10034
#endif
 
10035
char dld_link ();
 
10036
int
 
10037
main ()
 
10038
{
 
10039
return dld_link ();
 
10040
  ;
 
10041
  return 0;
 
10042
}
 
10043
_ACEOF
 
10044
rm -f conftest.$ac_objext conftest$ac_exeext
 
10045
if { (ac_try="$ac_link"
 
10046
case "(($ac_try" in
 
10047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10048
  *) ac_try_echo=$ac_try;;
 
10049
esac
 
10050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10051
  (eval "$ac_link") 2>conftest.er1
 
10052
  ac_status=$?
 
10053
  grep -v '^ *+' conftest.er1 >conftest.err
 
10054
  rm -f conftest.er1
 
10055
  cat conftest.err >&5
 
10056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10057
  (exit $ac_status); } && {
 
10058
         test -z "$ac_c_werror_flag" ||
 
10059
         test ! -s conftest.err
 
10060
       } && test -s conftest$ac_exeext &&
 
10061
       $as_test_x conftest$ac_exeext; then
 
10062
  ac_cv_lib_dld_dld_link=yes
 
10063
else
 
10064
  echo "$as_me: failed program was:" >&5
 
10065
sed 's/^/| /' conftest.$ac_ext >&5
 
10066
 
 
10067
        ac_cv_lib_dld_dld_link=no
 
10068
fi
 
10069
 
 
10070
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10071
      conftest$ac_exeext conftest.$ac_ext
 
10072
LIBS=$ac_check_lib_save_LIBS
 
10073
fi
 
10074
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10075
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10076
if test $ac_cv_lib_dld_dld_link = yes; then
 
10077
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10078
fi
 
10079
 
 
10080
 
 
10081
fi
 
10082
 
 
10083
 
 
10084
fi
 
10085
 
 
10086
 
 
10087
fi
 
10088
 
 
10089
 
 
10090
fi
 
10091
 
 
10092
 
 
10093
fi
 
10094
 
 
10095
    ;;
 
10096
  esac
 
10097
 
 
10098
  if test "x$lt_cv_dlopen" != xno; then
 
10099
    enable_dlopen=yes
 
10100
  else
 
10101
    enable_dlopen=no
 
10102
  fi
 
10103
 
 
10104
  case $lt_cv_dlopen in
 
10105
  dlopen)
 
10106
    save_CPPFLAGS="$CPPFLAGS"
 
10107
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10108
 
 
10109
    save_LDFLAGS="$LDFLAGS"
 
10110
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10111
 
 
10112
    save_LIBS="$LIBS"
 
10113
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10114
 
 
10115
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10116
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10117
if test "${lt_cv_dlopen_self+set}" = set; then
 
10118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10119
else
 
10120
          if test "$cross_compiling" = yes; then :
 
10121
  lt_cv_dlopen_self=cross
 
10122
else
 
10123
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10124
  lt_status=$lt_dlunknown
 
10125
  cat > conftest.$ac_ext <<EOF
 
10126
#line 10126 "configure"
 
10127
#include "confdefs.h"
 
10128
 
 
10129
#if HAVE_DLFCN_H
 
10130
#include <dlfcn.h>
 
10131
#endif
 
10132
 
 
10133
#include <stdio.h>
 
10134
 
 
10135
#ifdef RTLD_GLOBAL
 
10136
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10137
#else
 
10138
#  ifdef DL_GLOBAL
 
10139
#    define LT_DLGLOBAL         DL_GLOBAL
 
10140
#  else
 
10141
#    define LT_DLGLOBAL         0
 
10142
#  endif
 
10143
#endif
 
10144
 
 
10145
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10146
   find out it does not work in some platform. */
 
10147
#ifndef LT_DLLAZY_OR_NOW
 
10148
#  ifdef RTLD_LAZY
 
10149
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10150
#  else
 
10151
#    ifdef DL_LAZY
 
10152
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10153
#    else
 
10154
#      ifdef RTLD_NOW
 
10155
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10156
#      else
 
10157
#        ifdef DL_NOW
 
10158
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10159
#        else
 
10160
#          define LT_DLLAZY_OR_NOW      0
 
10161
#        endif
 
10162
#      endif
 
10163
#    endif
 
10164
#  endif
 
10165
#endif
 
10166
 
 
10167
#ifdef __cplusplus
 
10168
extern "C" void exit (int);
 
10169
#endif
 
10170
 
 
10171
void fnord() { int i=42;}
 
10172
int main ()
 
10173
{
 
10174
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10175
  int status = $lt_dlunknown;
 
10176
 
 
10177
  if (self)
 
10178
    {
 
10179
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10180
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10181
      /* dlclose (self); */
 
10182
    }
 
10183
  else
 
10184
    puts (dlerror ());
 
10185
 
 
10186
    exit (status);
 
10187
}
 
10188
EOF
 
10189
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10190
  (eval $ac_link) 2>&5
 
10191
  ac_status=$?
 
10192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10193
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10194
    (./conftest; exit; ) >&5 2>/dev/null
 
10195
    lt_status=$?
 
10196
    case x$lt_status in
 
10197
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10198
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10199
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10200
    esac
 
10201
  else :
 
10202
    # compilation failed
 
10203
    lt_cv_dlopen_self=no
 
10204
  fi
 
10205
fi
 
10206
rm -fr conftest*
 
10207
 
 
10208
 
 
10209
fi
 
10210
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10211
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10212
 
 
10213
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10214
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10215
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10216
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10217
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10219
else
 
10220
          if test "$cross_compiling" = yes; then :
 
10221
  lt_cv_dlopen_self_static=cross
 
10222
else
 
10223
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10224
  lt_status=$lt_dlunknown
 
10225
  cat > conftest.$ac_ext <<EOF
 
10226
#line 10226 "configure"
 
10227
#include "confdefs.h"
 
10228
 
 
10229
#if HAVE_DLFCN_H
 
10230
#include <dlfcn.h>
 
10231
#endif
 
10232
 
 
10233
#include <stdio.h>
 
10234
 
 
10235
#ifdef RTLD_GLOBAL
 
10236
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10237
#else
 
10238
#  ifdef DL_GLOBAL
 
10239
#    define LT_DLGLOBAL         DL_GLOBAL
 
10240
#  else
 
10241
#    define LT_DLGLOBAL         0
 
10242
#  endif
 
10243
#endif
 
10244
 
 
10245
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10246
   find out it does not work in some platform. */
 
10247
#ifndef LT_DLLAZY_OR_NOW
 
10248
#  ifdef RTLD_LAZY
 
10249
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10250
#  else
 
10251
#    ifdef DL_LAZY
 
10252
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10253
#    else
 
10254
#      ifdef RTLD_NOW
 
10255
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10256
#      else
 
10257
#        ifdef DL_NOW
 
10258
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10259
#        else
 
10260
#          define LT_DLLAZY_OR_NOW      0
 
10261
#        endif
 
10262
#      endif
 
10263
#    endif
 
10264
#  endif
 
10265
#endif
 
10266
 
 
10267
#ifdef __cplusplus
 
10268
extern "C" void exit (int);
 
10269
#endif
 
10270
 
 
10271
void fnord() { int i=42;}
 
10272
int main ()
 
10273
{
 
10274
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10275
  int status = $lt_dlunknown;
 
10276
 
 
10277
  if (self)
 
10278
    {
 
10279
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10280
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10281
      /* dlclose (self); */
 
10282
    }
 
10283
  else
 
10284
    puts (dlerror ());
 
10285
 
 
10286
    exit (status);
 
10287
}
 
10288
EOF
 
10289
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10290
  (eval $ac_link) 2>&5
 
10291
  ac_status=$?
 
10292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10293
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10294
    (./conftest; exit; ) >&5 2>/dev/null
 
10295
    lt_status=$?
 
10296
    case x$lt_status in
 
10297
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10298
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10299
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10300
    esac
 
10301
  else :
 
10302
    # compilation failed
 
10303
    lt_cv_dlopen_self_static=no
 
10304
  fi
 
10305
fi
 
10306
rm -fr conftest*
 
10307
 
 
10308
 
 
10309
fi
 
10310
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10311
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10312
    fi
 
10313
 
 
10314
    CPPFLAGS="$save_CPPFLAGS"
 
10315
    LDFLAGS="$save_LDFLAGS"
 
10316
    LIBS="$save_LIBS"
 
10317
    ;;
 
10318
  esac
 
10319
 
 
10320
  case $lt_cv_dlopen_self in
 
10321
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10322
  *) enable_dlopen_self=unknown ;;
 
10323
  esac
 
10324
 
 
10325
  case $lt_cv_dlopen_self_static in
 
10326
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10327
  *) enable_dlopen_self_static=unknown ;;
 
10328
  esac
 
10329
fi
 
10330
 
 
10331
 
 
10332
# Report which library types will actually be built
 
10333
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10334
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10335
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10336
echo "${ECHO_T}$can_build_shared" >&6; }
 
10337
 
 
10338
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10339
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10340
test "$can_build_shared" = "no" && enable_shared=no
 
10341
 
 
10342
# On AIX, shared libraries and static libraries use the same namespace, and
 
10343
# are all built from PIC.
 
10344
case $host_os in
 
10345
aix3*)
 
10346
  test "$enable_shared" = yes && enable_static=no
 
10347
  if test -n "$RANLIB"; then
 
10348
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10349
    postinstall_cmds='$RANLIB $lib'
 
10350
  fi
 
10351
  ;;
 
10352
 
 
10353
aix4* | aix5*)
 
10354
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10355
    test "$enable_shared" = yes && enable_static=no
 
10356
  fi
 
10357
    ;;
 
10358
esac
 
10359
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10360
echo "${ECHO_T}$enable_shared" >&6; }
 
10361
 
 
10362
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10363
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10364
# Make sure either enable_shared or enable_static is yes.
 
10365
test "$enable_shared" = yes || enable_static=yes
 
10366
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10367
echo "${ECHO_T}$enable_static" >&6; }
 
10368
 
 
10369
# The else clause should only fire when bootstrapping the
 
10370
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10371
# with your package, and you will get complaints that there are
 
10372
# no rules to generate ltmain.sh.
 
10373
if test -f "$ltmain"; then
 
10374
  # See if we are running on zsh, and set the options which allow our commands through
 
10375
  # without removal of \ escapes.
 
10376
  if test -n "${ZSH_VERSION+set}" ; then
 
10377
    setopt NO_GLOB_SUBST
 
10378
  fi
 
10379
  # Now quote all the things that may contain metacharacters while being
 
10380
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10381
  # variables and quote the copies for generation of the libtool script.
 
10382
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10383
    SED SHELL STRIP \
 
10384
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10385
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10386
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10387
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10388
    lt_cv_sys_global_symbol_to_c_name_address \
 
10389
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10390
    old_postinstall_cmds old_postuninstall_cmds \
 
10391
    compiler \
 
10392
    CC \
 
10393
    LD \
 
10394
    lt_prog_compiler_wl \
 
10395
    lt_prog_compiler_pic \
 
10396
    lt_prog_compiler_static \
 
10397
    lt_prog_compiler_no_builtin_flag \
 
10398
    export_dynamic_flag_spec \
 
10399
    thread_safe_flag_spec \
 
10400
    whole_archive_flag_spec \
 
10401
    enable_shared_with_static_runtimes \
 
10402
    old_archive_cmds \
 
10403
    old_archive_from_new_cmds \
 
10404
    predep_objects \
 
10405
    postdep_objects \
 
10406
    predeps \
 
10407
    postdeps \
 
10408
    compiler_lib_search_path \
 
10409
    archive_cmds \
 
10410
    archive_expsym_cmds \
 
10411
    postinstall_cmds \
 
10412
    postuninstall_cmds \
 
10413
    old_archive_from_expsyms_cmds \
 
10414
    allow_undefined_flag \
 
10415
    no_undefined_flag \
 
10416
    export_symbols_cmds \
 
10417
    hardcode_libdir_flag_spec \
 
10418
    hardcode_libdir_flag_spec_ld \
 
10419
    hardcode_libdir_separator \
 
10420
    hardcode_automatic \
 
10421
    module_cmds \
 
10422
    module_expsym_cmds \
 
10423
    lt_cv_prog_compiler_c_o \
 
10424
    exclude_expsyms \
 
10425
    include_expsyms; do
 
10426
 
 
10427
    case $var in
 
10428
    old_archive_cmds | \
 
10429
    old_archive_from_new_cmds | \
 
10430
    archive_cmds | \
 
10431
    archive_expsym_cmds | \
 
10432
    module_cmds | \
 
10433
    module_expsym_cmds | \
 
10434
    old_archive_from_expsyms_cmds | \
 
10435
    export_symbols_cmds | \
 
10436
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10437
    postinstall_cmds | postuninstall_cmds | \
 
10438
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10439
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10440
      # Double-quote double-evaled strings.
 
10441
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10442
      ;;
 
10443
    *)
 
10444
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10445
      ;;
 
10446
    esac
 
10447
  done
 
10448
 
 
10449
  case $lt_echo in
 
10450
  *'\$0 --fallback-echo"')
 
10451
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10452
    ;;
 
10453
  esac
 
10454
 
 
10455
cfgfile="${ofile}T"
 
10456
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10457
  $rm -f "$cfgfile"
 
10458
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10459
echo "$as_me: creating $ofile" >&6;}
 
10460
 
 
10461
  cat <<__EOF__ >> "$cfgfile"
 
10462
#! $SHELL
 
10463
 
 
10464
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10465
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10466
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10467
#
 
10468
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10469
# Free Software Foundation, Inc.
 
10470
#
 
10471
# This file is part of GNU Libtool:
 
10472
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10473
#
 
10474
# This program is free software; you can redistribute it and/or modify
 
10475
# it under the terms of the GNU General Public License as published by
 
10476
# the Free Software Foundation; either version 2 of the License, or
 
10477
# (at your option) any later version.
 
10478
#
 
10479
# This program is distributed in the hope that it will be useful, but
 
10480
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10481
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10482
# General Public License for more details.
 
10483
#
 
10484
# You should have received a copy of the GNU General Public License
 
10485
# along with this program; if not, write to the Free Software
 
10486
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10487
#
 
10488
# As a special exception to the GNU General Public License, if you
 
10489
# distribute this file as part of a program that contains a
 
10490
# configuration script generated by Autoconf, you may include it under
 
10491
# the same distribution terms that you use for the rest of that program.
 
10492
 
 
10493
# A sed program that does not truncate output.
 
10494
SED=$lt_SED
 
10495
 
 
10496
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10497
Xsed="$SED -e 1s/^X//"
 
10498
 
 
10499
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10500
# if CDPATH is set.
 
10501
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10502
 
 
10503
# The names of the tagged configurations supported by this script.
 
10504
available_tags=
 
10505
 
 
10506
# ### BEGIN LIBTOOL CONFIG
 
10507
 
 
10508
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10509
 
 
10510
# Shell to use when invoking shell scripts.
 
10511
SHELL=$lt_SHELL
 
10512
 
 
10513
# Whether or not to build shared libraries.
 
10514
build_libtool_libs=$enable_shared
 
10515
 
 
10516
# Whether or not to build static libraries.
 
10517
build_old_libs=$enable_static
 
10518
 
 
10519
# Whether or not to add -lc for building shared libraries.
 
10520
build_libtool_need_lc=$archive_cmds_need_lc
 
10521
 
 
10522
# Whether or not to disallow shared libs when runtime libs are static
 
10523
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10524
 
 
10525
# Whether or not to optimize for fast installation.
 
10526
fast_install=$enable_fast_install
 
10527
 
 
10528
# The host system.
 
10529
host_alias=$host_alias
 
10530
host=$host
 
10531
host_os=$host_os
 
10532
 
 
10533
# The build system.
 
10534
build_alias=$build_alias
 
10535
build=$build
 
10536
build_os=$build_os
 
10537
 
 
10538
# An echo program that does not interpret backslashes.
 
10539
echo=$lt_echo
 
10540
 
 
10541
# The archiver.
 
10542
AR=$lt_AR
 
10543
AR_FLAGS=$lt_AR_FLAGS
 
10544
 
 
10545
# A C compiler.
 
10546
LTCC=$lt_LTCC
 
10547
 
 
10548
# LTCC compiler flags.
 
10549
LTCFLAGS=$lt_LTCFLAGS
 
10550
 
 
10551
# A language-specific compiler.
 
10552
CC=$lt_compiler
 
10553
 
 
10554
# Is the compiler the GNU C compiler?
 
10555
with_gcc=$GCC
 
10556
 
 
10557
# An ERE matcher.
 
10558
EGREP=$lt_EGREP
 
10559
 
 
10560
# The linker used to build libraries.
 
10561
LD=$lt_LD
 
10562
 
 
10563
# Whether we need hard or soft links.
 
10564
LN_S=$lt_LN_S
 
10565
 
 
10566
# A BSD-compatible nm program.
 
10567
NM=$lt_NM
 
10568
 
 
10569
# A symbol stripping program
 
10570
STRIP=$lt_STRIP
 
10571
 
 
10572
# Used to examine libraries when file_magic_cmd begins "file"
 
10573
MAGIC_CMD=$MAGIC_CMD
 
10574
 
 
10575
# Used on cygwin: DLL creation program.
 
10576
DLLTOOL="$DLLTOOL"
 
10577
 
 
10578
# Used on cygwin: object dumper.
 
10579
OBJDUMP="$OBJDUMP"
 
10580
 
 
10581
# Used on cygwin: assembler.
 
10582
AS="$AS"
 
10583
 
 
10584
# The name of the directory that contains temporary libtool files.
 
10585
objdir=$objdir
 
10586
 
 
10587
# How to create reloadable object files.
 
10588
reload_flag=$lt_reload_flag
 
10589
reload_cmds=$lt_reload_cmds
 
10590
 
 
10591
# How to pass a linker flag through the compiler.
 
10592
wl=$lt_lt_prog_compiler_wl
 
10593
 
 
10594
# Object file suffix (normally "o").
 
10595
objext="$ac_objext"
 
10596
 
 
10597
# Old archive suffix (normally "a").
 
10598
libext="$libext"
 
10599
 
 
10600
# Shared library suffix (normally ".so").
 
10601
shrext_cmds='$shrext_cmds'
 
10602
 
 
10603
# Executable file suffix (normally "").
 
10604
exeext="$exeext"
 
10605
 
 
10606
# Additional compiler flags for building library objects.
 
10607
pic_flag=$lt_lt_prog_compiler_pic
 
10608
pic_mode=$pic_mode
 
10609
 
 
10610
# What is the maximum length of a command?
 
10611
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10612
 
 
10613
# Does compiler simultaneously support -c and -o options?
 
10614
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10615
 
 
10616
# Must we lock files when doing compilation?
 
10617
need_locks=$lt_need_locks
 
10618
 
 
10619
# Do we need the lib prefix for modules?
 
10620
need_lib_prefix=$need_lib_prefix
 
10621
 
 
10622
# Do we need a version for libraries?
 
10623
need_version=$need_version
 
10624
 
 
10625
# Whether dlopen is supported.
 
10626
dlopen_support=$enable_dlopen
 
10627
 
 
10628
# Whether dlopen of programs is supported.
 
10629
dlopen_self=$enable_dlopen_self
 
10630
 
 
10631
# Whether dlopen of statically linked programs is supported.
 
10632
dlopen_self_static=$enable_dlopen_self_static
 
10633
 
 
10634
# Compiler flag to prevent dynamic linking.
 
10635
link_static_flag=$lt_lt_prog_compiler_static
 
10636
 
 
10637
# Compiler flag to turn off builtin functions.
 
10638
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10639
 
 
10640
# Compiler flag to allow reflexive dlopens.
 
10641
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10642
 
 
10643
# Compiler flag to generate shared objects directly from archives.
 
10644
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10645
 
 
10646
# Compiler flag to generate thread-safe objects.
 
10647
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10648
 
 
10649
# Library versioning type.
 
10650
version_type=$version_type
 
10651
 
 
10652
# Format of library name prefix.
 
10653
libname_spec=$lt_libname_spec
 
10654
 
 
10655
# List of archive names.  First name is the real one, the rest are links.
 
10656
# The last name is the one that the linker finds with -lNAME.
 
10657
library_names_spec=$lt_library_names_spec
 
10658
 
 
10659
# The coded name of the library, if different from the real name.
 
10660
soname_spec=$lt_soname_spec
 
10661
 
 
10662
# Commands used to build and install an old-style archive.
 
10663
RANLIB=$lt_RANLIB
 
10664
old_archive_cmds=$lt_old_archive_cmds
 
10665
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10666
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10667
 
 
10668
# Create an old-style archive from a shared archive.
 
10669
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10670
 
 
10671
# Create a temporary old-style archive to link instead of a shared archive.
 
10672
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10673
 
 
10674
# Commands used to build and install a shared archive.
 
10675
archive_cmds=$lt_archive_cmds
 
10676
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10677
postinstall_cmds=$lt_postinstall_cmds
 
10678
postuninstall_cmds=$lt_postuninstall_cmds
 
10679
 
 
10680
# Commands used to build a loadable module (assumed same as above if empty)
 
10681
module_cmds=$lt_module_cmds
 
10682
module_expsym_cmds=$lt_module_expsym_cmds
 
10683
 
 
10684
# Commands to strip libraries.
 
10685
old_striplib=$lt_old_striplib
 
10686
striplib=$lt_striplib
 
10687
 
 
10688
# Dependencies to place before the objects being linked to create a
 
10689
# shared library.
 
10690
predep_objects=$lt_predep_objects
 
10691
 
 
10692
# Dependencies to place after the objects being linked to create a
 
10693
# shared library.
 
10694
postdep_objects=$lt_postdep_objects
 
10695
 
 
10696
# Dependencies to place before the objects being linked to create a
 
10697
# shared library.
 
10698
predeps=$lt_predeps
 
10699
 
 
10700
# Dependencies to place after the objects being linked to create a
 
10701
# shared library.
 
10702
postdeps=$lt_postdeps
 
10703
 
 
10704
# The library search path used internally by the compiler when linking
 
10705
# a shared library.
 
10706
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10707
 
 
10708
# Method to check whether dependent libraries are shared objects.
 
10709
deplibs_check_method=$lt_deplibs_check_method
 
10710
 
 
10711
# Command to use when deplibs_check_method == file_magic.
 
10712
file_magic_cmd=$lt_file_magic_cmd
 
10713
 
 
10714
# Flag that allows shared libraries with undefined symbols to be built.
 
10715
allow_undefined_flag=$lt_allow_undefined_flag
 
10716
 
 
10717
# Flag that forces no undefined symbols.
 
10718
no_undefined_flag=$lt_no_undefined_flag
 
10719
 
 
10720
# Commands used to finish a libtool library installation in a directory.
 
10721
finish_cmds=$lt_finish_cmds
 
10722
 
 
10723
# Same as above, but a single script fragment to be evaled but not shown.
 
10724
finish_eval=$lt_finish_eval
 
10725
 
 
10726
# Take the output of nm and produce a listing of raw symbols and C names.
 
10727
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10728
 
 
10729
# Transform the output of nm in a proper C declaration
 
10730
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10731
 
 
10732
# Transform the output of nm in a C name address pair
 
10733
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10734
 
 
10735
# This is the shared library runtime path variable.
 
10736
runpath_var=$runpath_var
 
10737
 
 
10738
# This is the shared library path variable.
 
10739
shlibpath_var=$shlibpath_var
 
10740
 
 
10741
# Is shlibpath searched before the hard-coded library search path?
 
10742
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10743
 
 
10744
# How to hardcode a shared library path into an executable.
 
10745
hardcode_action=$hardcode_action
 
10746
 
 
10747
# Whether we should hardcode library paths into libraries.
 
10748
hardcode_into_libs=$hardcode_into_libs
 
10749
 
 
10750
# Flag to hardcode \$libdir into a binary during linking.
 
10751
# This must work even if \$libdir does not exist.
 
10752
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10753
 
 
10754
# If ld is used when linking, flag to hardcode \$libdir into
 
10755
# a binary during linking. This must work even if \$libdir does
 
10756
# not exist.
 
10757
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10758
 
 
10759
# Whether we need a single -rpath flag with a separated argument.
 
10760
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10761
 
 
10762
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10763
# resulting binary.
 
10764
hardcode_direct=$hardcode_direct
 
10765
 
 
10766
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10767
# resulting binary.
 
10768
hardcode_minus_L=$hardcode_minus_L
 
10769
 
 
10770
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10771
# the resulting binary.
 
10772
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10773
 
 
10774
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10775
# and all subsequent libraries and executables linked against it.
 
10776
hardcode_automatic=$hardcode_automatic
 
10777
 
 
10778
# Variables whose values should be saved in libtool wrapper scripts and
 
10779
# restored at relink time.
 
10780
variables_saved_for_relink="$variables_saved_for_relink"
 
10781
 
 
10782
# Whether libtool must link a program against all its dependency libraries.
 
10783
link_all_deplibs=$link_all_deplibs
 
10784
 
 
10785
# Compile-time system search path for libraries
 
10786
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10787
 
 
10788
# Run-time system search path for libraries
 
10789
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10790
 
 
10791
# Fix the shell variable \$srcfile for the compiler.
 
10792
fix_srcfile_path="$fix_srcfile_path"
 
10793
 
 
10794
# Set to yes if exported symbols are required.
 
10795
always_export_symbols=$always_export_symbols
 
10796
 
 
10797
# The commands to list exported symbols.
 
10798
export_symbols_cmds=$lt_export_symbols_cmds
 
10799
 
 
10800
# The commands to extract the exported symbol list from a shared archive.
 
10801
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10802
 
 
10803
# Symbols that should not be listed in the preloaded symbols.
 
10804
exclude_expsyms=$lt_exclude_expsyms
 
10805
 
 
10806
# Symbols that must always be exported.
 
10807
include_expsyms=$lt_include_expsyms
 
10808
 
 
10809
# ### END LIBTOOL CONFIG
 
10810
 
 
10811
__EOF__
 
10812
 
 
10813
 
 
10814
  case $host_os in
 
10815
  aix3*)
 
10816
    cat <<\EOF >> "$cfgfile"
 
10817
 
 
10818
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10819
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10820
# vanish in a puff of smoke.
 
10821
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10822
  COLLECT_NAMES=
 
10823
  export COLLECT_NAMES
 
10824
fi
 
10825
EOF
 
10826
    ;;
 
10827
  esac
 
10828
 
 
10829
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10830
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10831
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10832
  # is reportedly fixed, but why not run on old versions too?
 
10833
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10834
 
 
10835
  mv -f "$cfgfile" "$ofile" || \
 
10836
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10837
  chmod +x "$ofile"
 
10838
 
 
10839
else
 
10840
  # If there is no Makefile yet, we rely on a make rule to execute
 
10841
  # `config.status --recheck' to rerun these tests and create the
 
10842
  # libtool script then.
 
10843
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10844
  if test -f "$ltmain_in"; then
 
10845
    test -f Makefile && make "$ltmain"
 
10846
  fi
 
10847
fi
 
10848
 
 
10849
 
 
10850
ac_ext=c
 
10851
ac_cpp='$CPP $CPPFLAGS'
 
10852
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10853
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10854
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10855
 
 
10856
CC="$lt_save_CC"
 
10857
 
 
10858
 
 
10859
# Check whether --with-tags was given.
 
10860
if test "${with_tags+set}" = set; then
 
10861
  withval=$with_tags; tagnames="$withval"
 
10862
fi
 
10863
 
 
10864
 
 
10865
if test -f "$ltmain" && test -n "$tagnames"; then
 
10866
  if test ! -f "${ofile}"; then
 
10867
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10868
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10869
  fi
 
10870
 
 
10871
  if test -z "$LTCC"; then
 
10872
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10873
    if test -z "$LTCC"; then
 
10874
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10875
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10876
    else
 
10877
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10878
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10879
    fi
 
10880
  fi
 
10881
  if test -z "$LTCFLAGS"; then
 
10882
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10883
  fi
 
10884
 
 
10885
  # Extract list of available tagged configurations in $ofile.
 
10886
  # Note that this assumes the entire list is on one line.
 
10887
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10888
 
 
10889
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10890
  for tagname in $tagnames; do
 
10891
    IFS="$lt_save_ifs"
 
10892
    # Check whether tagname contains only valid characters
 
10893
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10894
    "") ;;
 
10895
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10896
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10897
   { (exit 1); exit 1; }; }
 
10898
        ;;
 
10899
    esac
 
10900
 
 
10901
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10902
    then
 
10903
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10904
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10905
   { (exit 1); exit 1; }; }
 
10906
    fi
 
10907
 
 
10908
    # Update the list of available tags.
 
10909
    if test -n "$tagname"; then
 
10910
      echo appending configuration tag \"$tagname\" to $ofile
 
10911
 
 
10912
      case $tagname in
 
10913
      CXX)
 
10914
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10915
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10916
            (test "X$CXX" != "Xg++"))) ; then
 
10917
          ac_ext=cpp
 
10918
ac_cpp='$CXXCPP $CPPFLAGS'
 
10919
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10920
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10921
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10922
 
 
10923
 
 
10924
 
 
10925
 
 
10926
archive_cmds_need_lc_CXX=no
 
10927
allow_undefined_flag_CXX=
 
10928
always_export_symbols_CXX=no
 
10929
archive_expsym_cmds_CXX=
 
10930
export_dynamic_flag_spec_CXX=
 
10931
hardcode_direct_CXX=no
 
10932
hardcode_libdir_flag_spec_CXX=
 
10933
hardcode_libdir_flag_spec_ld_CXX=
 
10934
hardcode_libdir_separator_CXX=
 
10935
hardcode_minus_L_CXX=no
 
10936
hardcode_shlibpath_var_CXX=unsupported
 
10937
hardcode_automatic_CXX=no
 
10938
module_cmds_CXX=
 
10939
module_expsym_cmds_CXX=
 
10940
link_all_deplibs_CXX=unknown
 
10941
old_archive_cmds_CXX=$old_archive_cmds
 
10942
no_undefined_flag_CXX=
 
10943
whole_archive_flag_spec_CXX=
 
10944
enable_shared_with_static_runtimes_CXX=no
 
10945
 
 
10946
# Dependencies to place before and after the object being linked:
 
10947
predep_objects_CXX=
 
10948
postdep_objects_CXX=
 
10949
predeps_CXX=
 
10950
postdeps_CXX=
 
10951
compiler_lib_search_path_CXX=
 
10952
 
 
10953
# Source file extension for C++ test sources.
 
10954
ac_ext=cpp
 
10955
 
 
10956
# Object file extension for compiled C++ test sources.
 
10957
objext=o
 
10958
objext_CXX=$objext
 
10959
 
 
10960
# Code to be used in simple compile tests
 
10961
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10962
 
 
10963
# Code to be used in simple link tests
 
10964
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10965
 
 
10966
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10967
 
 
10968
# If no C compiler was specified, use CC.
 
10969
LTCC=${LTCC-"$CC"}
 
10970
 
 
10971
# If no C compiler flags were specified, use CFLAGS.
 
10972
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10973
 
 
10974
# Allow CC to be a program name with arguments.
 
10975
compiler=$CC
 
10976
 
 
10977
 
 
10978
# save warnings/boilerplate of simple test code
 
10979
ac_outfile=conftest.$ac_objext
 
10980
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10981
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10982
_lt_compiler_boilerplate=`cat conftest.err`
 
10983
$rm conftest*
 
10984
 
 
10985
ac_outfile=conftest.$ac_objext
 
10986
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10987
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10988
_lt_linker_boilerplate=`cat conftest.err`
 
10989
$rm conftest*
 
10990
 
 
10991
 
 
10992
# Allow CC to be a program name with arguments.
 
10993
lt_save_CC=$CC
 
10994
lt_save_LD=$LD
 
10995
lt_save_GCC=$GCC
 
10996
GCC=$GXX
 
10997
lt_save_with_gnu_ld=$with_gnu_ld
 
10998
lt_save_path_LD=$lt_cv_path_LD
 
10999
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11000
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11001
else
 
11002
  $as_unset lt_cv_prog_gnu_ld
 
11003
fi
 
11004
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11005
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11006
else
 
11007
  $as_unset lt_cv_path_LD
 
11008
fi
 
11009
test -z "${LDCXX+set}" || LD=$LDCXX
 
11010
CC=${CXX-"c++"}
 
11011
compiler=$CC
 
11012
compiler_CXX=$CC
 
11013
for cc_temp in $compiler""; do
 
11014
  case $cc_temp in
 
11015
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11016
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11017
    \-*) ;;
 
11018
    *) break;;
 
11019
  esac
 
11020
done
 
11021
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11022
 
 
11023
 
 
11024
# We don't want -fno-exception wen compiling C++ code, so set the
 
11025
# no_builtin_flag separately
 
11026
if test "$GXX" = yes; then
 
11027
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11028
else
 
11029
  lt_prog_compiler_no_builtin_flag_CXX=
 
11030
fi
 
11031
 
 
11032
if test "$GXX" = yes; then
 
11033
  # Set up default GNU C++ configuration
 
11034
 
 
11035
 
 
11036
# Check whether --with-gnu-ld was given.
 
11037
if test "${with_gnu_ld+set}" = set; then
 
11038
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11039
else
 
11040
  with_gnu_ld=no
 
11041
fi
 
11042
 
 
11043
ac_prog=ld
 
11044
if test "$GCC" = yes; then
 
11045
  # Check if gcc -print-prog-name=ld gives a path.
 
11046
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11047
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11048
  case $host in
 
11049
  *-*-mingw*)
 
11050
    # gcc leaves a trailing carriage return which upsets mingw
 
11051
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11052
  *)
 
11053
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11054
  esac
 
11055
  case $ac_prog in
 
11056
    # Accept absolute paths.
 
11057
    [\\/]* | ?:[\\/]*)
 
11058
      re_direlt='/[^/][^/]*/\.\./'
 
11059
      # Canonicalize the pathname of ld
 
11060
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11061
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11062
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11063
      done
 
11064
      test -z "$LD" && LD="$ac_prog"
 
11065
      ;;
 
11066
  "")
 
11067
    # If it fails, then pretend we aren't using GCC.
 
11068
    ac_prog=ld
 
11069
    ;;
 
11070
  *)
 
11071
    # If it is relative, then search for the first ld in PATH.
 
11072
    with_gnu_ld=unknown
 
11073
    ;;
 
11074
  esac
 
11075
elif test "$with_gnu_ld" = yes; then
 
11076
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11077
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11078
else
 
11079
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11080
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11081
fi
 
11082
if test "${lt_cv_path_LD+set}" = set; then
 
11083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11084
else
 
11085
  if test -z "$LD"; then
 
11086
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11087
  for ac_dir in $PATH; do
 
11088
    IFS="$lt_save_ifs"
 
11089
    test -z "$ac_dir" && ac_dir=.
 
11090
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11091
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11092
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11093
      # but apparently some variants of GNU ld only accept -v.
 
11094
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11095
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11096
      *GNU* | *'with BFD'*)
 
11097
        test "$with_gnu_ld" != no && break
 
11098
        ;;
 
11099
      *)
 
11100
        test "$with_gnu_ld" != yes && break
 
11101
        ;;
 
11102
      esac
 
11103
    fi
 
11104
  done
 
11105
  IFS="$lt_save_ifs"
 
11106
else
 
11107
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11108
fi
 
11109
fi
 
11110
 
 
11111
LD="$lt_cv_path_LD"
 
11112
if test -n "$LD"; then
 
11113
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11114
echo "${ECHO_T}$LD" >&6; }
 
11115
else
 
11116
  { echo "$as_me:$LINENO: result: no" >&5
 
11117
echo "${ECHO_T}no" >&6; }
 
11118
fi
 
11119
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11120
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11121
   { (exit 1); exit 1; }; }
 
11122
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11123
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11124
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11126
else
 
11127
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11128
case `$LD -v 2>&1 </dev/null` in
 
11129
*GNU* | *'with BFD'*)
 
11130
  lt_cv_prog_gnu_ld=yes
 
11131
  ;;
 
11132
*)
 
11133
  lt_cv_prog_gnu_ld=no
 
11134
  ;;
 
11135
esac
 
11136
fi
 
11137
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11138
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11139
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11140
 
 
11141
 
 
11142
 
 
11143
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11144
  # archiving commands below assume that GNU ld is being used.
 
11145
  if test "$with_gnu_ld" = yes; then
 
11146
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11147
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11148
 
 
11149
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11150
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11151
 
 
11152
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11153
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11154
    #     investigate it a little bit more. (MM)
 
11155
    wlarc='${wl}'
 
11156
 
 
11157
    # ancient GNU ld didn't support --whole-archive et. al.
 
11158
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11159
        grep 'no-whole-archive' > /dev/null; then
 
11160
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11161
    else
 
11162
      whole_archive_flag_spec_CXX=
 
11163
    fi
 
11164
  else
 
11165
    with_gnu_ld=no
 
11166
    wlarc=
 
11167
 
 
11168
    # A generic and very simple default shared library creation
 
11169
    # command for GNU C++ for the case where it uses the native
 
11170
    # linker, instead of GNU ld.  If possible, this setting should
 
11171
    # overridden to take advantage of the native linker features on
 
11172
    # the platform it is being used on.
 
11173
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11174
  fi
 
11175
 
 
11176
  # Commands to make compiler produce verbose output that lists
 
11177
  # what "hidden" libraries, object files and flags are used when
 
11178
  # linking a shared library.
 
11179
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11180
 
 
11181
else
 
11182
  GXX=no
 
11183
  with_gnu_ld=no
 
11184
  wlarc=
 
11185
fi
 
11186
 
 
11187
# PORTME: fill in a description of your system's C++ link characteristics
 
11188
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11189
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11190
ld_shlibs_CXX=yes
 
11191
case $host_os in
 
11192
  aix3*)
 
11193
    # FIXME: insert proper C++ library support
 
11194
    ld_shlibs_CXX=no
 
11195
    ;;
 
11196
  aix4* | aix5*)
 
11197
    if test "$host_cpu" = ia64; then
 
11198
      # On IA64, the linker does run time linking by default, so we don't
 
11199
      # have to do anything special.
 
11200
      aix_use_runtimelinking=no
 
11201
      exp_sym_flag='-Bexport'
 
11202
      no_entry_flag=""
 
11203
    else
 
11204
      aix_use_runtimelinking=no
 
11205
 
 
11206
      # Test if we are trying to use run time linking or normal
 
11207
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11208
      # need to do runtime linking.
 
11209
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11210
        for ld_flag in $LDFLAGS; do
 
11211
          case $ld_flag in
 
11212
          *-brtl*)
 
11213
            aix_use_runtimelinking=yes
 
11214
            break
 
11215
            ;;
 
11216
          esac
 
11217
        done
 
11218
        ;;
 
11219
      esac
 
11220
 
 
11221
      exp_sym_flag='-bexport'
 
11222
      no_entry_flag='-bnoentry'
 
11223
    fi
 
11224
 
 
11225
    # When large executables or shared objects are built, AIX ld can
 
11226
    # have problems creating the table of contents.  If linking a library
 
11227
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11228
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11229
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11230
 
 
11231
    archive_cmds_CXX=''
 
11232
    hardcode_direct_CXX=yes
 
11233
    hardcode_libdir_separator_CXX=':'
 
11234
    link_all_deplibs_CXX=yes
 
11235
 
 
11236
    if test "$GXX" = yes; then
 
11237
      case $host_os in aix4.[012]|aix4.[012].*)
 
11238
      # We only want to do this on AIX 4.2 and lower, the check
 
11239
      # below for broken collect2 doesn't work under 4.3+
 
11240
        collect2name=`${CC} -print-prog-name=collect2`
 
11241
        if test -f "$collect2name" && \
 
11242
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11243
        then
 
11244
          # We have reworked collect2
 
11245
          hardcode_direct_CXX=yes
 
11246
        else
 
11247
          # We have old collect2
 
11248
          hardcode_direct_CXX=unsupported
 
11249
          # It fails to find uninstalled libraries when the uninstalled
 
11250
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11251
          # to unsupported forces relinking
 
11252
          hardcode_minus_L_CXX=yes
 
11253
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11254
          hardcode_libdir_separator_CXX=
 
11255
        fi
 
11256
        ;;
 
11257
      esac
 
11258
      shared_flag='-shared'
 
11259
      if test "$aix_use_runtimelinking" = yes; then
 
11260
        shared_flag="$shared_flag "'${wl}-G'
 
11261
      fi
 
11262
    else
 
11263
      # not using gcc
 
11264
      if test "$host_cpu" = ia64; then
 
11265
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11266
        # chokes on -Wl,-G. The following line is correct:
 
11267
        shared_flag='-G'
 
11268
      else
 
11269
        if test "$aix_use_runtimelinking" = yes; then
 
11270
          shared_flag='${wl}-G'
 
11271
        else
 
11272
          shared_flag='${wl}-bM:SRE'
 
11273
        fi
 
11274
      fi
 
11275
    fi
 
11276
 
 
11277
    # It seems that -bexpall does not export symbols beginning with
 
11278
    # underscore (_), so it is better to generate a list of symbols to export.
 
11279
    always_export_symbols_CXX=yes
 
11280
    if test "$aix_use_runtimelinking" = yes; then
 
11281
      # Warning - without using the other runtime loading flags (-brtl),
 
11282
      # -berok will link without error, but may produce a broken library.
 
11283
      allow_undefined_flag_CXX='-berok'
 
11284
      # Determine the default libpath from the value encoded in an empty executable.
 
11285
      cat >conftest.$ac_ext <<_ACEOF
 
11286
/* confdefs.h.  */
 
11287
_ACEOF
 
11288
cat confdefs.h >>conftest.$ac_ext
 
11289
cat >>conftest.$ac_ext <<_ACEOF
 
11290
/* end confdefs.h.  */
 
11291
 
 
11292
int
 
11293
main ()
 
11294
{
 
11295
 
 
11296
  ;
 
11297
  return 0;
 
11298
}
 
11299
_ACEOF
 
11300
rm -f conftest.$ac_objext conftest$ac_exeext
 
11301
if { (ac_try="$ac_link"
 
11302
case "(($ac_try" in
 
11303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11304
  *) ac_try_echo=$ac_try;;
 
11305
esac
 
11306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11307
  (eval "$ac_link") 2>conftest.er1
 
11308
  ac_status=$?
 
11309
  grep -v '^ *+' conftest.er1 >conftest.err
 
11310
  rm -f conftest.er1
 
11311
  cat conftest.err >&5
 
11312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11313
  (exit $ac_status); } && {
 
11314
         test -z "$ac_cxx_werror_flag" ||
 
11315
         test ! -s conftest.err
 
11316
       } && test -s conftest$ac_exeext &&
 
11317
       $as_test_x conftest$ac_exeext; then
 
11318
 
 
11319
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11320
}'`
 
11321
# Check for a 64-bit object if we didn't find anything.
 
11322
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11323
}'`; fi
 
11324
else
 
11325
  echo "$as_me: failed program was:" >&5
 
11326
sed 's/^/| /' conftest.$ac_ext >&5
 
11327
 
 
11328
 
 
11329
fi
 
11330
 
 
11331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11332
      conftest$ac_exeext conftest.$ac_ext
 
11333
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11334
 
 
11335
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11336
 
 
11337
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11338
     else
 
11339
      if test "$host_cpu" = ia64; then
 
11340
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11341
        allow_undefined_flag_CXX="-z nodefs"
 
11342
        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"
 
11343
      else
 
11344
        # Determine the default libpath from the value encoded in an empty executable.
 
11345
        cat >conftest.$ac_ext <<_ACEOF
 
11346
/* confdefs.h.  */
 
11347
_ACEOF
 
11348
cat confdefs.h >>conftest.$ac_ext
 
11349
cat >>conftest.$ac_ext <<_ACEOF
 
11350
/* end confdefs.h.  */
 
11351
 
 
11352
int
 
11353
main ()
 
11354
{
 
11355
 
 
11356
  ;
 
11357
  return 0;
 
11358
}
 
11359
_ACEOF
 
11360
rm -f conftest.$ac_objext conftest$ac_exeext
 
11361
if { (ac_try="$ac_link"
 
11362
case "(($ac_try" in
 
11363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11364
  *) ac_try_echo=$ac_try;;
 
11365
esac
 
11366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11367
  (eval "$ac_link") 2>conftest.er1
 
11368
  ac_status=$?
 
11369
  grep -v '^ *+' conftest.er1 >conftest.err
 
11370
  rm -f conftest.er1
 
11371
  cat conftest.err >&5
 
11372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11373
  (exit $ac_status); } && {
 
11374
         test -z "$ac_cxx_werror_flag" ||
 
11375
         test ! -s conftest.err
 
11376
       } && test -s conftest$ac_exeext &&
 
11377
       $as_test_x conftest$ac_exeext; then
 
11378
 
 
11379
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11380
}'`
 
11381
# Check for a 64-bit object if we didn't find anything.
 
11382
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11383
}'`; fi
 
11384
else
 
11385
  echo "$as_me: failed program was:" >&5
 
11386
sed 's/^/| /' conftest.$ac_ext >&5
 
11387
 
 
11388
 
 
11389
fi
 
11390
 
 
11391
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11392
      conftest$ac_exeext conftest.$ac_ext
 
11393
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11394
 
 
11395
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11396
        # Warning - without using the other run time loading flags,
 
11397
        # -berok will link without error, but may produce a broken library.
 
11398
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11399
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11400
        # Exported symbols can be pulled into shared objects from archives
 
11401
        whole_archive_flag_spec_CXX='$convenience'
 
11402
        archive_cmds_need_lc_CXX=yes
 
11403
        # This is similar to how AIX traditionally builds its shared libraries.
 
11404
        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'
 
11405
      fi
 
11406
    fi
 
11407
    ;;
 
11408
 
 
11409
  beos*)
 
11410
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11411
      allow_undefined_flag_CXX=unsupported
 
11412
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11413
      # support --undefined.  This deserves some investigation.  FIXME
 
11414
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11415
    else
 
11416
      ld_shlibs_CXX=no
 
11417
    fi
 
11418
    ;;
 
11419
 
 
11420
  chorus*)
 
11421
    case $cc_basename in
 
11422
      *)
 
11423
        # FIXME: insert proper C++ library support
 
11424
        ld_shlibs_CXX=no
 
11425
        ;;
 
11426
    esac
 
11427
    ;;
 
11428
 
 
11429
  cygwin* | mingw* | pw32*)
 
11430
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11431
    # as there is no search path for DLLs.
 
11432
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11433
    allow_undefined_flag_CXX=unsupported
 
11434
    always_export_symbols_CXX=no
 
11435
    enable_shared_with_static_runtimes_CXX=yes
 
11436
 
 
11437
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11438
      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'
 
11439
      # If the export-symbols file already is a .def file (1st line
 
11440
      # is EXPORTS), use it as is; otherwise, prepend...
 
11441
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11442
        cp $export_symbols $output_objdir/$soname.def;
 
11443
      else
 
11444
        echo EXPORTS > $output_objdir/$soname.def;
 
11445
        cat $export_symbols >> $output_objdir/$soname.def;
 
11446
      fi~
 
11447
      $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'
 
11448
    else
 
11449
      ld_shlibs_CXX=no
 
11450
    fi
 
11451
  ;;
 
11452
      darwin* | rhapsody*)
 
11453
        case $host_os in
 
11454
        rhapsody* | darwin1.[012])
 
11455
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11456
         ;;
 
11457
       *) # Darwin 1.3 on
 
11458
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11459
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11460
         else
 
11461
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11462
             10.[012])
 
11463
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11464
               ;;
 
11465
             10.*)
 
11466
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11467
               ;;
 
11468
           esac
 
11469
         fi
 
11470
         ;;
 
11471
        esac
 
11472
      archive_cmds_need_lc_CXX=no
 
11473
      hardcode_direct_CXX=no
 
11474
      hardcode_automatic_CXX=yes
 
11475
      hardcode_shlibpath_var_CXX=unsupported
 
11476
      whole_archive_flag_spec_CXX=''
 
11477
      link_all_deplibs_CXX=yes
 
11478
 
 
11479
    if test "$GXX" = yes ; then
 
11480
      lt_int_apple_cc_single_mod=no
 
11481
      output_verbose_link_cmd='echo'
 
11482
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11483
       lt_int_apple_cc_single_mod=yes
 
11484
      fi
 
11485
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11486
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11487
      else
 
11488
          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'
 
11489
        fi
 
11490
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11491
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11492
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11493
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11494
          else
 
11495
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11496
          fi
 
11497
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11498
      else
 
11499
      case $cc_basename in
 
11500
        xlc*)
 
11501
         output_verbose_link_cmd='echo'
 
11502
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11503
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11504
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11505
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11506
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11507
          ;;
 
11508
       *)
 
11509
         ld_shlibs_CXX=no
 
11510
          ;;
 
11511
      esac
 
11512
      fi
 
11513
        ;;
 
11514
 
 
11515
  dgux*)
 
11516
    case $cc_basename in
 
11517
      ec++*)
 
11518
        # FIXME: insert proper C++ library support
 
11519
        ld_shlibs_CXX=no
 
11520
        ;;
 
11521
      ghcx*)
 
11522
        # Green Hills C++ Compiler
 
11523
        # FIXME: insert proper C++ library support
 
11524
        ld_shlibs_CXX=no
 
11525
        ;;
 
11526
      *)
 
11527
        # FIXME: insert proper C++ library support
 
11528
        ld_shlibs_CXX=no
 
11529
        ;;
 
11530
    esac
 
11531
    ;;
 
11532
  freebsd[12]*)
 
11533
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11534
    ld_shlibs_CXX=no
 
11535
    ;;
 
11536
  freebsd-elf*)
 
11537
    archive_cmds_need_lc_CXX=no
 
11538
    ;;
 
11539
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
11540
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11541
    # conventions
 
11542
    ld_shlibs_CXX=yes
 
11543
    ;;
 
11544
  gnu*)
 
11545
    ;;
 
11546
  hpux9*)
 
11547
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11548
    hardcode_libdir_separator_CXX=:
 
11549
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11550
    hardcode_direct_CXX=yes
 
11551
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11552
                                # but as the default
 
11553
                                # location of the library.
 
11554
 
 
11555
    case $cc_basename in
 
11556
    CC*)
 
11557
      # FIXME: insert proper C++ library support
 
11558
      ld_shlibs_CXX=no
 
11559
      ;;
 
11560
    aCC*)
 
11561
      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'
 
11562
      # Commands to make compiler produce verbose output that lists
 
11563
      # what "hidden" libraries, object files and flags are used when
 
11564
      # linking a shared library.
 
11565
      #
 
11566
      # There doesn't appear to be a way to prevent this compiler from
 
11567
      # explicitly linking system object files so we need to strip them
 
11568
      # from the output so that they don't get included in the library
 
11569
      # dependencies.
 
11570
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11571
      ;;
 
11572
    *)
 
11573
      if test "$GXX" = yes; then
 
11574
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11575
      else
 
11576
        # FIXME: insert proper C++ library support
 
11577
        ld_shlibs_CXX=no
 
11578
      fi
 
11579
      ;;
 
11580
    esac
 
11581
    ;;
 
11582
  hpux10*|hpux11*)
 
11583
    if test $with_gnu_ld = no; then
 
11584
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11585
      hardcode_libdir_separator_CXX=:
 
11586
 
 
11587
      case $host_cpu in
 
11588
      hppa*64*|ia64*)
 
11589
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11590
        ;;
 
11591
      *)
 
11592
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11593
        ;;
 
11594
      esac
 
11595
    fi
 
11596
    case $host_cpu in
 
11597
    hppa*64*|ia64*)
 
11598
      hardcode_direct_CXX=no
 
11599
      hardcode_shlibpath_var_CXX=no
 
11600
      ;;
 
11601
    *)
 
11602
      hardcode_direct_CXX=yes
 
11603
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11604
                                              # but as the default
 
11605
                                              # location of the library.
 
11606
      ;;
 
11607
    esac
 
11608
 
 
11609
    case $cc_basename in
 
11610
      CC*)
 
11611
        # FIXME: insert proper C++ library support
 
11612
        ld_shlibs_CXX=no
 
11613
        ;;
 
11614
      aCC*)
 
11615
        case $host_cpu in
 
11616
        hppa*64*)
 
11617
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11618
          ;;
 
11619
        ia64*)
 
11620
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11621
          ;;
 
11622
        *)
 
11623
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11624
          ;;
 
11625
        esac
 
11626
        # Commands to make compiler produce verbose output that lists
 
11627
        # what "hidden" libraries, object files and flags are used when
 
11628
        # linking a shared library.
 
11629
        #
 
11630
        # There doesn't appear to be a way to prevent this compiler from
 
11631
        # explicitly linking system object files so we need to strip them
 
11632
        # from the output so that they don't get included in the library
 
11633
        # dependencies.
 
11634
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11635
        ;;
 
11636
      *)
 
11637
        if test "$GXX" = yes; then
 
11638
          if test $with_gnu_ld = no; then
 
11639
            case $host_cpu in
 
11640
            hppa*64*)
 
11641
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11642
              ;;
 
11643
            ia64*)
 
11644
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11645
              ;;
 
11646
            *)
 
11647
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11648
              ;;
 
11649
            esac
 
11650
          fi
 
11651
        else
 
11652
          # FIXME: insert proper C++ library support
 
11653
          ld_shlibs_CXX=no
 
11654
        fi
 
11655
        ;;
 
11656
    esac
 
11657
    ;;
 
11658
  interix3*)
 
11659
    hardcode_direct_CXX=no
 
11660
    hardcode_shlibpath_var_CXX=no
 
11661
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11662
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11663
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11664
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11665
    # default) and relocated if they conflict, which is a slow very memory
 
11666
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11667
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11668
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11669
    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'
 
11670
    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'
 
11671
    ;;
 
11672
  irix5* | irix6*)
 
11673
    case $cc_basename in
 
11674
      CC*)
 
11675
        # SGI C++
 
11676
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11677
 
 
11678
        # Archives containing C++ object files must be created using
 
11679
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11680
        # necessary to make sure instantiated templates are included
 
11681
        # in the archive.
 
11682
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11683
        ;;
 
11684
      *)
 
11685
        if test "$GXX" = yes; then
 
11686
          if test "$with_gnu_ld" = no; then
 
11687
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11688
          else
 
11689
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11690
          fi
 
11691
        fi
 
11692
        link_all_deplibs_CXX=yes
 
11693
        ;;
 
11694
    esac
 
11695
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11696
    hardcode_libdir_separator_CXX=:
 
11697
    ;;
 
11698
  linux*)
 
11699
    case $cc_basename in
 
11700
      KCC*)
 
11701
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11702
 
 
11703
        # KCC will only create a shared library if the output file
 
11704
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11705
        # to its proper name (with version) after linking.
 
11706
        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'
 
11707
        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'
 
11708
        # Commands to make compiler produce verbose output that lists
 
11709
        # what "hidden" libraries, object files and flags are used when
 
11710
        # linking a shared library.
 
11711
        #
 
11712
        # There doesn't appear to be a way to prevent this compiler from
 
11713
        # explicitly linking system object files so we need to strip them
 
11714
        # from the output so that they don't get included in the library
 
11715
        # dependencies.
 
11716
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11717
 
 
11718
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11719
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11720
 
 
11721
        # Archives containing C++ object files must be created using
 
11722
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11723
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11724
        ;;
 
11725
      icpc*)
 
11726
        # Intel C++
 
11727
        with_gnu_ld=yes
 
11728
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11729
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11730
        # earlier do not add the objects themselves.
 
11731
        case `$CC -V 2>&1` in
 
11732
        *"Version 7."*)
 
11733
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11734
          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'
 
11735
          ;;
 
11736
        *)  # Version 8.0 or newer
 
11737
          tmp_idyn=
 
11738
          case $host_cpu in
 
11739
            ia64*) tmp_idyn=' -i_dynamic';;
 
11740
          esac
 
11741
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11742
          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'
 
11743
          ;;
 
11744
        esac
 
11745
        archive_cmds_need_lc_CXX=no
 
11746
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11747
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11748
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11749
        ;;
 
11750
      pgCC*)
 
11751
        # Portland Group C++ compiler
 
11752
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11753
        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'
 
11754
 
 
11755
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11756
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11757
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11758
        ;;
 
11759
      cxx*)
 
11760
        # Compaq C++
 
11761
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11762
        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'
 
11763
 
 
11764
        runpath_var=LD_RUN_PATH
 
11765
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11766
        hardcode_libdir_separator_CXX=:
 
11767
 
 
11768
        # Commands to make compiler produce verbose output that lists
 
11769
        # what "hidden" libraries, object files and flags are used when
 
11770
        # linking a shared library.
 
11771
        #
 
11772
        # There doesn't appear to be a way to prevent this compiler from
 
11773
        # explicitly linking system object files so we need to strip them
 
11774
        # from the output so that they don't get included in the library
 
11775
        # dependencies.
 
11776
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
 
11777
        ;;
 
11778
    esac
 
11779
    ;;
 
11780
  lynxos*)
 
11781
    # FIXME: insert proper C++ library support
 
11782
    ld_shlibs_CXX=no
 
11783
    ;;
 
11784
  m88k*)
 
11785
    # FIXME: insert proper C++ library support
 
11786
    ld_shlibs_CXX=no
 
11787
    ;;
 
11788
  mvs*)
 
11789
    case $cc_basename in
 
11790
      cxx*)
 
11791
        # FIXME: insert proper C++ library support
 
11792
        ld_shlibs_CXX=no
 
11793
        ;;
 
11794
      *)
 
11795
        # FIXME: insert proper C++ library support
 
11796
        ld_shlibs_CXX=no
 
11797
        ;;
 
11798
    esac
 
11799
    ;;
 
11800
  netbsd*)
 
11801
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11802
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11803
      wlarc=
 
11804
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11805
      hardcode_direct_CXX=yes
 
11806
      hardcode_shlibpath_var_CXX=no
 
11807
    fi
 
11808
    # Workaround some broken pre-1.5 toolchains
 
11809
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11810
    ;;
 
11811
  openbsd2*)
 
11812
    # C++ shared libraries are fairly broken
 
11813
    ld_shlibs_CXX=no
 
11814
    ;;
 
11815
  openbsd*)
 
11816
    hardcode_direct_CXX=yes
 
11817
    hardcode_shlibpath_var_CXX=no
 
11818
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11819
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11820
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11821
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11822
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11823
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11824
    fi
 
11825
    output_verbose_link_cmd='echo'
 
11826
    ;;
 
11827
  osf3*)
 
11828
    case $cc_basename in
 
11829
      KCC*)
 
11830
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11831
 
 
11832
        # KCC will only create a shared library if the output file
 
11833
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11834
        # to its proper name (with version) after linking.
 
11835
        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'
 
11836
 
 
11837
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11838
        hardcode_libdir_separator_CXX=:
 
11839
 
 
11840
        # Archives containing C++ object files must be created using
 
11841
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11842
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11843
 
 
11844
        ;;
 
11845
      RCC*)
 
11846
        # Rational C++ 2.4.1
 
11847
        # FIXME: insert proper C++ library support
 
11848
        ld_shlibs_CXX=no
 
11849
        ;;
 
11850
      cxx*)
 
11851
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11852
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11853
 
 
11854
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11855
        hardcode_libdir_separator_CXX=:
 
11856
 
 
11857
        # Commands to make compiler produce verbose output that lists
 
11858
        # what "hidden" libraries, object files and flags are used when
 
11859
        # linking a shared library.
 
11860
        #
 
11861
        # There doesn't appear to be a way to prevent this compiler from
 
11862
        # explicitly linking system object files so we need to strip them
 
11863
        # from the output so that they don't get included in the library
 
11864
        # dependencies.
 
11865
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
 
11866
        ;;
 
11867
      *)
 
11868
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11869
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11870
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11871
 
 
11872
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11873
          hardcode_libdir_separator_CXX=:
 
11874
 
 
11875
          # Commands to make compiler produce verbose output that lists
 
11876
          # what "hidden" libraries, object files and flags are used when
 
11877
          # linking a shared library.
 
11878
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11879
 
 
11880
        else
 
11881
          # FIXME: insert proper C++ library support
 
11882
          ld_shlibs_CXX=no
 
11883
        fi
 
11884
        ;;
 
11885
    esac
 
11886
    ;;
 
11887
  osf4* | osf5*)
 
11888
    case $cc_basename in
 
11889
      KCC*)
 
11890
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11891
 
 
11892
        # KCC will only create a shared library if the output file
 
11893
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11894
        # to its proper name (with version) after linking.
 
11895
        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'
 
11896
 
 
11897
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11898
        hardcode_libdir_separator_CXX=:
 
11899
 
 
11900
        # Archives containing C++ object files must be created using
 
11901
        # the KAI C++ compiler.
 
11902
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11903
        ;;
 
11904
      RCC*)
 
11905
        # Rational C++ 2.4.1
 
11906
        # FIXME: insert proper C++ library support
 
11907
        ld_shlibs_CXX=no
 
11908
        ;;
 
11909
      cxx*)
 
11910
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11911
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11912
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11913
          echo "-hidden">> $lib.exp~
 
11914
          $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~
 
11915
          $rm $lib.exp'
 
11916
 
 
11917
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11918
        hardcode_libdir_separator_CXX=:
 
11919
 
 
11920
        # Commands to make compiler produce verbose output that lists
 
11921
        # what "hidden" libraries, object files and flags are used when
 
11922
        # linking a shared library.
 
11923
        #
 
11924
        # There doesn't appear to be a way to prevent this compiler from
 
11925
        # explicitly linking system object files so we need to strip them
 
11926
        # from the output so that they don't get included in the library
 
11927
        # dependencies.
 
11928
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
 
11929
        ;;
 
11930
      *)
 
11931
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11932
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11933
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11934
 
 
11935
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11936
          hardcode_libdir_separator_CXX=:
 
11937
 
 
11938
          # Commands to make compiler produce verbose output that lists
 
11939
          # what "hidden" libraries, object files and flags are used when
 
11940
          # linking a shared library.
 
11941
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11942
 
 
11943
        else
 
11944
          # FIXME: insert proper C++ library support
 
11945
          ld_shlibs_CXX=no
 
11946
        fi
 
11947
        ;;
 
11948
    esac
 
11949
    ;;
 
11950
  psos*)
 
11951
    # FIXME: insert proper C++ library support
 
11952
    ld_shlibs_CXX=no
 
11953
    ;;
 
11954
  sunos4*)
 
11955
    case $cc_basename in
 
11956
      CC*)
 
11957
        # Sun C++ 4.x
 
11958
        # FIXME: insert proper C++ library support
 
11959
        ld_shlibs_CXX=no
 
11960
        ;;
 
11961
      lcc*)
 
11962
        # Lucid
 
11963
        # FIXME: insert proper C++ library support
 
11964
        ld_shlibs_CXX=no
 
11965
        ;;
 
11966
      *)
 
11967
        # FIXME: insert proper C++ library support
 
11968
        ld_shlibs_CXX=no
 
11969
        ;;
 
11970
    esac
 
11971
    ;;
 
11972
  solaris*)
 
11973
    case $cc_basename in
 
11974
      CC*)
 
11975
        # Sun C++ 4.2, 5.x and Centerline C++
 
11976
        archive_cmds_need_lc_CXX=yes
 
11977
        no_undefined_flag_CXX=' -zdefs'
 
11978
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11979
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11980
        $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'
 
11981
 
 
11982
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11983
        hardcode_shlibpath_var_CXX=no
 
11984
        case $host_os in
 
11985
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11986
          *)
 
11987
            # The C++ compiler is used as linker so we must use $wl
 
11988
            # flag to pass the commands to the underlying system
 
11989
            # linker. We must also pass each convience library through
 
11990
            # to the system linker between allextract/defaultextract.
 
11991
            # The C++ compiler will combine linker options so we
 
11992
            # cannot just pass the convience library names through
 
11993
            # without $wl.
 
11994
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11995
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
11996
            ;;
 
11997
        esac
 
11998
        link_all_deplibs_CXX=yes
 
11999
 
 
12000
        output_verbose_link_cmd='echo'
 
12001
 
 
12002
        # Archives containing C++ object files must be created using
 
12003
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12004
        # necessary to make sure instantiated templates are included
 
12005
        # in the archive.
 
12006
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12007
        ;;
 
12008
      gcx*)
 
12009
        # Green Hills C++ Compiler
 
12010
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12011
 
 
12012
        # The C++ compiler must be used to create the archive.
 
12013
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12014
        ;;
 
12015
      *)
 
12016
        # GNU C++ compiler with Solaris linker
 
12017
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12018
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12019
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12020
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12021
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12022
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12023
 
 
12024
            # Commands to make compiler produce verbose output that lists
 
12025
            # what "hidden" libraries, object files and flags are used when
 
12026
            # linking a shared library.
 
12027
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12028
          else
 
12029
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12030
            # platform.
 
12031
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12032
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12033
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12034
 
 
12035
            # Commands to make compiler produce verbose output that lists
 
12036
            # what "hidden" libraries, object files and flags are used when
 
12037
            # linking a shared library.
 
12038
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12039
          fi
 
12040
 
 
12041
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12042
        fi
 
12043
        ;;
 
12044
    esac
 
12045
    ;;
 
12046
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12047
    no_undefined_flag_CXX='${wl}-z,text'
 
12048
    archive_cmds_need_lc_CXX=no
 
12049
    hardcode_shlibpath_var_CXX=no
 
12050
    runpath_var='LD_RUN_PATH'
 
12051
 
 
12052
    case $cc_basename in
 
12053
      CC*)
 
12054
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12055
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12056
        ;;
 
12057
      *)
 
12058
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12059
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12060
        ;;
 
12061
    esac
 
12062
    ;;
 
12063
  sysv5* | sco3.2v5* | sco5v6*)
 
12064
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12065
    # link with -lc, and that would cause any symbols used from libc to
 
12066
    # always be unresolved, which means just about no library would
 
12067
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12068
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12069
    # as -z defs.
 
12070
    # For security reasons, it is highly recommended that you always
 
12071
    # use absolute paths for naming shared libraries, and exclude the
 
12072
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12073
    # requires that you compile everything twice, which is a pain.
 
12074
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12075
    # non-empty value in the environment.  Most likely only useful for
 
12076
    # creating official distributions of packages.
 
12077
    # This is a hack until libtool officially supports absolute path
 
12078
    # names for shared libraries.
 
12079
    no_undefined_flag_CXX='${wl}-z,text'
 
12080
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12081
    archive_cmds_need_lc_CXX=no
 
12082
    hardcode_shlibpath_var_CXX=no
 
12083
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12084
    hardcode_libdir_separator_CXX=':'
 
12085
    link_all_deplibs_CXX=yes
 
12086
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12087
    runpath_var='LD_RUN_PATH'
 
12088
 
 
12089
    case $cc_basename in
 
12090
      CC*)
 
12091
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12092
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12093
        ;;
 
12094
      *)
 
12095
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12096
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12097
        ;;
 
12098
    esac
 
12099
    ;;
 
12100
  tandem*)
 
12101
    case $cc_basename in
 
12102
      NCC*)
 
12103
        # NonStop-UX NCC 3.20
 
12104
        # FIXME: insert proper C++ library support
 
12105
        ld_shlibs_CXX=no
 
12106
        ;;
 
12107
      *)
 
12108
        # FIXME: insert proper C++ library support
 
12109
        ld_shlibs_CXX=no
 
12110
        ;;
 
12111
    esac
 
12112
    ;;
 
12113
  vxworks*)
 
12114
    # FIXME: insert proper C++ library support
 
12115
    ld_shlibs_CXX=no
 
12116
    ;;
 
12117
  *)
 
12118
    # FIXME: insert proper C++ library support
 
12119
    ld_shlibs_CXX=no
 
12120
    ;;
 
12121
esac
 
12122
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12123
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12124
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12125
 
 
12126
GCC_CXX="$GXX"
 
12127
LD_CXX="$LD"
 
12128
 
 
12129
 
 
12130
cat > conftest.$ac_ext <<EOF
 
12131
class Foo
 
12132
{
 
12133
public:
 
12134
  Foo (void) { a = 0; }
 
12135
private:
 
12136
  int a;
 
12137
};
 
12138
EOF
 
12139
 
 
12140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12141
  (eval $ac_compile) 2>&5
 
12142
  ac_status=$?
 
12143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12144
  (exit $ac_status); }; then
 
12145
  # Parse the compiler output and extract the necessary
 
12146
  # objects, libraries and library flags.
 
12147
 
 
12148
  # Sentinel used to keep track of whether or not we are before
 
12149
  # the conftest object file.
 
12150
  pre_test_object_deps_done=no
 
12151
 
 
12152
  # The `*' in the case matches for architectures that use `case' in
 
12153
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12154
  # eval without this substitution.
 
12155
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12156
 
 
12157
  for p in `eval $output_verbose_link_cmd`; do
 
12158
    case $p in
 
12159
 
 
12160
    -L* | -R* | -l*)
 
12161
       # Some compilers place space between "-{L,R}" and the path.
 
12162
       # Remove the space.
 
12163
       if test $p = "-L" \
 
12164
          || test $p = "-R"; then
 
12165
         prev=$p
 
12166
         continue
 
12167
       else
 
12168
         prev=
 
12169
       fi
 
12170
 
 
12171
       if test "$pre_test_object_deps_done" = no; then
 
12172
         case $p in
 
12173
         -L* | -R*)
 
12174
           # Internal compiler library paths should come after those
 
12175
           # provided the user.  The postdeps already come after the
 
12176
           # user supplied libs so there is no need to process them.
 
12177
           if test -z "$compiler_lib_search_path_CXX"; then
 
12178
             compiler_lib_search_path_CXX="${prev}${p}"
 
12179
           else
 
12180
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12181
           fi
 
12182
           ;;
 
12183
         # The "-l" case would never come before the object being
 
12184
         # linked, so don't bother handling this case.
 
12185
         esac
 
12186
       else
 
12187
         if test -z "$postdeps_CXX"; then
 
12188
           postdeps_CXX="${prev}${p}"
 
12189
         else
 
12190
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12191
         fi
 
12192
       fi
 
12193
       ;;
 
12194
 
 
12195
    *.$objext)
 
12196
       # This assumes that the test object file only shows up
 
12197
       # once in the compiler output.
 
12198
       if test "$p" = "conftest.$objext"; then
 
12199
         pre_test_object_deps_done=yes
 
12200
         continue
 
12201
       fi
 
12202
 
 
12203
       if test "$pre_test_object_deps_done" = no; then
 
12204
         if test -z "$predep_objects_CXX"; then
 
12205
           predep_objects_CXX="$p"
 
12206
         else
 
12207
           predep_objects_CXX="$predep_objects_CXX $p"
 
12208
         fi
 
12209
       else
 
12210
         if test -z "$postdep_objects_CXX"; then
 
12211
           postdep_objects_CXX="$p"
 
12212
         else
 
12213
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12214
         fi
 
12215
       fi
 
12216
       ;;
 
12217
 
 
12218
    *) ;; # Ignore the rest.
 
12219
 
 
12220
    esac
 
12221
  done
 
12222
 
 
12223
  # Clean up.
 
12224
  rm -f a.out a.exe
 
12225
else
 
12226
  echo "libtool.m4: error: problem compiling CXX test program"
 
12227
fi
 
12228
 
 
12229
$rm -f confest.$objext
 
12230
 
 
12231
# PORTME: override above test on systems where it is broken
 
12232
case $host_os in
 
12233
interix3*)
 
12234
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12235
  # hack all around it, let's just trust "g++" to DTRT.
 
12236
  predep_objects_CXX=
 
12237
  postdep_objects_CXX=
 
12238
  postdeps_CXX=
 
12239
  ;;
 
12240
 
 
12241
solaris*)
 
12242
  case $cc_basename in
 
12243
  CC*)
 
12244
    # Adding this requires a known-good setup of shared libraries for
 
12245
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12246
    # archive will be linked into the output, leading to subtle bugs.
 
12247
    postdeps_CXX='-lCstd -lCrun'
 
12248
    ;;
 
12249
  esac
 
12250
  ;;
 
12251
esac
 
12252
 
 
12253
 
 
12254
case " $postdeps_CXX " in
 
12255
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12256
esac
 
12257
 
 
12258
lt_prog_compiler_wl_CXX=
 
12259
lt_prog_compiler_pic_CXX=
 
12260
lt_prog_compiler_static_CXX=
 
12261
 
 
12262
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12263
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12264
 
 
12265
  # C++ specific cases for pic, static, wl, etc.
 
12266
  if test "$GXX" = yes; then
 
12267
    lt_prog_compiler_wl_CXX='-Wl,'
 
12268
    lt_prog_compiler_static_CXX='-static'
 
12269
 
 
12270
    case $host_os in
 
12271
    aix*)
 
12272
      # All AIX code is PIC.
 
12273
      if test "$host_cpu" = ia64; then
 
12274
        # AIX 5 now supports IA64 processor
 
12275
        lt_prog_compiler_static_CXX='-Bstatic'
 
12276
      fi
 
12277
      ;;
 
12278
    amigaos*)
 
12279
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12280
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12281
      # like `-m68040'.
 
12282
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12283
      ;;
 
12284
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12285
      # PIC is the default for these OSes.
 
12286
      ;;
 
12287
    mingw* | os2* | pw32*)
 
12288
      # This hack is so that the source file can tell whether it is being
 
12289
      # built for inclusion in a dll (and should export symbols for example).
 
12290
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12291
      ;;
 
12292
    darwin* | rhapsody*)
 
12293
      # PIC is the default on this platform
 
12294
      # Common symbols not allowed in MH_DYLIB files
 
12295
      lt_prog_compiler_pic_CXX='-fno-common'
 
12296
      ;;
 
12297
    *djgpp*)
 
12298
      # DJGPP does not support shared libraries at all
 
12299
      lt_prog_compiler_pic_CXX=
 
12300
      ;;
 
12301
    interix3*)
 
12302
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12303
      # Instead, we relocate shared libraries at runtime.
 
12304
      ;;
 
12305
    sysv4*MP*)
 
12306
      if test -d /usr/nec; then
 
12307
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12308
      fi
 
12309
      ;;
 
12310
    hpux*)
 
12311
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12312
      # not for PA HP-UX.
 
12313
      case $host_cpu in
 
12314
      hppa*64*|ia64*)
 
12315
        ;;
 
12316
      *)
 
12317
        lt_prog_compiler_pic_CXX='-fPIC'
 
12318
        ;;
 
12319
      esac
 
12320
      ;;
 
12321
    *)
 
12322
      lt_prog_compiler_pic_CXX='-fPIC'
 
12323
      ;;
 
12324
    esac
 
12325
  else
 
12326
    case $host_os in
 
12327
      aix4* | aix5*)
 
12328
        # All AIX code is PIC.
 
12329
        if test "$host_cpu" = ia64; then
 
12330
          # AIX 5 now supports IA64 processor
 
12331
          lt_prog_compiler_static_CXX='-Bstatic'
 
12332
        else
 
12333
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12334
        fi
 
12335
        ;;
 
12336
      chorus*)
 
12337
        case $cc_basename in
 
12338
        cxch68*)
 
12339
          # Green Hills C++ Compiler
 
12340
          # _LT_AC_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"
 
12341
          ;;
 
12342
        esac
 
12343
        ;;
 
12344
       darwin*)
 
12345
         # PIC is the default on this platform
 
12346
         # Common symbols not allowed in MH_DYLIB files
 
12347
         case $cc_basename in
 
12348
           xlc*)
 
12349
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12350
           lt_prog_compiler_wl_CXX='-Wl,'
 
12351
           ;;
 
12352
         esac
 
12353
       ;;
 
12354
      dgux*)
 
12355
        case $cc_basename in
 
12356
          ec++*)
 
12357
            lt_prog_compiler_pic_CXX='-KPIC'
 
12358
            ;;
 
12359
          ghcx*)
 
12360
            # Green Hills C++ Compiler
 
12361
            lt_prog_compiler_pic_CXX='-pic'
 
12362
            ;;
 
12363
          *)
 
12364
            ;;
 
12365
        esac
 
12366
        ;;
 
12367
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
12368
        # FreeBSD uses GNU C++
 
12369
        ;;
 
12370
      hpux9* | hpux10* | hpux11*)
 
12371
        case $cc_basename in
 
12372
          CC*)
 
12373
            lt_prog_compiler_wl_CXX='-Wl,'
 
12374
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12375
            if test "$host_cpu" != ia64; then
 
12376
              lt_prog_compiler_pic_CXX='+Z'
 
12377
            fi
 
12378
            ;;
 
12379
          aCC*)
 
12380
            lt_prog_compiler_wl_CXX='-Wl,'
 
12381
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12382
            case $host_cpu in
 
12383
            hppa*64*|ia64*)
 
12384
              # +Z the default
 
12385
              ;;
 
12386
            *)
 
12387
              lt_prog_compiler_pic_CXX='+Z'
 
12388
              ;;
 
12389
            esac
 
12390
            ;;
 
12391
          *)
 
12392
            ;;
 
12393
        esac
 
12394
        ;;
 
12395
      interix*)
 
12396
        # This is c89, which is MS Visual C++ (no shared libs)
 
12397
        # Anyone wants to do a port?
 
12398
        ;;
 
12399
      irix5* | irix6* | nonstopux*)
 
12400
        case $cc_basename in
 
12401
          CC*)
 
12402
            lt_prog_compiler_wl_CXX='-Wl,'
 
12403
            lt_prog_compiler_static_CXX='-non_shared'
 
12404
            # CC pic flag -KPIC is the default.
 
12405
            ;;
 
12406
          *)
 
12407
            ;;
 
12408
        esac
 
12409
        ;;
 
12410
      linux*)
 
12411
        case $cc_basename in
 
12412
          KCC*)
 
12413
            # KAI C++ Compiler
 
12414
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12415
            lt_prog_compiler_pic_CXX='-fPIC'
 
12416
            ;;
 
12417
          icpc* | ecpc*)
 
12418
            # Intel C++
 
12419
            lt_prog_compiler_wl_CXX='-Wl,'
 
12420
            lt_prog_compiler_pic_CXX='-KPIC'
 
12421
            lt_prog_compiler_static_CXX='-static'
 
12422
            ;;
 
12423
          pgCC*)
 
12424
            # Portland Group C++ compiler.
 
12425
            lt_prog_compiler_wl_CXX='-Wl,'
 
12426
            lt_prog_compiler_pic_CXX='-fpic'
 
12427
            lt_prog_compiler_static_CXX='-Bstatic'
 
12428
            ;;
 
12429
          cxx*)
 
12430
            # Compaq C++
 
12431
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12432
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12433
            lt_prog_compiler_pic_CXX=
 
12434
            lt_prog_compiler_static_CXX='-non_shared'
 
12435
            ;;
 
12436
          *)
 
12437
            ;;
 
12438
        esac
 
12439
        ;;
 
12440
      lynxos*)
 
12441
        ;;
 
12442
      m88k*)
 
12443
        ;;
 
12444
      mvs*)
 
12445
        case $cc_basename in
 
12446
          cxx*)
 
12447
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12448
            ;;
 
12449
          *)
 
12450
            ;;
 
12451
        esac
 
12452
        ;;
 
12453
      netbsd*)
 
12454
        ;;
 
12455
      osf3* | osf4* | osf5*)
 
12456
        case $cc_basename in
 
12457
          KCC*)
 
12458
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12459
            ;;
 
12460
          RCC*)
 
12461
            # Rational C++ 2.4.1
 
12462
            lt_prog_compiler_pic_CXX='-pic'
 
12463
            ;;
 
12464
          cxx*)
 
12465
            # Digital/Compaq C++
 
12466
            lt_prog_compiler_wl_CXX='-Wl,'
 
12467
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12468
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12469
            lt_prog_compiler_pic_CXX=
 
12470
            lt_prog_compiler_static_CXX='-non_shared'
 
12471
            ;;
 
12472
          *)
 
12473
            ;;
 
12474
        esac
 
12475
        ;;
 
12476
      psos*)
 
12477
        ;;
 
12478
      solaris*)
 
12479
        case $cc_basename in
 
12480
          CC*)
 
12481
            # Sun C++ 4.2, 5.x and Centerline C++
 
12482
            lt_prog_compiler_pic_CXX='-KPIC'
 
12483
            lt_prog_compiler_static_CXX='-Bstatic'
 
12484
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12485
            ;;
 
12486
          gcx*)
 
12487
            # Green Hills C++ Compiler
 
12488
            lt_prog_compiler_pic_CXX='-PIC'
 
12489
            ;;
 
12490
          *)
 
12491
            ;;
 
12492
        esac
 
12493
        ;;
 
12494
      sunos4*)
 
12495
        case $cc_basename in
 
12496
          CC*)
 
12497
            # Sun C++ 4.x
 
12498
            lt_prog_compiler_pic_CXX='-pic'
 
12499
            lt_prog_compiler_static_CXX='-Bstatic'
 
12500
            ;;
 
12501
          lcc*)
 
12502
            # Lucid
 
12503
            lt_prog_compiler_pic_CXX='-pic'
 
12504
            ;;
 
12505
          *)
 
12506
            ;;
 
12507
        esac
 
12508
        ;;
 
12509
      tandem*)
 
12510
        case $cc_basename in
 
12511
          NCC*)
 
12512
            # NonStop-UX NCC 3.20
 
12513
            lt_prog_compiler_pic_CXX='-KPIC'
 
12514
            ;;
 
12515
          *)
 
12516
            ;;
 
12517
        esac
 
12518
        ;;
 
12519
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12520
        case $cc_basename in
 
12521
          CC*)
 
12522
            lt_prog_compiler_wl_CXX='-Wl,'
 
12523
            lt_prog_compiler_pic_CXX='-KPIC'
 
12524
            lt_prog_compiler_static_CXX='-Bstatic'
 
12525
            ;;
 
12526
        esac
 
12527
        ;;
 
12528
      vxworks*)
 
12529
        ;;
 
12530
      *)
 
12531
        lt_prog_compiler_can_build_shared_CXX=no
 
12532
        ;;
 
12533
    esac
 
12534
  fi
 
12535
 
 
12536
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12537
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12538
 
 
12539
#
 
12540
# Check to make sure the PIC flag actually works.
 
12541
#
 
12542
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12543
 
 
12544
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12545
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12546
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12548
else
 
12549
  lt_prog_compiler_pic_works_CXX=no
 
12550
  ac_outfile=conftest.$ac_objext
 
12551
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12552
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12553
   # Insert the option either (1) after the last *FLAGS variable, or
 
12554
   # (2) before a word containing "conftest.", or (3) at the end.
 
12555
   # Note that $ac_compile itself does not contain backslashes and begins
 
12556
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12557
   # The option is referenced via a variable to avoid confusing sed.
 
12558
   lt_compile=`echo "$ac_compile" | $SED \
 
12559
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12560
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12561
   -e 's:$: $lt_compiler_flag:'`
 
12562
   (eval echo "\"\$as_me:12562: $lt_compile\"" >&5)
 
12563
   (eval "$lt_compile" 2>conftest.err)
 
12564
   ac_status=$?
 
12565
   cat conftest.err >&5
 
12566
   echo "$as_me:12566: \$? = $ac_status" >&5
 
12567
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12568
     # The compiler can only warn and ignore the option if not recognized
 
12569
     # So say no if there are warnings other than the usual output.
 
12570
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12571
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12572
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12573
       lt_prog_compiler_pic_works_CXX=yes
 
12574
     fi
 
12575
   fi
 
12576
   $rm conftest*
 
12577
 
 
12578
fi
 
12579
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12580
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12581
 
 
12582
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12583
    case $lt_prog_compiler_pic_CXX in
 
12584
     "" | " "*) ;;
 
12585
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12586
     esac
 
12587
else
 
12588
    lt_prog_compiler_pic_CXX=
 
12589
     lt_prog_compiler_can_build_shared_CXX=no
 
12590
fi
 
12591
 
 
12592
fi
 
12593
case $host_os in
 
12594
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12595
  *djgpp*)
 
12596
    lt_prog_compiler_pic_CXX=
 
12597
    ;;
 
12598
  *)
 
12599
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12600
    ;;
 
12601
esac
 
12602
 
 
12603
#
 
12604
# Check to make sure the static flag actually works.
 
12605
#
 
12606
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12607
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12608
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12609
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12611
else
 
12612
  lt_prog_compiler_static_works_CXX=no
 
12613
   save_LDFLAGS="$LDFLAGS"
 
12614
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12615
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12616
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12617
     # The linker can only warn and ignore the option if not recognized
 
12618
     # So say no if there are warnings
 
12619
     if test -s conftest.err; then
 
12620
       # Append any errors to the config.log.
 
12621
       cat conftest.err 1>&5
 
12622
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12623
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12624
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12625
         lt_prog_compiler_static_works_CXX=yes
 
12626
       fi
 
12627
     else
 
12628
       lt_prog_compiler_static_works_CXX=yes
 
12629
     fi
 
12630
   fi
 
12631
   $rm conftest*
 
12632
   LDFLAGS="$save_LDFLAGS"
 
12633
 
 
12634
fi
 
12635
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12636
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12637
 
 
12638
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12639
    :
 
12640
else
 
12641
    lt_prog_compiler_static_CXX=
 
12642
fi
 
12643
 
 
12644
 
 
12645
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12646
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12647
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12649
else
 
12650
  lt_cv_prog_compiler_c_o_CXX=no
 
12651
   $rm -r conftest 2>/dev/null
 
12652
   mkdir conftest
 
12653
   cd conftest
 
12654
   mkdir out
 
12655
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12656
 
 
12657
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12658
   # Insert the option either (1) after the last *FLAGS variable, or
 
12659
   # (2) before a word containing "conftest.", or (3) at the end.
 
12660
   # Note that $ac_compile itself does not contain backslashes and begins
 
12661
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12662
   lt_compile=`echo "$ac_compile" | $SED \
 
12663
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12664
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12665
   -e 's:$: $lt_compiler_flag:'`
 
12666
   (eval echo "\"\$as_me:12666: $lt_compile\"" >&5)
 
12667
   (eval "$lt_compile" 2>out/conftest.err)
 
12668
   ac_status=$?
 
12669
   cat out/conftest.err >&5
 
12670
   echo "$as_me:12670: \$? = $ac_status" >&5
 
12671
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12672
   then
 
12673
     # The compiler can only warn and ignore the option if not recognized
 
12674
     # So say no if there are warnings
 
12675
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12676
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12677
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12678
       lt_cv_prog_compiler_c_o_CXX=yes
 
12679
     fi
 
12680
   fi
 
12681
   chmod u+w . 2>&5
 
12682
   $rm conftest*
 
12683
   # SGI C++ compiler will create directory out/ii_files/ for
 
12684
   # template instantiation
 
12685
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12686
   $rm out/* && rmdir out
 
12687
   cd ..
 
12688
   rmdir conftest
 
12689
   $rm conftest*
 
12690
 
 
12691
fi
 
12692
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12693
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12694
 
 
12695
 
 
12696
hard_links="nottested"
 
12697
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12698
  # do not overwrite the value of need_locks provided by the user
 
12699
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12700
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12701
  hard_links=yes
 
12702
  $rm conftest*
 
12703
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12704
  touch conftest.a
 
12705
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12706
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12707
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12708
echo "${ECHO_T}$hard_links" >&6; }
 
12709
  if test "$hard_links" = no; then
 
12710
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12711
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12712
    need_locks=warn
 
12713
  fi
 
12714
else
 
12715
  need_locks=no
 
12716
fi
 
12717
 
 
12718
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12719
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12720
 
 
12721
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12722
  case $host_os in
 
12723
  aix4* | aix5*)
 
12724
    # If we're using GNU nm, then we don't want the "-C" option.
 
12725
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12726
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12727
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12728
    else
 
12729
      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'
 
12730
    fi
 
12731
    ;;
 
12732
  pw32*)
 
12733
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12734
  ;;
 
12735
  cygwin* | mingw*)
 
12736
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12737
  ;;
 
12738
  *)
 
12739
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12740
  ;;
 
12741
  esac
 
12742
 
 
12743
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12744
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12745
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12746
 
 
12747
#
 
12748
# Do we need to explicitly link libc?
 
12749
#
 
12750
case "x$archive_cmds_need_lc_CXX" in
 
12751
x|xyes)
 
12752
  # Assume -lc should be added
 
12753
  archive_cmds_need_lc_CXX=yes
 
12754
 
 
12755
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12756
    case $archive_cmds_CXX in
 
12757
    *'~'*)
 
12758
      # FIXME: we may have to deal with multi-command sequences.
 
12759
      ;;
 
12760
    '$CC '*)
 
12761
      # Test whether the compiler implicitly links with -lc since on some
 
12762
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12763
      # to ld, don't add -lc before -lgcc.
 
12764
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12765
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12766
      $rm conftest*
 
12767
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12768
 
 
12769
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12770
  (eval $ac_compile) 2>&5
 
12771
  ac_status=$?
 
12772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12773
  (exit $ac_status); } 2>conftest.err; then
 
12774
        soname=conftest
 
12775
        lib=conftest
 
12776
        libobjs=conftest.$ac_objext
 
12777
        deplibs=
 
12778
        wl=$lt_prog_compiler_wl_CXX
 
12779
        pic_flag=$lt_prog_compiler_pic_CXX
 
12780
        compiler_flags=-v
 
12781
        linker_flags=-v
 
12782
        verstring=
 
12783
        output_objdir=.
 
12784
        libname=conftest
 
12785
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12786
        allow_undefined_flag_CXX=
 
12787
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12788
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12789
  ac_status=$?
 
12790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12791
  (exit $ac_status); }
 
12792
        then
 
12793
          archive_cmds_need_lc_CXX=no
 
12794
        else
 
12795
          archive_cmds_need_lc_CXX=yes
 
12796
        fi
 
12797
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12798
      else
 
12799
        cat conftest.err 1>&5
 
12800
      fi
 
12801
      $rm conftest*
 
12802
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12803
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12804
      ;;
 
12805
    esac
 
12806
  fi
 
12807
  ;;
 
12808
esac
 
12809
 
 
12810
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12811
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12812
library_names_spec=
 
12813
libname_spec='lib$name'
 
12814
soname_spec=
 
12815
shrext_cmds=".so"
 
12816
postinstall_cmds=
 
12817
postuninstall_cmds=
 
12818
finish_cmds=
 
12819
finish_eval=
 
12820
shlibpath_var=
 
12821
shlibpath_overrides_runpath=unknown
 
12822
version_type=none
 
12823
dynamic_linker="$host_os ld.so"
 
12824
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12825
if test "$GCC" = yes; then
 
12826
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12827
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12828
    # if the path contains ";" then we assume it to be the separator
 
12829
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12830
    # assumed that no part of a normal pathname contains ";" but that should
 
12831
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12832
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12833
  else
 
12834
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12835
  fi
 
12836
else
 
12837
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12838
fi
 
12839
need_lib_prefix=unknown
 
12840
hardcode_into_libs=no
 
12841
 
 
12842
# when you set need_version to no, make sure it does not cause -set_version
 
12843
# flags to be left without arguments
 
12844
need_version=unknown
 
12845
 
 
12846
case $host_os in
 
12847
aix3*)
 
12848
  version_type=linux
 
12849
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12850
  shlibpath_var=LIBPATH
 
12851
 
 
12852
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12853
  soname_spec='${libname}${release}${shared_ext}$major'
 
12854
  ;;
 
12855
 
 
12856
aix4* | aix5*)
 
12857
  version_type=linux
 
12858
  need_lib_prefix=no
 
12859
  need_version=no
 
12860
  hardcode_into_libs=yes
 
12861
  if test "$host_cpu" = ia64; then
 
12862
    # AIX 5 supports IA64
 
12863
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12864
    shlibpath_var=LD_LIBRARY_PATH
 
12865
  else
 
12866
    # With GCC up to 2.95.x, collect2 would create an import file
 
12867
    # for dependence libraries.  The import file would start with
 
12868
    # the line `#! .'.  This would cause the generated library to
 
12869
    # depend on `.', always an invalid library.  This was fixed in
 
12870
    # development snapshots of GCC prior to 3.0.
 
12871
    case $host_os in
 
12872
      aix4 | aix4.[01] | aix4.[01].*)
 
12873
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12874
           echo ' yes '
 
12875
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12876
        :
 
12877
      else
 
12878
        can_build_shared=no
 
12879
      fi
 
12880
      ;;
 
12881
    esac
 
12882
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12883
    # soname into executable. Probably we can add versioning support to
 
12884
    # collect2, so additional links can be useful in future.
 
12885
    if test "$aix_use_runtimelinking" = yes; then
 
12886
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12887
      # instead of lib<name>.a to let people know that these are not
 
12888
      # typical AIX shared libraries.
 
12889
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12890
    else
 
12891
      # We preserve .a as extension for shared libraries through AIX4.2
 
12892
      # and later when we are not doing run time linking.
 
12893
      library_names_spec='${libname}${release}.a $libname.a'
 
12894
      soname_spec='${libname}${release}${shared_ext}$major'
 
12895
    fi
 
12896
    shlibpath_var=LIBPATH
 
12897
  fi
 
12898
  ;;
 
12899
 
 
12900
amigaos*)
 
12901
  library_names_spec='$libname.ixlibrary $libname.a'
 
12902
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12903
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
12904
  ;;
 
12905
 
 
12906
beos*)
 
12907
  library_names_spec='${libname}${shared_ext}'
 
12908
  dynamic_linker="$host_os ld.so"
 
12909
  shlibpath_var=LIBRARY_PATH
 
12910
  ;;
 
12911
 
 
12912
bsdi[45]*)
 
12913
  version_type=linux
 
12914
  need_version=no
 
12915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12916
  soname_spec='${libname}${release}${shared_ext}$major'
 
12917
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12918
  shlibpath_var=LD_LIBRARY_PATH
 
12919
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12920
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12921
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12922
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12923
  # libtool to hard-code these into programs
 
12924
  ;;
 
12925
 
 
12926
cygwin* | mingw* | pw32*)
 
12927
  version_type=windows
 
12928
  shrext_cmds=".dll"
 
12929
  need_version=no
 
12930
  need_lib_prefix=no
 
12931
 
 
12932
  case $GCC,$host_os in
 
12933
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12934
    library_names_spec='$libname.dll.a'
 
12935
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12936
    postinstall_cmds='base_file=`basename \${file}`~
 
12937
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12938
      dldir=$destdir/`dirname \$dlpath`~
 
12939
      test -d \$dldir || mkdir -p \$dldir~
 
12940
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12941
      chmod a+x \$dldir/$dlname'
 
12942
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12943
      dlpath=$dir/\$dldll~
 
12944
       $rm \$dlpath'
 
12945
    shlibpath_overrides_runpath=yes
 
12946
 
 
12947
    case $host_os in
 
12948
    cygwin*)
 
12949
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12950
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12951
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12952
      ;;
 
12953
    mingw*)
 
12954
      # MinGW DLLs use traditional 'lib' prefix
 
12955
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12956
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12957
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12958
        # It is most probably a Windows format PATH printed by
 
12959
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12960
        # path with ; separators, and with drive letters. We can handle the
 
12961
        # drive letters (cygwin fileutils understands them), so leave them,
 
12962
        # especially as we might pass files found there to a mingw objdump,
 
12963
        # which wouldn't understand a cygwinified path. Ahh.
 
12964
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12965
      else
 
12966
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12967
      fi
 
12968
      ;;
 
12969
    pw32*)
 
12970
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12971
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12972
      ;;
 
12973
    esac
 
12974
    ;;
 
12975
 
 
12976
  *)
 
12977
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12978
    ;;
 
12979
  esac
 
12980
  dynamic_linker='Win32 ld.exe'
 
12981
  # FIXME: first we should search . and the directory the executable is in
 
12982
  shlibpath_var=PATH
 
12983
  ;;
 
12984
 
 
12985
darwin* | rhapsody*)
 
12986
  dynamic_linker="$host_os dyld"
 
12987
  version_type=darwin
 
12988
  need_lib_prefix=no
 
12989
  need_version=no
 
12990
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12991
  soname_spec='${libname}${release}${major}$shared_ext'
 
12992
  shlibpath_overrides_runpath=yes
 
12993
  shlibpath_var=DYLD_LIBRARY_PATH
 
12994
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12995
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12996
  if test "$GCC" = yes; then
 
12997
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
12998
  else
 
12999
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13000
  fi
 
13001
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13002
  ;;
 
13003
 
 
13004
dgux*)
 
13005
  version_type=linux
 
13006
  need_lib_prefix=no
 
13007
  need_version=no
 
13008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13009
  soname_spec='${libname}${release}${shared_ext}$major'
 
13010
  shlibpath_var=LD_LIBRARY_PATH
 
13011
  ;;
 
13012
 
 
13013
freebsd1*)
 
13014
  dynamic_linker=no
 
13015
  ;;
 
13016
 
 
13017
kfreebsd*-gnu)
 
13018
  version_type=linux
 
13019
  need_lib_prefix=no
 
13020
  need_version=no
 
13021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13022
  soname_spec='${libname}${release}${shared_ext}$major'
 
13023
  shlibpath_var=LD_LIBRARY_PATH
 
13024
  shlibpath_overrides_runpath=no
 
13025
  hardcode_into_libs=yes
 
13026
  dynamic_linker='GNU ld.so'
 
13027
  ;;
 
13028
 
 
13029
freebsd* | dragonfly*)
 
13030
  # DragonFly does not have aout.  When/if they implement a new
 
13031
  # versioning mechanism, adjust this.
 
13032
  if test -x /usr/bin/objformat; then
 
13033
    objformat=`/usr/bin/objformat`
 
13034
  else
 
13035
    case $host_os in
 
13036
    freebsd[123]*) objformat=aout ;;
 
13037
    *) objformat=elf ;;
 
13038
    esac
 
13039
  fi
 
13040
  version_type=freebsd-$objformat
 
13041
  case $version_type in
 
13042
    freebsd-elf*)
 
13043
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13044
      need_version=no
 
13045
      need_lib_prefix=no
 
13046
      ;;
 
13047
    freebsd-*)
 
13048
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13049
      need_version=yes
 
13050
      ;;
 
13051
  esac
 
13052
  shlibpath_var=LD_LIBRARY_PATH
 
13053
  case $host_os in
 
13054
  freebsd2*)
 
13055
    shlibpath_overrides_runpath=yes
 
13056
    ;;
 
13057
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13058
    shlibpath_overrides_runpath=yes
 
13059
    hardcode_into_libs=yes
 
13060
    ;;
 
13061
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13062
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13063
    shlibpath_overrides_runpath=no
 
13064
    hardcode_into_libs=yes
 
13065
    ;;
 
13066
  freebsd*) # from 4.6 on
 
13067
    shlibpath_overrides_runpath=yes
 
13068
    hardcode_into_libs=yes
 
13069
    ;;
 
13070
  esac
 
13071
  ;;
 
13072
 
 
13073
gnu*)
 
13074
  version_type=linux
 
13075
  need_lib_prefix=no
 
13076
  need_version=no
 
13077
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13078
  soname_spec='${libname}${release}${shared_ext}$major'
 
13079
  shlibpath_var=LD_LIBRARY_PATH
 
13080
  hardcode_into_libs=yes
 
13081
  ;;
 
13082
 
 
13083
hpux9* | hpux10* | hpux11*)
 
13084
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13085
  # link against other versions.
 
13086
  version_type=sunos
 
13087
  need_lib_prefix=no
 
13088
  need_version=no
 
13089
  case $host_cpu in
 
13090
  ia64*)
 
13091
    shrext_cmds='.so'
 
13092
    hardcode_into_libs=yes
 
13093
    dynamic_linker="$host_os dld.so"
 
13094
    shlibpath_var=LD_LIBRARY_PATH
 
13095
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13096
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13097
    soname_spec='${libname}${release}${shared_ext}$major'
 
13098
    if test "X$HPUX_IA64_MODE" = X32; then
 
13099
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13100
    else
 
13101
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13102
    fi
 
13103
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13104
    ;;
 
13105
   hppa*64*)
 
13106
     shrext_cmds='.sl'
 
13107
     hardcode_into_libs=yes
 
13108
     dynamic_linker="$host_os dld.sl"
 
13109
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13110
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13111
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13112
     soname_spec='${libname}${release}${shared_ext}$major'
 
13113
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13114
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13115
     ;;
 
13116
   *)
 
13117
    shrext_cmds='.sl'
 
13118
    dynamic_linker="$host_os dld.sl"
 
13119
    shlibpath_var=SHLIB_PATH
 
13120
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13121
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13122
    soname_spec='${libname}${release}${shared_ext}$major'
 
13123
    ;;
 
13124
  esac
 
13125
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13126
  postinstall_cmds='chmod 555 $lib'
 
13127
  ;;
 
13128
 
 
13129
interix3*)
 
13130
  version_type=linux
 
13131
  need_lib_prefix=no
 
13132
  need_version=no
 
13133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13134
  soname_spec='${libname}${release}${shared_ext}$major'
 
13135
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13136
  shlibpath_var=LD_LIBRARY_PATH
 
13137
  shlibpath_overrides_runpath=no
 
13138
  hardcode_into_libs=yes
 
13139
  ;;
 
13140
 
 
13141
irix5* | irix6* | nonstopux*)
 
13142
  case $host_os in
 
13143
    nonstopux*) version_type=nonstopux ;;
 
13144
    *)
 
13145
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13146
                version_type=linux
 
13147
        else
 
13148
                version_type=irix
 
13149
        fi ;;
 
13150
  esac
 
13151
  need_lib_prefix=no
 
13152
  need_version=no
 
13153
  soname_spec='${libname}${release}${shared_ext}$major'
 
13154
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13155
  case $host_os in
 
13156
  irix5* | nonstopux*)
 
13157
    libsuff= shlibsuff=
 
13158
    ;;
 
13159
  *)
 
13160
    case $LD in # libtool.m4 will add one of these switches to LD
 
13161
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13162
      libsuff= shlibsuff= libmagic=32-bit;;
 
13163
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13164
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13165
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13166
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13167
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13168
    esac
 
13169
    ;;
 
13170
  esac
 
13171
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13172
  shlibpath_overrides_runpath=no
 
13173
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13174
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13175
  hardcode_into_libs=yes
 
13176
  ;;
 
13177
 
 
13178
# No shared lib support for Linux oldld, aout, or coff.
 
13179
linux*oldld* | linux*aout* | linux*coff*)
 
13180
  dynamic_linker=no
 
13181
  ;;
 
13182
 
 
13183
# This must be Linux ELF.
 
13184
linux*)
 
13185
  version_type=linux
 
13186
  need_lib_prefix=no
 
13187
  need_version=no
 
13188
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13189
  soname_spec='${libname}${release}${shared_ext}$major'
 
13190
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13191
  shlibpath_var=LD_LIBRARY_PATH
 
13192
  shlibpath_overrides_runpath=no
 
13193
  # This implies no fast_install, which is unacceptable.
 
13194
  # Some rework will be needed to allow for fast_install
 
13195
  # before this can be enabled.
 
13196
  hardcode_into_libs=yes
 
13197
 
 
13198
  # find out which ABI we are using
 
13199
  libsuff=
 
13200
  case "$host_cpu" in
 
13201
  x86_64*|s390x*|powerpc64*)
 
13202
    echo '#line 13202 "configure"' > conftest.$ac_ext
 
13203
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13204
  (eval $ac_compile) 2>&5
 
13205
  ac_status=$?
 
13206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13207
  (exit $ac_status); }; then
 
13208
      case `/usr/bin/file conftest.$ac_objext` in
 
13209
      *64-bit*)
 
13210
        libsuff=64
 
13211
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
13212
        ;;
 
13213
      esac
 
13214
    fi
 
13215
    rm -rf conftest*
 
13216
    ;;
 
13217
  esac
 
13218
 
 
13219
  # Append ld.so.conf contents to the search path
 
13220
  if test -f /etc/ld.so.conf; then
 
13221
    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/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13222
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
13223
  fi
 
13224
 
 
13225
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13226
  # powerpc, because MkLinux only supported shared libraries with the
 
13227
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13228
  # most powerpc-linux boxes support dynamic linking these days and
 
13229
  # people can always --disable-shared, the test was removed, and we
 
13230
  # assume the GNU/Linux dynamic linker is in use.
 
13231
  dynamic_linker='GNU/Linux ld.so'
 
13232
  ;;
 
13233
 
 
13234
knetbsd*-gnu)
 
13235
  version_type=linux
 
13236
  need_lib_prefix=no
 
13237
  need_version=no
 
13238
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13239
  soname_spec='${libname}${release}${shared_ext}$major'
 
13240
  shlibpath_var=LD_LIBRARY_PATH
 
13241
  shlibpath_overrides_runpath=no
 
13242
  hardcode_into_libs=yes
 
13243
  dynamic_linker='GNU ld.so'
 
13244
  ;;
 
13245
 
 
13246
netbsd*)
 
13247
  version_type=sunos
 
13248
  need_lib_prefix=no
 
13249
  need_version=no
 
13250
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13251
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13252
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13253
    dynamic_linker='NetBSD (a.out) ld.so'
 
13254
  else
 
13255
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13256
    soname_spec='${libname}${release}${shared_ext}$major'
 
13257
    dynamic_linker='NetBSD ld.elf_so'
 
13258
  fi
 
13259
  shlibpath_var=LD_LIBRARY_PATH
 
13260
  shlibpath_overrides_runpath=yes
 
13261
  hardcode_into_libs=yes
 
13262
  ;;
 
13263
 
 
13264
newsos6)
 
13265
  version_type=linux
 
13266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13267
  shlibpath_var=LD_LIBRARY_PATH
 
13268
  shlibpath_overrides_runpath=yes
 
13269
  ;;
 
13270
 
 
13271
nto-qnx*)
 
13272
  version_type=linux
 
13273
  need_lib_prefix=no
 
13274
  need_version=no
 
13275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13276
  soname_spec='${libname}${release}${shared_ext}$major'
 
13277
  shlibpath_var=LD_LIBRARY_PATH
 
13278
  shlibpath_overrides_runpath=yes
 
13279
  ;;
 
13280
 
 
13281
openbsd*)
 
13282
  version_type=sunos
 
13283
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13284
  need_lib_prefix=no
 
13285
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13286
  case $host_os in
 
13287
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13288
    *)                         need_version=no  ;;
 
13289
  esac
 
13290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13291
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13292
  shlibpath_var=LD_LIBRARY_PATH
 
13293
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13294
    case $host_os in
 
13295
      openbsd2.[89] | openbsd2.[89].*)
 
13296
        shlibpath_overrides_runpath=no
 
13297
        ;;
 
13298
      *)
 
13299
        shlibpath_overrides_runpath=yes
 
13300
        ;;
 
13301
      esac
 
13302
  else
 
13303
    shlibpath_overrides_runpath=yes
 
13304
  fi
 
13305
  ;;
 
13306
 
 
13307
os2*)
 
13308
  libname_spec='$name'
 
13309
  shrext_cmds=".dll"
 
13310
  need_lib_prefix=no
 
13311
  library_names_spec='$libname${shared_ext} $libname.a'
 
13312
  dynamic_linker='OS/2 ld.exe'
 
13313
  shlibpath_var=LIBPATH
 
13314
  ;;
 
13315
 
 
13316
osf3* | osf4* | osf5*)
 
13317
  version_type=osf
 
13318
  need_lib_prefix=no
 
13319
  need_version=no
 
13320
  soname_spec='${libname}${release}${shared_ext}$major'
 
13321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13322
  shlibpath_var=LD_LIBRARY_PATH
 
13323
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13324
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13325
  ;;
 
13326
 
 
13327
solaris*)
 
13328
  version_type=linux
 
13329
  need_lib_prefix=no
 
13330
  need_version=no
 
13331
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13332
  soname_spec='${libname}${release}${shared_ext}$major'
 
13333
  shlibpath_var=LD_LIBRARY_PATH
 
13334
  shlibpath_overrides_runpath=yes
 
13335
  hardcode_into_libs=yes
 
13336
  # ldd complains unless libraries are executable
 
13337
  postinstall_cmds='chmod +x $lib'
 
13338
  ;;
 
13339
 
 
13340
sunos4*)
 
13341
  version_type=sunos
 
13342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13343
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13344
  shlibpath_var=LD_LIBRARY_PATH
 
13345
  shlibpath_overrides_runpath=yes
 
13346
  if test "$with_gnu_ld" = yes; then
 
13347
    need_lib_prefix=no
 
13348
  fi
 
13349
  need_version=yes
 
13350
  ;;
 
13351
 
 
13352
sysv4 | sysv4.3*)
 
13353
  version_type=linux
 
13354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13355
  soname_spec='${libname}${release}${shared_ext}$major'
 
13356
  shlibpath_var=LD_LIBRARY_PATH
 
13357
  case $host_vendor in
 
13358
    sni)
 
13359
      shlibpath_overrides_runpath=no
 
13360
      need_lib_prefix=no
 
13361
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13362
      runpath_var=LD_RUN_PATH
 
13363
      ;;
 
13364
    siemens)
 
13365
      need_lib_prefix=no
 
13366
      ;;
 
13367
    motorola)
 
13368
      need_lib_prefix=no
 
13369
      need_version=no
 
13370
      shlibpath_overrides_runpath=no
 
13371
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13372
      ;;
 
13373
  esac
 
13374
  ;;
 
13375
 
 
13376
sysv4*MP*)
 
13377
  if test -d /usr/nec ;then
 
13378
    version_type=linux
 
13379
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13380
    soname_spec='$libname${shared_ext}.$major'
 
13381
    shlibpath_var=LD_LIBRARY_PATH
 
13382
  fi
 
13383
  ;;
 
13384
 
 
13385
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13386
  version_type=freebsd-elf
 
13387
  need_lib_prefix=no
 
13388
  need_version=no
 
13389
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13390
  soname_spec='${libname}${release}${shared_ext}$major'
 
13391
  shlibpath_var=LD_LIBRARY_PATH
 
13392
  hardcode_into_libs=yes
 
13393
  if test "$with_gnu_ld" = yes; then
 
13394
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13395
    shlibpath_overrides_runpath=no
 
13396
  else
 
13397
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13398
    shlibpath_overrides_runpath=yes
 
13399
    case $host_os in
 
13400
      sco3.2v5*)
 
13401
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13402
        ;;
 
13403
    esac
 
13404
  fi
 
13405
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13406
  ;;
 
13407
 
 
13408
uts4*)
 
13409
  version_type=linux
 
13410
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13411
  soname_spec='${libname}${release}${shared_ext}$major'
 
13412
  shlibpath_var=LD_LIBRARY_PATH
 
13413
  ;;
 
13414
 
 
13415
*)
 
13416
  dynamic_linker=no
 
13417
  ;;
 
13418
esac
 
13419
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13420
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13421
test "$dynamic_linker" = no && can_build_shared=no
 
13422
 
 
13423
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13424
if test "$GCC" = yes; then
 
13425
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13426
fi
 
13427
 
 
13428
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13429
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13430
hardcode_action_CXX=
 
13431
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13432
   test -n "$runpath_var_CXX" || \
 
13433
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13434
 
 
13435
  # We can hardcode non-existant directories.
 
13436
  if test "$hardcode_direct_CXX" != no &&
 
13437
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13438
     # have to relink, otherwise we might link with an installed library
 
13439
     # when we should be linking with a yet-to-be-installed one
 
13440
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13441
     test "$hardcode_minus_L_CXX" != no; then
 
13442
    # Linking always hardcodes the temporary library directory.
 
13443
    hardcode_action_CXX=relink
 
13444
  else
 
13445
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13446
    hardcode_action_CXX=immediate
 
13447
  fi
 
13448
else
 
13449
  # We cannot hardcode anything, or else we can only hardcode existing
 
13450
  # directories.
 
13451
  hardcode_action_CXX=unsupported
 
13452
fi
 
13453
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13454
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13455
 
 
13456
if test "$hardcode_action_CXX" = relink; then
 
13457
  # Fast installation is not supported
 
13458
  enable_fast_install=no
 
13459
elif test "$shlibpath_overrides_runpath" = yes ||
 
13460
     test "$enable_shared" = no; then
 
13461
  # Fast installation is not necessary
 
13462
  enable_fast_install=needless
 
13463
fi
 
13464
 
 
13465
 
 
13466
# The else clause should only fire when bootstrapping the
 
13467
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13468
# with your package, and you will get complaints that there are
 
13469
# no rules to generate ltmain.sh.
 
13470
if test -f "$ltmain"; then
 
13471
  # See if we are running on zsh, and set the options which allow our commands through
 
13472
  # without removal of \ escapes.
 
13473
  if test -n "${ZSH_VERSION+set}" ; then
 
13474
    setopt NO_GLOB_SUBST
 
13475
  fi
 
13476
  # Now quote all the things that may contain metacharacters while being
 
13477
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13478
  # variables and quote the copies for generation of the libtool script.
 
13479
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13480
    SED SHELL STRIP \
 
13481
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13482
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13483
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13484
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13485
    lt_cv_sys_global_symbol_to_c_name_address \
 
13486
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13487
    old_postinstall_cmds old_postuninstall_cmds \
 
13488
    compiler_CXX \
 
13489
    CC_CXX \
 
13490
    LD_CXX \
 
13491
    lt_prog_compiler_wl_CXX \
 
13492
    lt_prog_compiler_pic_CXX \
 
13493
    lt_prog_compiler_static_CXX \
 
13494
    lt_prog_compiler_no_builtin_flag_CXX \
 
13495
    export_dynamic_flag_spec_CXX \
 
13496
    thread_safe_flag_spec_CXX \
 
13497
    whole_archive_flag_spec_CXX \
 
13498
    enable_shared_with_static_runtimes_CXX \
 
13499
    old_archive_cmds_CXX \
 
13500
    old_archive_from_new_cmds_CXX \
 
13501
    predep_objects_CXX \
 
13502
    postdep_objects_CXX \
 
13503
    predeps_CXX \
 
13504
    postdeps_CXX \
 
13505
    compiler_lib_search_path_CXX \
 
13506
    archive_cmds_CXX \
 
13507
    archive_expsym_cmds_CXX \
 
13508
    postinstall_cmds_CXX \
 
13509
    postuninstall_cmds_CXX \
 
13510
    old_archive_from_expsyms_cmds_CXX \
 
13511
    allow_undefined_flag_CXX \
 
13512
    no_undefined_flag_CXX \
 
13513
    export_symbols_cmds_CXX \
 
13514
    hardcode_libdir_flag_spec_CXX \
 
13515
    hardcode_libdir_flag_spec_ld_CXX \
 
13516
    hardcode_libdir_separator_CXX \
 
13517
    hardcode_automatic_CXX \
 
13518
    module_cmds_CXX \
 
13519
    module_expsym_cmds_CXX \
 
13520
    lt_cv_prog_compiler_c_o_CXX \
 
13521
    exclude_expsyms_CXX \
 
13522
    include_expsyms_CXX; do
 
13523
 
 
13524
    case $var in
 
13525
    old_archive_cmds_CXX | \
 
13526
    old_archive_from_new_cmds_CXX | \
 
13527
    archive_cmds_CXX | \
 
13528
    archive_expsym_cmds_CXX | \
 
13529
    module_cmds_CXX | \
 
13530
    module_expsym_cmds_CXX | \
 
13531
    old_archive_from_expsyms_cmds_CXX | \
 
13532
    export_symbols_cmds_CXX | \
 
13533
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13534
    postinstall_cmds | postuninstall_cmds | \
 
13535
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13536
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13537
      # Double-quote double-evaled strings.
 
13538
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13539
      ;;
 
13540
    *)
 
13541
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13542
      ;;
 
13543
    esac
 
13544
  done
 
13545
 
 
13546
  case $lt_echo in
 
13547
  *'\$0 --fallback-echo"')
 
13548
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13549
    ;;
 
13550
  esac
 
13551
 
 
13552
cfgfile="$ofile"
 
13553
 
 
13554
  cat <<__EOF__ >> "$cfgfile"
 
13555
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13556
 
 
13557
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13558
 
 
13559
# Shell to use when invoking shell scripts.
 
13560
SHELL=$lt_SHELL
 
13561
 
 
13562
# Whether or not to build shared libraries.
 
13563
build_libtool_libs=$enable_shared
 
13564
 
 
13565
# Whether or not to build static libraries.
 
13566
build_old_libs=$enable_static
 
13567
 
 
13568
# Whether or not to add -lc for building shared libraries.
 
13569
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13570
 
 
13571
# Whether or not to disallow shared libs when runtime libs are static
 
13572
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13573
 
 
13574
# Whether or not to optimize for fast installation.
 
13575
fast_install=$enable_fast_install
 
13576
 
 
13577
# The host system.
 
13578
host_alias=$host_alias
 
13579
host=$host
 
13580
host_os=$host_os
 
13581
 
 
13582
# The build system.
 
13583
build_alias=$build_alias
 
13584
build=$build
 
13585
build_os=$build_os
 
13586
 
 
13587
# An echo program that does not interpret backslashes.
 
13588
echo=$lt_echo
 
13589
 
 
13590
# The archiver.
 
13591
AR=$lt_AR
 
13592
AR_FLAGS=$lt_AR_FLAGS
 
13593
 
 
13594
# A C compiler.
 
13595
LTCC=$lt_LTCC
 
13596
 
 
13597
# LTCC compiler flags.
 
13598
LTCFLAGS=$lt_LTCFLAGS
 
13599
 
 
13600
# A language-specific compiler.
 
13601
CC=$lt_compiler_CXX
 
13602
 
 
13603
# Is the compiler the GNU C compiler?
 
13604
with_gcc=$GCC_CXX
 
13605
 
 
13606
# An ERE matcher.
 
13607
EGREP=$lt_EGREP
 
13608
 
 
13609
# The linker used to build libraries.
 
13610
LD=$lt_LD_CXX
 
13611
 
 
13612
# Whether we need hard or soft links.
 
13613
LN_S=$lt_LN_S
 
13614
 
 
13615
# A BSD-compatible nm program.
 
13616
NM=$lt_NM
 
13617
 
 
13618
# A symbol stripping program
 
13619
STRIP=$lt_STRIP
 
13620
 
 
13621
# Used to examine libraries when file_magic_cmd begins "file"
 
13622
MAGIC_CMD=$MAGIC_CMD
 
13623
 
 
13624
# Used on cygwin: DLL creation program.
 
13625
DLLTOOL="$DLLTOOL"
 
13626
 
 
13627
# Used on cygwin: object dumper.
 
13628
OBJDUMP="$OBJDUMP"
 
13629
 
 
13630
# Used on cygwin: assembler.
 
13631
AS="$AS"
 
13632
 
 
13633
# The name of the directory that contains temporary libtool files.
 
13634
objdir=$objdir
 
13635
 
 
13636
# How to create reloadable object files.
 
13637
reload_flag=$lt_reload_flag
 
13638
reload_cmds=$lt_reload_cmds
 
13639
 
 
13640
# How to pass a linker flag through the compiler.
 
13641
wl=$lt_lt_prog_compiler_wl_CXX
 
13642
 
 
13643
# Object file suffix (normally "o").
 
13644
objext="$ac_objext"
 
13645
 
 
13646
# Old archive suffix (normally "a").
 
13647
libext="$libext"
 
13648
 
 
13649
# Shared library suffix (normally ".so").
 
13650
shrext_cmds='$shrext_cmds'
 
13651
 
 
13652
# Executable file suffix (normally "").
 
13653
exeext="$exeext"
 
13654
 
 
13655
# Additional compiler flags for building library objects.
 
13656
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13657
pic_mode=$pic_mode
 
13658
 
 
13659
# What is the maximum length of a command?
 
13660
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13661
 
 
13662
# Does compiler simultaneously support -c and -o options?
 
13663
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13664
 
 
13665
# Must we lock files when doing compilation?
 
13666
need_locks=$lt_need_locks
 
13667
 
 
13668
# Do we need the lib prefix for modules?
 
13669
need_lib_prefix=$need_lib_prefix
 
13670
 
 
13671
# Do we need a version for libraries?
 
13672
need_version=$need_version
 
13673
 
 
13674
# Whether dlopen is supported.
 
13675
dlopen_support=$enable_dlopen
 
13676
 
 
13677
# Whether dlopen of programs is supported.
 
13678
dlopen_self=$enable_dlopen_self
 
13679
 
 
13680
# Whether dlopen of statically linked programs is supported.
 
13681
dlopen_self_static=$enable_dlopen_self_static
 
13682
 
 
13683
# Compiler flag to prevent dynamic linking.
 
13684
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13685
 
 
13686
# Compiler flag to turn off builtin functions.
 
13687
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13688
 
 
13689
# Compiler flag to allow reflexive dlopens.
 
13690
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13691
 
 
13692
# Compiler flag to generate shared objects directly from archives.
 
13693
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13694
 
 
13695
# Compiler flag to generate thread-safe objects.
 
13696
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13697
 
 
13698
# Library versioning type.
 
13699
version_type=$version_type
 
13700
 
 
13701
# Format of library name prefix.
 
13702
libname_spec=$lt_libname_spec
 
13703
 
 
13704
# List of archive names.  First name is the real one, the rest are links.
 
13705
# The last name is the one that the linker finds with -lNAME.
 
13706
library_names_spec=$lt_library_names_spec
 
13707
 
 
13708
# The coded name of the library, if different from the real name.
 
13709
soname_spec=$lt_soname_spec
 
13710
 
 
13711
# Commands used to build and install an old-style archive.
 
13712
RANLIB=$lt_RANLIB
 
13713
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13714
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13715
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13716
 
 
13717
# Create an old-style archive from a shared archive.
 
13718
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13719
 
 
13720
# Create a temporary old-style archive to link instead of a shared archive.
 
13721
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13722
 
 
13723
# Commands used to build and install a shared archive.
 
13724
archive_cmds=$lt_archive_cmds_CXX
 
13725
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13726
postinstall_cmds=$lt_postinstall_cmds
 
13727
postuninstall_cmds=$lt_postuninstall_cmds
 
13728
 
 
13729
# Commands used to build a loadable module (assumed same as above if empty)
 
13730
module_cmds=$lt_module_cmds_CXX
 
13731
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13732
 
 
13733
# Commands to strip libraries.
 
13734
old_striplib=$lt_old_striplib
 
13735
striplib=$lt_striplib
 
13736
 
 
13737
# Dependencies to place before the objects being linked to create a
 
13738
# shared library.
 
13739
predep_objects=$lt_predep_objects_CXX
 
13740
 
 
13741
# Dependencies to place after the objects being linked to create a
 
13742
# shared library.
 
13743
postdep_objects=$lt_postdep_objects_CXX
 
13744
 
 
13745
# Dependencies to place before the objects being linked to create a
 
13746
# shared library.
 
13747
predeps=$lt_predeps_CXX
 
13748
 
 
13749
# Dependencies to place after the objects being linked to create a
 
13750
# shared library.
 
13751
postdeps=$lt_postdeps_CXX
 
13752
 
 
13753
# The library search path used internally by the compiler when linking
 
13754
# a shared library.
 
13755
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13756
 
 
13757
# Method to check whether dependent libraries are shared objects.
 
13758
deplibs_check_method=$lt_deplibs_check_method
 
13759
 
 
13760
# Command to use when deplibs_check_method == file_magic.
 
13761
file_magic_cmd=$lt_file_magic_cmd
 
13762
 
 
13763
# Flag that allows shared libraries with undefined symbols to be built.
 
13764
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13765
 
 
13766
# Flag that forces no undefined symbols.
 
13767
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13768
 
 
13769
# Commands used to finish a libtool library installation in a directory.
 
13770
finish_cmds=$lt_finish_cmds
 
13771
 
 
13772
# Same as above, but a single script fragment to be evaled but not shown.
 
13773
finish_eval=$lt_finish_eval
 
13774
 
 
13775
# Take the output of nm and produce a listing of raw symbols and C names.
 
13776
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13777
 
 
13778
# Transform the output of nm in a proper C declaration
 
13779
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13780
 
 
13781
# Transform the output of nm in a C name address pair
 
13782
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13783
 
 
13784
# This is the shared library runtime path variable.
 
13785
runpath_var=$runpath_var
 
13786
 
 
13787
# This is the shared library path variable.
 
13788
shlibpath_var=$shlibpath_var
 
13789
 
 
13790
# Is shlibpath searched before the hard-coded library search path?
 
13791
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13792
 
 
13793
# How to hardcode a shared library path into an executable.
 
13794
hardcode_action=$hardcode_action_CXX
 
13795
 
 
13796
# Whether we should hardcode library paths into libraries.
 
13797
hardcode_into_libs=$hardcode_into_libs
 
13798
 
 
13799
# Flag to hardcode \$libdir into a binary during linking.
 
13800
# This must work even if \$libdir does not exist.
 
13801
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13802
 
 
13803
# If ld is used when linking, flag to hardcode \$libdir into
 
13804
# a binary during linking. This must work even if \$libdir does
 
13805
# not exist.
 
13806
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13807
 
 
13808
# Whether we need a single -rpath flag with a separated argument.
 
13809
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13810
 
 
13811
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13812
# resulting binary.
 
13813
hardcode_direct=$hardcode_direct_CXX
 
13814
 
 
13815
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13816
# resulting binary.
 
13817
hardcode_minus_L=$hardcode_minus_L_CXX
 
13818
 
 
13819
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13820
# the resulting binary.
 
13821
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13822
 
 
13823
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13824
# and all subsequent libraries and executables linked against it.
 
13825
hardcode_automatic=$hardcode_automatic_CXX
 
13826
 
 
13827
# Variables whose values should be saved in libtool wrapper scripts and
 
13828
# restored at relink time.
 
13829
variables_saved_for_relink="$variables_saved_for_relink"
 
13830
 
 
13831
# Whether libtool must link a program against all its dependency libraries.
 
13832
link_all_deplibs=$link_all_deplibs_CXX
 
13833
 
 
13834
# Compile-time system search path for libraries
 
13835
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13836
 
 
13837
# Run-time system search path for libraries
 
13838
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13839
 
 
13840
# Fix the shell variable \$srcfile for the compiler.
 
13841
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13842
 
 
13843
# Set to yes if exported symbols are required.
 
13844
always_export_symbols=$always_export_symbols_CXX
 
13845
 
 
13846
# The commands to list exported symbols.
 
13847
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13848
 
 
13849
# The commands to extract the exported symbol list from a shared archive.
 
13850
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13851
 
 
13852
# Symbols that should not be listed in the preloaded symbols.
 
13853
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13854
 
 
13855
# Symbols that must always be exported.
 
13856
include_expsyms=$lt_include_expsyms_CXX
 
13857
 
 
13858
# ### END LIBTOOL TAG CONFIG: $tagname
 
13859
 
 
13860
__EOF__
 
13861
 
 
13862
 
 
13863
else
 
13864
  # If there is no Makefile yet, we rely on a make rule to execute
 
13865
  # `config.status --recheck' to rerun these tests and create the
 
13866
  # libtool script then.
 
13867
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13868
  if test -f "$ltmain_in"; then
 
13869
    test -f Makefile && make "$ltmain"
 
13870
  fi
 
13871
fi
 
13872
 
 
13873
 
 
13874
ac_ext=c
 
13875
ac_cpp='$CPP $CPPFLAGS'
 
13876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13879
 
 
13880
CC=$lt_save_CC
 
13881
LDCXX=$LD
 
13882
LD=$lt_save_LD
 
13883
GCC=$lt_save_GCC
 
13884
with_gnu_ldcxx=$with_gnu_ld
 
13885
with_gnu_ld=$lt_save_with_gnu_ld
 
13886
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13887
lt_cv_path_LD=$lt_save_path_LD
 
13888
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13889
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13890
 
 
13891
        else
 
13892
          tagname=""
 
13893
        fi
 
13894
        ;;
 
13895
 
 
13896
      F77)
 
13897
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13898
 
 
13899
ac_ext=f
 
13900
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13901
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13902
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13903
 
 
13904
 
 
13905
archive_cmds_need_lc_F77=no
 
13906
allow_undefined_flag_F77=
 
13907
always_export_symbols_F77=no
 
13908
archive_expsym_cmds_F77=
 
13909
export_dynamic_flag_spec_F77=
 
13910
hardcode_direct_F77=no
 
13911
hardcode_libdir_flag_spec_F77=
 
13912
hardcode_libdir_flag_spec_ld_F77=
 
13913
hardcode_libdir_separator_F77=
 
13914
hardcode_minus_L_F77=no
 
13915
hardcode_automatic_F77=no
 
13916
module_cmds_F77=
 
13917
module_expsym_cmds_F77=
 
13918
link_all_deplibs_F77=unknown
 
13919
old_archive_cmds_F77=$old_archive_cmds
 
13920
no_undefined_flag_F77=
 
13921
whole_archive_flag_spec_F77=
 
13922
enable_shared_with_static_runtimes_F77=no
 
13923
 
 
13924
# Source file extension for f77 test sources.
 
13925
ac_ext=f
 
13926
 
 
13927
# Object file extension for compiled f77 test sources.
 
13928
objext=o
 
13929
objext_F77=$objext
 
13930
 
 
13931
# Code to be used in simple compile tests
 
13932
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13933
 
 
13934
# Code to be used in simple link tests
 
13935
lt_simple_link_test_code="      program t\n      end\n"
 
13936
 
 
13937
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13938
 
 
13939
# If no C compiler was specified, use CC.
 
13940
LTCC=${LTCC-"$CC"}
 
13941
 
 
13942
# If no C compiler flags were specified, use CFLAGS.
 
13943
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13944
 
 
13945
# Allow CC to be a program name with arguments.
 
13946
compiler=$CC
 
13947
 
 
13948
 
 
13949
# save warnings/boilerplate of simple test code
 
13950
ac_outfile=conftest.$ac_objext
 
13951
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13952
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13953
_lt_compiler_boilerplate=`cat conftest.err`
 
13954
$rm conftest*
 
13955
 
 
13956
ac_outfile=conftest.$ac_objext
 
13957
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13958
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13959
_lt_linker_boilerplate=`cat conftest.err`
 
13960
$rm conftest*
 
13961
 
 
13962
 
 
13963
# Allow CC to be a program name with arguments.
 
13964
lt_save_CC="$CC"
 
13965
CC=${F77-"f77"}
 
13966
compiler=$CC
 
13967
compiler_F77=$CC
 
13968
for cc_temp in $compiler""; do
 
13969
  case $cc_temp in
 
13970
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13971
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13972
    \-*) ;;
 
13973
    *) break;;
 
13974
  esac
 
13975
done
 
13976
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13977
 
 
13978
 
 
13979
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13980
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13981
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13982
echo "${ECHO_T}$can_build_shared" >&6; }
 
13983
 
 
13984
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13985
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13986
test "$can_build_shared" = "no" && enable_shared=no
 
13987
 
 
13988
# On AIX, shared libraries and static libraries use the same namespace, and
 
13989
# are all built from PIC.
 
13990
case $host_os in
 
13991
aix3*)
 
13992
  test "$enable_shared" = yes && enable_static=no
 
13993
  if test -n "$RANLIB"; then
 
13994
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13995
    postinstall_cmds='$RANLIB $lib'
 
13996
  fi
 
13997
  ;;
 
13998
aix4* | aix5*)
 
13999
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14000
    test "$enable_shared" = yes && enable_static=no
 
14001
  fi
 
14002
  ;;
 
14003
esac
 
14004
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14005
echo "${ECHO_T}$enable_shared" >&6; }
 
14006
 
 
14007
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14008
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14009
# Make sure either enable_shared or enable_static is yes.
 
14010
test "$enable_shared" = yes || enable_static=yes
 
14011
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14012
echo "${ECHO_T}$enable_static" >&6; }
 
14013
 
 
14014
GCC_F77="$G77"
 
14015
LD_F77="$LD"
 
14016
 
 
14017
lt_prog_compiler_wl_F77=
 
14018
lt_prog_compiler_pic_F77=
 
14019
lt_prog_compiler_static_F77=
 
14020
 
 
14021
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14022
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14023
 
 
14024
  if test "$GCC" = yes; then
 
14025
    lt_prog_compiler_wl_F77='-Wl,'
 
14026
    lt_prog_compiler_static_F77='-static'
 
14027
 
 
14028
    case $host_os in
 
14029
      aix*)
 
14030
      # All AIX code is PIC.
 
14031
      if test "$host_cpu" = ia64; then
 
14032
        # AIX 5 now supports IA64 processor
 
14033
        lt_prog_compiler_static_F77='-Bstatic'
 
14034
      fi
 
14035
      ;;
 
14036
 
 
14037
    amigaos*)
 
14038
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14039
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14040
      # like `-m68040'.
 
14041
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14042
      ;;
 
14043
 
 
14044
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14045
      # PIC is the default for these OSes.
 
14046
      ;;
 
14047
 
 
14048
    mingw* | pw32* | os2*)
 
14049
      # This hack is so that the source file can tell whether it is being
 
14050
      # built for inclusion in a dll (and should export symbols for example).
 
14051
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14052
      ;;
 
14053
 
 
14054
    darwin* | rhapsody*)
 
14055
      # PIC is the default on this platform
 
14056
      # Common symbols not allowed in MH_DYLIB files
 
14057
      lt_prog_compiler_pic_F77='-fno-common'
 
14058
      ;;
 
14059
 
 
14060
    interix3*)
 
14061
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14062
      # Instead, we relocate shared libraries at runtime.
 
14063
      ;;
 
14064
 
 
14065
    msdosdjgpp*)
 
14066
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14067
      # on systems that don't support them.
 
14068
      lt_prog_compiler_can_build_shared_F77=no
 
14069
      enable_shared=no
 
14070
      ;;
 
14071
 
 
14072
    sysv4*MP*)
 
14073
      if test -d /usr/nec; then
 
14074
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14075
      fi
 
14076
      ;;
 
14077
 
 
14078
    hpux*)
 
14079
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14080
      # not for PA HP-UX.
 
14081
      case $host_cpu in
 
14082
      hppa*64*|ia64*)
 
14083
        # +Z the default
 
14084
        ;;
 
14085
      *)
 
14086
        lt_prog_compiler_pic_F77='-fPIC'
 
14087
        ;;
 
14088
      esac
 
14089
      ;;
 
14090
 
 
14091
    *)
 
14092
      lt_prog_compiler_pic_F77='-fPIC'
 
14093
      ;;
 
14094
    esac
 
14095
  else
 
14096
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14097
    case $host_os in
 
14098
    aix*)
 
14099
      lt_prog_compiler_wl_F77='-Wl,'
 
14100
      if test "$host_cpu" = ia64; then
 
14101
        # AIX 5 now supports IA64 processor
 
14102
        lt_prog_compiler_static_F77='-Bstatic'
 
14103
      else
 
14104
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14105
      fi
 
14106
      ;;
 
14107
      darwin*)
 
14108
        # PIC is the default on this platform
 
14109
        # Common symbols not allowed in MH_DYLIB files
 
14110
       case $cc_basename in
 
14111
         xlc*)
 
14112
         lt_prog_compiler_pic_F77='-qnocommon'
 
14113
         lt_prog_compiler_wl_F77='-Wl,'
 
14114
         ;;
 
14115
       esac
 
14116
       ;;
 
14117
 
 
14118
    mingw* | pw32* | os2*)
 
14119
      # This hack is so that the source file can tell whether it is being
 
14120
      # built for inclusion in a dll (and should export symbols for example).
 
14121
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14122
      ;;
 
14123
 
 
14124
    hpux9* | hpux10* | hpux11*)
 
14125
      lt_prog_compiler_wl_F77='-Wl,'
 
14126
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14127
      # not for PA HP-UX.
 
14128
      case $host_cpu in
 
14129
      hppa*64*|ia64*)
 
14130
        # +Z the default
 
14131
        ;;
 
14132
      *)
 
14133
        lt_prog_compiler_pic_F77='+Z'
 
14134
        ;;
 
14135
      esac
 
14136
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14137
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14138
      ;;
 
14139
 
 
14140
    irix5* | irix6* | nonstopux*)
 
14141
      lt_prog_compiler_wl_F77='-Wl,'
 
14142
      # PIC (with -KPIC) is the default.
 
14143
      lt_prog_compiler_static_F77='-non_shared'
 
14144
      ;;
 
14145
 
 
14146
    newsos6)
 
14147
      lt_prog_compiler_pic_F77='-KPIC'
 
14148
      lt_prog_compiler_static_F77='-Bstatic'
 
14149
      ;;
 
14150
 
 
14151
    linux*)
 
14152
      case $cc_basename in
 
14153
      icc* | ecc*)
 
14154
        lt_prog_compiler_wl_F77='-Wl,'
 
14155
        lt_prog_compiler_pic_F77='-KPIC'
 
14156
        lt_prog_compiler_static_F77='-static'
 
14157
        ;;
 
14158
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14159
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14160
        # which looks to be a dead project)
 
14161
        lt_prog_compiler_wl_F77='-Wl,'
 
14162
        lt_prog_compiler_pic_F77='-fpic'
 
14163
        lt_prog_compiler_static_F77='-Bstatic'
 
14164
        ;;
 
14165
      ccc*)
 
14166
        lt_prog_compiler_wl_F77='-Wl,'
 
14167
        # All Alpha code is PIC.
 
14168
        lt_prog_compiler_static_F77='-non_shared'
 
14169
        ;;
 
14170
      esac
 
14171
      ;;
 
14172
 
 
14173
    osf3* | osf4* | osf5*)
 
14174
      lt_prog_compiler_wl_F77='-Wl,'
 
14175
      # All OSF/1 code is PIC.
 
14176
      lt_prog_compiler_static_F77='-non_shared'
 
14177
      ;;
 
14178
 
 
14179
    solaris*)
 
14180
      lt_prog_compiler_pic_F77='-KPIC'
 
14181
      lt_prog_compiler_static_F77='-Bstatic'
 
14182
      case $cc_basename in
 
14183
      f77* | f90* | f95*)
 
14184
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14185
      *)
 
14186
        lt_prog_compiler_wl_F77='-Wl,';;
 
14187
      esac
 
14188
      ;;
 
14189
 
 
14190
    sunos4*)
 
14191
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14192
      lt_prog_compiler_pic_F77='-PIC'
 
14193
      lt_prog_compiler_static_F77='-Bstatic'
 
14194
      ;;
 
14195
 
 
14196
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14197
      lt_prog_compiler_wl_F77='-Wl,'
 
14198
      lt_prog_compiler_pic_F77='-KPIC'
 
14199
      lt_prog_compiler_static_F77='-Bstatic'
 
14200
      ;;
 
14201
 
 
14202
    sysv4*MP*)
 
14203
      if test -d /usr/nec ;then
 
14204
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14205
        lt_prog_compiler_static_F77='-Bstatic'
 
14206
      fi
 
14207
      ;;
 
14208
 
 
14209
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14210
      lt_prog_compiler_wl_F77='-Wl,'
 
14211
      lt_prog_compiler_pic_F77='-KPIC'
 
14212
      lt_prog_compiler_static_F77='-Bstatic'
 
14213
      ;;
 
14214
 
 
14215
    unicos*)
 
14216
      lt_prog_compiler_wl_F77='-Wl,'
 
14217
      lt_prog_compiler_can_build_shared_F77=no
 
14218
      ;;
 
14219
 
 
14220
    uts4*)
 
14221
      lt_prog_compiler_pic_F77='-pic'
 
14222
      lt_prog_compiler_static_F77='-Bstatic'
 
14223
      ;;
 
14224
 
 
14225
    *)
 
14226
      lt_prog_compiler_can_build_shared_F77=no
 
14227
      ;;
 
14228
    esac
 
14229
  fi
 
14230
 
 
14231
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14232
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14233
 
 
14234
#
 
14235
# Check to make sure the PIC flag actually works.
 
14236
#
 
14237
if test -n "$lt_prog_compiler_pic_F77"; then
 
14238
 
 
14239
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14240
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14241
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14243
else
 
14244
  lt_prog_compiler_pic_works_F77=no
 
14245
  ac_outfile=conftest.$ac_objext
 
14246
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14247
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14248
   # Insert the option either (1) after the last *FLAGS variable, or
 
14249
   # (2) before a word containing "conftest.", or (3) at the end.
 
14250
   # Note that $ac_compile itself does not contain backslashes and begins
 
14251
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14252
   # The option is referenced via a variable to avoid confusing sed.
 
14253
   lt_compile=`echo "$ac_compile" | $SED \
 
14254
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14255
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14256
   -e 's:$: $lt_compiler_flag:'`
 
14257
   (eval echo "\"\$as_me:14257: $lt_compile\"" >&5)
 
14258
   (eval "$lt_compile" 2>conftest.err)
 
14259
   ac_status=$?
 
14260
   cat conftest.err >&5
 
14261
   echo "$as_me:14261: \$? = $ac_status" >&5
 
14262
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14263
     # The compiler can only warn and ignore the option if not recognized
 
14264
     # So say no if there are warnings other than the usual output.
 
14265
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14266
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14267
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14268
       lt_prog_compiler_pic_works_F77=yes
 
14269
     fi
 
14270
   fi
 
14271
   $rm conftest*
 
14272
 
 
14273
fi
 
14274
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14275
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14276
 
 
14277
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14278
    case $lt_prog_compiler_pic_F77 in
 
14279
     "" | " "*) ;;
 
14280
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14281
     esac
 
14282
else
 
14283
    lt_prog_compiler_pic_F77=
 
14284
     lt_prog_compiler_can_build_shared_F77=no
 
14285
fi
 
14286
 
 
14287
fi
 
14288
case $host_os in
 
14289
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14290
  *djgpp*)
 
14291
    lt_prog_compiler_pic_F77=
 
14292
    ;;
 
14293
  *)
 
14294
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14295
    ;;
 
14296
esac
 
14297
 
 
14298
#
 
14299
# Check to make sure the static flag actually works.
 
14300
#
 
14301
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14302
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14303
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14304
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14306
else
 
14307
  lt_prog_compiler_static_works_F77=no
 
14308
   save_LDFLAGS="$LDFLAGS"
 
14309
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14310
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14311
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14312
     # The linker can only warn and ignore the option if not recognized
 
14313
     # So say no if there are warnings
 
14314
     if test -s conftest.err; then
 
14315
       # Append any errors to the config.log.
 
14316
       cat conftest.err 1>&5
 
14317
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14318
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14319
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14320
         lt_prog_compiler_static_works_F77=yes
 
14321
       fi
 
14322
     else
 
14323
       lt_prog_compiler_static_works_F77=yes
 
14324
     fi
 
14325
   fi
 
14326
   $rm conftest*
 
14327
   LDFLAGS="$save_LDFLAGS"
 
14328
 
 
14329
fi
 
14330
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14331
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14332
 
 
14333
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14334
    :
 
14335
else
 
14336
    lt_prog_compiler_static_F77=
 
14337
fi
 
14338
 
 
14339
 
 
14340
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14341
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14342
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14344
else
 
14345
  lt_cv_prog_compiler_c_o_F77=no
 
14346
   $rm -r conftest 2>/dev/null
 
14347
   mkdir conftest
 
14348
   cd conftest
 
14349
   mkdir out
 
14350
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14351
 
 
14352
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14353
   # Insert the option either (1) after the last *FLAGS variable, or
 
14354
   # (2) before a word containing "conftest.", or (3) at the end.
 
14355
   # Note that $ac_compile itself does not contain backslashes and begins
 
14356
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14357
   lt_compile=`echo "$ac_compile" | $SED \
 
14358
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14359
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14360
   -e 's:$: $lt_compiler_flag:'`
 
14361
   (eval echo "\"\$as_me:14361: $lt_compile\"" >&5)
 
14362
   (eval "$lt_compile" 2>out/conftest.err)
 
14363
   ac_status=$?
 
14364
   cat out/conftest.err >&5
 
14365
   echo "$as_me:14365: \$? = $ac_status" >&5
 
14366
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14367
   then
 
14368
     # The compiler can only warn and ignore the option if not recognized
 
14369
     # So say no if there are warnings
 
14370
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14371
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14372
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14373
       lt_cv_prog_compiler_c_o_F77=yes
 
14374
     fi
 
14375
   fi
 
14376
   chmod u+w . 2>&5
 
14377
   $rm conftest*
 
14378
   # SGI C++ compiler will create directory out/ii_files/ for
 
14379
   # template instantiation
 
14380
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14381
   $rm out/* && rmdir out
 
14382
   cd ..
 
14383
   rmdir conftest
 
14384
   $rm conftest*
 
14385
 
 
14386
fi
 
14387
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14388
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14389
 
 
14390
 
 
14391
hard_links="nottested"
 
14392
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14393
  # do not overwrite the value of need_locks provided by the user
 
14394
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14395
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14396
  hard_links=yes
 
14397
  $rm conftest*
 
14398
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14399
  touch conftest.a
 
14400
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14401
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14402
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14403
echo "${ECHO_T}$hard_links" >&6; }
 
14404
  if test "$hard_links" = no; then
 
14405
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14406
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14407
    need_locks=warn
 
14408
  fi
 
14409
else
 
14410
  need_locks=no
 
14411
fi
 
14412
 
 
14413
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14414
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14415
 
 
14416
  runpath_var=
 
14417
  allow_undefined_flag_F77=
 
14418
  enable_shared_with_static_runtimes_F77=no
 
14419
  archive_cmds_F77=
 
14420
  archive_expsym_cmds_F77=
 
14421
  old_archive_From_new_cmds_F77=
 
14422
  old_archive_from_expsyms_cmds_F77=
 
14423
  export_dynamic_flag_spec_F77=
 
14424
  whole_archive_flag_spec_F77=
 
14425
  thread_safe_flag_spec_F77=
 
14426
  hardcode_libdir_flag_spec_F77=
 
14427
  hardcode_libdir_flag_spec_ld_F77=
 
14428
  hardcode_libdir_separator_F77=
 
14429
  hardcode_direct_F77=no
 
14430
  hardcode_minus_L_F77=no
 
14431
  hardcode_shlibpath_var_F77=unsupported
 
14432
  link_all_deplibs_F77=unknown
 
14433
  hardcode_automatic_F77=no
 
14434
  module_cmds_F77=
 
14435
  module_expsym_cmds_F77=
 
14436
  always_export_symbols_F77=no
 
14437
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14438
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14439
  # included in the symbol list
 
14440
  include_expsyms_F77=
 
14441
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14442
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14443
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14444
  # as well as any symbol that contains `d'.
 
14445
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14446
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14447
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14448
  # the symbol is explicitly referenced.  Since portable code cannot
 
14449
  # rely on this symbol name, it's probably fine to never include it in
 
14450
  # preloaded symbol tables.
 
14451
  extract_expsyms_cmds=
 
14452
  # Just being paranoid about ensuring that cc_basename is set.
 
14453
  for cc_temp in $compiler""; do
 
14454
  case $cc_temp in
 
14455
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14456
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14457
    \-*) ;;
 
14458
    *) break;;
 
14459
  esac
 
14460
done
 
14461
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14462
 
 
14463
  case $host_os in
 
14464
  cygwin* | mingw* | pw32*)
 
14465
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14466
    # When not using gcc, we currently assume that we are using
 
14467
    # Microsoft Visual C++.
 
14468
    if test "$GCC" != yes; then
 
14469
      with_gnu_ld=no
 
14470
    fi
 
14471
    ;;
 
14472
  interix*)
 
14473
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14474
    with_gnu_ld=yes
 
14475
    ;;
 
14476
  openbsd*)
 
14477
    with_gnu_ld=no
 
14478
    ;;
 
14479
  esac
 
14480
 
 
14481
  ld_shlibs_F77=yes
 
14482
  if test "$with_gnu_ld" = yes; then
 
14483
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14484
    wlarc='${wl}'
 
14485
 
 
14486
    # Set some defaults for GNU ld with shared library support. These
 
14487
    # are reset later if shared libraries are not supported. Putting them
 
14488
    # here allows them to be overridden if necessary.
 
14489
    runpath_var=LD_RUN_PATH
 
14490
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14491
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14492
    # ancient GNU ld didn't support --whole-archive et. al.
 
14493
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14494
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14495
      else
 
14496
        whole_archive_flag_spec_F77=
 
14497
    fi
 
14498
    supports_anon_versioning=no
 
14499
    case `$LD -v 2>/dev/null` in
 
14500
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14501
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14502
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14503
      *\ 2.11.*) ;; # other 2.11 versions
 
14504
      *) supports_anon_versioning=yes ;;
 
14505
    esac
 
14506
 
 
14507
    # See if GNU ld supports shared libraries.
 
14508
    case $host_os in
 
14509
    aix3* | aix4* | aix5*)
 
14510
      # On AIX/PPC, the GNU linker is very broken
 
14511
      if test "$host_cpu" != ia64; then
 
14512
        ld_shlibs_F77=no
 
14513
        cat <<EOF 1>&2
 
14514
 
 
14515
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14516
*** to be unable to reliably create shared libraries on AIX.
 
14517
*** Therefore, libtool is disabling shared libraries support.  If you
 
14518
*** really care for shared libraries, you may want to modify your PATH
 
14519
*** so that a non-GNU linker is found, and then restart.
 
14520
 
 
14521
EOF
 
14522
      fi
 
14523
      ;;
 
14524
 
 
14525
    amigaos*)
 
14526
      archive_cmds_F77='$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)'
 
14527
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14528
      hardcode_minus_L_F77=yes
 
14529
 
 
14530
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14531
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14532
      # to version 4, is to share data among multiple programs linked
 
14533
      # with the same dynamic library.  Since this doesn't match the
 
14534
      # behavior of shared libraries on other platforms, we can't use
 
14535
      # them.
 
14536
      ld_shlibs_F77=no
 
14537
      ;;
 
14538
 
 
14539
    beos*)
 
14540
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14541
        allow_undefined_flag_F77=unsupported
 
14542
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14543
        # support --undefined.  This deserves some investigation.  FIXME
 
14544
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14545
      else
 
14546
        ld_shlibs_F77=no
 
14547
      fi
 
14548
      ;;
 
14549
 
 
14550
    cygwin* | mingw* | pw32*)
 
14551
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14552
      # as there is no search path for DLLs.
 
14553
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14554
      allow_undefined_flag_F77=unsupported
 
14555
      always_export_symbols_F77=no
 
14556
      enable_shared_with_static_runtimes_F77=yes
 
14557
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14558
 
 
14559
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14560
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14561
        # If the export-symbols file already is a .def file (1st line
 
14562
        # is EXPORTS), use it as is; otherwise, prepend...
 
14563
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14564
          cp $export_symbols $output_objdir/$soname.def;
 
14565
        else
 
14566
          echo EXPORTS > $output_objdir/$soname.def;
 
14567
          cat $export_symbols >> $output_objdir/$soname.def;
 
14568
        fi~
 
14569
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14570
      else
 
14571
        ld_shlibs_F77=no
 
14572
      fi
 
14573
      ;;
 
14574
 
 
14575
    interix3*)
 
14576
      hardcode_direct_F77=no
 
14577
      hardcode_shlibpath_var_F77=no
 
14578
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14579
      export_dynamic_flag_spec_F77='${wl}-E'
 
14580
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14581
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14582
      # default) and relocated if they conflict, which is a slow very memory
 
14583
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14584
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14585
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14586
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14587
      archive_expsym_cmds_F77='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'
 
14588
      ;;
 
14589
 
 
14590
    linux*)
 
14591
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14592
        tmp_addflag=
 
14593
        case $cc_basename,$host_cpu in
 
14594
        pgcc*)                          # Portland Group C compiler
 
14595
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14596
          tmp_addflag=' $pic_flag'
 
14597
          ;;
 
14598
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14599
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14600
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14601
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14602
          tmp_addflag=' -i_dynamic' ;;
 
14603
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14604
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14605
        ifc* | ifort*)                  # Intel Fortran compiler
 
14606
          tmp_addflag=' -nofor_main' ;;
 
14607
        esac
 
14608
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14609
 
 
14610
        if test $supports_anon_versioning = yes; then
 
14611
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14612
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14613
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14614
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14615
        fi
 
14616
      else
 
14617
        ld_shlibs_F77=no
 
14618
      fi
 
14619
      ;;
 
14620
 
 
14621
    netbsd*)
 
14622
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14623
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14624
        wlarc=
 
14625
      else
 
14626
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14627
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14628
      fi
 
14629
      ;;
 
14630
 
 
14631
    solaris*)
 
14632
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14633
        ld_shlibs_F77=no
 
14634
        cat <<EOF 1>&2
 
14635
 
 
14636
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14637
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14638
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14639
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14640
*** your PATH or compiler configuration so that the native linker is
 
14641
*** used, and then restart.
 
14642
 
 
14643
EOF
 
14644
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14645
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14646
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14647
      else
 
14648
        ld_shlibs_F77=no
 
14649
      fi
 
14650
      ;;
 
14651
 
 
14652
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14653
      case `$LD -v 2>&1` in
 
14654
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14655
        ld_shlibs_F77=no
 
14656
        cat <<_LT_EOF 1>&2
 
14657
 
 
14658
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14659
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14660
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14661
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14662
*** your PATH or compiler configuration so that the native linker is
 
14663
*** used, and then restart.
 
14664
 
 
14665
_LT_EOF
 
14666
        ;;
 
14667
        *)
 
14668
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14669
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14670
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14671
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14672
          else
 
14673
            ld_shlibs_F77=no
 
14674
          fi
 
14675
        ;;
 
14676
      esac
 
14677
      ;;
 
14678
 
 
14679
    sunos4*)
 
14680
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14681
      wlarc=
 
14682
      hardcode_direct_F77=yes
 
14683
      hardcode_shlibpath_var_F77=no
 
14684
      ;;
 
14685
 
 
14686
    *)
 
14687
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14688
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14689
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14690
      else
 
14691
        ld_shlibs_F77=no
 
14692
      fi
 
14693
      ;;
 
14694
    esac
 
14695
 
 
14696
    if test "$ld_shlibs_F77" = no; then
 
14697
      runpath_var=
 
14698
      hardcode_libdir_flag_spec_F77=
 
14699
      export_dynamic_flag_spec_F77=
 
14700
      whole_archive_flag_spec_F77=
 
14701
    fi
 
14702
  else
 
14703
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14704
    case $host_os in
 
14705
    aix3*)
 
14706
      allow_undefined_flag_F77=unsupported
 
14707
      always_export_symbols_F77=yes
 
14708
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14709
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14710
      # are no directories specified by -L.
 
14711
      hardcode_minus_L_F77=yes
 
14712
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14713
        # Neither direct hardcoding nor static linking is supported with a
 
14714
        # broken collect2.
 
14715
        hardcode_direct_F77=unsupported
 
14716
      fi
 
14717
      ;;
 
14718
 
 
14719
    aix4* | aix5*)
 
14720
      if test "$host_cpu" = ia64; then
 
14721
        # On IA64, the linker does run time linking by default, so we don't
 
14722
        # have to do anything special.
 
14723
        aix_use_runtimelinking=no
 
14724
        exp_sym_flag='-Bexport'
 
14725
        no_entry_flag=""
 
14726
      else
 
14727
        # If we're using GNU nm, then we don't want the "-C" option.
 
14728
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14729
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14730
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14731
        else
 
14732
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14733
        fi
 
14734
        aix_use_runtimelinking=no
 
14735
 
 
14736
        # Test if we are trying to use run time linking or normal
 
14737
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14738
        # need to do runtime linking.
 
14739
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14740
          for ld_flag in $LDFLAGS; do
 
14741
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14742
            aix_use_runtimelinking=yes
 
14743
            break
 
14744
          fi
 
14745
          done
 
14746
          ;;
 
14747
        esac
 
14748
 
 
14749
        exp_sym_flag='-bexport'
 
14750
        no_entry_flag='-bnoentry'
 
14751
      fi
 
14752
 
 
14753
      # When large executables or shared objects are built, AIX ld can
 
14754
      # have problems creating the table of contents.  If linking a library
 
14755
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14756
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14757
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14758
 
 
14759
      archive_cmds_F77=''
 
14760
      hardcode_direct_F77=yes
 
14761
      hardcode_libdir_separator_F77=':'
 
14762
      link_all_deplibs_F77=yes
 
14763
 
 
14764
      if test "$GCC" = yes; then
 
14765
        case $host_os in aix4.[012]|aix4.[012].*)
 
14766
        # We only want to do this on AIX 4.2 and lower, the check
 
14767
        # below for broken collect2 doesn't work under 4.3+
 
14768
          collect2name=`${CC} -print-prog-name=collect2`
 
14769
          if test -f "$collect2name" && \
 
14770
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14771
          then
 
14772
          # We have reworked collect2
 
14773
          hardcode_direct_F77=yes
 
14774
          else
 
14775
          # We have old collect2
 
14776
          hardcode_direct_F77=unsupported
 
14777
          # It fails to find uninstalled libraries when the uninstalled
 
14778
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14779
          # to unsupported forces relinking
 
14780
          hardcode_minus_L_F77=yes
 
14781
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14782
          hardcode_libdir_separator_F77=
 
14783
          fi
 
14784
          ;;
 
14785
        esac
 
14786
        shared_flag='-shared'
 
14787
        if test "$aix_use_runtimelinking" = yes; then
 
14788
          shared_flag="$shared_flag "'${wl}-G'
 
14789
        fi
 
14790
      else
 
14791
        # not using gcc
 
14792
        if test "$host_cpu" = ia64; then
 
14793
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14794
        # chokes on -Wl,-G. The following line is correct:
 
14795
          shared_flag='-G'
 
14796
        else
 
14797
          if test "$aix_use_runtimelinking" = yes; then
 
14798
            shared_flag='${wl}-G'
 
14799
          else
 
14800
            shared_flag='${wl}-bM:SRE'
 
14801
          fi
 
14802
        fi
 
14803
      fi
 
14804
 
 
14805
      # It seems that -bexpall does not export symbols beginning with
 
14806
      # underscore (_), so it is better to generate a list of symbols to export.
 
14807
      always_export_symbols_F77=yes
 
14808
      if test "$aix_use_runtimelinking" = yes; then
 
14809
        # Warning - without using the other runtime loading flags (-brtl),
 
14810
        # -berok will link without error, but may produce a broken library.
 
14811
        allow_undefined_flag_F77='-berok'
 
14812
       # Determine the default libpath from the value encoded in an empty executable.
 
14813
       cat >conftest.$ac_ext <<_ACEOF
 
14814
      program main
 
14815
 
 
14816
      end
 
14817
_ACEOF
 
14818
rm -f conftest.$ac_objext conftest$ac_exeext
 
14819
if { (ac_try="$ac_link"
 
14820
case "(($ac_try" in
 
14821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14822
  *) ac_try_echo=$ac_try;;
 
14823
esac
 
14824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14825
  (eval "$ac_link") 2>conftest.er1
 
14826
  ac_status=$?
 
14827
  grep -v '^ *+' conftest.er1 >conftest.err
 
14828
  rm -f conftest.er1
 
14829
  cat conftest.err >&5
 
14830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14831
  (exit $ac_status); } && {
 
14832
         test -z "$ac_f77_werror_flag" ||
 
14833
         test ! -s conftest.err
 
14834
       } && test -s conftest$ac_exeext &&
 
14835
       $as_test_x conftest$ac_exeext; then
 
14836
 
 
14837
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14838
}'`
 
14839
# Check for a 64-bit object if we didn't find anything.
 
14840
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14841
}'`; fi
 
14842
else
 
14843
  echo "$as_me: failed program was:" >&5
 
14844
sed 's/^/| /' conftest.$ac_ext >&5
 
14845
 
 
14846
 
 
14847
fi
 
14848
 
 
14849
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14850
      conftest$ac_exeext conftest.$ac_ext
 
14851
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14852
 
 
14853
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14854
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14855
       else
 
14856
        if test "$host_cpu" = ia64; then
 
14857
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14858
          allow_undefined_flag_F77="-z nodefs"
 
14859
          archive_expsym_cmds_F77="\$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"
 
14860
        else
 
14861
         # Determine the default libpath from the value encoded in an empty executable.
 
14862
         cat >conftest.$ac_ext <<_ACEOF
 
14863
      program main
 
14864
 
 
14865
      end
 
14866
_ACEOF
 
14867
rm -f conftest.$ac_objext conftest$ac_exeext
 
14868
if { (ac_try="$ac_link"
 
14869
case "(($ac_try" in
 
14870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14871
  *) ac_try_echo=$ac_try;;
 
14872
esac
 
14873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14874
  (eval "$ac_link") 2>conftest.er1
 
14875
  ac_status=$?
 
14876
  grep -v '^ *+' conftest.er1 >conftest.err
 
14877
  rm -f conftest.er1
 
14878
  cat conftest.err >&5
 
14879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14880
  (exit $ac_status); } && {
 
14881
         test -z "$ac_f77_werror_flag" ||
 
14882
         test ! -s conftest.err
 
14883
       } && test -s conftest$ac_exeext &&
 
14884
       $as_test_x conftest$ac_exeext; then
 
14885
 
 
14886
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14887
}'`
 
14888
# Check for a 64-bit object if we didn't find anything.
 
14889
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14890
}'`; fi
 
14891
else
 
14892
  echo "$as_me: failed program was:" >&5
 
14893
sed 's/^/| /' conftest.$ac_ext >&5
 
14894
 
 
14895
 
 
14896
fi
 
14897
 
 
14898
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14899
      conftest$ac_exeext conftest.$ac_ext
 
14900
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14901
 
 
14902
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14903
          # Warning - without using the other run time loading flags,
 
14904
          # -berok will link without error, but may produce a broken library.
 
14905
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14906
          allow_undefined_flag_F77=' ${wl}-berok'
 
14907
          # Exported symbols can be pulled into shared objects from archives
 
14908
          whole_archive_flag_spec_F77='$convenience'
 
14909
          archive_cmds_need_lc_F77=yes
 
14910
          # This is similar to how AIX traditionally builds its shared libraries.
 
14911
          archive_expsym_cmds_F77="\$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'
 
14912
        fi
 
14913
      fi
 
14914
      ;;
 
14915
 
 
14916
    amigaos*)
 
14917
      archive_cmds_F77='$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)'
 
14918
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14919
      hardcode_minus_L_F77=yes
 
14920
      # see comment about different semantics on the GNU ld section
 
14921
      ld_shlibs_F77=no
 
14922
      ;;
 
14923
 
 
14924
    bsdi[45]*)
 
14925
      export_dynamic_flag_spec_F77=-rdynamic
 
14926
      ;;
 
14927
 
 
14928
    cygwin* | mingw* | pw32*)
 
14929
      # When not using gcc, we currently assume that we are using
 
14930
      # Microsoft Visual C++.
 
14931
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14932
      # no search path for DLLs.
 
14933
      hardcode_libdir_flag_spec_F77=' '
 
14934
      allow_undefined_flag_F77=unsupported
 
14935
      # Tell ltmain to make .lib files, not .a files.
 
14936
      libext=lib
 
14937
      # Tell ltmain to make .dll files, not .so files.
 
14938
      shrext_cmds=".dll"
 
14939
      # FIXME: Setting linknames here is a bad hack.
 
14940
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14941
      # The linker will automatically build a .lib file if we build a DLL.
 
14942
      old_archive_From_new_cmds_F77='true'
 
14943
      # FIXME: Should let the user specify the lib program.
 
14944
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14945
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14946
      enable_shared_with_static_runtimes_F77=yes
 
14947
      ;;
 
14948
 
 
14949
    darwin* | rhapsody*)
 
14950
      case $host_os in
 
14951
        rhapsody* | darwin1.[012])
 
14952
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14953
         ;;
 
14954
       *) # Darwin 1.3 on
 
14955
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14956
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14957
         else
 
14958
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14959
             10.[012])
 
14960
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14961
               ;;
 
14962
             10.*)
 
14963
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14964
               ;;
 
14965
           esac
 
14966
         fi
 
14967
         ;;
 
14968
      esac
 
14969
      archive_cmds_need_lc_F77=no
 
14970
      hardcode_direct_F77=no
 
14971
      hardcode_automatic_F77=yes
 
14972
      hardcode_shlibpath_var_F77=unsupported
 
14973
      whole_archive_flag_spec_F77=''
 
14974
      link_all_deplibs_F77=yes
 
14975
    if test "$GCC" = yes ; then
 
14976
        output_verbose_link_cmd='echo'
 
14977
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14978
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14979
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14980
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14981
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14982
    else
 
14983
      case $cc_basename in
 
14984
        xlc*)
 
14985
         output_verbose_link_cmd='echo'
 
14986
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14987
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14988
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14989
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14990
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14991
          ;;
 
14992
       *)
 
14993
         ld_shlibs_F77=no
 
14994
          ;;
 
14995
      esac
 
14996
    fi
 
14997
      ;;
 
14998
 
 
14999
    dgux*)
 
15000
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15001
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15002
      hardcode_shlibpath_var_F77=no
 
15003
      ;;
 
15004
 
 
15005
    freebsd1*)
 
15006
      ld_shlibs_F77=no
 
15007
      ;;
 
15008
 
 
15009
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15010
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15011
    # does not break anything, and helps significantly (at the cost of a little
 
15012
    # extra space).
 
15013
    freebsd2.2*)
 
15014
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15015
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15016
      hardcode_direct_F77=yes
 
15017
      hardcode_shlibpath_var_F77=no
 
15018
      ;;
 
15019
 
 
15020
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15021
    freebsd2*)
 
15022
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15023
      hardcode_direct_F77=yes
 
15024
      hardcode_minus_L_F77=yes
 
15025
      hardcode_shlibpath_var_F77=no
 
15026
      ;;
 
15027
 
 
15028
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15029
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
15030
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15031
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15032
      hardcode_direct_F77=yes
 
15033
      hardcode_shlibpath_var_F77=no
 
15034
      ;;
 
15035
 
 
15036
    hpux9*)
 
15037
      if test "$GCC" = yes; then
 
15038
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15039
      else
 
15040
        archive_cmds_F77='$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'
 
15041
      fi
 
15042
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15043
      hardcode_libdir_separator_F77=:
 
15044
      hardcode_direct_F77=yes
 
15045
 
 
15046
      # hardcode_minus_L: Not really in the search PATH,
 
15047
      # but as the default location of the library.
 
15048
      hardcode_minus_L_F77=yes
 
15049
      export_dynamic_flag_spec_F77='${wl}-E'
 
15050
      ;;
 
15051
 
 
15052
    hpux10*)
 
15053
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15054
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15055
      else
 
15056
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15057
      fi
 
15058
      if test "$with_gnu_ld" = no; then
 
15059
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15060
        hardcode_libdir_separator_F77=:
 
15061
 
 
15062
        hardcode_direct_F77=yes
 
15063
        export_dynamic_flag_spec_F77='${wl}-E'
 
15064
 
 
15065
        # hardcode_minus_L: Not really in the search PATH,
 
15066
        # but as the default location of the library.
 
15067
        hardcode_minus_L_F77=yes
 
15068
      fi
 
15069
      ;;
 
15070
 
 
15071
    hpux11*)
 
15072
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15073
        case $host_cpu in
 
15074
        hppa*64*)
 
15075
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15076
          ;;
 
15077
        ia64*)
 
15078
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15079
          ;;
 
15080
        *)
 
15081
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15082
          ;;
 
15083
        esac
 
15084
      else
 
15085
        case $host_cpu in
 
15086
        hppa*64*)
 
15087
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15088
          ;;
 
15089
        ia64*)
 
15090
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15091
          ;;
 
15092
        *)
 
15093
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15094
          ;;
 
15095
        esac
 
15096
      fi
 
15097
      if test "$with_gnu_ld" = no; then
 
15098
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15099
        hardcode_libdir_separator_F77=:
 
15100
 
 
15101
        case $host_cpu in
 
15102
        hppa*64*|ia64*)
 
15103
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15104
          hardcode_direct_F77=no
 
15105
          hardcode_shlibpath_var_F77=no
 
15106
          ;;
 
15107
        *)
 
15108
          hardcode_direct_F77=yes
 
15109
          export_dynamic_flag_spec_F77='${wl}-E'
 
15110
 
 
15111
          # hardcode_minus_L: Not really in the search PATH,
 
15112
          # but as the default location of the library.
 
15113
          hardcode_minus_L_F77=yes
 
15114
          ;;
 
15115
        esac
 
15116
      fi
 
15117
      ;;
 
15118
 
 
15119
    irix5* | irix6* | nonstopux*)
 
15120
      if test "$GCC" = yes; then
 
15121
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15122
      else
 
15123
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15124
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15125
      fi
 
15126
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15127
      hardcode_libdir_separator_F77=:
 
15128
      link_all_deplibs_F77=yes
 
15129
      ;;
 
15130
 
 
15131
    netbsd*)
 
15132
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15133
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15134
      else
 
15135
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15136
      fi
 
15137
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15138
      hardcode_direct_F77=yes
 
15139
      hardcode_shlibpath_var_F77=no
 
15140
      ;;
 
15141
 
 
15142
    newsos6)
 
15143
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15144
      hardcode_direct_F77=yes
 
15145
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15146
      hardcode_libdir_separator_F77=:
 
15147
      hardcode_shlibpath_var_F77=no
 
15148
      ;;
 
15149
 
 
15150
    openbsd*)
 
15151
      hardcode_direct_F77=yes
 
15152
      hardcode_shlibpath_var_F77=no
 
15153
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15154
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15155
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15156
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15157
        export_dynamic_flag_spec_F77='${wl}-E'
 
15158
      else
 
15159
       case $host_os in
 
15160
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15161
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15162
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15163
           ;;
 
15164
         *)
 
15165
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15166
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15167
           ;;
 
15168
       esac
 
15169
      fi
 
15170
      ;;
 
15171
 
 
15172
    os2*)
 
15173
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15174
      hardcode_minus_L_F77=yes
 
15175
      allow_undefined_flag_F77=unsupported
 
15176
      archive_cmds_F77='$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'
 
15177
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15178
      ;;
 
15179
 
 
15180
    osf3*)
 
15181
      if test "$GCC" = yes; then
 
15182
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15183
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15184
      else
 
15185
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15186
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15187
      fi
 
15188
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15189
      hardcode_libdir_separator_F77=:
 
15190
      ;;
 
15191
 
 
15192
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15193
      if test "$GCC" = yes; then
 
15194
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15195
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15196
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15197
      else
 
15198
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15199
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15200
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
15201
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
15202
 
 
15203
        # Both c and cxx compiler support -rpath directly
 
15204
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15205
      fi
 
15206
      hardcode_libdir_separator_F77=:
 
15207
      ;;
 
15208
 
 
15209
    solaris*)
 
15210
      no_undefined_flag_F77=' -z text'
 
15211
      if test "$GCC" = yes; then
 
15212
        wlarc='${wl}'
 
15213
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15214
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15215
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15216
      else
 
15217
        wlarc=''
 
15218
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15219
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15220
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15221
      fi
 
15222
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15223
      hardcode_shlibpath_var_F77=no
 
15224
      case $host_os in
 
15225
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15226
      *)
 
15227
        # The compiler driver will combine linker options so we
 
15228
        # cannot just pass the convience library names through
 
15229
        # without $wl, iff we do not link with $LD.
 
15230
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15231
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15232
        case $wlarc in
 
15233
        '')
 
15234
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15235
        *)
 
15236
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
15237
        esac ;;
 
15238
      esac
 
15239
      link_all_deplibs_F77=yes
 
15240
      ;;
 
15241
 
 
15242
    sunos4*)
 
15243
      if test "x$host_vendor" = xsequent; then
 
15244
        # Use $CC to link under sequent, because it throws in some extra .o
 
15245
        # files that make .init and .fini sections work.
 
15246
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15247
      else
 
15248
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15249
      fi
 
15250
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15251
      hardcode_direct_F77=yes
 
15252
      hardcode_minus_L_F77=yes
 
15253
      hardcode_shlibpath_var_F77=no
 
15254
      ;;
 
15255
 
 
15256
    sysv4)
 
15257
      case $host_vendor in
 
15258
        sni)
 
15259
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15260
          hardcode_direct_F77=yes # is this really true???
 
15261
        ;;
 
15262
        siemens)
 
15263
          ## LD is ld it makes a PLAMLIB
 
15264
          ## CC just makes a GrossModule.
 
15265
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15266
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15267
          hardcode_direct_F77=no
 
15268
        ;;
 
15269
        motorola)
 
15270
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15271
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15272
        ;;
 
15273
      esac
 
15274
      runpath_var='LD_RUN_PATH'
 
15275
      hardcode_shlibpath_var_F77=no
 
15276
      ;;
 
15277
 
 
15278
    sysv4.3*)
 
15279
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15280
      hardcode_shlibpath_var_F77=no
 
15281
      export_dynamic_flag_spec_F77='-Bexport'
 
15282
      ;;
 
15283
 
 
15284
    sysv4*MP*)
 
15285
      if test -d /usr/nec; then
 
15286
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15287
        hardcode_shlibpath_var_F77=no
 
15288
        runpath_var=LD_RUN_PATH
 
15289
        hardcode_runpath_var=yes
 
15290
        ld_shlibs_F77=yes
 
15291
      fi
 
15292
      ;;
 
15293
 
 
15294
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15295
      no_undefined_flag_F77='${wl}-z,text'
 
15296
      archive_cmds_need_lc_F77=no
 
15297
      hardcode_shlibpath_var_F77=no
 
15298
      runpath_var='LD_RUN_PATH'
 
15299
 
 
15300
      if test "$GCC" = yes; then
 
15301
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15302
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15303
      else
 
15304
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15305
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15306
      fi
 
15307
      ;;
 
15308
 
 
15309
    sysv5* | sco3.2v5* | sco5v6*)
 
15310
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15311
      # link with -lc, and that would cause any symbols used from libc to
 
15312
      # always be unresolved, which means just about no library would
 
15313
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15314
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15315
      # as -z defs.
 
15316
      no_undefined_flag_F77='${wl}-z,text'
 
15317
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15318
      archive_cmds_need_lc_F77=no
 
15319
      hardcode_shlibpath_var_F77=no
 
15320
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15321
      hardcode_libdir_separator_F77=':'
 
15322
      link_all_deplibs_F77=yes
 
15323
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15324
      runpath_var='LD_RUN_PATH'
 
15325
 
 
15326
      if test "$GCC" = yes; then
 
15327
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15328
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15329
      else
 
15330
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15331
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15332
      fi
 
15333
      ;;
 
15334
 
 
15335
    uts4*)
 
15336
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15337
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15338
      hardcode_shlibpath_var_F77=no
 
15339
      ;;
 
15340
 
 
15341
    *)
 
15342
      ld_shlibs_F77=no
 
15343
      ;;
 
15344
    esac
 
15345
  fi
 
15346
 
 
15347
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15348
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15349
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15350
 
 
15351
#
 
15352
# Do we need to explicitly link libc?
 
15353
#
 
15354
case "x$archive_cmds_need_lc_F77" in
 
15355
x|xyes)
 
15356
  # Assume -lc should be added
 
15357
  archive_cmds_need_lc_F77=yes
 
15358
 
 
15359
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15360
    case $archive_cmds_F77 in
 
15361
    *'~'*)
 
15362
      # FIXME: we may have to deal with multi-command sequences.
 
15363
      ;;
 
15364
    '$CC '*)
 
15365
      # Test whether the compiler implicitly links with -lc since on some
 
15366
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15367
      # to ld, don't add -lc before -lgcc.
 
15368
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15369
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15370
      $rm conftest*
 
15371
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15372
 
 
15373
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15374
  (eval $ac_compile) 2>&5
 
15375
  ac_status=$?
 
15376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15377
  (exit $ac_status); } 2>conftest.err; then
 
15378
        soname=conftest
 
15379
        lib=conftest
 
15380
        libobjs=conftest.$ac_objext
 
15381
        deplibs=
 
15382
        wl=$lt_prog_compiler_wl_F77
 
15383
        pic_flag=$lt_prog_compiler_pic_F77
 
15384
        compiler_flags=-v
 
15385
        linker_flags=-v
 
15386
        verstring=
 
15387
        output_objdir=.
 
15388
        libname=conftest
 
15389
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15390
        allow_undefined_flag_F77=
 
15391
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15392
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15393
  ac_status=$?
 
15394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15395
  (exit $ac_status); }
 
15396
        then
 
15397
          archive_cmds_need_lc_F77=no
 
15398
        else
 
15399
          archive_cmds_need_lc_F77=yes
 
15400
        fi
 
15401
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15402
      else
 
15403
        cat conftest.err 1>&5
 
15404
      fi
 
15405
      $rm conftest*
 
15406
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15407
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15408
      ;;
 
15409
    esac
 
15410
  fi
 
15411
  ;;
 
15412
esac
 
15413
 
 
15414
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15415
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15416
library_names_spec=
 
15417
libname_spec='lib$name'
 
15418
soname_spec=
 
15419
shrext_cmds=".so"
 
15420
postinstall_cmds=
 
15421
postuninstall_cmds=
 
15422
finish_cmds=
 
15423
finish_eval=
 
15424
shlibpath_var=
 
15425
shlibpath_overrides_runpath=unknown
 
15426
version_type=none
 
15427
dynamic_linker="$host_os ld.so"
 
15428
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15429
if test "$GCC" = yes; then
 
15430
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15431
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15432
    # if the path contains ";" then we assume it to be the separator
 
15433
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15434
    # assumed that no part of a normal pathname contains ";" but that should
 
15435
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15436
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15437
  else
 
15438
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15439
  fi
 
15440
else
 
15441
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15442
fi
 
15443
need_lib_prefix=unknown
 
15444
hardcode_into_libs=no
 
15445
 
 
15446
# when you set need_version to no, make sure it does not cause -set_version
 
15447
# flags to be left without arguments
 
15448
need_version=unknown
 
15449
 
 
15450
case $host_os in
 
15451
aix3*)
 
15452
  version_type=linux
 
15453
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15454
  shlibpath_var=LIBPATH
 
15455
 
 
15456
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15457
  soname_spec='${libname}${release}${shared_ext}$major'
 
15458
  ;;
 
15459
 
 
15460
aix4* | aix5*)
 
15461
  version_type=linux
 
15462
  need_lib_prefix=no
 
15463
  need_version=no
 
15464
  hardcode_into_libs=yes
 
15465
  if test "$host_cpu" = ia64; then
 
15466
    # AIX 5 supports IA64
 
15467
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15468
    shlibpath_var=LD_LIBRARY_PATH
 
15469
  else
 
15470
    # With GCC up to 2.95.x, collect2 would create an import file
 
15471
    # for dependence libraries.  The import file would start with
 
15472
    # the line `#! .'.  This would cause the generated library to
 
15473
    # depend on `.', always an invalid library.  This was fixed in
 
15474
    # development snapshots of GCC prior to 3.0.
 
15475
    case $host_os in
 
15476
      aix4 | aix4.[01] | aix4.[01].*)
 
15477
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15478
           echo ' yes '
 
15479
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15480
        :
 
15481
      else
 
15482
        can_build_shared=no
 
15483
      fi
 
15484
      ;;
 
15485
    esac
 
15486
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15487
    # soname into executable. Probably we can add versioning support to
 
15488
    # collect2, so additional links can be useful in future.
 
15489
    if test "$aix_use_runtimelinking" = yes; then
 
15490
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15491
      # instead of lib<name>.a to let people know that these are not
 
15492
      # typical AIX shared libraries.
 
15493
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15494
    else
 
15495
      # We preserve .a as extension for shared libraries through AIX4.2
 
15496
      # and later when we are not doing run time linking.
 
15497
      library_names_spec='${libname}${release}.a $libname.a'
 
15498
      soname_spec='${libname}${release}${shared_ext}$major'
 
15499
    fi
 
15500
    shlibpath_var=LIBPATH
 
15501
  fi
 
15502
  ;;
 
15503
 
 
15504
amigaos*)
 
15505
  library_names_spec='$libname.ixlibrary $libname.a'
 
15506
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15507
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
15508
  ;;
 
15509
 
 
15510
beos*)
 
15511
  library_names_spec='${libname}${shared_ext}'
 
15512
  dynamic_linker="$host_os ld.so"
 
15513
  shlibpath_var=LIBRARY_PATH
 
15514
  ;;
 
15515
 
 
15516
bsdi[45]*)
 
15517
  version_type=linux
 
15518
  need_version=no
 
15519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15520
  soname_spec='${libname}${release}${shared_ext}$major'
 
15521
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15522
  shlibpath_var=LD_LIBRARY_PATH
 
15523
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15524
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15525
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15526
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15527
  # libtool to hard-code these into programs
 
15528
  ;;
 
15529
 
 
15530
cygwin* | mingw* | pw32*)
 
15531
  version_type=windows
 
15532
  shrext_cmds=".dll"
 
15533
  need_version=no
 
15534
  need_lib_prefix=no
 
15535
 
 
15536
  case $GCC,$host_os in
 
15537
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15538
    library_names_spec='$libname.dll.a'
 
15539
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15540
    postinstall_cmds='base_file=`basename \${file}`~
 
15541
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15542
      dldir=$destdir/`dirname \$dlpath`~
 
15543
      test -d \$dldir || mkdir -p \$dldir~
 
15544
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15545
      chmod a+x \$dldir/$dlname'
 
15546
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15547
      dlpath=$dir/\$dldll~
 
15548
       $rm \$dlpath'
 
15549
    shlibpath_overrides_runpath=yes
 
15550
 
 
15551
    case $host_os in
 
15552
    cygwin*)
 
15553
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15554
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15555
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15556
      ;;
 
15557
    mingw*)
 
15558
      # MinGW DLLs use traditional 'lib' prefix
 
15559
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15560
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15561
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15562
        # It is most probably a Windows format PATH printed by
 
15563
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15564
        # path with ; separators, and with drive letters. We can handle the
 
15565
        # drive letters (cygwin fileutils understands them), so leave them,
 
15566
        # especially as we might pass files found there to a mingw objdump,
 
15567
        # which wouldn't understand a cygwinified path. Ahh.
 
15568
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15569
      else
 
15570
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15571
      fi
 
15572
      ;;
 
15573
    pw32*)
 
15574
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15575
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15576
      ;;
 
15577
    esac
 
15578
    ;;
 
15579
 
 
15580
  *)
 
15581
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15582
    ;;
 
15583
  esac
 
15584
  dynamic_linker='Win32 ld.exe'
 
15585
  # FIXME: first we should search . and the directory the executable is in
 
15586
  shlibpath_var=PATH
 
15587
  ;;
 
15588
 
 
15589
darwin* | rhapsody*)
 
15590
  dynamic_linker="$host_os dyld"
 
15591
  version_type=darwin
 
15592
  need_lib_prefix=no
 
15593
  need_version=no
 
15594
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15595
  soname_spec='${libname}${release}${major}$shared_ext'
 
15596
  shlibpath_overrides_runpath=yes
 
15597
  shlibpath_var=DYLD_LIBRARY_PATH
 
15598
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15599
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15600
  if test "$GCC" = yes; then
 
15601
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
15602
  else
 
15603
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15604
  fi
 
15605
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15606
  ;;
 
15607
 
 
15608
dgux*)
 
15609
  version_type=linux
 
15610
  need_lib_prefix=no
 
15611
  need_version=no
 
15612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15613
  soname_spec='${libname}${release}${shared_ext}$major'
 
15614
  shlibpath_var=LD_LIBRARY_PATH
 
15615
  ;;
 
15616
 
 
15617
freebsd1*)
 
15618
  dynamic_linker=no
 
15619
  ;;
 
15620
 
 
15621
kfreebsd*-gnu)
 
15622
  version_type=linux
 
15623
  need_lib_prefix=no
 
15624
  need_version=no
 
15625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15626
  soname_spec='${libname}${release}${shared_ext}$major'
 
15627
  shlibpath_var=LD_LIBRARY_PATH
 
15628
  shlibpath_overrides_runpath=no
 
15629
  hardcode_into_libs=yes
 
15630
  dynamic_linker='GNU ld.so'
 
15631
  ;;
 
15632
 
 
15633
freebsd* | dragonfly*)
 
15634
  # DragonFly does not have aout.  When/if they implement a new
 
15635
  # versioning mechanism, adjust this.
 
15636
  if test -x /usr/bin/objformat; then
 
15637
    objformat=`/usr/bin/objformat`
 
15638
  else
 
15639
    case $host_os in
 
15640
    freebsd[123]*) objformat=aout ;;
 
15641
    *) objformat=elf ;;
 
15642
    esac
 
15643
  fi
 
15644
  version_type=freebsd-$objformat
 
15645
  case $version_type in
 
15646
    freebsd-elf*)
 
15647
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15648
      need_version=no
 
15649
      need_lib_prefix=no
 
15650
      ;;
 
15651
    freebsd-*)
 
15652
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15653
      need_version=yes
 
15654
      ;;
 
15655
  esac
 
15656
  shlibpath_var=LD_LIBRARY_PATH
 
15657
  case $host_os in
 
15658
  freebsd2*)
 
15659
    shlibpath_overrides_runpath=yes
 
15660
    ;;
 
15661
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15662
    shlibpath_overrides_runpath=yes
 
15663
    hardcode_into_libs=yes
 
15664
    ;;
 
15665
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15666
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15667
    shlibpath_overrides_runpath=no
 
15668
    hardcode_into_libs=yes
 
15669
    ;;
 
15670
  freebsd*) # from 4.6 on
 
15671
    shlibpath_overrides_runpath=yes
 
15672
    hardcode_into_libs=yes
 
15673
    ;;
 
15674
  esac
 
15675
  ;;
 
15676
 
 
15677
gnu*)
 
15678
  version_type=linux
 
15679
  need_lib_prefix=no
 
15680
  need_version=no
 
15681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15682
  soname_spec='${libname}${release}${shared_ext}$major'
 
15683
  shlibpath_var=LD_LIBRARY_PATH
 
15684
  hardcode_into_libs=yes
 
15685
  ;;
 
15686
 
 
15687
hpux9* | hpux10* | hpux11*)
 
15688
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15689
  # link against other versions.
 
15690
  version_type=sunos
 
15691
  need_lib_prefix=no
 
15692
  need_version=no
 
15693
  case $host_cpu in
 
15694
  ia64*)
 
15695
    shrext_cmds='.so'
 
15696
    hardcode_into_libs=yes
 
15697
    dynamic_linker="$host_os dld.so"
 
15698
    shlibpath_var=LD_LIBRARY_PATH
 
15699
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15700
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15701
    soname_spec='${libname}${release}${shared_ext}$major'
 
15702
    if test "X$HPUX_IA64_MODE" = X32; then
 
15703
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15704
    else
 
15705
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15706
    fi
 
15707
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15708
    ;;
 
15709
   hppa*64*)
 
15710
     shrext_cmds='.sl'
 
15711
     hardcode_into_libs=yes
 
15712
     dynamic_linker="$host_os dld.sl"
 
15713
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15714
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15715
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15716
     soname_spec='${libname}${release}${shared_ext}$major'
 
15717
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15718
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15719
     ;;
 
15720
   *)
 
15721
    shrext_cmds='.sl'
 
15722
    dynamic_linker="$host_os dld.sl"
 
15723
    shlibpath_var=SHLIB_PATH
 
15724
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15725
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15726
    soname_spec='${libname}${release}${shared_ext}$major'
 
15727
    ;;
 
15728
  esac
 
15729
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15730
  postinstall_cmds='chmod 555 $lib'
 
15731
  ;;
 
15732
 
 
15733
interix3*)
 
15734
  version_type=linux
 
15735
  need_lib_prefix=no
 
15736
  need_version=no
 
15737
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15738
  soname_spec='${libname}${release}${shared_ext}$major'
 
15739
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15740
  shlibpath_var=LD_LIBRARY_PATH
 
15741
  shlibpath_overrides_runpath=no
 
15742
  hardcode_into_libs=yes
 
15743
  ;;
 
15744
 
 
15745
irix5* | irix6* | nonstopux*)
 
15746
  case $host_os in
 
15747
    nonstopux*) version_type=nonstopux ;;
 
15748
    *)
 
15749
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15750
                version_type=linux
 
15751
        else
 
15752
                version_type=irix
 
15753
        fi ;;
 
15754
  esac
 
15755
  need_lib_prefix=no
 
15756
  need_version=no
 
15757
  soname_spec='${libname}${release}${shared_ext}$major'
 
15758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15759
  case $host_os in
 
15760
  irix5* | nonstopux*)
 
15761
    libsuff= shlibsuff=
 
15762
    ;;
 
15763
  *)
 
15764
    case $LD in # libtool.m4 will add one of these switches to LD
 
15765
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15766
      libsuff= shlibsuff= libmagic=32-bit;;
 
15767
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15768
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15769
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15770
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15771
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15772
    esac
 
15773
    ;;
 
15774
  esac
 
15775
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15776
  shlibpath_overrides_runpath=no
 
15777
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15778
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15779
  hardcode_into_libs=yes
 
15780
  ;;
 
15781
 
 
15782
# No shared lib support for Linux oldld, aout, or coff.
 
15783
linux*oldld* | linux*aout* | linux*coff*)
 
15784
  dynamic_linker=no
 
15785
  ;;
 
15786
 
 
15787
# This must be Linux ELF.
 
15788
linux*)
 
15789
  version_type=linux
 
15790
  need_lib_prefix=no
 
15791
  need_version=no
 
15792
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15793
  soname_spec='${libname}${release}${shared_ext}$major'
 
15794
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15795
  shlibpath_var=LD_LIBRARY_PATH
 
15796
  shlibpath_overrides_runpath=no
 
15797
  # This implies no fast_install, which is unacceptable.
 
15798
  # Some rework will be needed to allow for fast_install
 
15799
  # before this can be enabled.
 
15800
  hardcode_into_libs=yes
 
15801
 
 
15802
  # find out which ABI we are using
 
15803
  libsuff=
 
15804
  case "$host_cpu" in
 
15805
  x86_64*|s390x*|powerpc64*)
 
15806
    echo '#line 15806 "configure"' > conftest.$ac_ext
 
15807
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15808
  (eval $ac_compile) 2>&5
 
15809
  ac_status=$?
 
15810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15811
  (exit $ac_status); }; then
 
15812
      case `/usr/bin/file conftest.$ac_objext` in
 
15813
      *64-bit*)
 
15814
        libsuff=64
 
15815
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
15816
        ;;
 
15817
      esac
 
15818
    fi
 
15819
    rm -rf conftest*
 
15820
    ;;
 
15821
  esac
 
15822
 
 
15823
  # Append ld.so.conf contents to the search path
 
15824
  if test -f /etc/ld.so.conf; then
 
15825
    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/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15826
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
15827
  fi
 
15828
 
 
15829
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15830
  # powerpc, because MkLinux only supported shared libraries with the
 
15831
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15832
  # most powerpc-linux boxes support dynamic linking these days and
 
15833
  # people can always --disable-shared, the test was removed, and we
 
15834
  # assume the GNU/Linux dynamic linker is in use.
 
15835
  dynamic_linker='GNU/Linux ld.so'
 
15836
  ;;
 
15837
 
 
15838
knetbsd*-gnu)
 
15839
  version_type=linux
 
15840
  need_lib_prefix=no
 
15841
  need_version=no
 
15842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15843
  soname_spec='${libname}${release}${shared_ext}$major'
 
15844
  shlibpath_var=LD_LIBRARY_PATH
 
15845
  shlibpath_overrides_runpath=no
 
15846
  hardcode_into_libs=yes
 
15847
  dynamic_linker='GNU ld.so'
 
15848
  ;;
 
15849
 
 
15850
netbsd*)
 
15851
  version_type=sunos
 
15852
  need_lib_prefix=no
 
15853
  need_version=no
 
15854
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15855
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15856
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15857
    dynamic_linker='NetBSD (a.out) ld.so'
 
15858
  else
 
15859
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15860
    soname_spec='${libname}${release}${shared_ext}$major'
 
15861
    dynamic_linker='NetBSD ld.elf_so'
 
15862
  fi
 
15863
  shlibpath_var=LD_LIBRARY_PATH
 
15864
  shlibpath_overrides_runpath=yes
 
15865
  hardcode_into_libs=yes
 
15866
  ;;
 
15867
 
 
15868
newsos6)
 
15869
  version_type=linux
 
15870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15871
  shlibpath_var=LD_LIBRARY_PATH
 
15872
  shlibpath_overrides_runpath=yes
 
15873
  ;;
 
15874
 
 
15875
nto-qnx*)
 
15876
  version_type=linux
 
15877
  need_lib_prefix=no
 
15878
  need_version=no
 
15879
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15880
  soname_spec='${libname}${release}${shared_ext}$major'
 
15881
  shlibpath_var=LD_LIBRARY_PATH
 
15882
  shlibpath_overrides_runpath=yes
 
15883
  ;;
 
15884
 
 
15885
openbsd*)
 
15886
  version_type=sunos
 
15887
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15888
  need_lib_prefix=no
 
15889
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15890
  case $host_os in
 
15891
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15892
    *)                         need_version=no  ;;
 
15893
  esac
 
15894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15895
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15896
  shlibpath_var=LD_LIBRARY_PATH
 
15897
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15898
    case $host_os in
 
15899
      openbsd2.[89] | openbsd2.[89].*)
 
15900
        shlibpath_overrides_runpath=no
 
15901
        ;;
 
15902
      *)
 
15903
        shlibpath_overrides_runpath=yes
 
15904
        ;;
 
15905
      esac
 
15906
  else
 
15907
    shlibpath_overrides_runpath=yes
 
15908
  fi
 
15909
  ;;
 
15910
 
 
15911
os2*)
 
15912
  libname_spec='$name'
 
15913
  shrext_cmds=".dll"
 
15914
  need_lib_prefix=no
 
15915
  library_names_spec='$libname${shared_ext} $libname.a'
 
15916
  dynamic_linker='OS/2 ld.exe'
 
15917
  shlibpath_var=LIBPATH
 
15918
  ;;
 
15919
 
 
15920
osf3* | osf4* | osf5*)
 
15921
  version_type=osf
 
15922
  need_lib_prefix=no
 
15923
  need_version=no
 
15924
  soname_spec='${libname}${release}${shared_ext}$major'
 
15925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15926
  shlibpath_var=LD_LIBRARY_PATH
 
15927
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15928
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15929
  ;;
 
15930
 
 
15931
solaris*)
 
15932
  version_type=linux
 
15933
  need_lib_prefix=no
 
15934
  need_version=no
 
15935
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15936
  soname_spec='${libname}${release}${shared_ext}$major'
 
15937
  shlibpath_var=LD_LIBRARY_PATH
 
15938
  shlibpath_overrides_runpath=yes
 
15939
  hardcode_into_libs=yes
 
15940
  # ldd complains unless libraries are executable
 
15941
  postinstall_cmds='chmod +x $lib'
 
15942
  ;;
 
15943
 
 
15944
sunos4*)
 
15945
  version_type=sunos
 
15946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15947
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15948
  shlibpath_var=LD_LIBRARY_PATH
 
15949
  shlibpath_overrides_runpath=yes
 
15950
  if test "$with_gnu_ld" = yes; then
 
15951
    need_lib_prefix=no
 
15952
  fi
 
15953
  need_version=yes
 
15954
  ;;
 
15955
 
 
15956
sysv4 | sysv4.3*)
 
15957
  version_type=linux
 
15958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15959
  soname_spec='${libname}${release}${shared_ext}$major'
 
15960
  shlibpath_var=LD_LIBRARY_PATH
 
15961
  case $host_vendor in
 
15962
    sni)
 
15963
      shlibpath_overrides_runpath=no
 
15964
      need_lib_prefix=no
 
15965
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15966
      runpath_var=LD_RUN_PATH
 
15967
      ;;
 
15968
    siemens)
 
15969
      need_lib_prefix=no
 
15970
      ;;
 
15971
    motorola)
 
15972
      need_lib_prefix=no
 
15973
      need_version=no
 
15974
      shlibpath_overrides_runpath=no
 
15975
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15976
      ;;
 
15977
  esac
 
15978
  ;;
 
15979
 
 
15980
sysv4*MP*)
 
15981
  if test -d /usr/nec ;then
 
15982
    version_type=linux
 
15983
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15984
    soname_spec='$libname${shared_ext}.$major'
 
15985
    shlibpath_var=LD_LIBRARY_PATH
 
15986
  fi
 
15987
  ;;
 
15988
 
 
15989
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15990
  version_type=freebsd-elf
 
15991
  need_lib_prefix=no
 
15992
  need_version=no
 
15993
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15994
  soname_spec='${libname}${release}${shared_ext}$major'
 
15995
  shlibpath_var=LD_LIBRARY_PATH
 
15996
  hardcode_into_libs=yes
 
15997
  if test "$with_gnu_ld" = yes; then
 
15998
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15999
    shlibpath_overrides_runpath=no
 
16000
  else
 
16001
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16002
    shlibpath_overrides_runpath=yes
 
16003
    case $host_os in
 
16004
      sco3.2v5*)
 
16005
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16006
        ;;
 
16007
    esac
 
16008
  fi
 
16009
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16010
  ;;
 
16011
 
 
16012
uts4*)
 
16013
  version_type=linux
 
16014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16015
  soname_spec='${libname}${release}${shared_ext}$major'
 
16016
  shlibpath_var=LD_LIBRARY_PATH
 
16017
  ;;
 
16018
 
 
16019
*)
 
16020
  dynamic_linker=no
 
16021
  ;;
 
16022
esac
 
16023
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16024
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16025
test "$dynamic_linker" = no && can_build_shared=no
 
16026
 
 
16027
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16028
if test "$GCC" = yes; then
 
16029
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16030
fi
 
16031
 
 
16032
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16033
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16034
hardcode_action_F77=
 
16035
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16036
   test -n "$runpath_var_F77" || \
 
16037
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16038
 
 
16039
  # We can hardcode non-existant directories.
 
16040
  if test "$hardcode_direct_F77" != no &&
 
16041
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16042
     # have to relink, otherwise we might link with an installed library
 
16043
     # when we should be linking with a yet-to-be-installed one
 
16044
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16045
     test "$hardcode_minus_L_F77" != no; then
 
16046
    # Linking always hardcodes the temporary library directory.
 
16047
    hardcode_action_F77=relink
 
16048
  else
 
16049
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16050
    hardcode_action_F77=immediate
 
16051
  fi
 
16052
else
 
16053
  # We cannot hardcode anything, or else we can only hardcode existing
 
16054
  # directories.
 
16055
  hardcode_action_F77=unsupported
 
16056
fi
 
16057
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16058
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16059
 
 
16060
if test "$hardcode_action_F77" = relink; then
 
16061
  # Fast installation is not supported
 
16062
  enable_fast_install=no
 
16063
elif test "$shlibpath_overrides_runpath" = yes ||
 
16064
     test "$enable_shared" = no; then
 
16065
  # Fast installation is not necessary
 
16066
  enable_fast_install=needless
 
16067
fi
 
16068
 
 
16069
 
 
16070
# The else clause should only fire when bootstrapping the
 
16071
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16072
# with your package, and you will get complaints that there are
 
16073
# no rules to generate ltmain.sh.
 
16074
if test -f "$ltmain"; then
 
16075
  # See if we are running on zsh, and set the options which allow our commands through
 
16076
  # without removal of \ escapes.
 
16077
  if test -n "${ZSH_VERSION+set}" ; then
 
16078
    setopt NO_GLOB_SUBST
 
16079
  fi
 
16080
  # Now quote all the things that may contain metacharacters while being
 
16081
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16082
  # variables and quote the copies for generation of the libtool script.
 
16083
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16084
    SED SHELL STRIP \
 
16085
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16086
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16087
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16088
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16089
    lt_cv_sys_global_symbol_to_c_name_address \
 
16090
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16091
    old_postinstall_cmds old_postuninstall_cmds \
 
16092
    compiler_F77 \
 
16093
    CC_F77 \
 
16094
    LD_F77 \
 
16095
    lt_prog_compiler_wl_F77 \
 
16096
    lt_prog_compiler_pic_F77 \
 
16097
    lt_prog_compiler_static_F77 \
 
16098
    lt_prog_compiler_no_builtin_flag_F77 \
 
16099
    export_dynamic_flag_spec_F77 \
 
16100
    thread_safe_flag_spec_F77 \
 
16101
    whole_archive_flag_spec_F77 \
 
16102
    enable_shared_with_static_runtimes_F77 \
 
16103
    old_archive_cmds_F77 \
 
16104
    old_archive_from_new_cmds_F77 \
 
16105
    predep_objects_F77 \
 
16106
    postdep_objects_F77 \
 
16107
    predeps_F77 \
 
16108
    postdeps_F77 \
 
16109
    compiler_lib_search_path_F77 \
 
16110
    archive_cmds_F77 \
 
16111
    archive_expsym_cmds_F77 \
 
16112
    postinstall_cmds_F77 \
 
16113
    postuninstall_cmds_F77 \
 
16114
    old_archive_from_expsyms_cmds_F77 \
 
16115
    allow_undefined_flag_F77 \
 
16116
    no_undefined_flag_F77 \
 
16117
    export_symbols_cmds_F77 \
 
16118
    hardcode_libdir_flag_spec_F77 \
 
16119
    hardcode_libdir_flag_spec_ld_F77 \
 
16120
    hardcode_libdir_separator_F77 \
 
16121
    hardcode_automatic_F77 \
 
16122
    module_cmds_F77 \
 
16123
    module_expsym_cmds_F77 \
 
16124
    lt_cv_prog_compiler_c_o_F77 \
 
16125
    exclude_expsyms_F77 \
 
16126
    include_expsyms_F77; do
 
16127
 
 
16128
    case $var in
 
16129
    old_archive_cmds_F77 | \
 
16130
    old_archive_from_new_cmds_F77 | \
 
16131
    archive_cmds_F77 | \
 
16132
    archive_expsym_cmds_F77 | \
 
16133
    module_cmds_F77 | \
 
16134
    module_expsym_cmds_F77 | \
 
16135
    old_archive_from_expsyms_cmds_F77 | \
 
16136
    export_symbols_cmds_F77 | \
 
16137
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16138
    postinstall_cmds | postuninstall_cmds | \
 
16139
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16140
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16141
      # Double-quote double-evaled strings.
 
16142
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16143
      ;;
 
16144
    *)
 
16145
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16146
      ;;
 
16147
    esac
 
16148
  done
 
16149
 
 
16150
  case $lt_echo in
 
16151
  *'\$0 --fallback-echo"')
 
16152
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16153
    ;;
 
16154
  esac
 
16155
 
 
16156
cfgfile="$ofile"
 
16157
 
 
16158
  cat <<__EOF__ >> "$cfgfile"
 
16159
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16160
 
 
16161
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16162
 
 
16163
# Shell to use when invoking shell scripts.
 
16164
SHELL=$lt_SHELL
 
16165
 
 
16166
# Whether or not to build shared libraries.
 
16167
build_libtool_libs=$enable_shared
 
16168
 
 
16169
# Whether or not to build static libraries.
 
16170
build_old_libs=$enable_static
 
16171
 
 
16172
# Whether or not to add -lc for building shared libraries.
 
16173
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16174
 
 
16175
# Whether or not to disallow shared libs when runtime libs are static
 
16176
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16177
 
 
16178
# Whether or not to optimize for fast installation.
 
16179
fast_install=$enable_fast_install
 
16180
 
 
16181
# The host system.
 
16182
host_alias=$host_alias
 
16183
host=$host
 
16184
host_os=$host_os
 
16185
 
 
16186
# The build system.
 
16187
build_alias=$build_alias
 
16188
build=$build
 
16189
build_os=$build_os
 
16190
 
 
16191
# An echo program that does not interpret backslashes.
 
16192
echo=$lt_echo
 
16193
 
 
16194
# The archiver.
 
16195
AR=$lt_AR
 
16196
AR_FLAGS=$lt_AR_FLAGS
 
16197
 
 
16198
# A C compiler.
 
16199
LTCC=$lt_LTCC
 
16200
 
 
16201
# LTCC compiler flags.
 
16202
LTCFLAGS=$lt_LTCFLAGS
 
16203
 
 
16204
# A language-specific compiler.
 
16205
CC=$lt_compiler_F77
 
16206
 
 
16207
# Is the compiler the GNU C compiler?
 
16208
with_gcc=$GCC_F77
 
16209
 
 
16210
# An ERE matcher.
 
16211
EGREP=$lt_EGREP
 
16212
 
 
16213
# The linker used to build libraries.
 
16214
LD=$lt_LD_F77
 
16215
 
 
16216
# Whether we need hard or soft links.
 
16217
LN_S=$lt_LN_S
 
16218
 
 
16219
# A BSD-compatible nm program.
 
16220
NM=$lt_NM
 
16221
 
 
16222
# A symbol stripping program
 
16223
STRIP=$lt_STRIP
 
16224
 
 
16225
# Used to examine libraries when file_magic_cmd begins "file"
 
16226
MAGIC_CMD=$MAGIC_CMD
 
16227
 
 
16228
# Used on cygwin: DLL creation program.
 
16229
DLLTOOL="$DLLTOOL"
 
16230
 
 
16231
# Used on cygwin: object dumper.
 
16232
OBJDUMP="$OBJDUMP"
 
16233
 
 
16234
# Used on cygwin: assembler.
 
16235
AS="$AS"
 
16236
 
 
16237
# The name of the directory that contains temporary libtool files.
 
16238
objdir=$objdir
 
16239
 
 
16240
# How to create reloadable object files.
 
16241
reload_flag=$lt_reload_flag
 
16242
reload_cmds=$lt_reload_cmds
 
16243
 
 
16244
# How to pass a linker flag through the compiler.
 
16245
wl=$lt_lt_prog_compiler_wl_F77
 
16246
 
 
16247
# Object file suffix (normally "o").
 
16248
objext="$ac_objext"
 
16249
 
 
16250
# Old archive suffix (normally "a").
 
16251
libext="$libext"
 
16252
 
 
16253
# Shared library suffix (normally ".so").
 
16254
shrext_cmds='$shrext_cmds'
 
16255
 
 
16256
# Executable file suffix (normally "").
 
16257
exeext="$exeext"
 
16258
 
 
16259
# Additional compiler flags for building library objects.
 
16260
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16261
pic_mode=$pic_mode
 
16262
 
 
16263
# What is the maximum length of a command?
 
16264
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16265
 
 
16266
# Does compiler simultaneously support -c and -o options?
 
16267
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16268
 
 
16269
# Must we lock files when doing compilation?
 
16270
need_locks=$lt_need_locks
 
16271
 
 
16272
# Do we need the lib prefix for modules?
 
16273
need_lib_prefix=$need_lib_prefix
 
16274
 
 
16275
# Do we need a version for libraries?
 
16276
need_version=$need_version
 
16277
 
 
16278
# Whether dlopen is supported.
 
16279
dlopen_support=$enable_dlopen
 
16280
 
 
16281
# Whether dlopen of programs is supported.
 
16282
dlopen_self=$enable_dlopen_self
 
16283
 
 
16284
# Whether dlopen of statically linked programs is supported.
 
16285
dlopen_self_static=$enable_dlopen_self_static
 
16286
 
 
16287
# Compiler flag to prevent dynamic linking.
 
16288
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16289
 
 
16290
# Compiler flag to turn off builtin functions.
 
16291
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16292
 
 
16293
# Compiler flag to allow reflexive dlopens.
 
16294
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16295
 
 
16296
# Compiler flag to generate shared objects directly from archives.
 
16297
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16298
 
 
16299
# Compiler flag to generate thread-safe objects.
 
16300
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16301
 
 
16302
# Library versioning type.
 
16303
version_type=$version_type
 
16304
 
 
16305
# Format of library name prefix.
 
16306
libname_spec=$lt_libname_spec
 
16307
 
 
16308
# List of archive names.  First name is the real one, the rest are links.
 
16309
# The last name is the one that the linker finds with -lNAME.
 
16310
library_names_spec=$lt_library_names_spec
 
16311
 
 
16312
# The coded name of the library, if different from the real name.
 
16313
soname_spec=$lt_soname_spec
 
16314
 
 
16315
# Commands used to build and install an old-style archive.
 
16316
RANLIB=$lt_RANLIB
 
16317
old_archive_cmds=$lt_old_archive_cmds_F77
 
16318
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16319
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16320
 
 
16321
# Create an old-style archive from a shared archive.
 
16322
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16323
 
 
16324
# Create a temporary old-style archive to link instead of a shared archive.
 
16325
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16326
 
 
16327
# Commands used to build and install a shared archive.
 
16328
archive_cmds=$lt_archive_cmds_F77
 
16329
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16330
postinstall_cmds=$lt_postinstall_cmds
 
16331
postuninstall_cmds=$lt_postuninstall_cmds
 
16332
 
 
16333
# Commands used to build a loadable module (assumed same as above if empty)
 
16334
module_cmds=$lt_module_cmds_F77
 
16335
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16336
 
 
16337
# Commands to strip libraries.
 
16338
old_striplib=$lt_old_striplib
 
16339
striplib=$lt_striplib
 
16340
 
 
16341
# Dependencies to place before the objects being linked to create a
 
16342
# shared library.
 
16343
predep_objects=$lt_predep_objects_F77
 
16344
 
 
16345
# Dependencies to place after the objects being linked to create a
 
16346
# shared library.
 
16347
postdep_objects=$lt_postdep_objects_F77
 
16348
 
 
16349
# Dependencies to place before the objects being linked to create a
 
16350
# shared library.
 
16351
predeps=$lt_predeps_F77
 
16352
 
 
16353
# Dependencies to place after the objects being linked to create a
 
16354
# shared library.
 
16355
postdeps=$lt_postdeps_F77
 
16356
 
 
16357
# The library search path used internally by the compiler when linking
 
16358
# a shared library.
 
16359
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16360
 
 
16361
# Method to check whether dependent libraries are shared objects.
 
16362
deplibs_check_method=$lt_deplibs_check_method
 
16363
 
 
16364
# Command to use when deplibs_check_method == file_magic.
 
16365
file_magic_cmd=$lt_file_magic_cmd
 
16366
 
 
16367
# Flag that allows shared libraries with undefined symbols to be built.
 
16368
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16369
 
 
16370
# Flag that forces no undefined symbols.
 
16371
no_undefined_flag=$lt_no_undefined_flag_F77
 
16372
 
 
16373
# Commands used to finish a libtool library installation in a directory.
 
16374
finish_cmds=$lt_finish_cmds
 
16375
 
 
16376
# Same as above, but a single script fragment to be evaled but not shown.
 
16377
finish_eval=$lt_finish_eval
 
16378
 
 
16379
# Take the output of nm and produce a listing of raw symbols and C names.
 
16380
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16381
 
 
16382
# Transform the output of nm in a proper C declaration
 
16383
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16384
 
 
16385
# Transform the output of nm in a C name address pair
 
16386
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16387
 
 
16388
# This is the shared library runtime path variable.
 
16389
runpath_var=$runpath_var
 
16390
 
 
16391
# This is the shared library path variable.
 
16392
shlibpath_var=$shlibpath_var
 
16393
 
 
16394
# Is shlibpath searched before the hard-coded library search path?
 
16395
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16396
 
 
16397
# How to hardcode a shared library path into an executable.
 
16398
hardcode_action=$hardcode_action_F77
 
16399
 
 
16400
# Whether we should hardcode library paths into libraries.
 
16401
hardcode_into_libs=$hardcode_into_libs
 
16402
 
 
16403
# Flag to hardcode \$libdir into a binary during linking.
 
16404
# This must work even if \$libdir does not exist.
 
16405
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16406
 
 
16407
# If ld is used when linking, flag to hardcode \$libdir into
 
16408
# a binary during linking. This must work even if \$libdir does
 
16409
# not exist.
 
16410
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16411
 
 
16412
# Whether we need a single -rpath flag with a separated argument.
 
16413
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16414
 
 
16415
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16416
# resulting binary.
 
16417
hardcode_direct=$hardcode_direct_F77
 
16418
 
 
16419
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16420
# resulting binary.
 
16421
hardcode_minus_L=$hardcode_minus_L_F77
 
16422
 
 
16423
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16424
# the resulting binary.
 
16425
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16426
 
 
16427
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16428
# and all subsequent libraries and executables linked against it.
 
16429
hardcode_automatic=$hardcode_automatic_F77
 
16430
 
 
16431
# Variables whose values should be saved in libtool wrapper scripts and
 
16432
# restored at relink time.
 
16433
variables_saved_for_relink="$variables_saved_for_relink"
 
16434
 
 
16435
# Whether libtool must link a program against all its dependency libraries.
 
16436
link_all_deplibs=$link_all_deplibs_F77
 
16437
 
 
16438
# Compile-time system search path for libraries
 
16439
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16440
 
 
16441
# Run-time system search path for libraries
 
16442
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16443
 
 
16444
# Fix the shell variable \$srcfile for the compiler.
 
16445
fix_srcfile_path="$fix_srcfile_path_F77"
 
16446
 
 
16447
# Set to yes if exported symbols are required.
 
16448
always_export_symbols=$always_export_symbols_F77
 
16449
 
 
16450
# The commands to list exported symbols.
 
16451
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16452
 
 
16453
# The commands to extract the exported symbol list from a shared archive.
 
16454
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16455
 
 
16456
# Symbols that should not be listed in the preloaded symbols.
 
16457
exclude_expsyms=$lt_exclude_expsyms_F77
 
16458
 
 
16459
# Symbols that must always be exported.
 
16460
include_expsyms=$lt_include_expsyms_F77
 
16461
 
 
16462
# ### END LIBTOOL TAG CONFIG: $tagname
 
16463
 
 
16464
__EOF__
 
16465
 
 
16466
 
 
16467
else
 
16468
  # If there is no Makefile yet, we rely on a make rule to execute
 
16469
  # `config.status --recheck' to rerun these tests and create the
 
16470
  # libtool script then.
 
16471
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16472
  if test -f "$ltmain_in"; then
 
16473
    test -f Makefile && make "$ltmain"
 
16474
  fi
 
16475
fi
 
16476
 
 
16477
 
 
16478
ac_ext=c
 
16479
ac_cpp='$CPP $CPPFLAGS'
 
16480
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16481
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16482
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16483
 
 
16484
CC="$lt_save_CC"
 
16485
 
 
16486
        else
 
16487
          tagname=""
 
16488
        fi
 
16489
        ;;
 
16490
 
 
16491
      GCJ)
 
16492
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16493
 
 
16494
 
 
16495
# Source file extension for Java test sources.
 
16496
ac_ext=java
 
16497
 
 
16498
# Object file extension for compiled Java test sources.
 
16499
objext=o
 
16500
objext_GCJ=$objext
 
16501
 
 
16502
# Code to be used in simple compile tests
 
16503
lt_simple_compile_test_code="class foo {}\n"
 
16504
 
 
16505
# Code to be used in simple link tests
 
16506
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16507
 
 
16508
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16509
 
 
16510
# If no C compiler was specified, use CC.
 
16511
LTCC=${LTCC-"$CC"}
 
16512
 
 
16513
# If no C compiler flags were specified, use CFLAGS.
 
16514
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16515
 
 
16516
# Allow CC to be a program name with arguments.
 
16517
compiler=$CC
 
16518
 
 
16519
 
 
16520
# save warnings/boilerplate of simple test code
 
16521
ac_outfile=conftest.$ac_objext
 
16522
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16523
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16524
_lt_compiler_boilerplate=`cat conftest.err`
 
16525
$rm conftest*
 
16526
 
 
16527
ac_outfile=conftest.$ac_objext
 
16528
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16529
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16530
_lt_linker_boilerplate=`cat conftest.err`
 
16531
$rm conftest*
 
16532
 
 
16533
 
 
16534
# Allow CC to be a program name with arguments.
 
16535
lt_save_CC="$CC"
 
16536
CC=${GCJ-"gcj"}
 
16537
compiler=$CC
 
16538
compiler_GCJ=$CC
 
16539
for cc_temp in $compiler""; do
 
16540
  case $cc_temp in
 
16541
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16542
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16543
    \-*) ;;
 
16544
    *) break;;
 
16545
  esac
 
16546
done
 
16547
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16548
 
 
16549
 
 
16550
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16551
archive_cmds_need_lc_GCJ=no
 
16552
 
 
16553
old_archive_cmds_GCJ=$old_archive_cmds
 
16554
 
 
16555
 
 
16556
lt_prog_compiler_no_builtin_flag_GCJ=
 
16557
 
 
16558
if test "$GCC" = yes; then
 
16559
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16560
 
 
16561
 
 
16562
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16563
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16564
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16566
else
 
16567
  lt_cv_prog_compiler_rtti_exceptions=no
 
16568
  ac_outfile=conftest.$ac_objext
 
16569
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16570
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16571
   # Insert the option either (1) after the last *FLAGS variable, or
 
16572
   # (2) before a word containing "conftest.", or (3) at the end.
 
16573
   # Note that $ac_compile itself does not contain backslashes and begins
 
16574
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16575
   # The option is referenced via a variable to avoid confusing sed.
 
16576
   lt_compile=`echo "$ac_compile" | $SED \
 
16577
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16578
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16579
   -e 's:$: $lt_compiler_flag:'`
 
16580
   (eval echo "\"\$as_me:16580: $lt_compile\"" >&5)
 
16581
   (eval "$lt_compile" 2>conftest.err)
 
16582
   ac_status=$?
 
16583
   cat conftest.err >&5
 
16584
   echo "$as_me:16584: \$? = $ac_status" >&5
 
16585
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16586
     # The compiler can only warn and ignore the option if not recognized
 
16587
     # So say no if there are warnings other than the usual output.
 
16588
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16589
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16590
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16591
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16592
     fi
 
16593
   fi
 
16594
   $rm conftest*
 
16595
 
 
16596
fi
 
16597
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16598
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16599
 
 
16600
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16601
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16602
else
 
16603
    :
 
16604
fi
 
16605
 
 
16606
fi
 
16607
 
 
16608
lt_prog_compiler_wl_GCJ=
 
16609
lt_prog_compiler_pic_GCJ=
 
16610
lt_prog_compiler_static_GCJ=
 
16611
 
 
16612
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16613
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16614
 
 
16615
  if test "$GCC" = yes; then
 
16616
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16617
    lt_prog_compiler_static_GCJ='-static'
 
16618
 
 
16619
    case $host_os in
 
16620
      aix*)
 
16621
      # All AIX code is PIC.
 
16622
      if test "$host_cpu" = ia64; then
 
16623
        # AIX 5 now supports IA64 processor
 
16624
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16625
      fi
 
16626
      ;;
 
16627
 
 
16628
    amigaos*)
 
16629
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16630
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16631
      # like `-m68040'.
 
16632
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16633
      ;;
 
16634
 
 
16635
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16636
      # PIC is the default for these OSes.
 
16637
      ;;
 
16638
 
 
16639
    mingw* | pw32* | os2*)
 
16640
      # This hack is so that the source file can tell whether it is being
 
16641
      # built for inclusion in a dll (and should export symbols for example).
 
16642
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16643
      ;;
 
16644
 
 
16645
    darwin* | rhapsody*)
 
16646
      # PIC is the default on this platform
 
16647
      # Common symbols not allowed in MH_DYLIB files
 
16648
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16649
      ;;
 
16650
 
 
16651
    interix3*)
 
16652
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16653
      # Instead, we relocate shared libraries at runtime.
 
16654
      ;;
 
16655
 
 
16656
    msdosdjgpp*)
 
16657
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16658
      # on systems that don't support them.
 
16659
      lt_prog_compiler_can_build_shared_GCJ=no
 
16660
      enable_shared=no
 
16661
      ;;
 
16662
 
 
16663
    sysv4*MP*)
 
16664
      if test -d /usr/nec; then
 
16665
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16666
      fi
 
16667
      ;;
 
16668
 
 
16669
    hpux*)
 
16670
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16671
      # not for PA HP-UX.
 
16672
      case $host_cpu in
 
16673
      hppa*64*|ia64*)
 
16674
        # +Z the default
 
16675
        ;;
 
16676
      *)
 
16677
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16678
        ;;
 
16679
      esac
 
16680
      ;;
 
16681
 
 
16682
    *)
 
16683
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16684
      ;;
 
16685
    esac
 
16686
  else
 
16687
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16688
    case $host_os in
 
16689
    aix*)
 
16690
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16691
      if test "$host_cpu" = ia64; then
 
16692
        # AIX 5 now supports IA64 processor
 
16693
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16694
      else
 
16695
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16696
      fi
 
16697
      ;;
 
16698
      darwin*)
 
16699
        # PIC is the default on this platform
 
16700
        # Common symbols not allowed in MH_DYLIB files
 
16701
       case $cc_basename in
 
16702
         xlc*)
 
16703
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16704
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16705
         ;;
 
16706
       esac
 
16707
       ;;
 
16708
 
 
16709
    mingw* | pw32* | os2*)
 
16710
      # This hack is so that the source file can tell whether it is being
 
16711
      # built for inclusion in a dll (and should export symbols for example).
 
16712
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16713
      ;;
 
16714
 
 
16715
    hpux9* | hpux10* | hpux11*)
 
16716
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16717
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16718
      # not for PA HP-UX.
 
16719
      case $host_cpu in
 
16720
      hppa*64*|ia64*)
 
16721
        # +Z the default
 
16722
        ;;
 
16723
      *)
 
16724
        lt_prog_compiler_pic_GCJ='+Z'
 
16725
        ;;
 
16726
      esac
 
16727
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16728
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16729
      ;;
 
16730
 
 
16731
    irix5* | irix6* | nonstopux*)
 
16732
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16733
      # PIC (with -KPIC) is the default.
 
16734
      lt_prog_compiler_static_GCJ='-non_shared'
 
16735
      ;;
 
16736
 
 
16737
    newsos6)
 
16738
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16739
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16740
      ;;
 
16741
 
 
16742
    linux*)
 
16743
      case $cc_basename in
 
16744
      icc* | ecc*)
 
16745
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16746
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16747
        lt_prog_compiler_static_GCJ='-static'
 
16748
        ;;
 
16749
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16750
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16751
        # which looks to be a dead project)
 
16752
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16753
        lt_prog_compiler_pic_GCJ='-fpic'
 
16754
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16755
        ;;
 
16756
      ccc*)
 
16757
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16758
        # All Alpha code is PIC.
 
16759
        lt_prog_compiler_static_GCJ='-non_shared'
 
16760
        ;;
 
16761
      esac
 
16762
      ;;
 
16763
 
 
16764
    osf3* | osf4* | osf5*)
 
16765
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16766
      # All OSF/1 code is PIC.
 
16767
      lt_prog_compiler_static_GCJ='-non_shared'
 
16768
      ;;
 
16769
 
 
16770
    solaris*)
 
16771
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16772
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16773
      case $cc_basename in
 
16774
      f77* | f90* | f95*)
 
16775
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16776
      *)
 
16777
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16778
      esac
 
16779
      ;;
 
16780
 
 
16781
    sunos4*)
 
16782
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16783
      lt_prog_compiler_pic_GCJ='-PIC'
 
16784
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16785
      ;;
 
16786
 
 
16787
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16788
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16789
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16790
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16791
      ;;
 
16792
 
 
16793
    sysv4*MP*)
 
16794
      if test -d /usr/nec ;then
 
16795
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16796
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16797
      fi
 
16798
      ;;
 
16799
 
 
16800
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16801
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16802
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16803
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16804
      ;;
 
16805
 
 
16806
    unicos*)
 
16807
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16808
      lt_prog_compiler_can_build_shared_GCJ=no
 
16809
      ;;
 
16810
 
 
16811
    uts4*)
 
16812
      lt_prog_compiler_pic_GCJ='-pic'
 
16813
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16814
      ;;
 
16815
 
 
16816
    *)
 
16817
      lt_prog_compiler_can_build_shared_GCJ=no
 
16818
      ;;
 
16819
    esac
 
16820
  fi
 
16821
 
 
16822
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16823
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16824
 
 
16825
#
 
16826
# Check to make sure the PIC flag actually works.
 
16827
#
 
16828
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16829
 
 
16830
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16831
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16832
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16834
else
 
16835
  lt_prog_compiler_pic_works_GCJ=no
 
16836
  ac_outfile=conftest.$ac_objext
 
16837
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16838
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16839
   # Insert the option either (1) after the last *FLAGS variable, or
 
16840
   # (2) before a word containing "conftest.", or (3) at the end.
 
16841
   # Note that $ac_compile itself does not contain backslashes and begins
 
16842
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16843
   # The option is referenced via a variable to avoid confusing sed.
 
16844
   lt_compile=`echo "$ac_compile" | $SED \
 
16845
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16846
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16847
   -e 's:$: $lt_compiler_flag:'`
 
16848
   (eval echo "\"\$as_me:16848: $lt_compile\"" >&5)
 
16849
   (eval "$lt_compile" 2>conftest.err)
 
16850
   ac_status=$?
 
16851
   cat conftest.err >&5
 
16852
   echo "$as_me:16852: \$? = $ac_status" >&5
 
16853
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16854
     # The compiler can only warn and ignore the option if not recognized
 
16855
     # So say no if there are warnings other than the usual output.
 
16856
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16857
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16858
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16859
       lt_prog_compiler_pic_works_GCJ=yes
 
16860
     fi
 
16861
   fi
 
16862
   $rm conftest*
 
16863
 
 
16864
fi
 
16865
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16866
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16867
 
 
16868
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16869
    case $lt_prog_compiler_pic_GCJ in
 
16870
     "" | " "*) ;;
 
16871
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16872
     esac
 
16873
else
 
16874
    lt_prog_compiler_pic_GCJ=
 
16875
     lt_prog_compiler_can_build_shared_GCJ=no
 
16876
fi
 
16877
 
 
16878
fi
 
16879
case $host_os in
 
16880
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16881
  *djgpp*)
 
16882
    lt_prog_compiler_pic_GCJ=
 
16883
    ;;
 
16884
  *)
 
16885
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16886
    ;;
 
16887
esac
 
16888
 
 
16889
#
 
16890
# Check to make sure the static flag actually works.
 
16891
#
 
16892
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16893
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16894
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16895
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16897
else
 
16898
  lt_prog_compiler_static_works_GCJ=no
 
16899
   save_LDFLAGS="$LDFLAGS"
 
16900
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16901
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16902
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16903
     # The linker can only warn and ignore the option if not recognized
 
16904
     # So say no if there are warnings
 
16905
     if test -s conftest.err; then
 
16906
       # Append any errors to the config.log.
 
16907
       cat conftest.err 1>&5
 
16908
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16909
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16910
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16911
         lt_prog_compiler_static_works_GCJ=yes
 
16912
       fi
 
16913
     else
 
16914
       lt_prog_compiler_static_works_GCJ=yes
 
16915
     fi
 
16916
   fi
 
16917
   $rm conftest*
 
16918
   LDFLAGS="$save_LDFLAGS"
 
16919
 
 
16920
fi
 
16921
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16922
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16923
 
 
16924
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16925
    :
 
16926
else
 
16927
    lt_prog_compiler_static_GCJ=
 
16928
fi
 
16929
 
 
16930
 
 
16931
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16932
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16933
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16935
else
 
16936
  lt_cv_prog_compiler_c_o_GCJ=no
 
16937
   $rm -r conftest 2>/dev/null
 
16938
   mkdir conftest
 
16939
   cd conftest
 
16940
   mkdir out
 
16941
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16942
 
 
16943
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16944
   # Insert the option either (1) after the last *FLAGS variable, or
 
16945
   # (2) before a word containing "conftest.", or (3) at the end.
 
16946
   # Note that $ac_compile itself does not contain backslashes and begins
 
16947
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16948
   lt_compile=`echo "$ac_compile" | $SED \
 
16949
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16950
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16951
   -e 's:$: $lt_compiler_flag:'`
 
16952
   (eval echo "\"\$as_me:16952: $lt_compile\"" >&5)
 
16953
   (eval "$lt_compile" 2>out/conftest.err)
 
16954
   ac_status=$?
 
16955
   cat out/conftest.err >&5
 
16956
   echo "$as_me:16956: \$? = $ac_status" >&5
 
16957
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16958
   then
 
16959
     # The compiler can only warn and ignore the option if not recognized
 
16960
     # So say no if there are warnings
 
16961
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16962
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16963
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16964
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16965
     fi
 
16966
   fi
 
16967
   chmod u+w . 2>&5
 
16968
   $rm conftest*
 
16969
   # SGI C++ compiler will create directory out/ii_files/ for
 
16970
   # template instantiation
 
16971
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16972
   $rm out/* && rmdir out
 
16973
   cd ..
 
16974
   rmdir conftest
 
16975
   $rm conftest*
 
16976
 
 
16977
fi
 
16978
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16979
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16980
 
 
16981
 
 
16982
hard_links="nottested"
 
16983
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16984
  # do not overwrite the value of need_locks provided by the user
 
16985
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16986
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16987
  hard_links=yes
 
16988
  $rm conftest*
 
16989
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16990
  touch conftest.a
 
16991
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16992
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16993
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16994
echo "${ECHO_T}$hard_links" >&6; }
 
16995
  if test "$hard_links" = no; then
 
16996
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16997
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16998
    need_locks=warn
 
16999
  fi
 
17000
else
 
17001
  need_locks=no
 
17002
fi
 
17003
 
 
17004
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17005
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17006
 
 
17007
  runpath_var=
 
17008
  allow_undefined_flag_GCJ=
 
17009
  enable_shared_with_static_runtimes_GCJ=no
 
17010
  archive_cmds_GCJ=
 
17011
  archive_expsym_cmds_GCJ=
 
17012
  old_archive_From_new_cmds_GCJ=
 
17013
  old_archive_from_expsyms_cmds_GCJ=
 
17014
  export_dynamic_flag_spec_GCJ=
 
17015
  whole_archive_flag_spec_GCJ=
 
17016
  thread_safe_flag_spec_GCJ=
 
17017
  hardcode_libdir_flag_spec_GCJ=
 
17018
  hardcode_libdir_flag_spec_ld_GCJ=
 
17019
  hardcode_libdir_separator_GCJ=
 
17020
  hardcode_direct_GCJ=no
 
17021
  hardcode_minus_L_GCJ=no
 
17022
  hardcode_shlibpath_var_GCJ=unsupported
 
17023
  link_all_deplibs_GCJ=unknown
 
17024
  hardcode_automatic_GCJ=no
 
17025
  module_cmds_GCJ=
 
17026
  module_expsym_cmds_GCJ=
 
17027
  always_export_symbols_GCJ=no
 
17028
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17029
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17030
  # included in the symbol list
 
17031
  include_expsyms_GCJ=
 
17032
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17033
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17034
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17035
  # as well as any symbol that contains `d'.
 
17036
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17037
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17038
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17039
  # the symbol is explicitly referenced.  Since portable code cannot
 
17040
  # rely on this symbol name, it's probably fine to never include it in
 
17041
  # preloaded symbol tables.
 
17042
  extract_expsyms_cmds=
 
17043
  # Just being paranoid about ensuring that cc_basename is set.
 
17044
  for cc_temp in $compiler""; do
 
17045
  case $cc_temp in
 
17046
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17047
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17048
    \-*) ;;
 
17049
    *) break;;
 
17050
  esac
 
17051
done
 
17052
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17053
 
 
17054
  case $host_os in
 
17055
  cygwin* | mingw* | pw32*)
 
17056
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17057
    # When not using gcc, we currently assume that we are using
 
17058
    # Microsoft Visual C++.
 
17059
    if test "$GCC" != yes; then
 
17060
      with_gnu_ld=no
 
17061
    fi
 
17062
    ;;
 
17063
  interix*)
 
17064
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17065
    with_gnu_ld=yes
 
17066
    ;;
 
17067
  openbsd*)
 
17068
    with_gnu_ld=no
 
17069
    ;;
 
17070
  esac
 
17071
 
 
17072
  ld_shlibs_GCJ=yes
 
17073
  if test "$with_gnu_ld" = yes; then
 
17074
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17075
    wlarc='${wl}'
 
17076
 
 
17077
    # Set some defaults for GNU ld with shared library support. These
 
17078
    # are reset later if shared libraries are not supported. Putting them
 
17079
    # here allows them to be overridden if necessary.
 
17080
    runpath_var=LD_RUN_PATH
 
17081
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17082
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17083
    # ancient GNU ld didn't support --whole-archive et. al.
 
17084
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17085
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17086
      else
 
17087
        whole_archive_flag_spec_GCJ=
 
17088
    fi
 
17089
    supports_anon_versioning=no
 
17090
    case `$LD -v 2>/dev/null` in
 
17091
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17092
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17093
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17094
      *\ 2.11.*) ;; # other 2.11 versions
 
17095
      *) supports_anon_versioning=yes ;;
 
17096
    esac
 
17097
 
 
17098
    # See if GNU ld supports shared libraries.
 
17099
    case $host_os in
 
17100
    aix3* | aix4* | aix5*)
 
17101
      # On AIX/PPC, the GNU linker is very broken
 
17102
      if test "$host_cpu" != ia64; then
 
17103
        ld_shlibs_GCJ=no
 
17104
        cat <<EOF 1>&2
 
17105
 
 
17106
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17107
*** to be unable to reliably create shared libraries on AIX.
 
17108
*** Therefore, libtool is disabling shared libraries support.  If you
 
17109
*** really care for shared libraries, you may want to modify your PATH
 
17110
*** so that a non-GNU linker is found, and then restart.
 
17111
 
 
17112
EOF
 
17113
      fi
 
17114
      ;;
 
17115
 
 
17116
    amigaos*)
 
17117
      archive_cmds_GCJ='$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)'
 
17118
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17119
      hardcode_minus_L_GCJ=yes
 
17120
 
 
17121
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17122
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17123
      # to version 4, is to share data among multiple programs linked
 
17124
      # with the same dynamic library.  Since this doesn't match the
 
17125
      # behavior of shared libraries on other platforms, we can't use
 
17126
      # them.
 
17127
      ld_shlibs_GCJ=no
 
17128
      ;;
 
17129
 
 
17130
    beos*)
 
17131
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17132
        allow_undefined_flag_GCJ=unsupported
 
17133
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17134
        # support --undefined.  This deserves some investigation.  FIXME
 
17135
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17136
      else
 
17137
        ld_shlibs_GCJ=no
 
17138
      fi
 
17139
      ;;
 
17140
 
 
17141
    cygwin* | mingw* | pw32*)
 
17142
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17143
      # as there is no search path for DLLs.
 
17144
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17145
      allow_undefined_flag_GCJ=unsupported
 
17146
      always_export_symbols_GCJ=no
 
17147
      enable_shared_with_static_runtimes_GCJ=yes
 
17148
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17149
 
 
17150
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17151
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17152
        # If the export-symbols file already is a .def file (1st line
 
17153
        # is EXPORTS), use it as is; otherwise, prepend...
 
17154
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17155
          cp $export_symbols $output_objdir/$soname.def;
 
17156
        else
 
17157
          echo EXPORTS > $output_objdir/$soname.def;
 
17158
          cat $export_symbols >> $output_objdir/$soname.def;
 
17159
        fi~
 
17160
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17161
      else
 
17162
        ld_shlibs_GCJ=no
 
17163
      fi
 
17164
      ;;
 
17165
 
 
17166
    interix3*)
 
17167
      hardcode_direct_GCJ=no
 
17168
      hardcode_shlibpath_var_GCJ=no
 
17169
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17170
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17171
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17172
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17173
      # default) and relocated if they conflict, which is a slow very memory
 
17174
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17175
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17176
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17177
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17178
      archive_expsym_cmds_GCJ='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'
 
17179
      ;;
 
17180
 
 
17181
    linux*)
 
17182
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17183
        tmp_addflag=
 
17184
        case $cc_basename,$host_cpu in
 
17185
        pgcc*)                          # Portland Group C compiler
 
17186
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17187
          tmp_addflag=' $pic_flag'
 
17188
          ;;
 
17189
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17190
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17191
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17192
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17193
          tmp_addflag=' -i_dynamic' ;;
 
17194
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17195
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17196
        ifc* | ifort*)                  # Intel Fortran compiler
 
17197
          tmp_addflag=' -nofor_main' ;;
 
17198
        esac
 
17199
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17200
 
 
17201
        if test $supports_anon_versioning = yes; then
 
17202
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17203
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17204
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17205
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17206
        fi
 
17207
      else
 
17208
        ld_shlibs_GCJ=no
 
17209
      fi
 
17210
      ;;
 
17211
 
 
17212
    netbsd*)
 
17213
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17214
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17215
        wlarc=
 
17216
      else
 
17217
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17218
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17219
      fi
 
17220
      ;;
 
17221
 
 
17222
    solaris*)
 
17223
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17224
        ld_shlibs_GCJ=no
 
17225
        cat <<EOF 1>&2
 
17226
 
 
17227
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17228
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17229
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17230
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17231
*** your PATH or compiler configuration so that the native linker is
 
17232
*** used, and then restart.
 
17233
 
 
17234
EOF
 
17235
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17236
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17237
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17238
      else
 
17239
        ld_shlibs_GCJ=no
 
17240
      fi
 
17241
      ;;
 
17242
 
 
17243
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17244
      case `$LD -v 2>&1` in
 
17245
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17246
        ld_shlibs_GCJ=no
 
17247
        cat <<_LT_EOF 1>&2
 
17248
 
 
17249
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17250
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17251
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17252
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17253
*** your PATH or compiler configuration so that the native linker is
 
17254
*** used, and then restart.
 
17255
 
 
17256
_LT_EOF
 
17257
        ;;
 
17258
        *)
 
17259
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17260
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17261
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17262
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17263
          else
 
17264
            ld_shlibs_GCJ=no
 
17265
          fi
 
17266
        ;;
 
17267
      esac
 
17268
      ;;
 
17269
 
 
17270
    sunos4*)
 
17271
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17272
      wlarc=
 
17273
      hardcode_direct_GCJ=yes
 
17274
      hardcode_shlibpath_var_GCJ=no
 
17275
      ;;
 
17276
 
 
17277
    *)
 
17278
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17279
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17280
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17281
      else
 
17282
        ld_shlibs_GCJ=no
 
17283
      fi
 
17284
      ;;
 
17285
    esac
 
17286
 
 
17287
    if test "$ld_shlibs_GCJ" = no; then
 
17288
      runpath_var=
 
17289
      hardcode_libdir_flag_spec_GCJ=
 
17290
      export_dynamic_flag_spec_GCJ=
 
17291
      whole_archive_flag_spec_GCJ=
 
17292
    fi
 
17293
  else
 
17294
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17295
    case $host_os in
 
17296
    aix3*)
 
17297
      allow_undefined_flag_GCJ=unsupported
 
17298
      always_export_symbols_GCJ=yes
 
17299
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17300
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17301
      # are no directories specified by -L.
 
17302
      hardcode_minus_L_GCJ=yes
 
17303
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17304
        # Neither direct hardcoding nor static linking is supported with a
 
17305
        # broken collect2.
 
17306
        hardcode_direct_GCJ=unsupported
 
17307
      fi
 
17308
      ;;
 
17309
 
 
17310
    aix4* | aix5*)
 
17311
      if test "$host_cpu" = ia64; then
 
17312
        # On IA64, the linker does run time linking by default, so we don't
 
17313
        # have to do anything special.
 
17314
        aix_use_runtimelinking=no
 
17315
        exp_sym_flag='-Bexport'
 
17316
        no_entry_flag=""
 
17317
      else
 
17318
        # If we're using GNU nm, then we don't want the "-C" option.
 
17319
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17320
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17321
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17322
        else
 
17323
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17324
        fi
 
17325
        aix_use_runtimelinking=no
 
17326
 
 
17327
        # Test if we are trying to use run time linking or normal
 
17328
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17329
        # need to do runtime linking.
 
17330
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17331
          for ld_flag in $LDFLAGS; do
 
17332
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17333
            aix_use_runtimelinking=yes
 
17334
            break
 
17335
          fi
 
17336
          done
 
17337
          ;;
 
17338
        esac
 
17339
 
 
17340
        exp_sym_flag='-bexport'
 
17341
        no_entry_flag='-bnoentry'
 
17342
      fi
 
17343
 
 
17344
      # When large executables or shared objects are built, AIX ld can
 
17345
      # have problems creating the table of contents.  If linking a library
 
17346
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17347
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17348
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17349
 
 
17350
      archive_cmds_GCJ=''
 
17351
      hardcode_direct_GCJ=yes
 
17352
      hardcode_libdir_separator_GCJ=':'
 
17353
      link_all_deplibs_GCJ=yes
 
17354
 
 
17355
      if test "$GCC" = yes; then
 
17356
        case $host_os in aix4.[012]|aix4.[012].*)
 
17357
        # We only want to do this on AIX 4.2 and lower, the check
 
17358
        # below for broken collect2 doesn't work under 4.3+
 
17359
          collect2name=`${CC} -print-prog-name=collect2`
 
17360
          if test -f "$collect2name" && \
 
17361
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17362
          then
 
17363
          # We have reworked collect2
 
17364
          hardcode_direct_GCJ=yes
 
17365
          else
 
17366
          # We have old collect2
 
17367
          hardcode_direct_GCJ=unsupported
 
17368
          # It fails to find uninstalled libraries when the uninstalled
 
17369
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17370
          # to unsupported forces relinking
 
17371
          hardcode_minus_L_GCJ=yes
 
17372
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17373
          hardcode_libdir_separator_GCJ=
 
17374
          fi
 
17375
          ;;
 
17376
        esac
 
17377
        shared_flag='-shared'
 
17378
        if test "$aix_use_runtimelinking" = yes; then
 
17379
          shared_flag="$shared_flag "'${wl}-G'
 
17380
        fi
 
17381
      else
 
17382
        # not using gcc
 
17383
        if test "$host_cpu" = ia64; then
 
17384
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17385
        # chokes on -Wl,-G. The following line is correct:
 
17386
          shared_flag='-G'
 
17387
        else
 
17388
          if test "$aix_use_runtimelinking" = yes; then
 
17389
            shared_flag='${wl}-G'
 
17390
          else
 
17391
            shared_flag='${wl}-bM:SRE'
 
17392
          fi
 
17393
        fi
 
17394
      fi
 
17395
 
 
17396
      # It seems that -bexpall does not export symbols beginning with
 
17397
      # underscore (_), so it is better to generate a list of symbols to export.
 
17398
      always_export_symbols_GCJ=yes
 
17399
      if test "$aix_use_runtimelinking" = yes; then
 
17400
        # Warning - without using the other runtime loading flags (-brtl),
 
17401
        # -berok will link without error, but may produce a broken library.
 
17402
        allow_undefined_flag_GCJ='-berok'
 
17403
       # Determine the default libpath from the value encoded in an empty executable.
 
17404
       cat >conftest.$ac_ext <<_ACEOF
 
17405
/* confdefs.h.  */
 
17406
_ACEOF
 
17407
cat confdefs.h >>conftest.$ac_ext
 
17408
cat >>conftest.$ac_ext <<_ACEOF
 
17409
/* end confdefs.h.  */
 
17410
 
 
17411
int
 
17412
main ()
 
17413
{
 
17414
 
 
17415
  ;
 
17416
  return 0;
 
17417
}
 
17418
_ACEOF
 
17419
rm -f conftest.$ac_objext conftest$ac_exeext
 
17420
if { (ac_try="$ac_link"
 
17421
case "(($ac_try" in
 
17422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17423
  *) ac_try_echo=$ac_try;;
 
17424
esac
 
17425
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17426
  (eval "$ac_link") 2>conftest.er1
 
17427
  ac_status=$?
 
17428
  grep -v '^ *+' conftest.er1 >conftest.err
 
17429
  rm -f conftest.er1
 
17430
  cat conftest.err >&5
 
17431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17432
  (exit $ac_status); } && {
 
17433
         test -z "$ac_c_werror_flag" ||
 
17434
         test ! -s conftest.err
 
17435
       } && test -s conftest$ac_exeext &&
 
17436
       $as_test_x conftest$ac_exeext; then
 
17437
 
 
17438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17439
}'`
 
17440
# Check for a 64-bit object if we didn't find anything.
 
17441
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17442
}'`; fi
 
17443
else
 
17444
  echo "$as_me: failed program was:" >&5
 
17445
sed 's/^/| /' conftest.$ac_ext >&5
 
17446
 
 
17447
 
 
17448
fi
 
17449
 
 
17450
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17451
      conftest$ac_exeext conftest.$ac_ext
 
17452
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17453
 
 
17454
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17455
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17456
       else
 
17457
        if test "$host_cpu" = ia64; then
 
17458
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17459
          allow_undefined_flag_GCJ="-z nodefs"
 
17460
          archive_expsym_cmds_GCJ="\$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"
 
17461
        else
 
17462
         # Determine the default libpath from the value encoded in an empty executable.
 
17463
         cat >conftest.$ac_ext <<_ACEOF
 
17464
/* confdefs.h.  */
 
17465
_ACEOF
 
17466
cat confdefs.h >>conftest.$ac_ext
 
17467
cat >>conftest.$ac_ext <<_ACEOF
 
17468
/* end confdefs.h.  */
 
17469
 
 
17470
int
 
17471
main ()
 
17472
{
 
17473
 
 
17474
  ;
 
17475
  return 0;
 
17476
}
 
17477
_ACEOF
 
17478
rm -f conftest.$ac_objext conftest$ac_exeext
 
17479
if { (ac_try="$ac_link"
 
17480
case "(($ac_try" in
 
17481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17482
  *) ac_try_echo=$ac_try;;
 
17483
esac
 
17484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17485
  (eval "$ac_link") 2>conftest.er1
 
17486
  ac_status=$?
 
17487
  grep -v '^ *+' conftest.er1 >conftest.err
 
17488
  rm -f conftest.er1
 
17489
  cat conftest.err >&5
 
17490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17491
  (exit $ac_status); } && {
 
17492
         test -z "$ac_c_werror_flag" ||
 
17493
         test ! -s conftest.err
 
17494
       } && test -s conftest$ac_exeext &&
 
17495
       $as_test_x conftest$ac_exeext; then
 
17496
 
 
17497
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17498
}'`
 
17499
# Check for a 64-bit object if we didn't find anything.
 
17500
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17501
}'`; fi
 
17502
else
 
17503
  echo "$as_me: failed program was:" >&5
 
17504
sed 's/^/| /' conftest.$ac_ext >&5
 
17505
 
 
17506
 
 
17507
fi
 
17508
 
 
17509
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17510
      conftest$ac_exeext conftest.$ac_ext
 
17511
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17512
 
 
17513
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17514
          # Warning - without using the other run time loading flags,
 
17515
          # -berok will link without error, but may produce a broken library.
 
17516
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17517
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17518
          # Exported symbols can be pulled into shared objects from archives
 
17519
          whole_archive_flag_spec_GCJ='$convenience'
 
17520
          archive_cmds_need_lc_GCJ=yes
 
17521
          # This is similar to how AIX traditionally builds its shared libraries.
 
17522
          archive_expsym_cmds_GCJ="\$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'
 
17523
        fi
 
17524
      fi
 
17525
      ;;
 
17526
 
 
17527
    amigaos*)
 
17528
      archive_cmds_GCJ='$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)'
 
17529
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17530
      hardcode_minus_L_GCJ=yes
 
17531
      # see comment about different semantics on the GNU ld section
 
17532
      ld_shlibs_GCJ=no
 
17533
      ;;
 
17534
 
 
17535
    bsdi[45]*)
 
17536
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17537
      ;;
 
17538
 
 
17539
    cygwin* | mingw* | pw32*)
 
17540
      # When not using gcc, we currently assume that we are using
 
17541
      # Microsoft Visual C++.
 
17542
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17543
      # no search path for DLLs.
 
17544
      hardcode_libdir_flag_spec_GCJ=' '
 
17545
      allow_undefined_flag_GCJ=unsupported
 
17546
      # Tell ltmain to make .lib files, not .a files.
 
17547
      libext=lib
 
17548
      # Tell ltmain to make .dll files, not .so files.
 
17549
      shrext_cmds=".dll"
 
17550
      # FIXME: Setting linknames here is a bad hack.
 
17551
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17552
      # The linker will automatically build a .lib file if we build a DLL.
 
17553
      old_archive_From_new_cmds_GCJ='true'
 
17554
      # FIXME: Should let the user specify the lib program.
 
17555
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17556
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17557
      enable_shared_with_static_runtimes_GCJ=yes
 
17558
      ;;
 
17559
 
 
17560
    darwin* | rhapsody*)
 
17561
      case $host_os in
 
17562
        rhapsody* | darwin1.[012])
 
17563
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17564
         ;;
 
17565
       *) # Darwin 1.3 on
 
17566
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17567
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17568
         else
 
17569
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17570
             10.[012])
 
17571
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17572
               ;;
 
17573
             10.*)
 
17574
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17575
               ;;
 
17576
           esac
 
17577
         fi
 
17578
         ;;
 
17579
      esac
 
17580
      archive_cmds_need_lc_GCJ=no
 
17581
      hardcode_direct_GCJ=no
 
17582
      hardcode_automatic_GCJ=yes
 
17583
      hardcode_shlibpath_var_GCJ=unsupported
 
17584
      whole_archive_flag_spec_GCJ=''
 
17585
      link_all_deplibs_GCJ=yes
 
17586
    if test "$GCC" = yes ; then
 
17587
        output_verbose_link_cmd='echo'
 
17588
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17589
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17590
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17591
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17592
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17593
    else
 
17594
      case $cc_basename in
 
17595
        xlc*)
 
17596
         output_verbose_link_cmd='echo'
 
17597
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17598
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17599
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17600
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17601
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17602
          ;;
 
17603
       *)
 
17604
         ld_shlibs_GCJ=no
 
17605
          ;;
 
17606
      esac
 
17607
    fi
 
17608
      ;;
 
17609
 
 
17610
    dgux*)
 
17611
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17612
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17613
      hardcode_shlibpath_var_GCJ=no
 
17614
      ;;
 
17615
 
 
17616
    freebsd1*)
 
17617
      ld_shlibs_GCJ=no
 
17618
      ;;
 
17619
 
 
17620
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17621
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17622
    # does not break anything, and helps significantly (at the cost of a little
 
17623
    # extra space).
 
17624
    freebsd2.2*)
 
17625
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17626
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17627
      hardcode_direct_GCJ=yes
 
17628
      hardcode_shlibpath_var_GCJ=no
 
17629
      ;;
 
17630
 
 
17631
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17632
    freebsd2*)
 
17633
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17634
      hardcode_direct_GCJ=yes
 
17635
      hardcode_minus_L_GCJ=yes
 
17636
      hardcode_shlibpath_var_GCJ=no
 
17637
      ;;
 
17638
 
 
17639
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17640
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
17641
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17642
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17643
      hardcode_direct_GCJ=yes
 
17644
      hardcode_shlibpath_var_GCJ=no
 
17645
      ;;
 
17646
 
 
17647
    hpux9*)
 
17648
      if test "$GCC" = yes; then
 
17649
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17650
      else
 
17651
        archive_cmds_GCJ='$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'
 
17652
      fi
 
17653
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17654
      hardcode_libdir_separator_GCJ=:
 
17655
      hardcode_direct_GCJ=yes
 
17656
 
 
17657
      # hardcode_minus_L: Not really in the search PATH,
 
17658
      # but as the default location of the library.
 
17659
      hardcode_minus_L_GCJ=yes
 
17660
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17661
      ;;
 
17662
 
 
17663
    hpux10*)
 
17664
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17665
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17666
      else
 
17667
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17668
      fi
 
17669
      if test "$with_gnu_ld" = no; then
 
17670
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17671
        hardcode_libdir_separator_GCJ=:
 
17672
 
 
17673
        hardcode_direct_GCJ=yes
 
17674
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17675
 
 
17676
        # hardcode_minus_L: Not really in the search PATH,
 
17677
        # but as the default location of the library.
 
17678
        hardcode_minus_L_GCJ=yes
 
17679
      fi
 
17680
      ;;
 
17681
 
 
17682
    hpux11*)
 
17683
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17684
        case $host_cpu in
 
17685
        hppa*64*)
 
17686
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17687
          ;;
 
17688
        ia64*)
 
17689
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17690
          ;;
 
17691
        *)
 
17692
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17693
          ;;
 
17694
        esac
 
17695
      else
 
17696
        case $host_cpu in
 
17697
        hppa*64*)
 
17698
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17699
          ;;
 
17700
        ia64*)
 
17701
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17702
          ;;
 
17703
        *)
 
17704
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17705
          ;;
 
17706
        esac
 
17707
      fi
 
17708
      if test "$with_gnu_ld" = no; then
 
17709
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17710
        hardcode_libdir_separator_GCJ=:
 
17711
 
 
17712
        case $host_cpu in
 
17713
        hppa*64*|ia64*)
 
17714
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17715
          hardcode_direct_GCJ=no
 
17716
          hardcode_shlibpath_var_GCJ=no
 
17717
          ;;
 
17718
        *)
 
17719
          hardcode_direct_GCJ=yes
 
17720
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17721
 
 
17722
          # hardcode_minus_L: Not really in the search PATH,
 
17723
          # but as the default location of the library.
 
17724
          hardcode_minus_L_GCJ=yes
 
17725
          ;;
 
17726
        esac
 
17727
      fi
 
17728
      ;;
 
17729
 
 
17730
    irix5* | irix6* | nonstopux*)
 
17731
      if test "$GCC" = yes; then
 
17732
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17733
      else
 
17734
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17735
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17736
      fi
 
17737
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17738
      hardcode_libdir_separator_GCJ=:
 
17739
      link_all_deplibs_GCJ=yes
 
17740
      ;;
 
17741
 
 
17742
    netbsd*)
 
17743
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17744
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17745
      else
 
17746
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17747
      fi
 
17748
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17749
      hardcode_direct_GCJ=yes
 
17750
      hardcode_shlibpath_var_GCJ=no
 
17751
      ;;
 
17752
 
 
17753
    newsos6)
 
17754
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17755
      hardcode_direct_GCJ=yes
 
17756
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17757
      hardcode_libdir_separator_GCJ=:
 
17758
      hardcode_shlibpath_var_GCJ=no
 
17759
      ;;
 
17760
 
 
17761
    openbsd*)
 
17762
      hardcode_direct_GCJ=yes
 
17763
      hardcode_shlibpath_var_GCJ=no
 
17764
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17765
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17766
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17767
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17768
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17769
      else
 
17770
       case $host_os in
 
17771
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17772
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17773
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17774
           ;;
 
17775
         *)
 
17776
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17777
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17778
           ;;
 
17779
       esac
 
17780
      fi
 
17781
      ;;
 
17782
 
 
17783
    os2*)
 
17784
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17785
      hardcode_minus_L_GCJ=yes
 
17786
      allow_undefined_flag_GCJ=unsupported
 
17787
      archive_cmds_GCJ='$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'
 
17788
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17789
      ;;
 
17790
 
 
17791
    osf3*)
 
17792
      if test "$GCC" = yes; then
 
17793
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17794
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17795
      else
 
17796
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17797
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17798
      fi
 
17799
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17800
      hardcode_libdir_separator_GCJ=:
 
17801
      ;;
 
17802
 
 
17803
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17804
      if test "$GCC" = yes; then
 
17805
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17806
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17807
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17808
      else
 
17809
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17810
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17811
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17812
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17813
 
 
17814
        # Both c and cxx compiler support -rpath directly
 
17815
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17816
      fi
 
17817
      hardcode_libdir_separator_GCJ=:
 
17818
      ;;
 
17819
 
 
17820
    solaris*)
 
17821
      no_undefined_flag_GCJ=' -z text'
 
17822
      if test "$GCC" = yes; then
 
17823
        wlarc='${wl}'
 
17824
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17825
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17826
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17827
      else
 
17828
        wlarc=''
 
17829
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17830
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17831
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17832
      fi
 
17833
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17834
      hardcode_shlibpath_var_GCJ=no
 
17835
      case $host_os in
 
17836
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17837
      *)
 
17838
        # The compiler driver will combine linker options so we
 
17839
        # cannot just pass the convience library names through
 
17840
        # without $wl, iff we do not link with $LD.
 
17841
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17842
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17843
        case $wlarc in
 
17844
        '')
 
17845
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17846
        *)
 
17847
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17848
        esac ;;
 
17849
      esac
 
17850
      link_all_deplibs_GCJ=yes
 
17851
      ;;
 
17852
 
 
17853
    sunos4*)
 
17854
      if test "x$host_vendor" = xsequent; then
 
17855
        # Use $CC to link under sequent, because it throws in some extra .o
 
17856
        # files that make .init and .fini sections work.
 
17857
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17858
      else
 
17859
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17860
      fi
 
17861
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17862
      hardcode_direct_GCJ=yes
 
17863
      hardcode_minus_L_GCJ=yes
 
17864
      hardcode_shlibpath_var_GCJ=no
 
17865
      ;;
 
17866
 
 
17867
    sysv4)
 
17868
      case $host_vendor in
 
17869
        sni)
 
17870
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17871
          hardcode_direct_GCJ=yes # is this really true???
 
17872
        ;;
 
17873
        siemens)
 
17874
          ## LD is ld it makes a PLAMLIB
 
17875
          ## CC just makes a GrossModule.
 
17876
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17877
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17878
          hardcode_direct_GCJ=no
 
17879
        ;;
 
17880
        motorola)
 
17881
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17882
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17883
        ;;
 
17884
      esac
 
17885
      runpath_var='LD_RUN_PATH'
 
17886
      hardcode_shlibpath_var_GCJ=no
 
17887
      ;;
 
17888
 
 
17889
    sysv4.3*)
 
17890
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17891
      hardcode_shlibpath_var_GCJ=no
 
17892
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17893
      ;;
 
17894
 
 
17895
    sysv4*MP*)
 
17896
      if test -d /usr/nec; then
 
17897
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17898
        hardcode_shlibpath_var_GCJ=no
 
17899
        runpath_var=LD_RUN_PATH
 
17900
        hardcode_runpath_var=yes
 
17901
        ld_shlibs_GCJ=yes
 
17902
      fi
 
17903
      ;;
 
17904
 
 
17905
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17906
      no_undefined_flag_GCJ='${wl}-z,text'
 
17907
      archive_cmds_need_lc_GCJ=no
 
17908
      hardcode_shlibpath_var_GCJ=no
 
17909
      runpath_var='LD_RUN_PATH'
 
17910
 
 
17911
      if test "$GCC" = yes; then
 
17912
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17913
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17914
      else
 
17915
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17916
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17917
      fi
 
17918
      ;;
 
17919
 
 
17920
    sysv5* | sco3.2v5* | sco5v6*)
 
17921
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17922
      # link with -lc, and that would cause any symbols used from libc to
 
17923
      # always be unresolved, which means just about no library would
 
17924
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17925
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17926
      # as -z defs.
 
17927
      no_undefined_flag_GCJ='${wl}-z,text'
 
17928
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17929
      archive_cmds_need_lc_GCJ=no
 
17930
      hardcode_shlibpath_var_GCJ=no
 
17931
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17932
      hardcode_libdir_separator_GCJ=':'
 
17933
      link_all_deplibs_GCJ=yes
 
17934
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17935
      runpath_var='LD_RUN_PATH'
 
17936
 
 
17937
      if test "$GCC" = yes; then
 
17938
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17939
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17940
      else
 
17941
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17942
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17943
      fi
 
17944
      ;;
 
17945
 
 
17946
    uts4*)
 
17947
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17948
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17949
      hardcode_shlibpath_var_GCJ=no
 
17950
      ;;
 
17951
 
 
17952
    *)
 
17953
      ld_shlibs_GCJ=no
 
17954
      ;;
 
17955
    esac
 
17956
  fi
 
17957
 
 
17958
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17959
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
17960
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17961
 
 
17962
#
 
17963
# Do we need to explicitly link libc?
 
17964
#
 
17965
case "x$archive_cmds_need_lc_GCJ" in
 
17966
x|xyes)
 
17967
  # Assume -lc should be added
 
17968
  archive_cmds_need_lc_GCJ=yes
 
17969
 
 
17970
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17971
    case $archive_cmds_GCJ in
 
17972
    *'~'*)
 
17973
      # FIXME: we may have to deal with multi-command sequences.
 
17974
      ;;
 
17975
    '$CC '*)
 
17976
      # Test whether the compiler implicitly links with -lc since on some
 
17977
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17978
      # to ld, don't add -lc before -lgcc.
 
17979
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17980
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17981
      $rm conftest*
 
17982
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17983
 
 
17984
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17985
  (eval $ac_compile) 2>&5
 
17986
  ac_status=$?
 
17987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17988
  (exit $ac_status); } 2>conftest.err; then
 
17989
        soname=conftest
 
17990
        lib=conftest
 
17991
        libobjs=conftest.$ac_objext
 
17992
        deplibs=
 
17993
        wl=$lt_prog_compiler_wl_GCJ
 
17994
        pic_flag=$lt_prog_compiler_pic_GCJ
 
17995
        compiler_flags=-v
 
17996
        linker_flags=-v
 
17997
        verstring=
 
17998
        output_objdir=.
 
17999
        libname=conftest
 
18000
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18001
        allow_undefined_flag_GCJ=
 
18002
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18003
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18004
  ac_status=$?
 
18005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18006
  (exit $ac_status); }
 
18007
        then
 
18008
          archive_cmds_need_lc_GCJ=no
 
18009
        else
 
18010
          archive_cmds_need_lc_GCJ=yes
 
18011
        fi
 
18012
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18013
      else
 
18014
        cat conftest.err 1>&5
 
18015
      fi
 
18016
      $rm conftest*
 
18017
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18018
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18019
      ;;
 
18020
    esac
 
18021
  fi
 
18022
  ;;
 
18023
esac
 
18024
 
 
18025
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18026
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18027
library_names_spec=
 
18028
libname_spec='lib$name'
 
18029
soname_spec=
 
18030
shrext_cmds=".so"
 
18031
postinstall_cmds=
 
18032
postuninstall_cmds=
 
18033
finish_cmds=
 
18034
finish_eval=
 
18035
shlibpath_var=
 
18036
shlibpath_overrides_runpath=unknown
 
18037
version_type=none
 
18038
dynamic_linker="$host_os ld.so"
 
18039
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18040
if test "$GCC" = yes; then
 
18041
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18042
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18043
    # if the path contains ";" then we assume it to be the separator
 
18044
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18045
    # assumed that no part of a normal pathname contains ";" but that should
 
18046
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18047
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18048
  else
 
18049
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18050
  fi
 
18051
else
 
18052
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18053
fi
 
18054
need_lib_prefix=unknown
 
18055
hardcode_into_libs=no
 
18056
 
 
18057
# when you set need_version to no, make sure it does not cause -set_version
 
18058
# flags to be left without arguments
 
18059
need_version=unknown
 
18060
 
 
18061
case $host_os in
 
18062
aix3*)
 
18063
  version_type=linux
 
18064
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18065
  shlibpath_var=LIBPATH
 
18066
 
 
18067
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18068
  soname_spec='${libname}${release}${shared_ext}$major'
 
18069
  ;;
 
18070
 
 
18071
aix4* | aix5*)
 
18072
  version_type=linux
 
18073
  need_lib_prefix=no
 
18074
  need_version=no
 
18075
  hardcode_into_libs=yes
 
18076
  if test "$host_cpu" = ia64; then
 
18077
    # AIX 5 supports IA64
 
18078
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18079
    shlibpath_var=LD_LIBRARY_PATH
 
18080
  else
 
18081
    # With GCC up to 2.95.x, collect2 would create an import file
 
18082
    # for dependence libraries.  The import file would start with
 
18083
    # the line `#! .'.  This would cause the generated library to
 
18084
    # depend on `.', always an invalid library.  This was fixed in
 
18085
    # development snapshots of GCC prior to 3.0.
 
18086
    case $host_os in
 
18087
      aix4 | aix4.[01] | aix4.[01].*)
 
18088
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18089
           echo ' yes '
 
18090
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18091
        :
 
18092
      else
 
18093
        can_build_shared=no
 
18094
      fi
 
18095
      ;;
 
18096
    esac
 
18097
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18098
    # soname into executable. Probably we can add versioning support to
 
18099
    # collect2, so additional links can be useful in future.
 
18100
    if test "$aix_use_runtimelinking" = yes; then
 
18101
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18102
      # instead of lib<name>.a to let people know that these are not
 
18103
      # typical AIX shared libraries.
 
18104
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18105
    else
 
18106
      # We preserve .a as extension for shared libraries through AIX4.2
 
18107
      # and later when we are not doing run time linking.
 
18108
      library_names_spec='${libname}${release}.a $libname.a'
 
18109
      soname_spec='${libname}${release}${shared_ext}$major'
 
18110
    fi
 
18111
    shlibpath_var=LIBPATH
 
18112
  fi
 
18113
  ;;
 
18114
 
 
18115
amigaos*)
 
18116
  library_names_spec='$libname.ixlibrary $libname.a'
 
18117
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18118
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
18119
  ;;
 
18120
 
 
18121
beos*)
 
18122
  library_names_spec='${libname}${shared_ext}'
 
18123
  dynamic_linker="$host_os ld.so"
 
18124
  shlibpath_var=LIBRARY_PATH
 
18125
  ;;
 
18126
 
 
18127
bsdi[45]*)
 
18128
  version_type=linux
 
18129
  need_version=no
 
18130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18131
  soname_spec='${libname}${release}${shared_ext}$major'
 
18132
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18133
  shlibpath_var=LD_LIBRARY_PATH
 
18134
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18135
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18136
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18137
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18138
  # libtool to hard-code these into programs
 
18139
  ;;
 
18140
 
 
18141
cygwin* | mingw* | pw32*)
 
18142
  version_type=windows
 
18143
  shrext_cmds=".dll"
 
18144
  need_version=no
 
18145
  need_lib_prefix=no
 
18146
 
 
18147
  case $GCC,$host_os in
 
18148
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18149
    library_names_spec='$libname.dll.a'
 
18150
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18151
    postinstall_cmds='base_file=`basename \${file}`~
 
18152
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18153
      dldir=$destdir/`dirname \$dlpath`~
 
18154
      test -d \$dldir || mkdir -p \$dldir~
 
18155
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18156
      chmod a+x \$dldir/$dlname'
 
18157
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18158
      dlpath=$dir/\$dldll~
 
18159
       $rm \$dlpath'
 
18160
    shlibpath_overrides_runpath=yes
 
18161
 
 
18162
    case $host_os in
 
18163
    cygwin*)
 
18164
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18165
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18166
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18167
      ;;
 
18168
    mingw*)
 
18169
      # MinGW DLLs use traditional 'lib' prefix
 
18170
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18171
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18172
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18173
        # It is most probably a Windows format PATH printed by
 
18174
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18175
        # path with ; separators, and with drive letters. We can handle the
 
18176
        # drive letters (cygwin fileutils understands them), so leave them,
 
18177
        # especially as we might pass files found there to a mingw objdump,
 
18178
        # which wouldn't understand a cygwinified path. Ahh.
 
18179
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18180
      else
 
18181
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18182
      fi
 
18183
      ;;
 
18184
    pw32*)
 
18185
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18186
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18187
      ;;
 
18188
    esac
 
18189
    ;;
 
18190
 
 
18191
  *)
 
18192
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18193
    ;;
 
18194
  esac
 
18195
  dynamic_linker='Win32 ld.exe'
 
18196
  # FIXME: first we should search . and the directory the executable is in
 
18197
  shlibpath_var=PATH
 
18198
  ;;
 
18199
 
 
18200
darwin* | rhapsody*)
 
18201
  dynamic_linker="$host_os dyld"
 
18202
  version_type=darwin
 
18203
  need_lib_prefix=no
 
18204
  need_version=no
 
18205
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18206
  soname_spec='${libname}${release}${major}$shared_ext'
 
18207
  shlibpath_overrides_runpath=yes
 
18208
  shlibpath_var=DYLD_LIBRARY_PATH
 
18209
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18210
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18211
  if test "$GCC" = yes; then
 
18212
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
18213
  else
 
18214
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18215
  fi
 
18216
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18217
  ;;
 
18218
 
 
18219
dgux*)
 
18220
  version_type=linux
 
18221
  need_lib_prefix=no
 
18222
  need_version=no
 
18223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18224
  soname_spec='${libname}${release}${shared_ext}$major'
 
18225
  shlibpath_var=LD_LIBRARY_PATH
 
18226
  ;;
 
18227
 
 
18228
freebsd1*)
 
18229
  dynamic_linker=no
 
18230
  ;;
 
18231
 
 
18232
kfreebsd*-gnu)
 
18233
  version_type=linux
 
18234
  need_lib_prefix=no
 
18235
  need_version=no
 
18236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18237
  soname_spec='${libname}${release}${shared_ext}$major'
 
18238
  shlibpath_var=LD_LIBRARY_PATH
 
18239
  shlibpath_overrides_runpath=no
 
18240
  hardcode_into_libs=yes
 
18241
  dynamic_linker='GNU ld.so'
 
18242
  ;;
 
18243
 
 
18244
freebsd* | dragonfly*)
 
18245
  # DragonFly does not have aout.  When/if they implement a new
 
18246
  # versioning mechanism, adjust this.
 
18247
  if test -x /usr/bin/objformat; then
 
18248
    objformat=`/usr/bin/objformat`
 
18249
  else
 
18250
    case $host_os in
 
18251
    freebsd[123]*) objformat=aout ;;
 
18252
    *) objformat=elf ;;
 
18253
    esac
 
18254
  fi
 
18255
  version_type=freebsd-$objformat
 
18256
  case $version_type in
 
18257
    freebsd-elf*)
 
18258
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18259
      need_version=no
 
18260
      need_lib_prefix=no
 
18261
      ;;
 
18262
    freebsd-*)
 
18263
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18264
      need_version=yes
 
18265
      ;;
 
18266
  esac
 
18267
  shlibpath_var=LD_LIBRARY_PATH
 
18268
  case $host_os in
 
18269
  freebsd2*)
 
18270
    shlibpath_overrides_runpath=yes
 
18271
    ;;
 
18272
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18273
    shlibpath_overrides_runpath=yes
 
18274
    hardcode_into_libs=yes
 
18275
    ;;
 
18276
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18277
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18278
    shlibpath_overrides_runpath=no
 
18279
    hardcode_into_libs=yes
 
18280
    ;;
 
18281
  freebsd*) # from 4.6 on
 
18282
    shlibpath_overrides_runpath=yes
 
18283
    hardcode_into_libs=yes
 
18284
    ;;
 
18285
  esac
 
18286
  ;;
 
18287
 
 
18288
gnu*)
 
18289
  version_type=linux
 
18290
  need_lib_prefix=no
 
18291
  need_version=no
 
18292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18293
  soname_spec='${libname}${release}${shared_ext}$major'
 
18294
  shlibpath_var=LD_LIBRARY_PATH
 
18295
  hardcode_into_libs=yes
 
18296
  ;;
 
18297
 
 
18298
hpux9* | hpux10* | hpux11*)
 
18299
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18300
  # link against other versions.
 
18301
  version_type=sunos
 
18302
  need_lib_prefix=no
 
18303
  need_version=no
 
18304
  case $host_cpu in
 
18305
  ia64*)
 
18306
    shrext_cmds='.so'
 
18307
    hardcode_into_libs=yes
 
18308
    dynamic_linker="$host_os dld.so"
 
18309
    shlibpath_var=LD_LIBRARY_PATH
 
18310
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18311
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18312
    soname_spec='${libname}${release}${shared_ext}$major'
 
18313
    if test "X$HPUX_IA64_MODE" = X32; then
 
18314
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18315
    else
 
18316
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18317
    fi
 
18318
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18319
    ;;
 
18320
   hppa*64*)
 
18321
     shrext_cmds='.sl'
 
18322
     hardcode_into_libs=yes
 
18323
     dynamic_linker="$host_os dld.sl"
 
18324
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18325
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18326
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18327
     soname_spec='${libname}${release}${shared_ext}$major'
 
18328
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18329
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18330
     ;;
 
18331
   *)
 
18332
    shrext_cmds='.sl'
 
18333
    dynamic_linker="$host_os dld.sl"
 
18334
    shlibpath_var=SHLIB_PATH
 
18335
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18336
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18337
    soname_spec='${libname}${release}${shared_ext}$major'
 
18338
    ;;
 
18339
  esac
 
18340
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18341
  postinstall_cmds='chmod 555 $lib'
 
18342
  ;;
 
18343
 
 
18344
interix3*)
 
18345
  version_type=linux
 
18346
  need_lib_prefix=no
 
18347
  need_version=no
 
18348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18349
  soname_spec='${libname}${release}${shared_ext}$major'
 
18350
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18351
  shlibpath_var=LD_LIBRARY_PATH
 
18352
  shlibpath_overrides_runpath=no
 
18353
  hardcode_into_libs=yes
 
18354
  ;;
 
18355
 
 
18356
irix5* | irix6* | nonstopux*)
 
18357
  case $host_os in
 
18358
    nonstopux*) version_type=nonstopux ;;
 
18359
    *)
 
18360
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18361
                version_type=linux
 
18362
        else
 
18363
                version_type=irix
 
18364
        fi ;;
 
18365
  esac
 
18366
  need_lib_prefix=no
 
18367
  need_version=no
 
18368
  soname_spec='${libname}${release}${shared_ext}$major'
 
18369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18370
  case $host_os in
 
18371
  irix5* | nonstopux*)
 
18372
    libsuff= shlibsuff=
 
18373
    ;;
 
18374
  *)
 
18375
    case $LD in # libtool.m4 will add one of these switches to LD
 
18376
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18377
      libsuff= shlibsuff= libmagic=32-bit;;
 
18378
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18379
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18380
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18381
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18382
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18383
    esac
 
18384
    ;;
 
18385
  esac
 
18386
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18387
  shlibpath_overrides_runpath=no
 
18388
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18389
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18390
  hardcode_into_libs=yes
 
18391
  ;;
 
18392
 
 
18393
# No shared lib support for Linux oldld, aout, or coff.
 
18394
linux*oldld* | linux*aout* | linux*coff*)
 
18395
  dynamic_linker=no
 
18396
  ;;
 
18397
 
 
18398
# This must be Linux ELF.
 
18399
linux*)
 
18400
  version_type=linux
 
18401
  need_lib_prefix=no
 
18402
  need_version=no
 
18403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18404
  soname_spec='${libname}${release}${shared_ext}$major'
 
18405
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18406
  shlibpath_var=LD_LIBRARY_PATH
 
18407
  shlibpath_overrides_runpath=no
 
18408
  # This implies no fast_install, which is unacceptable.
 
18409
  # Some rework will be needed to allow for fast_install
 
18410
  # before this can be enabled.
 
18411
  hardcode_into_libs=yes
 
18412
 
 
18413
  # find out which ABI we are using
 
18414
  libsuff=
 
18415
  case "$host_cpu" in
 
18416
  x86_64*|s390x*|powerpc64*)
 
18417
    echo '#line 18417 "configure"' > conftest.$ac_ext
 
18418
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18419
  (eval $ac_compile) 2>&5
 
18420
  ac_status=$?
 
18421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18422
  (exit $ac_status); }; then
 
18423
      case `/usr/bin/file conftest.$ac_objext` in
 
18424
      *64-bit*)
 
18425
        libsuff=64
 
18426
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
18427
        ;;
 
18428
      esac
 
18429
    fi
 
18430
    rm -rf conftest*
 
18431
    ;;
 
18432
  esac
 
18433
 
 
18434
  # Append ld.so.conf contents to the search path
 
18435
  if test -f /etc/ld.so.conf; then
 
18436
    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/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18437
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
18438
  fi
 
18439
 
 
18440
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18441
  # powerpc, because MkLinux only supported shared libraries with the
 
18442
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18443
  # most powerpc-linux boxes support dynamic linking these days and
 
18444
  # people can always --disable-shared, the test was removed, and we
 
18445
  # assume the GNU/Linux dynamic linker is in use.
 
18446
  dynamic_linker='GNU/Linux ld.so'
 
18447
  ;;
 
18448
 
 
18449
knetbsd*-gnu)
 
18450
  version_type=linux
 
18451
  need_lib_prefix=no
 
18452
  need_version=no
 
18453
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18454
  soname_spec='${libname}${release}${shared_ext}$major'
 
18455
  shlibpath_var=LD_LIBRARY_PATH
 
18456
  shlibpath_overrides_runpath=no
 
18457
  hardcode_into_libs=yes
 
18458
  dynamic_linker='GNU ld.so'
 
18459
  ;;
 
18460
 
 
18461
netbsd*)
 
18462
  version_type=sunos
 
18463
  need_lib_prefix=no
 
18464
  need_version=no
 
18465
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18466
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18467
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18468
    dynamic_linker='NetBSD (a.out) ld.so'
 
18469
  else
 
18470
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18471
    soname_spec='${libname}${release}${shared_ext}$major'
 
18472
    dynamic_linker='NetBSD ld.elf_so'
 
18473
  fi
 
18474
  shlibpath_var=LD_LIBRARY_PATH
 
18475
  shlibpath_overrides_runpath=yes
 
18476
  hardcode_into_libs=yes
 
18477
  ;;
 
18478
 
 
18479
newsos6)
 
18480
  version_type=linux
 
18481
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18482
  shlibpath_var=LD_LIBRARY_PATH
 
18483
  shlibpath_overrides_runpath=yes
 
18484
  ;;
 
18485
 
 
18486
nto-qnx*)
 
18487
  version_type=linux
 
18488
  need_lib_prefix=no
 
18489
  need_version=no
 
18490
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18491
  soname_spec='${libname}${release}${shared_ext}$major'
 
18492
  shlibpath_var=LD_LIBRARY_PATH
 
18493
  shlibpath_overrides_runpath=yes
 
18494
  ;;
 
18495
 
 
18496
openbsd*)
 
18497
  version_type=sunos
 
18498
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18499
  need_lib_prefix=no
 
18500
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18501
  case $host_os in
 
18502
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18503
    *)                         need_version=no  ;;
 
18504
  esac
 
18505
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18506
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18507
  shlibpath_var=LD_LIBRARY_PATH
 
18508
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18509
    case $host_os in
 
18510
      openbsd2.[89] | openbsd2.[89].*)
 
18511
        shlibpath_overrides_runpath=no
 
18512
        ;;
 
18513
      *)
 
18514
        shlibpath_overrides_runpath=yes
 
18515
        ;;
 
18516
      esac
 
18517
  else
 
18518
    shlibpath_overrides_runpath=yes
 
18519
  fi
 
18520
  ;;
 
18521
 
 
18522
os2*)
 
18523
  libname_spec='$name'
 
18524
  shrext_cmds=".dll"
 
18525
  need_lib_prefix=no
 
18526
  library_names_spec='$libname${shared_ext} $libname.a'
 
18527
  dynamic_linker='OS/2 ld.exe'
 
18528
  shlibpath_var=LIBPATH
 
18529
  ;;
 
18530
 
 
18531
osf3* | osf4* | osf5*)
 
18532
  version_type=osf
 
18533
  need_lib_prefix=no
 
18534
  need_version=no
 
18535
  soname_spec='${libname}${release}${shared_ext}$major'
 
18536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18537
  shlibpath_var=LD_LIBRARY_PATH
 
18538
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18539
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18540
  ;;
 
18541
 
 
18542
solaris*)
 
18543
  version_type=linux
 
18544
  need_lib_prefix=no
 
18545
  need_version=no
 
18546
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18547
  soname_spec='${libname}${release}${shared_ext}$major'
 
18548
  shlibpath_var=LD_LIBRARY_PATH
 
18549
  shlibpath_overrides_runpath=yes
 
18550
  hardcode_into_libs=yes
 
18551
  # ldd complains unless libraries are executable
 
18552
  postinstall_cmds='chmod +x $lib'
 
18553
  ;;
 
18554
 
 
18555
sunos4*)
 
18556
  version_type=sunos
 
18557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18558
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18559
  shlibpath_var=LD_LIBRARY_PATH
 
18560
  shlibpath_overrides_runpath=yes
 
18561
  if test "$with_gnu_ld" = yes; then
 
18562
    need_lib_prefix=no
 
18563
  fi
 
18564
  need_version=yes
 
18565
  ;;
 
18566
 
 
18567
sysv4 | sysv4.3*)
 
18568
  version_type=linux
 
18569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18570
  soname_spec='${libname}${release}${shared_ext}$major'
 
18571
  shlibpath_var=LD_LIBRARY_PATH
 
18572
  case $host_vendor in
 
18573
    sni)
 
18574
      shlibpath_overrides_runpath=no
 
18575
      need_lib_prefix=no
 
18576
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18577
      runpath_var=LD_RUN_PATH
 
18578
      ;;
 
18579
    siemens)
 
18580
      need_lib_prefix=no
 
18581
      ;;
 
18582
    motorola)
 
18583
      need_lib_prefix=no
 
18584
      need_version=no
 
18585
      shlibpath_overrides_runpath=no
 
18586
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18587
      ;;
 
18588
  esac
 
18589
  ;;
 
18590
 
 
18591
sysv4*MP*)
 
18592
  if test -d /usr/nec ;then
 
18593
    version_type=linux
 
18594
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18595
    soname_spec='$libname${shared_ext}.$major'
 
18596
    shlibpath_var=LD_LIBRARY_PATH
 
18597
  fi
 
18598
  ;;
 
18599
 
 
18600
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18601
  version_type=freebsd-elf
 
18602
  need_lib_prefix=no
 
18603
  need_version=no
 
18604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18605
  soname_spec='${libname}${release}${shared_ext}$major'
 
18606
  shlibpath_var=LD_LIBRARY_PATH
 
18607
  hardcode_into_libs=yes
 
18608
  if test "$with_gnu_ld" = yes; then
 
18609
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18610
    shlibpath_overrides_runpath=no
 
18611
  else
 
18612
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18613
    shlibpath_overrides_runpath=yes
 
18614
    case $host_os in
 
18615
      sco3.2v5*)
 
18616
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18617
        ;;
 
18618
    esac
 
18619
  fi
 
18620
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18621
  ;;
 
18622
 
 
18623
uts4*)
 
18624
  version_type=linux
 
18625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18626
  soname_spec='${libname}${release}${shared_ext}$major'
 
18627
  shlibpath_var=LD_LIBRARY_PATH
 
18628
  ;;
 
18629
 
 
18630
*)
 
18631
  dynamic_linker=no
 
18632
  ;;
 
18633
esac
 
18634
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18635
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18636
test "$dynamic_linker" = no && can_build_shared=no
 
18637
 
 
18638
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18639
if test "$GCC" = yes; then
 
18640
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18641
fi
 
18642
 
 
18643
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18644
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18645
hardcode_action_GCJ=
 
18646
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18647
   test -n "$runpath_var_GCJ" || \
 
18648
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18649
 
 
18650
  # We can hardcode non-existant directories.
 
18651
  if test "$hardcode_direct_GCJ" != no &&
 
18652
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18653
     # have to relink, otherwise we might link with an installed library
 
18654
     # when we should be linking with a yet-to-be-installed one
 
18655
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18656
     test "$hardcode_minus_L_GCJ" != no; then
 
18657
    # Linking always hardcodes the temporary library directory.
 
18658
    hardcode_action_GCJ=relink
 
18659
  else
 
18660
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18661
    hardcode_action_GCJ=immediate
 
18662
  fi
 
18663
else
 
18664
  # We cannot hardcode anything, or else we can only hardcode existing
 
18665
  # directories.
 
18666
  hardcode_action_GCJ=unsupported
 
18667
fi
 
18668
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18669
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18670
 
 
18671
if test "$hardcode_action_GCJ" = relink; then
 
18672
  # Fast installation is not supported
 
18673
  enable_fast_install=no
 
18674
elif test "$shlibpath_overrides_runpath" = yes ||
 
18675
     test "$enable_shared" = no; then
 
18676
  # Fast installation is not necessary
 
18677
  enable_fast_install=needless
 
18678
fi
 
18679
 
 
18680
 
 
18681
# The else clause should only fire when bootstrapping the
 
18682
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18683
# with your package, and you will get complaints that there are
 
18684
# no rules to generate ltmain.sh.
 
18685
if test -f "$ltmain"; then
 
18686
  # See if we are running on zsh, and set the options which allow our commands through
 
18687
  # without removal of \ escapes.
 
18688
  if test -n "${ZSH_VERSION+set}" ; then
 
18689
    setopt NO_GLOB_SUBST
 
18690
  fi
 
18691
  # Now quote all the things that may contain metacharacters while being
 
18692
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18693
  # variables and quote the copies for generation of the libtool script.
 
18694
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18695
    SED SHELL STRIP \
 
18696
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18697
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18698
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18699
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18700
    lt_cv_sys_global_symbol_to_c_name_address \
 
18701
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18702
    old_postinstall_cmds old_postuninstall_cmds \
 
18703
    compiler_GCJ \
 
18704
    CC_GCJ \
 
18705
    LD_GCJ \
 
18706
    lt_prog_compiler_wl_GCJ \
 
18707
    lt_prog_compiler_pic_GCJ \
 
18708
    lt_prog_compiler_static_GCJ \
 
18709
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18710
    export_dynamic_flag_spec_GCJ \
 
18711
    thread_safe_flag_spec_GCJ \
 
18712
    whole_archive_flag_spec_GCJ \
 
18713
    enable_shared_with_static_runtimes_GCJ \
 
18714
    old_archive_cmds_GCJ \
 
18715
    old_archive_from_new_cmds_GCJ \
 
18716
    predep_objects_GCJ \
 
18717
    postdep_objects_GCJ \
 
18718
    predeps_GCJ \
 
18719
    postdeps_GCJ \
 
18720
    compiler_lib_search_path_GCJ \
 
18721
    archive_cmds_GCJ \
 
18722
    archive_expsym_cmds_GCJ \
 
18723
    postinstall_cmds_GCJ \
 
18724
    postuninstall_cmds_GCJ \
 
18725
    old_archive_from_expsyms_cmds_GCJ \
 
18726
    allow_undefined_flag_GCJ \
 
18727
    no_undefined_flag_GCJ \
 
18728
    export_symbols_cmds_GCJ \
 
18729
    hardcode_libdir_flag_spec_GCJ \
 
18730
    hardcode_libdir_flag_spec_ld_GCJ \
 
18731
    hardcode_libdir_separator_GCJ \
 
18732
    hardcode_automatic_GCJ \
 
18733
    module_cmds_GCJ \
 
18734
    module_expsym_cmds_GCJ \
 
18735
    lt_cv_prog_compiler_c_o_GCJ \
 
18736
    exclude_expsyms_GCJ \
 
18737
    include_expsyms_GCJ; do
 
18738
 
 
18739
    case $var in
 
18740
    old_archive_cmds_GCJ | \
 
18741
    old_archive_from_new_cmds_GCJ | \
 
18742
    archive_cmds_GCJ | \
 
18743
    archive_expsym_cmds_GCJ | \
 
18744
    module_cmds_GCJ | \
 
18745
    module_expsym_cmds_GCJ | \
 
18746
    old_archive_from_expsyms_cmds_GCJ | \
 
18747
    export_symbols_cmds_GCJ | \
 
18748
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18749
    postinstall_cmds | postuninstall_cmds | \
 
18750
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18751
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18752
      # Double-quote double-evaled strings.
 
18753
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18754
      ;;
 
18755
    *)
 
18756
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18757
      ;;
 
18758
    esac
 
18759
  done
 
18760
 
 
18761
  case $lt_echo in
 
18762
  *'\$0 --fallback-echo"')
 
18763
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18764
    ;;
 
18765
  esac
 
18766
 
 
18767
cfgfile="$ofile"
 
18768
 
 
18769
  cat <<__EOF__ >> "$cfgfile"
 
18770
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18771
 
 
18772
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18773
 
 
18774
# Shell to use when invoking shell scripts.
 
18775
SHELL=$lt_SHELL
 
18776
 
 
18777
# Whether or not to build shared libraries.
 
18778
build_libtool_libs=$enable_shared
 
18779
 
 
18780
# Whether or not to build static libraries.
 
18781
build_old_libs=$enable_static
 
18782
 
 
18783
# Whether or not to add -lc for building shared libraries.
 
18784
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18785
 
 
18786
# Whether or not to disallow shared libs when runtime libs are static
 
18787
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18788
 
 
18789
# Whether or not to optimize for fast installation.
 
18790
fast_install=$enable_fast_install
 
18791
 
 
18792
# The host system.
 
18793
host_alias=$host_alias
 
18794
host=$host
 
18795
host_os=$host_os
 
18796
 
 
18797
# The build system.
 
18798
build_alias=$build_alias
 
18799
build=$build
 
18800
build_os=$build_os
 
18801
 
 
18802
# An echo program that does not interpret backslashes.
 
18803
echo=$lt_echo
 
18804
 
 
18805
# The archiver.
 
18806
AR=$lt_AR
 
18807
AR_FLAGS=$lt_AR_FLAGS
 
18808
 
 
18809
# A C compiler.
 
18810
LTCC=$lt_LTCC
 
18811
 
 
18812
# LTCC compiler flags.
 
18813
LTCFLAGS=$lt_LTCFLAGS
 
18814
 
 
18815
# A language-specific compiler.
 
18816
CC=$lt_compiler_GCJ
 
18817
 
 
18818
# Is the compiler the GNU C compiler?
 
18819
with_gcc=$GCC_GCJ
 
18820
 
 
18821
# An ERE matcher.
 
18822
EGREP=$lt_EGREP
 
18823
 
 
18824
# The linker used to build libraries.
 
18825
LD=$lt_LD_GCJ
 
18826
 
 
18827
# Whether we need hard or soft links.
 
18828
LN_S=$lt_LN_S
 
18829
 
 
18830
# A BSD-compatible nm program.
 
18831
NM=$lt_NM
 
18832
 
 
18833
# A symbol stripping program
 
18834
STRIP=$lt_STRIP
 
18835
 
 
18836
# Used to examine libraries when file_magic_cmd begins "file"
 
18837
MAGIC_CMD=$MAGIC_CMD
 
18838
 
 
18839
# Used on cygwin: DLL creation program.
 
18840
DLLTOOL="$DLLTOOL"
 
18841
 
 
18842
# Used on cygwin: object dumper.
 
18843
OBJDUMP="$OBJDUMP"
 
18844
 
 
18845
# Used on cygwin: assembler.
 
18846
AS="$AS"
 
18847
 
 
18848
# The name of the directory that contains temporary libtool files.
 
18849
objdir=$objdir
 
18850
 
 
18851
# How to create reloadable object files.
 
18852
reload_flag=$lt_reload_flag
 
18853
reload_cmds=$lt_reload_cmds
 
18854
 
 
18855
# How to pass a linker flag through the compiler.
 
18856
wl=$lt_lt_prog_compiler_wl_GCJ
 
18857
 
 
18858
# Object file suffix (normally "o").
 
18859
objext="$ac_objext"
 
18860
 
 
18861
# Old archive suffix (normally "a").
 
18862
libext="$libext"
 
18863
 
 
18864
# Shared library suffix (normally ".so").
 
18865
shrext_cmds='$shrext_cmds'
 
18866
 
 
18867
# Executable file suffix (normally "").
 
18868
exeext="$exeext"
 
18869
 
 
18870
# Additional compiler flags for building library objects.
 
18871
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18872
pic_mode=$pic_mode
 
18873
 
 
18874
# What is the maximum length of a command?
 
18875
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18876
 
 
18877
# Does compiler simultaneously support -c and -o options?
 
18878
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18879
 
 
18880
# Must we lock files when doing compilation?
 
18881
need_locks=$lt_need_locks
 
18882
 
 
18883
# Do we need the lib prefix for modules?
 
18884
need_lib_prefix=$need_lib_prefix
 
18885
 
 
18886
# Do we need a version for libraries?
 
18887
need_version=$need_version
 
18888
 
 
18889
# Whether dlopen is supported.
 
18890
dlopen_support=$enable_dlopen
 
18891
 
 
18892
# Whether dlopen of programs is supported.
 
18893
dlopen_self=$enable_dlopen_self
 
18894
 
 
18895
# Whether dlopen of statically linked programs is supported.
 
18896
dlopen_self_static=$enable_dlopen_self_static
 
18897
 
 
18898
# Compiler flag to prevent dynamic linking.
 
18899
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18900
 
 
18901
# Compiler flag to turn off builtin functions.
 
18902
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18903
 
 
18904
# Compiler flag to allow reflexive dlopens.
 
18905
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18906
 
 
18907
# Compiler flag to generate shared objects directly from archives.
 
18908
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18909
 
 
18910
# Compiler flag to generate thread-safe objects.
 
18911
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18912
 
 
18913
# Library versioning type.
 
18914
version_type=$version_type
 
18915
 
 
18916
# Format of library name prefix.
 
18917
libname_spec=$lt_libname_spec
 
18918
 
 
18919
# List of archive names.  First name is the real one, the rest are links.
 
18920
# The last name is the one that the linker finds with -lNAME.
 
18921
library_names_spec=$lt_library_names_spec
 
18922
 
 
18923
# The coded name of the library, if different from the real name.
 
18924
soname_spec=$lt_soname_spec
 
18925
 
 
18926
# Commands used to build and install an old-style archive.
 
18927
RANLIB=$lt_RANLIB
 
18928
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18929
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18930
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18931
 
 
18932
# Create an old-style archive from a shared archive.
 
18933
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18934
 
 
18935
# Create a temporary old-style archive to link instead of a shared archive.
 
18936
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18937
 
 
18938
# Commands used to build and install a shared archive.
 
18939
archive_cmds=$lt_archive_cmds_GCJ
 
18940
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18941
postinstall_cmds=$lt_postinstall_cmds
 
18942
postuninstall_cmds=$lt_postuninstall_cmds
 
18943
 
 
18944
# Commands used to build a loadable module (assumed same as above if empty)
 
18945
module_cmds=$lt_module_cmds_GCJ
 
18946
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18947
 
 
18948
# Commands to strip libraries.
 
18949
old_striplib=$lt_old_striplib
 
18950
striplib=$lt_striplib
 
18951
 
 
18952
# Dependencies to place before the objects being linked to create a
 
18953
# shared library.
 
18954
predep_objects=$lt_predep_objects_GCJ
 
18955
 
 
18956
# Dependencies to place after the objects being linked to create a
 
18957
# shared library.
 
18958
postdep_objects=$lt_postdep_objects_GCJ
 
18959
 
 
18960
# Dependencies to place before the objects being linked to create a
 
18961
# shared library.
 
18962
predeps=$lt_predeps_GCJ
 
18963
 
 
18964
# Dependencies to place after the objects being linked to create a
 
18965
# shared library.
 
18966
postdeps=$lt_postdeps_GCJ
 
18967
 
 
18968
# The library search path used internally by the compiler when linking
 
18969
# a shared library.
 
18970
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18971
 
 
18972
# Method to check whether dependent libraries are shared objects.
 
18973
deplibs_check_method=$lt_deplibs_check_method
 
18974
 
 
18975
# Command to use when deplibs_check_method == file_magic.
 
18976
file_magic_cmd=$lt_file_magic_cmd
 
18977
 
 
18978
# Flag that allows shared libraries with undefined symbols to be built.
 
18979
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18980
 
 
18981
# Flag that forces no undefined symbols.
 
18982
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18983
 
 
18984
# Commands used to finish a libtool library installation in a directory.
 
18985
finish_cmds=$lt_finish_cmds
 
18986
 
 
18987
# Same as above, but a single script fragment to be evaled but not shown.
 
18988
finish_eval=$lt_finish_eval
 
18989
 
 
18990
# Take the output of nm and produce a listing of raw symbols and C names.
 
18991
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18992
 
 
18993
# Transform the output of nm in a proper C declaration
 
18994
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18995
 
 
18996
# Transform the output of nm in a C name address pair
 
18997
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18998
 
 
18999
# This is the shared library runtime path variable.
 
19000
runpath_var=$runpath_var
 
19001
 
 
19002
# This is the shared library path variable.
 
19003
shlibpath_var=$shlibpath_var
 
19004
 
 
19005
# Is shlibpath searched before the hard-coded library search path?
 
19006
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19007
 
 
19008
# How to hardcode a shared library path into an executable.
 
19009
hardcode_action=$hardcode_action_GCJ
 
19010
 
 
19011
# Whether we should hardcode library paths into libraries.
 
19012
hardcode_into_libs=$hardcode_into_libs
 
19013
 
 
19014
# Flag to hardcode \$libdir into a binary during linking.
 
19015
# This must work even if \$libdir does not exist.
 
19016
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19017
 
 
19018
# If ld is used when linking, flag to hardcode \$libdir into
 
19019
# a binary during linking. This must work even if \$libdir does
 
19020
# not exist.
 
19021
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19022
 
 
19023
# Whether we need a single -rpath flag with a separated argument.
 
19024
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19025
 
 
19026
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19027
# resulting binary.
 
19028
hardcode_direct=$hardcode_direct_GCJ
 
19029
 
 
19030
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19031
# resulting binary.
 
19032
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19033
 
 
19034
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19035
# the resulting binary.
 
19036
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19037
 
 
19038
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19039
# and all subsequent libraries and executables linked against it.
 
19040
hardcode_automatic=$hardcode_automatic_GCJ
 
19041
 
 
19042
# Variables whose values should be saved in libtool wrapper scripts and
 
19043
# restored at relink time.
 
19044
variables_saved_for_relink="$variables_saved_for_relink"
 
19045
 
 
19046
# Whether libtool must link a program against all its dependency libraries.
 
19047
link_all_deplibs=$link_all_deplibs_GCJ
 
19048
 
 
19049
# Compile-time system search path for libraries
 
19050
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19051
 
 
19052
# Run-time system search path for libraries
 
19053
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19054
 
 
19055
# Fix the shell variable \$srcfile for the compiler.
 
19056
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19057
 
 
19058
# Set to yes if exported symbols are required.
 
19059
always_export_symbols=$always_export_symbols_GCJ
 
19060
 
 
19061
# The commands to list exported symbols.
 
19062
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19063
 
 
19064
# The commands to extract the exported symbol list from a shared archive.
 
19065
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19066
 
 
19067
# Symbols that should not be listed in the preloaded symbols.
 
19068
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19069
 
 
19070
# Symbols that must always be exported.
 
19071
include_expsyms=$lt_include_expsyms_GCJ
 
19072
 
 
19073
# ### END LIBTOOL TAG CONFIG: $tagname
 
19074
 
 
19075
__EOF__
 
19076
 
 
19077
 
 
19078
else
 
19079
  # If there is no Makefile yet, we rely on a make rule to execute
 
19080
  # `config.status --recheck' to rerun these tests and create the
 
19081
  # libtool script then.
 
19082
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19083
  if test -f "$ltmain_in"; then
 
19084
    test -f Makefile && make "$ltmain"
 
19085
  fi
 
19086
fi
 
19087
 
 
19088
 
 
19089
ac_ext=c
 
19090
ac_cpp='$CPP $CPPFLAGS'
 
19091
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19092
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19093
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19094
 
 
19095
CC="$lt_save_CC"
 
19096
 
 
19097
        else
 
19098
          tagname=""
 
19099
        fi
 
19100
        ;;
 
19101
 
 
19102
      RC)
 
19103
 
 
19104
 
 
19105
# Source file extension for RC test sources.
 
19106
ac_ext=rc
 
19107
 
 
19108
# Object file extension for compiled RC test sources.
 
19109
objext=o
 
19110
objext_RC=$objext
 
19111
 
 
19112
# Code to be used in simple compile tests
 
19113
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19114
 
 
19115
# Code to be used in simple link tests
 
19116
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19117
 
 
19118
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19119
 
 
19120
# If no C compiler was specified, use CC.
 
19121
LTCC=${LTCC-"$CC"}
 
19122
 
 
19123
# If no C compiler flags were specified, use CFLAGS.
 
19124
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19125
 
 
19126
# Allow CC to be a program name with arguments.
 
19127
compiler=$CC
 
19128
 
 
19129
 
 
19130
# save warnings/boilerplate of simple test code
 
19131
ac_outfile=conftest.$ac_objext
 
19132
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19133
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19134
_lt_compiler_boilerplate=`cat conftest.err`
 
19135
$rm conftest*
 
19136
 
 
19137
ac_outfile=conftest.$ac_objext
 
19138
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19139
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19140
_lt_linker_boilerplate=`cat conftest.err`
 
19141
$rm conftest*
 
19142
 
 
19143
 
 
19144
# Allow CC to be a program name with arguments.
 
19145
lt_save_CC="$CC"
 
19146
CC=${RC-"windres"}
 
19147
compiler=$CC
 
19148
compiler_RC=$CC
 
19149
for cc_temp in $compiler""; do
 
19150
  case $cc_temp in
 
19151
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19152
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19153
    \-*) ;;
 
19154
    *) break;;
 
19155
  esac
 
19156
done
 
19157
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19158
 
 
19159
lt_cv_prog_compiler_c_o_RC=yes
 
19160
 
 
19161
# The else clause should only fire when bootstrapping the
 
19162
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19163
# with your package, and you will get complaints that there are
 
19164
# no rules to generate ltmain.sh.
 
19165
if test -f "$ltmain"; then
 
19166
  # See if we are running on zsh, and set the options which allow our commands through
 
19167
  # without removal of \ escapes.
 
19168
  if test -n "${ZSH_VERSION+set}" ; then
 
19169
    setopt NO_GLOB_SUBST
 
19170
  fi
 
19171
  # Now quote all the things that may contain metacharacters while being
 
19172
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19173
  # variables and quote the copies for generation of the libtool script.
 
19174
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19175
    SED SHELL STRIP \
 
19176
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19177
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19178
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19179
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19180
    lt_cv_sys_global_symbol_to_c_name_address \
 
19181
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19182
    old_postinstall_cmds old_postuninstall_cmds \
 
19183
    compiler_RC \
 
19184
    CC_RC \
 
19185
    LD_RC \
 
19186
    lt_prog_compiler_wl_RC \
 
19187
    lt_prog_compiler_pic_RC \
 
19188
    lt_prog_compiler_static_RC \
 
19189
    lt_prog_compiler_no_builtin_flag_RC \
 
19190
    export_dynamic_flag_spec_RC \
 
19191
    thread_safe_flag_spec_RC \
 
19192
    whole_archive_flag_spec_RC \
 
19193
    enable_shared_with_static_runtimes_RC \
 
19194
    old_archive_cmds_RC \
 
19195
    old_archive_from_new_cmds_RC \
 
19196
    predep_objects_RC \
 
19197
    postdep_objects_RC \
 
19198
    predeps_RC \
 
19199
    postdeps_RC \
 
19200
    compiler_lib_search_path_RC \
 
19201
    archive_cmds_RC \
 
19202
    archive_expsym_cmds_RC \
 
19203
    postinstall_cmds_RC \
 
19204
    postuninstall_cmds_RC \
 
19205
    old_archive_from_expsyms_cmds_RC \
 
19206
    allow_undefined_flag_RC \
 
19207
    no_undefined_flag_RC \
 
19208
    export_symbols_cmds_RC \
 
19209
    hardcode_libdir_flag_spec_RC \
 
19210
    hardcode_libdir_flag_spec_ld_RC \
 
19211
    hardcode_libdir_separator_RC \
 
19212
    hardcode_automatic_RC \
 
19213
    module_cmds_RC \
 
19214
    module_expsym_cmds_RC \
 
19215
    lt_cv_prog_compiler_c_o_RC \
 
19216
    exclude_expsyms_RC \
 
19217
    include_expsyms_RC; do
 
19218
 
 
19219
    case $var in
 
19220
    old_archive_cmds_RC | \
 
19221
    old_archive_from_new_cmds_RC | \
 
19222
    archive_cmds_RC | \
 
19223
    archive_expsym_cmds_RC | \
 
19224
    module_cmds_RC | \
 
19225
    module_expsym_cmds_RC | \
 
19226
    old_archive_from_expsyms_cmds_RC | \
 
19227
    export_symbols_cmds_RC | \
 
19228
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19229
    postinstall_cmds | postuninstall_cmds | \
 
19230
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19231
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19232
      # Double-quote double-evaled strings.
 
19233
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19234
      ;;
 
19235
    *)
 
19236
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19237
      ;;
 
19238
    esac
 
19239
  done
 
19240
 
 
19241
  case $lt_echo in
 
19242
  *'\$0 --fallback-echo"')
 
19243
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19244
    ;;
 
19245
  esac
 
19246
 
 
19247
cfgfile="$ofile"
 
19248
 
 
19249
  cat <<__EOF__ >> "$cfgfile"
 
19250
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19251
 
 
19252
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19253
 
 
19254
# Shell to use when invoking shell scripts.
 
19255
SHELL=$lt_SHELL
 
19256
 
 
19257
# Whether or not to build shared libraries.
 
19258
build_libtool_libs=$enable_shared
 
19259
 
 
19260
# Whether or not to build static libraries.
 
19261
build_old_libs=$enable_static
 
19262
 
 
19263
# Whether or not to add -lc for building shared libraries.
 
19264
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19265
 
 
19266
# Whether or not to disallow shared libs when runtime libs are static
 
19267
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19268
 
 
19269
# Whether or not to optimize for fast installation.
 
19270
fast_install=$enable_fast_install
 
19271
 
 
19272
# The host system.
 
19273
host_alias=$host_alias
 
19274
host=$host
 
19275
host_os=$host_os
 
19276
 
 
19277
# The build system.
 
19278
build_alias=$build_alias
 
19279
build=$build
 
19280
build_os=$build_os
 
19281
 
 
19282
# An echo program that does not interpret backslashes.
 
19283
echo=$lt_echo
 
19284
 
 
19285
# The archiver.
 
19286
AR=$lt_AR
 
19287
AR_FLAGS=$lt_AR_FLAGS
 
19288
 
 
19289
# A C compiler.
 
19290
LTCC=$lt_LTCC
 
19291
 
 
19292
# LTCC compiler flags.
 
19293
LTCFLAGS=$lt_LTCFLAGS
 
19294
 
 
19295
# A language-specific compiler.
 
19296
CC=$lt_compiler_RC
 
19297
 
 
19298
# Is the compiler the GNU C compiler?
 
19299
with_gcc=$GCC_RC
 
19300
 
 
19301
# An ERE matcher.
 
19302
EGREP=$lt_EGREP
 
19303
 
 
19304
# The linker used to build libraries.
 
19305
LD=$lt_LD_RC
 
19306
 
 
19307
# Whether we need hard or soft links.
 
19308
LN_S=$lt_LN_S
 
19309
 
 
19310
# A BSD-compatible nm program.
 
19311
NM=$lt_NM
 
19312
 
 
19313
# A symbol stripping program
 
19314
STRIP=$lt_STRIP
 
19315
 
 
19316
# Used to examine libraries when file_magic_cmd begins "file"
 
19317
MAGIC_CMD=$MAGIC_CMD
 
19318
 
 
19319
# Used on cygwin: DLL creation program.
 
19320
DLLTOOL="$DLLTOOL"
 
19321
 
 
19322
# Used on cygwin: object dumper.
 
19323
OBJDUMP="$OBJDUMP"
 
19324
 
 
19325
# Used on cygwin: assembler.
 
19326
AS="$AS"
 
19327
 
 
19328
# The name of the directory that contains temporary libtool files.
 
19329
objdir=$objdir
 
19330
 
 
19331
# How to create reloadable object files.
 
19332
reload_flag=$lt_reload_flag
 
19333
reload_cmds=$lt_reload_cmds
 
19334
 
 
19335
# How to pass a linker flag through the compiler.
 
19336
wl=$lt_lt_prog_compiler_wl_RC
 
19337
 
 
19338
# Object file suffix (normally "o").
 
19339
objext="$ac_objext"
 
19340
 
 
19341
# Old archive suffix (normally "a").
 
19342
libext="$libext"
 
19343
 
 
19344
# Shared library suffix (normally ".so").
 
19345
shrext_cmds='$shrext_cmds'
 
19346
 
 
19347
# Executable file suffix (normally "").
 
19348
exeext="$exeext"
 
19349
 
 
19350
# Additional compiler flags for building library objects.
 
19351
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19352
pic_mode=$pic_mode
 
19353
 
 
19354
# What is the maximum length of a command?
 
19355
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19356
 
 
19357
# Does compiler simultaneously support -c and -o options?
 
19358
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19359
 
 
19360
# Must we lock files when doing compilation?
 
19361
need_locks=$lt_need_locks
 
19362
 
 
19363
# Do we need the lib prefix for modules?
 
19364
need_lib_prefix=$need_lib_prefix
 
19365
 
 
19366
# Do we need a version for libraries?
 
19367
need_version=$need_version
 
19368
 
 
19369
# Whether dlopen is supported.
 
19370
dlopen_support=$enable_dlopen
 
19371
 
 
19372
# Whether dlopen of programs is supported.
 
19373
dlopen_self=$enable_dlopen_self
 
19374
 
 
19375
# Whether dlopen of statically linked programs is supported.
 
19376
dlopen_self_static=$enable_dlopen_self_static
 
19377
 
 
19378
# Compiler flag to prevent dynamic linking.
 
19379
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19380
 
 
19381
# Compiler flag to turn off builtin functions.
 
19382
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19383
 
 
19384
# Compiler flag to allow reflexive dlopens.
 
19385
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19386
 
 
19387
# Compiler flag to generate shared objects directly from archives.
 
19388
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19389
 
 
19390
# Compiler flag to generate thread-safe objects.
 
19391
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19392
 
 
19393
# Library versioning type.
 
19394
version_type=$version_type
 
19395
 
 
19396
# Format of library name prefix.
 
19397
libname_spec=$lt_libname_spec
 
19398
 
 
19399
# List of archive names.  First name is the real one, the rest are links.
 
19400
# The last name is the one that the linker finds with -lNAME.
 
19401
library_names_spec=$lt_library_names_spec
 
19402
 
 
19403
# The coded name of the library, if different from the real name.
 
19404
soname_spec=$lt_soname_spec
 
19405
 
 
19406
# Commands used to build and install an old-style archive.
 
19407
RANLIB=$lt_RANLIB
 
19408
old_archive_cmds=$lt_old_archive_cmds_RC
 
19409
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19410
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19411
 
 
19412
# Create an old-style archive from a shared archive.
 
19413
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19414
 
 
19415
# Create a temporary old-style archive to link instead of a shared archive.
 
19416
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19417
 
 
19418
# Commands used to build and install a shared archive.
 
19419
archive_cmds=$lt_archive_cmds_RC
 
19420
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19421
postinstall_cmds=$lt_postinstall_cmds
 
19422
postuninstall_cmds=$lt_postuninstall_cmds
 
19423
 
 
19424
# Commands used to build a loadable module (assumed same as above if empty)
 
19425
module_cmds=$lt_module_cmds_RC
 
19426
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19427
 
 
19428
# Commands to strip libraries.
 
19429
old_striplib=$lt_old_striplib
 
19430
striplib=$lt_striplib
 
19431
 
 
19432
# Dependencies to place before the objects being linked to create a
 
19433
# shared library.
 
19434
predep_objects=$lt_predep_objects_RC
 
19435
 
 
19436
# Dependencies to place after the objects being linked to create a
 
19437
# shared library.
 
19438
postdep_objects=$lt_postdep_objects_RC
 
19439
 
 
19440
# Dependencies to place before the objects being linked to create a
 
19441
# shared library.
 
19442
predeps=$lt_predeps_RC
 
19443
 
 
19444
# Dependencies to place after the objects being linked to create a
 
19445
# shared library.
 
19446
postdeps=$lt_postdeps_RC
 
19447
 
 
19448
# The library search path used internally by the compiler when linking
 
19449
# a shared library.
 
19450
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19451
 
 
19452
# Method to check whether dependent libraries are shared objects.
 
19453
deplibs_check_method=$lt_deplibs_check_method
 
19454
 
 
19455
# Command to use when deplibs_check_method == file_magic.
 
19456
file_magic_cmd=$lt_file_magic_cmd
 
19457
 
 
19458
# Flag that allows shared libraries with undefined symbols to be built.
 
19459
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19460
 
 
19461
# Flag that forces no undefined symbols.
 
19462
no_undefined_flag=$lt_no_undefined_flag_RC
 
19463
 
 
19464
# Commands used to finish a libtool library installation in a directory.
 
19465
finish_cmds=$lt_finish_cmds
 
19466
 
 
19467
# Same as above, but a single script fragment to be evaled but not shown.
 
19468
finish_eval=$lt_finish_eval
 
19469
 
 
19470
# Take the output of nm and produce a listing of raw symbols and C names.
 
19471
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19472
 
 
19473
# Transform the output of nm in a proper C declaration
 
19474
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19475
 
 
19476
# Transform the output of nm in a C name address pair
 
19477
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19478
 
 
19479
# This is the shared library runtime path variable.
 
19480
runpath_var=$runpath_var
 
19481
 
 
19482
# This is the shared library path variable.
 
19483
shlibpath_var=$shlibpath_var
 
19484
 
 
19485
# Is shlibpath searched before the hard-coded library search path?
 
19486
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19487
 
 
19488
# How to hardcode a shared library path into an executable.
 
19489
hardcode_action=$hardcode_action_RC
 
19490
 
 
19491
# Whether we should hardcode library paths into libraries.
 
19492
hardcode_into_libs=$hardcode_into_libs
 
19493
 
 
19494
# Flag to hardcode \$libdir into a binary during linking.
 
19495
# This must work even if \$libdir does not exist.
 
19496
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19497
 
 
19498
# If ld is used when linking, flag to hardcode \$libdir into
 
19499
# a binary during linking. This must work even if \$libdir does
 
19500
# not exist.
 
19501
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19502
 
 
19503
# Whether we need a single -rpath flag with a separated argument.
 
19504
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19505
 
 
19506
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19507
# resulting binary.
 
19508
hardcode_direct=$hardcode_direct_RC
 
19509
 
 
19510
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19511
# resulting binary.
 
19512
hardcode_minus_L=$hardcode_minus_L_RC
 
19513
 
 
19514
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19515
# the resulting binary.
 
19516
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19517
 
 
19518
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19519
# and all subsequent libraries and executables linked against it.
 
19520
hardcode_automatic=$hardcode_automatic_RC
 
19521
 
 
19522
# Variables whose values should be saved in libtool wrapper scripts and
 
19523
# restored at relink time.
 
19524
variables_saved_for_relink="$variables_saved_for_relink"
 
19525
 
 
19526
# Whether libtool must link a program against all its dependency libraries.
 
19527
link_all_deplibs=$link_all_deplibs_RC
 
19528
 
 
19529
# Compile-time system search path for libraries
 
19530
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19531
 
 
19532
# Run-time system search path for libraries
 
19533
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19534
 
 
19535
# Fix the shell variable \$srcfile for the compiler.
 
19536
fix_srcfile_path="$fix_srcfile_path_RC"
 
19537
 
 
19538
# Set to yes if exported symbols are required.
 
19539
always_export_symbols=$always_export_symbols_RC
 
19540
 
 
19541
# The commands to list exported symbols.
 
19542
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19543
 
 
19544
# The commands to extract the exported symbol list from a shared archive.
 
19545
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19546
 
 
19547
# Symbols that should not be listed in the preloaded symbols.
 
19548
exclude_expsyms=$lt_exclude_expsyms_RC
 
19549
 
 
19550
# Symbols that must always be exported.
 
19551
include_expsyms=$lt_include_expsyms_RC
 
19552
 
 
19553
# ### END LIBTOOL TAG CONFIG: $tagname
 
19554
 
 
19555
__EOF__
 
19556
 
 
19557
 
 
19558
else
 
19559
  # If there is no Makefile yet, we rely on a make rule to execute
 
19560
  # `config.status --recheck' to rerun these tests and create the
 
19561
  # libtool script then.
 
19562
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19563
  if test -f "$ltmain_in"; then
 
19564
    test -f Makefile && make "$ltmain"
 
19565
  fi
 
19566
fi
 
19567
 
 
19568
 
 
19569
ac_ext=c
 
19570
ac_cpp='$CPP $CPPFLAGS'
 
19571
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19572
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19573
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19574
 
 
19575
CC="$lt_save_CC"
 
19576
 
 
19577
        ;;
 
19578
 
 
19579
      *)
 
19580
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19581
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19582
   { (exit 1); exit 1; }; }
 
19583
        ;;
 
19584
      esac
 
19585
 
 
19586
      # Append the new tag name to the list of available tags.
 
19587
      if test -n "$tagname" ; then
 
19588
      available_tags="$available_tags $tagname"
 
19589
    fi
 
19590
    fi
 
19591
  done
 
19592
  IFS="$lt_save_ifs"
 
19593
 
 
19594
  # Now substitute the updated list of available tags.
 
19595
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19596
    mv "${ofile}T" "$ofile"
 
19597
    chmod +x "$ofile"
 
19598
  else
 
19599
    rm -f "${ofile}T"
 
19600
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19601
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19602
   { (exit 1); exit 1; }; }
 
19603
  fi
 
19604
fi
 
19605
 
 
19606
 
 
19607
 
 
19608
# This can be used to rebuild libtool when needed
 
19609
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19610
 
 
19611
# Always use our own libtool.
 
19612
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19613
 
 
19614
# Prevent multiple expansion
 
19615
 
 
19616
 
 
19617
 
 
19618
 
 
19619
 
 
19620
 
 
19621
 
 
19622
 
 
19623
 
 
19624
 
 
19625
 
 
19626
 
 
19627
 
 
19628
 
 
19629
 
 
19630
 
 
19631
 
 
19632
 
 
19633
 
 
19634
 
 
19635
 
 
19636
 
 
19637
 
 
19638
 
 
19639
      ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
19640
  if test -n "$ac_macro_dir"; then
 
19641
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
 
19642
  fi
 
19643
 
 
19644
 
 
19645
 
 
19646
 
 
19647
        # Check whether --enable-debug was given.
 
19648
if test "${enable_debug+set}" = set; then
 
19649
  enableval=$enable_debug;
 
19650
else
 
19651
  enable_debug=no
 
19652
fi
 
19653
 
 
19654
 
 
19655
        if test x$enable_debug = xyes ; then
 
19656
 
 
19657
cat >>confdefs.h <<\_ACEOF
 
19658
#define GNOME_ENABLE_DEBUG 1
 
19659
_ACEOF
 
19660
 
 
19661
        fi
 
19662
 
 
19663
 
 
19664
 
 
19665
    # Check whether --enable-compile-warnings was given.
 
19666
if test "${enable_compile_warnings+set}" = set; then
 
19667
  enableval=$enable_compile_warnings;
 
19668
else
 
19669
  enable_compile_warnings="maximum"
 
19670
fi
 
19671
 
 
19672
 
 
19673
    warnCFLAGS=
 
19674
    if test "x$GCC" != xyes; then
 
19675
        enable_compile_warnings=no
 
19676
    fi
 
19677
 
 
19678
    warning_flags=
 
19679
    realsave_CFLAGS="$CFLAGS"
 
19680
 
 
19681
    case "$enable_compile_warnings" in
 
19682
    no)
 
19683
        warning_flags=
 
19684
        ;;
 
19685
    minimum)
 
19686
        warning_flags="-Wall"
 
19687
        ;;
 
19688
    yes)
 
19689
        warning_flags="-Wall -Wmissing-prototypes"
 
19690
        ;;
 
19691
    maximum|error)
 
19692
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
19693
        CFLAGS="$warning_flags $CFLAGS"
 
19694
        for option in -Wno-sign-compare; do
 
19695
                SAVE_CFLAGS="$CFLAGS"
 
19696
                CFLAGS="$CFLAGS $option"
 
19697
                { echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
 
19698
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6; }
 
19699
                cat >conftest.$ac_ext <<_ACEOF
 
19700
/* confdefs.h.  */
 
19701
_ACEOF
 
19702
cat confdefs.h >>conftest.$ac_ext
 
19703
cat >>conftest.$ac_ext <<_ACEOF
 
19704
/* end confdefs.h.  */
 
19705
 
 
19706
int
 
19707
main ()
 
19708
{
 
19709
 
 
19710
  ;
 
19711
  return 0;
 
19712
}
 
19713
_ACEOF
 
19714
rm -f conftest.$ac_objext
 
19715
if { (ac_try="$ac_compile"
 
19716
case "(($ac_try" in
 
19717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19718
  *) ac_try_echo=$ac_try;;
 
19719
esac
 
19720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19721
  (eval "$ac_compile") 2>conftest.er1
 
19722
  ac_status=$?
 
19723
  grep -v '^ *+' conftest.er1 >conftest.err
 
19724
  rm -f conftest.er1
 
19725
  cat conftest.err >&5
 
19726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19727
  (exit $ac_status); } && {
 
19728
         test -z "$ac_c_werror_flag" ||
 
19729
         test ! -s conftest.err
 
19730
       } && test -s conftest.$ac_objext; then
 
19731
  has_option=yes
 
19732
else
 
19733
  echo "$as_me: failed program was:" >&5
 
19734
sed 's/^/| /' conftest.$ac_ext >&5
 
19735
 
 
19736
        has_option=no
 
19737
fi
 
19738
 
 
19739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19740
                CFLAGS="$SAVE_CFLAGS"
 
19741
                { echo "$as_me:$LINENO: result: $has_option" >&5
 
19742
echo "${ECHO_T}$has_option" >&6; }
 
19743
                if test $has_option = yes; then
 
19744
                  warning_flags="$warning_flags $option"
 
19745
                fi
 
19746
                unset has_option
 
19747
                unset SAVE_CFLAGS
 
19748
        done
 
19749
        unset option
 
19750
        if test "$enable_compile_warnings" = "error" ; then
 
19751
            warning_flags="$warning_flags -Werror"
 
19752
        fi
 
19753
        ;;
 
19754
    *)
 
19755
        { { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
 
19756
echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
 
19757
   { (exit 1); exit 1; }; }
 
19758
        ;;
 
19759
    esac
 
19760
    CFLAGS="$realsave_CFLAGS"
 
19761
    { echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
 
19762
echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6; }
 
19763
    { echo "$as_me:$LINENO: result: $warning_flags" >&5
 
19764
echo "${ECHO_T}$warning_flags" >&6; }
 
19765
 
 
19766
    # Check whether --enable-iso-c was given.
 
19767
if test "${enable_iso_c+set}" = set; then
 
19768
  enableval=$enable_iso_c;
 
19769
else
 
19770
  enable_iso_c=no
 
19771
fi
 
19772
 
 
19773
 
 
19774
    { echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
 
19775
echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6; }
 
19776
    complCFLAGS=
 
19777
    if test "x$enable_iso_c" != "xno"; then
 
19778
        if test "x$GCC" = "xyes"; then
 
19779
        case " $CFLAGS " in
 
19780
            *\ \        -ansi\ \        *) ;;
 
19781
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
19782
        esac
 
19783
        case " $CFLAGS " in
 
19784
            *\ \        -pedantic\ \    *) ;;
 
19785
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
19786
        esac
 
19787
        fi
 
19788
    fi
 
19789
    { echo "$as_me:$LINENO: result: $complCFLAGS" >&5
 
19790
echo "${ECHO_T}$complCFLAGS" >&6; }
 
19791
 
 
19792
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
19793
 
 
19794
 
 
19795
 
 
19796
 
 
19797
 
 
19798
        if test $USE_MAINTAINER_MODE = yes; then
 
19799
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED"
 
19800
        else
 
19801
                DISABLE_DEPRECATED=""
 
19802
        fi
 
19803
 
 
19804
 
 
19805
 
 
19806
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
19807
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
19808
if test "${ac_cv_header_stdc+set}" = set; then
 
19809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19810
else
 
19811
  cat >conftest.$ac_ext <<_ACEOF
 
19812
/* confdefs.h.  */
 
19813
_ACEOF
 
19814
cat confdefs.h >>conftest.$ac_ext
 
19815
cat >>conftest.$ac_ext <<_ACEOF
 
19816
/* end confdefs.h.  */
 
19817
#include <stdlib.h>
 
19818
#include <stdarg.h>
 
19819
#include <string.h>
 
19820
#include <float.h>
 
19821
 
 
19822
int
 
19823
main ()
 
19824
{
 
19825
 
 
19826
  ;
 
19827
  return 0;
 
19828
}
 
19829
_ACEOF
 
19830
rm -f conftest.$ac_objext
 
19831
if { (ac_try="$ac_compile"
 
19832
case "(($ac_try" in
 
19833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19834
  *) ac_try_echo=$ac_try;;
 
19835
esac
 
19836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19837
  (eval "$ac_compile") 2>conftest.er1
 
19838
  ac_status=$?
 
19839
  grep -v '^ *+' conftest.er1 >conftest.err
 
19840
  rm -f conftest.er1
 
19841
  cat conftest.err >&5
 
19842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19843
  (exit $ac_status); } && {
 
19844
         test -z "$ac_c_werror_flag" ||
 
19845
         test ! -s conftest.err
 
19846
       } && test -s conftest.$ac_objext; then
 
19847
  ac_cv_header_stdc=yes
 
19848
else
 
19849
  echo "$as_me: failed program was:" >&5
 
19850
sed 's/^/| /' conftest.$ac_ext >&5
 
19851
 
 
19852
        ac_cv_header_stdc=no
 
19853
fi
 
19854
 
 
19855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19856
 
 
19857
if test $ac_cv_header_stdc = yes; then
 
19858
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
19859
  cat >conftest.$ac_ext <<_ACEOF
 
19860
/* confdefs.h.  */
 
19861
_ACEOF
 
19862
cat confdefs.h >>conftest.$ac_ext
 
19863
cat >>conftest.$ac_ext <<_ACEOF
 
19864
/* end confdefs.h.  */
 
19865
#include <string.h>
 
19866
 
 
19867
_ACEOF
 
19868
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19869
  $EGREP "memchr" >/dev/null 2>&1; then
 
19870
  :
 
19871
else
 
19872
  ac_cv_header_stdc=no
 
19873
fi
 
19874
rm -f conftest*
 
19875
 
 
19876
fi
 
19877
 
 
19878
if test $ac_cv_header_stdc = yes; then
 
19879
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
19880
  cat >conftest.$ac_ext <<_ACEOF
 
19881
/* confdefs.h.  */
 
19882
_ACEOF
 
19883
cat confdefs.h >>conftest.$ac_ext
 
19884
cat >>conftest.$ac_ext <<_ACEOF
 
19885
/* end confdefs.h.  */
 
19886
#include <stdlib.h>
 
19887
 
 
19888
_ACEOF
 
19889
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19890
  $EGREP "free" >/dev/null 2>&1; then
 
19891
  :
 
19892
else
 
19893
  ac_cv_header_stdc=no
 
19894
fi
 
19895
rm -f conftest*
 
19896
 
 
19897
fi
 
19898
 
 
19899
if test $ac_cv_header_stdc = yes; then
 
19900
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
19901
  if test "$cross_compiling" = yes; then
 
19902
  :
 
19903
else
 
19904
  cat >conftest.$ac_ext <<_ACEOF
 
19905
/* confdefs.h.  */
 
19906
_ACEOF
 
19907
cat confdefs.h >>conftest.$ac_ext
 
19908
cat >>conftest.$ac_ext <<_ACEOF
 
19909
/* end confdefs.h.  */
 
19910
#include <ctype.h>
 
19911
#include <stdlib.h>
 
19912
#if ((' ' & 0x0FF) == 0x020)
 
19913
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
19914
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
19915
#else
 
19916
# define ISLOWER(c) \
 
19917
                   (('a' <= (c) && (c) <= 'i') \
 
19918
                     || ('j' <= (c) && (c) <= 'r') \
 
19919
                     || ('s' <= (c) && (c) <= 'z'))
 
19920
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
19921
#endif
 
19922
 
 
19923
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
19924
int
 
19925
main ()
 
19926
{
 
19927
  int i;
 
19928
  for (i = 0; i < 256; i++)
 
19929
    if (XOR (islower (i), ISLOWER (i))
 
19930
        || toupper (i) != TOUPPER (i))
 
19931
      return 2;
 
19932
  return 0;
 
19933
}
 
19934
_ACEOF
 
19935
rm -f conftest$ac_exeext
 
19936
if { (ac_try="$ac_link"
 
19937
case "(($ac_try" in
 
19938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19939
  *) ac_try_echo=$ac_try;;
 
19940
esac
 
19941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19942
  (eval "$ac_link") 2>&5
 
19943
  ac_status=$?
 
19944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19945
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19946
  { (case "(($ac_try" in
 
19947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19948
  *) ac_try_echo=$ac_try;;
 
19949
esac
 
19950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19951
  (eval "$ac_try") 2>&5
 
19952
  ac_status=$?
 
19953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19954
  (exit $ac_status); }; }; then
 
19955
  :
 
19956
else
 
19957
  echo "$as_me: program exited with status $ac_status" >&5
 
19958
echo "$as_me: failed program was:" >&5
 
19959
sed 's/^/| /' conftest.$ac_ext >&5
 
19960
 
 
19961
( exit $ac_status )
 
19962
ac_cv_header_stdc=no
 
19963
fi
 
19964
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19965
fi
 
19966
 
 
19967
 
 
19968
fi
 
19969
fi
 
19970
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
19971
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
19972
if test $ac_cv_header_stdc = yes; then
 
19973
 
 
19974
cat >>confdefs.h <<\_ACEOF
 
19975
#define STDC_HEADERS 1
 
19976
_ACEOF
 
19977
 
 
19978
fi
 
19979
 
 
19980
 
 
19981
 
 
19982
 
 
19983
 
 
19984
 
 
19985
 
 
19986
for ac_header in fcntl.h paths.h sys/ioctl.h sys/time.h syslog.h unistd.h
 
19987
do
 
19988
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19989
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19990
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19991
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19992
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19994
fi
 
19995
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19996
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19997
echo "${ECHO_T}$ac_res" >&6; }
 
19998
else
 
19999
  # Is the header compilable?
 
20000
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20001
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20002
cat >conftest.$ac_ext <<_ACEOF
 
20003
/* confdefs.h.  */
 
20004
_ACEOF
 
20005
cat confdefs.h >>conftest.$ac_ext
 
20006
cat >>conftest.$ac_ext <<_ACEOF
 
20007
/* end confdefs.h.  */
 
20008
$ac_includes_default
 
20009
#include <$ac_header>
 
20010
_ACEOF
 
20011
rm -f conftest.$ac_objext
 
20012
if { (ac_try="$ac_compile"
 
20013
case "(($ac_try" in
 
20014
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20015
  *) ac_try_echo=$ac_try;;
 
20016
esac
 
20017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20018
  (eval "$ac_compile") 2>conftest.er1
 
20019
  ac_status=$?
 
20020
  grep -v '^ *+' conftest.er1 >conftest.err
 
20021
  rm -f conftest.er1
 
20022
  cat conftest.err >&5
 
20023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20024
  (exit $ac_status); } && {
 
20025
         test -z "$ac_c_werror_flag" ||
 
20026
         test ! -s conftest.err
 
20027
       } && test -s conftest.$ac_objext; then
 
20028
  ac_header_compiler=yes
 
20029
else
 
20030
  echo "$as_me: failed program was:" >&5
 
20031
sed 's/^/| /' conftest.$ac_ext >&5
 
20032
 
 
20033
        ac_header_compiler=no
 
20034
fi
 
20035
 
 
20036
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20037
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20038
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20039
 
 
20040
# Is the header present?
 
20041
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20042
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20043
cat >conftest.$ac_ext <<_ACEOF
 
20044
/* confdefs.h.  */
 
20045
_ACEOF
 
20046
cat confdefs.h >>conftest.$ac_ext
 
20047
cat >>conftest.$ac_ext <<_ACEOF
 
20048
/* end confdefs.h.  */
 
20049
#include <$ac_header>
 
20050
_ACEOF
 
20051
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20052
case "(($ac_try" in
 
20053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20054
  *) ac_try_echo=$ac_try;;
 
20055
esac
 
20056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20057
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20058
  ac_status=$?
 
20059
  grep -v '^ *+' conftest.er1 >conftest.err
 
20060
  rm -f conftest.er1
 
20061
  cat conftest.err >&5
 
20062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20063
  (exit $ac_status); } >/dev/null && {
 
20064
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20065
         test ! -s conftest.err
 
20066
       }; then
 
20067
  ac_header_preproc=yes
 
20068
else
 
20069
  echo "$as_me: failed program was:" >&5
 
20070
sed 's/^/| /' conftest.$ac_ext >&5
 
20071
 
 
20072
  ac_header_preproc=no
 
20073
fi
 
20074
 
 
20075
rm -f conftest.err conftest.$ac_ext
 
20076
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20077
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20078
 
 
20079
# So?  What about this header?
 
20080
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20081
  yes:no: )
 
20082
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20083
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20084
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20085
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20086
    ac_header_preproc=yes
 
20087
    ;;
 
20088
  no:yes:* )
 
20089
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20090
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20091
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20092
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20093
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20094
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20095
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20096
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20097
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20098
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20099
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20100
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20101
    ( cat <<\_ASBOX
 
20102
## ------------------------------ ##
 
20103
## Report this to dcbw@redhat.com ##
 
20104
## ------------------------------ ##
 
20105
_ASBOX
 
20106
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20107
    ;;
 
20108
esac
 
20109
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20110
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20111
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20113
else
 
20114
  eval "$as_ac_Header=\$ac_header_preproc"
 
20115
fi
 
20116
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20117
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20118
echo "${ECHO_T}$ac_res" >&6; }
 
20119
 
 
20120
fi
 
20121
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20122
  cat >>confdefs.h <<_ACEOF
 
20123
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20124
_ACEOF
 
20125
 
 
20126
fi
 
20127
 
 
20128
done
 
20129
 
 
20130
 
 
20131
{ echo "$as_me:$LINENO: checking for mode_t" >&5
 
20132
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
 
20133
if test "${ac_cv_type_mode_t+set}" = set; then
 
20134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20135
else
 
20136
  cat >conftest.$ac_ext <<_ACEOF
 
20137
/* confdefs.h.  */
 
20138
_ACEOF
 
20139
cat confdefs.h >>conftest.$ac_ext
 
20140
cat >>conftest.$ac_ext <<_ACEOF
 
20141
/* end confdefs.h.  */
 
20142
$ac_includes_default
 
20143
typedef mode_t ac__type_new_;
 
20144
int
 
20145
main ()
 
20146
{
 
20147
if ((ac__type_new_ *) 0)
 
20148
  return 0;
 
20149
if (sizeof (ac__type_new_))
 
20150
  return 0;
 
20151
  ;
 
20152
  return 0;
 
20153
}
 
20154
_ACEOF
 
20155
rm -f conftest.$ac_objext
 
20156
if { (ac_try="$ac_compile"
 
20157
case "(($ac_try" in
 
20158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20159
  *) ac_try_echo=$ac_try;;
 
20160
esac
 
20161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20162
  (eval "$ac_compile") 2>conftest.er1
 
20163
  ac_status=$?
 
20164
  grep -v '^ *+' conftest.er1 >conftest.err
 
20165
  rm -f conftest.er1
 
20166
  cat conftest.err >&5
 
20167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20168
  (exit $ac_status); } && {
 
20169
         test -z "$ac_c_werror_flag" ||
 
20170
         test ! -s conftest.err
 
20171
       } && test -s conftest.$ac_objext; then
 
20172
  ac_cv_type_mode_t=yes
 
20173
else
 
20174
  echo "$as_me: failed program was:" >&5
 
20175
sed 's/^/| /' conftest.$ac_ext >&5
 
20176
 
 
20177
        ac_cv_type_mode_t=no
 
20178
fi
 
20179
 
 
20180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20181
fi
 
20182
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
20183
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
 
20184
if test $ac_cv_type_mode_t = yes; then
 
20185
  :
 
20186
else
 
20187
 
 
20188
cat >>confdefs.h <<_ACEOF
 
20189
#define mode_t int
 
20190
_ACEOF
 
20191
 
 
20192
fi
 
20193
 
 
20194
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
20195
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
20196
if test "${ac_cv_type_pid_t+set}" = set; then
 
20197
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20198
else
 
20199
  cat >conftest.$ac_ext <<_ACEOF
 
20200
/* confdefs.h.  */
 
20201
_ACEOF
 
20202
cat confdefs.h >>conftest.$ac_ext
 
20203
cat >>conftest.$ac_ext <<_ACEOF
 
20204
/* end confdefs.h.  */
 
20205
$ac_includes_default
 
20206
typedef pid_t ac__type_new_;
 
20207
int
 
20208
main ()
 
20209
{
 
20210
if ((ac__type_new_ *) 0)
 
20211
  return 0;
 
20212
if (sizeof (ac__type_new_))
 
20213
  return 0;
 
20214
  ;
 
20215
  return 0;
 
20216
}
 
20217
_ACEOF
 
20218
rm -f conftest.$ac_objext
 
20219
if { (ac_try="$ac_compile"
 
20220
case "(($ac_try" in
 
20221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20222
  *) ac_try_echo=$ac_try;;
 
20223
esac
 
20224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20225
  (eval "$ac_compile") 2>conftest.er1
 
20226
  ac_status=$?
 
20227
  grep -v '^ *+' conftest.er1 >conftest.err
 
20228
  rm -f conftest.er1
 
20229
  cat conftest.err >&5
 
20230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20231
  (exit $ac_status); } && {
 
20232
         test -z "$ac_c_werror_flag" ||
 
20233
         test ! -s conftest.err
 
20234
       } && test -s conftest.$ac_objext; then
 
20235
  ac_cv_type_pid_t=yes
 
20236
else
 
20237
  echo "$as_me: failed program was:" >&5
 
20238
sed 's/^/| /' conftest.$ac_ext >&5
 
20239
 
 
20240
        ac_cv_type_pid_t=no
 
20241
fi
 
20242
 
 
20243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20244
fi
 
20245
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
20246
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
20247
if test $ac_cv_type_pid_t = yes; then
 
20248
  :
 
20249
else
 
20250
 
 
20251
cat >>confdefs.h <<_ACEOF
 
20252
#define pid_t int
 
20253
_ACEOF
 
20254
 
 
20255
fi
 
20256
 
 
20257
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
20258
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
20259
if test "${ac_cv_header_time+set}" = set; then
 
20260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20261
else
 
20262
  cat >conftest.$ac_ext <<_ACEOF
 
20263
/* confdefs.h.  */
 
20264
_ACEOF
 
20265
cat confdefs.h >>conftest.$ac_ext
 
20266
cat >>conftest.$ac_ext <<_ACEOF
 
20267
/* end confdefs.h.  */
 
20268
#include <sys/types.h>
 
20269
#include <sys/time.h>
 
20270
#include <time.h>
 
20271
 
 
20272
int
 
20273
main ()
 
20274
{
 
20275
if ((struct tm *) 0)
 
20276
return 0;
 
20277
  ;
 
20278
  return 0;
 
20279
}
 
20280
_ACEOF
 
20281
rm -f conftest.$ac_objext
 
20282
if { (ac_try="$ac_compile"
 
20283
case "(($ac_try" in
 
20284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20285
  *) ac_try_echo=$ac_try;;
 
20286
esac
 
20287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20288
  (eval "$ac_compile") 2>conftest.er1
 
20289
  ac_status=$?
 
20290
  grep -v '^ *+' conftest.er1 >conftest.err
 
20291
  rm -f conftest.er1
 
20292
  cat conftest.err >&5
 
20293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20294
  (exit $ac_status); } && {
 
20295
         test -z "$ac_c_werror_flag" ||
 
20296
         test ! -s conftest.err
 
20297
       } && test -s conftest.$ac_objext; then
 
20298
  ac_cv_header_time=yes
 
20299
else
 
20300
  echo "$as_me: failed program was:" >&5
 
20301
sed 's/^/| /' conftest.$ac_ext >&5
 
20302
 
 
20303
        ac_cv_header_time=no
 
20304
fi
 
20305
 
 
20306
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20307
fi
 
20308
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
20309
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
20310
if test $ac_cv_header_time = yes; then
 
20311
 
 
20312
cat >>confdefs.h <<\_ACEOF
 
20313
#define TIME_WITH_SYS_TIME 1
 
20314
_ACEOF
 
20315
 
 
20316
fi
 
20317
 
 
20318
 
 
20319
if test $ac_cv_c_compiler_gnu = yes; then
 
20320
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
20321
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
 
20322
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
20323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20324
else
 
20325
    ac_pattern="Autoconf.*'x'"
 
20326
  cat >conftest.$ac_ext <<_ACEOF
 
20327
/* confdefs.h.  */
 
20328
_ACEOF
 
20329
cat confdefs.h >>conftest.$ac_ext
 
20330
cat >>conftest.$ac_ext <<_ACEOF
 
20331
/* end confdefs.h.  */
 
20332
#include <sgtty.h>
 
20333
Autoconf TIOCGETP
 
20334
_ACEOF
 
20335
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20336
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
20337
  ac_cv_prog_gcc_traditional=yes
 
20338
else
 
20339
  ac_cv_prog_gcc_traditional=no
 
20340
fi
 
20341
rm -f conftest*
 
20342
 
 
20343
 
 
20344
  if test $ac_cv_prog_gcc_traditional = no; then
 
20345
    cat >conftest.$ac_ext <<_ACEOF
 
20346
/* confdefs.h.  */
 
20347
_ACEOF
 
20348
cat confdefs.h >>conftest.$ac_ext
 
20349
cat >>conftest.$ac_ext <<_ACEOF
 
20350
/* end confdefs.h.  */
 
20351
#include <termio.h>
 
20352
Autoconf TCGETA
 
20353
_ACEOF
 
20354
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20355
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
20356
  ac_cv_prog_gcc_traditional=yes
 
20357
fi
 
20358
rm -f conftest*
 
20359
 
 
20360
  fi
 
20361
fi
 
20362
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
20363
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
 
20364
  if test $ac_cv_prog_gcc_traditional = yes; then
 
20365
    CC="$CC -traditional"
 
20366
  fi
 
20367
fi
 
20368
 
 
20369
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
 
20370
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
 
20371
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
20372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20373
else
 
20374
  if test "$cross_compiling" = yes; then
 
20375
  ac_cv_func_memcmp_working=no
 
20376
else
 
20377
  cat >conftest.$ac_ext <<_ACEOF
 
20378
/* confdefs.h.  */
 
20379
_ACEOF
 
20380
cat confdefs.h >>conftest.$ac_ext
 
20381
cat >>conftest.$ac_ext <<_ACEOF
 
20382
/* end confdefs.h.  */
 
20383
$ac_includes_default
 
20384
int
 
20385
main ()
 
20386
{
 
20387
 
 
20388
  /* Some versions of memcmp are not 8-bit clean.  */
 
20389
  char c0 = '\100', c1 = '\200', c2 = '\201';
 
20390
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
20391
    return 1;
 
20392
 
 
20393
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
20394
     or more and with at least one buffer not starting on a 4-byte boundary.
 
20395
     William Lewis provided this test program.   */
 
20396
  {
 
20397
    char foo[21];
 
20398
    char bar[21];
 
20399
    int i;
 
20400
    for (i = 0; i < 4; i++)
 
20401
      {
 
20402
        char *a = foo + i;
 
20403
        char *b = bar + i;
 
20404
        strcpy (a, "--------01111111");
 
20405
        strcpy (b, "--------10000000");
 
20406
        if (memcmp (a, b, 16) >= 0)
 
20407
          return 1;
 
20408
      }
 
20409
    return 0;
 
20410
  }
 
20411
 
 
20412
  ;
 
20413
  return 0;
 
20414
}
 
20415
_ACEOF
 
20416
rm -f conftest$ac_exeext
 
20417
if { (ac_try="$ac_link"
 
20418
case "(($ac_try" in
 
20419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20420
  *) ac_try_echo=$ac_try;;
 
20421
esac
 
20422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20423
  (eval "$ac_link") 2>&5
 
20424
  ac_status=$?
 
20425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20426
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20427
  { (case "(($ac_try" in
 
20428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20429
  *) ac_try_echo=$ac_try;;
 
20430
esac
 
20431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20432
  (eval "$ac_try") 2>&5
 
20433
  ac_status=$?
 
20434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20435
  (exit $ac_status); }; }; then
 
20436
  ac_cv_func_memcmp_working=yes
 
20437
else
 
20438
  echo "$as_me: program exited with status $ac_status" >&5
 
20439
echo "$as_me: failed program was:" >&5
 
20440
sed 's/^/| /' conftest.$ac_ext >&5
 
20441
 
 
20442
( exit $ac_status )
 
20443
ac_cv_func_memcmp_working=no
 
20444
fi
 
20445
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20446
fi
 
20447
 
 
20448
 
 
20449
fi
 
20450
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
20451
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
 
20452
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
 
20453
  *" memcmp.$ac_objext "* ) ;;
 
20454
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
 
20455
 ;;
 
20456
esac
 
20457
 
 
20458
 
 
20459
 
 
20460
 
 
20461
 
 
20462
for ac_func in select socket uname
 
20463
do
 
20464
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20465
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20466
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20467
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
20468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20469
else
 
20470
  cat >conftest.$ac_ext <<_ACEOF
 
20471
/* confdefs.h.  */
 
20472
_ACEOF
 
20473
cat confdefs.h >>conftest.$ac_ext
 
20474
cat >>conftest.$ac_ext <<_ACEOF
 
20475
/* end confdefs.h.  */
 
20476
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20477
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20478
#define $ac_func innocuous_$ac_func
 
20479
 
 
20480
/* System header to define __stub macros and hopefully few prototypes,
 
20481
    which can conflict with char $ac_func (); below.
 
20482
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20483
    <limits.h> exists even on freestanding compilers.  */
 
20484
 
 
20485
#ifdef __STDC__
 
20486
# include <limits.h>
 
20487
#else
 
20488
# include <assert.h>
 
20489
#endif
 
20490
 
 
20491
#undef $ac_func
 
20492
 
 
20493
/* Override any GCC internal prototype to avoid an error.
 
20494
   Use char because int might match the return type of a GCC
 
20495
   builtin and then its argument prototype would still apply.  */
 
20496
#ifdef __cplusplus
 
20497
extern "C"
 
20498
#endif
 
20499
char $ac_func ();
 
20500
/* The GNU C library defines this for functions which it implements
 
20501
    to always fail with ENOSYS.  Some functions are actually named
 
20502
    something starting with __ and the normal name is an alias.  */
 
20503
#if defined __stub_$ac_func || defined __stub___$ac_func
 
20504
choke me
 
20505
#endif
 
20506
 
 
20507
int
 
20508
main ()
 
20509
{
 
20510
return $ac_func ();
 
20511
  ;
 
20512
  return 0;
 
20513
}
 
20514
_ACEOF
 
20515
rm -f conftest.$ac_objext conftest$ac_exeext
 
20516
if { (ac_try="$ac_link"
 
20517
case "(($ac_try" in
 
20518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20519
  *) ac_try_echo=$ac_try;;
 
20520
esac
 
20521
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20522
  (eval "$ac_link") 2>conftest.er1
 
20523
  ac_status=$?
 
20524
  grep -v '^ *+' conftest.er1 >conftest.err
 
20525
  rm -f conftest.er1
 
20526
  cat conftest.err >&5
 
20527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20528
  (exit $ac_status); } && {
 
20529
         test -z "$ac_c_werror_flag" ||
 
20530
         test ! -s conftest.err
 
20531
       } && test -s conftest$ac_exeext &&
 
20532
       $as_test_x conftest$ac_exeext; then
 
20533
  eval "$as_ac_var=yes"
 
20534
else
 
20535
  echo "$as_me: failed program was:" >&5
 
20536
sed 's/^/| /' conftest.$ac_ext >&5
 
20537
 
 
20538
        eval "$as_ac_var=no"
 
20539
fi
 
20540
 
 
20541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20542
      conftest$ac_exeext conftest.$ac_ext
 
20543
fi
 
20544
ac_res=`eval echo '${'$as_ac_var'}'`
 
20545
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20546
echo "${ECHO_T}$ac_res" >&6; }
 
20547
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20548
  cat >>confdefs.h <<_ACEOF
 
20549
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20550
_ACEOF
 
20551
 
 
20552
fi
 
20553
done
 
20554
 
 
20555
 
 
20556
GETTEXT_PACKAGE=nm-applet
 
20557
 
 
20558
 
 
20559
cat >>confdefs.h <<_ACEOF
 
20560
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
20561
_ACEOF
 
20562
 
 
20563
ALL_LINGUAS="ar bg bs ca cs da de dz el en_CA en_GB es fi fr gl gu hr hu it ja ko lt pl mk nb ne nl pa pt pt_BR ru rw sk sl sq sr@Latn sr sv tr uk vi wa zh_CN zh_HK zh_TW"
 
20564
 
 
20565
case "$am__api_version" in
 
20566
    1.01234)
 
20567
        { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
 
20568
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
 
20569
   { (exit 1); exit 1; }; }
 
20570
    ;;
 
20571
    *)
 
20572
    ;;
 
20573
esac
 
20574
 
 
20575
if test -n "0.27.2"; then
 
20576
    { echo "$as_me:$LINENO: checking for intltool >= 0.27.2" >&5
 
20577
echo $ECHO_N "checking for intltool >= 0.27.2... $ECHO_C" >&6; }
 
20578
 
 
20579
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.27.2 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
20580
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
 
20581
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
 
20582
 
 
20583
    { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
20584
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
 
20585
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
20586
        { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.27.2 or later." >&5
 
20587
echo "$as_me: error: Your intltool is too old.  You need intltool 0.27.2 or later." >&2;}
 
20588
   { (exit 1); exit 1; }; }
 
20589
fi
 
20590
 
 
20591
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20592
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20593
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20594
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20595
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
 
20596
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20597
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20598
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20599
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20600
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20601
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20602
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
 
20603
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20604
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20605
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20606
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20607
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20608
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
20609
 
 
20610
 
 
20611
 
 
20612
 
 
20613
 
 
20614
 
 
20615
 
 
20616
 
 
20617
 
 
20618
 
 
20619
 
 
20620
 
 
20621
 
 
20622
 
 
20623
 
 
20624
 
 
20625
 
 
20626
 
 
20627
 
 
20628
 
 
20629
# Use the tools built into the package, not the ones that are installed.
 
20630
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
 
20631
 
 
20632
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
 
20633
 
 
20634
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
 
20635
 
 
20636
 
 
20637
# Extract the first word of "perl", so it can be a program name with args.
 
20638
set dummy perl; ac_word=$2
 
20639
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20640
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20641
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
 
20642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20643
else
 
20644
  case $INTLTOOL_PERL in
 
20645
  [\\/]* | ?:[\\/]*)
 
20646
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
20647
  ;;
 
20648
  *)
 
20649
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20650
for as_dir in $PATH
 
20651
do
 
20652
  IFS=$as_save_IFS
 
20653
  test -z "$as_dir" && as_dir=.
 
20654
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20655
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20656
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
20657
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20658
    break 2
 
20659
  fi
 
20660
done
 
20661
done
 
20662
IFS=$as_save_IFS
 
20663
 
 
20664
  ;;
 
20665
esac
 
20666
fi
 
20667
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
20668
if test -n "$INTLTOOL_PERL"; then
 
20669
  { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
 
20670
echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
 
20671
else
 
20672
  { echo "$as_me:$LINENO: result: no" >&5
 
20673
echo "${ECHO_T}no" >&6; }
 
20674
fi
 
20675
 
 
20676
 
 
20677
if test -z "$INTLTOOL_PERL"; then
 
20678
   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
 
20679
echo "$as_me: error: perl not found; required for intltool" >&2;}
 
20680
   { (exit 1); exit 1; }; }
 
20681
fi
 
20682
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
20683
   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
 
20684
echo "$as_me: error: perl 5.x required for intltool" >&2;}
 
20685
   { (exit 1); exit 1; }; }
 
20686
fi
 
20687
if test "x" != "xno-xml"; then
 
20688
   { echo "$as_me:$LINENO: checking for XML::Parser" >&5
 
20689
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
 
20690
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
20691
       { echo "$as_me:$LINENO: result: ok" >&5
 
20692
echo "${ECHO_T}ok" >&6; }
 
20693
   else
 
20694
       { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
 
20695
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
 
20696
   { (exit 1); exit 1; }; }
 
20697
   fi
 
20698
fi
 
20699
 
 
20700
# Extract the first word of "iconv", so it can be a program name with args.
 
20701
set dummy iconv; ac_word=$2
 
20702
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20703
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20704
if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
 
20705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20706
else
 
20707
  case $INTLTOOL_ICONV in
 
20708
  [\\/]* | ?:[\\/]*)
 
20709
  ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
 
20710
  ;;
 
20711
  *)
 
20712
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20713
for as_dir in $PATH
 
20714
do
 
20715
  IFS=$as_save_IFS
 
20716
  test -z "$as_dir" && as_dir=.
 
20717
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20718
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20719
    ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
 
20720
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20721
    break 2
 
20722
  fi
 
20723
done
 
20724
done
 
20725
IFS=$as_save_IFS
 
20726
 
 
20727
  test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
 
20728
  ;;
 
20729
esac
 
20730
fi
 
20731
INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
 
20732
if test -n "$INTLTOOL_ICONV"; then
 
20733
  { echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
 
20734
echo "${ECHO_T}$INTLTOOL_ICONV" >&6; }
 
20735
else
 
20736
  { echo "$as_me:$LINENO: result: no" >&5
 
20737
echo "${ECHO_T}no" >&6; }
 
20738
fi
 
20739
 
 
20740
 
 
20741
# Extract the first word of "msgfmt", so it can be a program name with args.
 
20742
set dummy msgfmt; ac_word=$2
 
20743
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20745
if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
 
20746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20747
else
 
20748
  case $INTLTOOL_MSGFMT in
 
20749
  [\\/]* | ?:[\\/]*)
 
20750
  ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
 
20751
  ;;
 
20752
  *)
 
20753
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20754
for as_dir in $PATH
 
20755
do
 
20756
  IFS=$as_save_IFS
 
20757
  test -z "$as_dir" && as_dir=.
 
20758
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20759
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20760
    ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
20761
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20762
    break 2
 
20763
  fi
 
20764
done
 
20765
done
 
20766
IFS=$as_save_IFS
 
20767
 
 
20768
  test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
 
20769
  ;;
 
20770
esac
 
20771
fi
 
20772
INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
 
20773
if test -n "$INTLTOOL_MSGFMT"; then
 
20774
  { echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
 
20775
echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6; }
 
20776
else
 
20777
  { echo "$as_me:$LINENO: result: no" >&5
 
20778
echo "${ECHO_T}no" >&6; }
 
20779
fi
 
20780
 
 
20781
 
 
20782
# Extract the first word of "msgmerge", so it can be a program name with args.
 
20783
set dummy msgmerge; ac_word=$2
 
20784
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20785
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20786
if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
 
20787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20788
else
 
20789
  case $INTLTOOL_MSGMERGE in
 
20790
  [\\/]* | ?:[\\/]*)
 
20791
  ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
 
20792
  ;;
 
20793
  *)
 
20794
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20795
for as_dir in $PATH
 
20796
do
 
20797
  IFS=$as_save_IFS
 
20798
  test -z "$as_dir" && as_dir=.
 
20799
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20800
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20801
    ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
20802
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20803
    break 2
 
20804
  fi
 
20805
done
 
20806
done
 
20807
IFS=$as_save_IFS
 
20808
 
 
20809
  test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
 
20810
  ;;
 
20811
esac
 
20812
fi
 
20813
INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
 
20814
if test -n "$INTLTOOL_MSGMERGE"; then
 
20815
  { echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
 
20816
echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6; }
 
20817
else
 
20818
  { echo "$as_me:$LINENO: result: no" >&5
 
20819
echo "${ECHO_T}no" >&6; }
 
20820
fi
 
20821
 
 
20822
 
 
20823
# Extract the first word of "xgettext", so it can be a program name with args.
 
20824
set dummy xgettext; ac_word=$2
 
20825
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20826
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20827
if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
 
20828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20829
else
 
20830
  case $INTLTOOL_XGETTEXT in
 
20831
  [\\/]* | ?:[\\/]*)
 
20832
  ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
 
20833
  ;;
 
20834
  *)
 
20835
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20836
for as_dir in $PATH
 
20837
do
 
20838
  IFS=$as_save_IFS
 
20839
  test -z "$as_dir" && as_dir=.
 
20840
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20841
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20842
    ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
20843
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20844
    break 2
 
20845
  fi
 
20846
done
 
20847
done
 
20848
IFS=$as_save_IFS
 
20849
 
 
20850
  test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
 
20851
  ;;
 
20852
esac
 
20853
fi
 
20854
INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
 
20855
if test -n "$INTLTOOL_XGETTEXT"; then
 
20856
  { echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
 
20857
echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6; }
 
20858
else
 
20859
  { echo "$as_me:$LINENO: result: no" >&5
 
20860
echo "${ECHO_T}no" >&6; }
 
20861
fi
 
20862
 
 
20863
 
 
20864
 
 
20865
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
20866
 
 
20867
 
 
20868
# Set DATADIRNAME correctly if it is not set yet
 
20869
# (copied from glib-gettext.m4)
 
20870
if test -z "$DATADIRNAME"; then
 
20871
  cat >conftest.$ac_ext <<_ACEOF
 
20872
/* confdefs.h.  */
 
20873
_ACEOF
 
20874
cat confdefs.h >>conftest.$ac_ext
 
20875
cat >>conftest.$ac_ext <<_ACEOF
 
20876
/* end confdefs.h.  */
 
20877
 
 
20878
int
 
20879
main ()
 
20880
{
 
20881
extern int _nl_msg_cat_cntr;
 
20882
                 return _nl_msg_cat_cntr
 
20883
  ;
 
20884
  return 0;
 
20885
}
 
20886
_ACEOF
 
20887
rm -f conftest.$ac_objext conftest$ac_exeext
 
20888
if { (ac_try="$ac_link"
 
20889
case "(($ac_try" in
 
20890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20891
  *) ac_try_echo=$ac_try;;
 
20892
esac
 
20893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20894
  (eval "$ac_link") 2>conftest.er1
 
20895
  ac_status=$?
 
20896
  grep -v '^ *+' conftest.er1 >conftest.err
 
20897
  rm -f conftest.er1
 
20898
  cat conftest.err >&5
 
20899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20900
  (exit $ac_status); } && {
 
20901
         test -z "$ac_c_werror_flag" ||
 
20902
         test ! -s conftest.err
 
20903
       } && test -s conftest$ac_exeext &&
 
20904
       $as_test_x conftest$ac_exeext; then
 
20905
  DATADIRNAME=share
 
20906
else
 
20907
  echo "$as_me: failed program was:" >&5
 
20908
sed 's/^/| /' conftest.$ac_ext >&5
 
20909
 
 
20910
        case $host in
 
20911
    *-*-solaris*)
 
20912
                        { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
20913
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 
20914
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
20915
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20916
else
 
20917
  cat >conftest.$ac_ext <<_ACEOF
 
20918
/* confdefs.h.  */
 
20919
_ACEOF
 
20920
cat confdefs.h >>conftest.$ac_ext
 
20921
cat >>conftest.$ac_ext <<_ACEOF
 
20922
/* end confdefs.h.  */
 
20923
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
20924
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20925
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
20926
 
 
20927
/* System header to define __stub macros and hopefully few prototypes,
 
20928
    which can conflict with char bind_textdomain_codeset (); below.
 
20929
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20930
    <limits.h> exists even on freestanding compilers.  */
 
20931
 
 
20932
#ifdef __STDC__
 
20933
# include <limits.h>
 
20934
#else
 
20935
# include <assert.h>
 
20936
#endif
 
20937
 
 
20938
#undef bind_textdomain_codeset
 
20939
 
 
20940
/* Override any GCC internal prototype to avoid an error.
 
20941
   Use char because int might match the return type of a GCC
 
20942
   builtin and then its argument prototype would still apply.  */
 
20943
#ifdef __cplusplus
 
20944
extern "C"
 
20945
#endif
 
20946
char bind_textdomain_codeset ();
 
20947
/* The GNU C library defines this for functions which it implements
 
20948
    to always fail with ENOSYS.  Some functions are actually named
 
20949
    something starting with __ and the normal name is an alias.  */
 
20950
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 
20951
choke me
 
20952
#endif
 
20953
 
 
20954
int
 
20955
main ()
 
20956
{
 
20957
return bind_textdomain_codeset ();
 
20958
  ;
 
20959
  return 0;
 
20960
}
 
20961
_ACEOF
 
20962
rm -f conftest.$ac_objext conftest$ac_exeext
 
20963
if { (ac_try="$ac_link"
 
20964
case "(($ac_try" in
 
20965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20966
  *) ac_try_echo=$ac_try;;
 
20967
esac
 
20968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20969
  (eval "$ac_link") 2>conftest.er1
 
20970
  ac_status=$?
 
20971
  grep -v '^ *+' conftest.er1 >conftest.err
 
20972
  rm -f conftest.er1
 
20973
  cat conftest.err >&5
 
20974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20975
  (exit $ac_status); } && {
 
20976
         test -z "$ac_c_werror_flag" ||
 
20977
         test ! -s conftest.err
 
20978
       } && test -s conftest$ac_exeext &&
 
20979
       $as_test_x conftest$ac_exeext; then
 
20980
  ac_cv_func_bind_textdomain_codeset=yes
 
20981
else
 
20982
  echo "$as_me: failed program was:" >&5
 
20983
sed 's/^/| /' conftest.$ac_ext >&5
 
20984
 
 
20985
        ac_cv_func_bind_textdomain_codeset=no
 
20986
fi
 
20987
 
 
20988
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20989
      conftest$ac_exeext conftest.$ac_ext
 
20990
fi
 
20991
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
20992
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 
20993
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
20994
  DATADIRNAME=share
 
20995
else
 
20996
  DATADIRNAME=lib
 
20997
fi
 
20998
 
 
20999
    ;;
 
21000
    *)
 
21001
    DATADIRNAME=lib
 
21002
    ;;
 
21003
    esac
 
21004
fi
 
21005
 
 
21006
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21007
      conftest$ac_exeext conftest.$ac_ext
 
21008
fi
 
21009
 
 
21010
 
 
21011
 
 
21012
 
 
21013
 
 
21014
ac_config_commands="$ac_config_commands intltool"
 
21015
 
 
21016
 
 
21017
 
 
21018
 
 
21019
 
 
21020
for ac_header in locale.h
 
21021
do
 
21022
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21023
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21024
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21025
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21026
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21028
fi
 
21029
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21030
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21031
echo "${ECHO_T}$ac_res" >&6; }
 
21032
else
 
21033
  # Is the header compilable?
 
21034
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21035
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21036
cat >conftest.$ac_ext <<_ACEOF
 
21037
/* confdefs.h.  */
 
21038
_ACEOF
 
21039
cat confdefs.h >>conftest.$ac_ext
 
21040
cat >>conftest.$ac_ext <<_ACEOF
 
21041
/* end confdefs.h.  */
 
21042
$ac_includes_default
 
21043
#include <$ac_header>
 
21044
_ACEOF
 
21045
rm -f conftest.$ac_objext
 
21046
if { (ac_try="$ac_compile"
 
21047
case "(($ac_try" in
 
21048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21049
  *) ac_try_echo=$ac_try;;
 
21050
esac
 
21051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21052
  (eval "$ac_compile") 2>conftest.er1
 
21053
  ac_status=$?
 
21054
  grep -v '^ *+' conftest.er1 >conftest.err
 
21055
  rm -f conftest.er1
 
21056
  cat conftest.err >&5
 
21057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21058
  (exit $ac_status); } && {
 
21059
         test -z "$ac_c_werror_flag" ||
 
21060
         test ! -s conftest.err
 
21061
       } && test -s conftest.$ac_objext; then
 
21062
  ac_header_compiler=yes
 
21063
else
 
21064
  echo "$as_me: failed program was:" >&5
 
21065
sed 's/^/| /' conftest.$ac_ext >&5
 
21066
 
 
21067
        ac_header_compiler=no
 
21068
fi
 
21069
 
 
21070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21071
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21072
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21073
 
 
21074
# Is the header present?
 
21075
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21076
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21077
cat >conftest.$ac_ext <<_ACEOF
 
21078
/* confdefs.h.  */
 
21079
_ACEOF
 
21080
cat confdefs.h >>conftest.$ac_ext
 
21081
cat >>conftest.$ac_ext <<_ACEOF
 
21082
/* end confdefs.h.  */
 
21083
#include <$ac_header>
 
21084
_ACEOF
 
21085
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21086
case "(($ac_try" in
 
21087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21088
  *) ac_try_echo=$ac_try;;
 
21089
esac
 
21090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21091
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21092
  ac_status=$?
 
21093
  grep -v '^ *+' conftest.er1 >conftest.err
 
21094
  rm -f conftest.er1
 
21095
  cat conftest.err >&5
 
21096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21097
  (exit $ac_status); } >/dev/null && {
 
21098
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21099
         test ! -s conftest.err
 
21100
       }; then
 
21101
  ac_header_preproc=yes
 
21102
else
 
21103
  echo "$as_me: failed program was:" >&5
 
21104
sed 's/^/| /' conftest.$ac_ext >&5
 
21105
 
 
21106
  ac_header_preproc=no
 
21107
fi
 
21108
 
 
21109
rm -f conftest.err conftest.$ac_ext
 
21110
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21111
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21112
 
 
21113
# So?  What about this header?
 
21114
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21115
  yes:no: )
 
21116
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21117
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21118
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21119
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21120
    ac_header_preproc=yes
 
21121
    ;;
 
21122
  no:yes:* )
 
21123
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21124
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21125
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21126
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21127
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21128
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21129
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21130
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21131
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21132
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21133
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21134
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21135
    ( cat <<\_ASBOX
 
21136
## ------------------------------ ##
 
21137
## Report this to dcbw@redhat.com ##
 
21138
## ------------------------------ ##
 
21139
_ASBOX
 
21140
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21141
    ;;
 
21142
esac
 
21143
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21144
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21145
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21147
else
 
21148
  eval "$as_ac_Header=\$ac_header_preproc"
 
21149
fi
 
21150
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21151
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21152
echo "${ECHO_T}$ac_res" >&6; }
 
21153
 
 
21154
fi
 
21155
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21156
  cat >>confdefs.h <<_ACEOF
 
21157
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21158
_ACEOF
 
21159
 
 
21160
fi
 
21161
 
 
21162
done
 
21163
 
 
21164
    if test $ac_cv_header_locale_h = yes; then
 
21165
    { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
21166
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 
21167
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
21168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21169
else
 
21170
  cat >conftest.$ac_ext <<_ACEOF
 
21171
/* confdefs.h.  */
 
21172
_ACEOF
 
21173
cat confdefs.h >>conftest.$ac_ext
 
21174
cat >>conftest.$ac_ext <<_ACEOF
 
21175
/* end confdefs.h.  */
 
21176
#include <locale.h>
 
21177
int
 
21178
main ()
 
21179
{
 
21180
return LC_MESSAGES
 
21181
  ;
 
21182
  return 0;
 
21183
}
 
21184
_ACEOF
 
21185
rm -f conftest.$ac_objext conftest$ac_exeext
 
21186
if { (ac_try="$ac_link"
 
21187
case "(($ac_try" in
 
21188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21189
  *) ac_try_echo=$ac_try;;
 
21190
esac
 
21191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21192
  (eval "$ac_link") 2>conftest.er1
 
21193
  ac_status=$?
 
21194
  grep -v '^ *+' conftest.er1 >conftest.err
 
21195
  rm -f conftest.er1
 
21196
  cat conftest.err >&5
 
21197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21198
  (exit $ac_status); } && {
 
21199
         test -z "$ac_c_werror_flag" ||
 
21200
         test ! -s conftest.err
 
21201
       } && test -s conftest$ac_exeext &&
 
21202
       $as_test_x conftest$ac_exeext; then
 
21203
  am_cv_val_LC_MESSAGES=yes
 
21204
else
 
21205
  echo "$as_me: failed program was:" >&5
 
21206
sed 's/^/| /' conftest.$ac_ext >&5
 
21207
 
 
21208
        am_cv_val_LC_MESSAGES=no
 
21209
fi
 
21210
 
 
21211
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21212
      conftest$ac_exeext conftest.$ac_ext
 
21213
fi
 
21214
{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
21215
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 
21216
    if test $am_cv_val_LC_MESSAGES = yes; then
 
21217
 
 
21218
cat >>confdefs.h <<\_ACEOF
 
21219
#define HAVE_LC_MESSAGES 1
 
21220
_ACEOF
 
21221
 
 
21222
    fi
 
21223
  fi
 
21224
         USE_NLS=yes
 
21225
 
 
21226
 
 
21227
    gt_cv_have_gettext=no
 
21228
 
 
21229
    CATOBJEXT=NONE
 
21230
    XGETTEXT=:
 
21231
    INTLLIBS=
 
21232
 
 
21233
    if test "${ac_cv_header_libintl_h+set}" = set; then
 
21234
  { echo "$as_me:$LINENO: checking for libintl.h" >&5
 
21235
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
21236
if test "${ac_cv_header_libintl_h+set}" = set; then
 
21237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21238
fi
 
21239
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
21240
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
21241
else
 
21242
  # Is the header compilable?
 
21243
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
21244
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 
21245
cat >conftest.$ac_ext <<_ACEOF
 
21246
/* confdefs.h.  */
 
21247
_ACEOF
 
21248
cat confdefs.h >>conftest.$ac_ext
 
21249
cat >>conftest.$ac_ext <<_ACEOF
 
21250
/* end confdefs.h.  */
 
21251
$ac_includes_default
 
21252
#include <libintl.h>
 
21253
_ACEOF
 
21254
rm -f conftest.$ac_objext
 
21255
if { (ac_try="$ac_compile"
 
21256
case "(($ac_try" in
 
21257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21258
  *) ac_try_echo=$ac_try;;
 
21259
esac
 
21260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21261
  (eval "$ac_compile") 2>conftest.er1
 
21262
  ac_status=$?
 
21263
  grep -v '^ *+' conftest.er1 >conftest.err
 
21264
  rm -f conftest.er1
 
21265
  cat conftest.err >&5
 
21266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21267
  (exit $ac_status); } && {
 
21268
         test -z "$ac_c_werror_flag" ||
 
21269
         test ! -s conftest.err
 
21270
       } && test -s conftest.$ac_objext; then
 
21271
  ac_header_compiler=yes
 
21272
else
 
21273
  echo "$as_me: failed program was:" >&5
 
21274
sed 's/^/| /' conftest.$ac_ext >&5
 
21275
 
 
21276
        ac_header_compiler=no
 
21277
fi
 
21278
 
 
21279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21280
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21281
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21282
 
 
21283
# Is the header present?
 
21284
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
21285
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 
21286
cat >conftest.$ac_ext <<_ACEOF
 
21287
/* confdefs.h.  */
 
21288
_ACEOF
 
21289
cat confdefs.h >>conftest.$ac_ext
 
21290
cat >>conftest.$ac_ext <<_ACEOF
 
21291
/* end confdefs.h.  */
 
21292
#include <libintl.h>
 
21293
_ACEOF
 
21294
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21295
case "(($ac_try" in
 
21296
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21297
  *) ac_try_echo=$ac_try;;
 
21298
esac
 
21299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21300
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21301
  ac_status=$?
 
21302
  grep -v '^ *+' conftest.er1 >conftest.err
 
21303
  rm -f conftest.er1
 
21304
  cat conftest.err >&5
 
21305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21306
  (exit $ac_status); } >/dev/null && {
 
21307
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21308
         test ! -s conftest.err
 
21309
       }; then
 
21310
  ac_header_preproc=yes
 
21311
else
 
21312
  echo "$as_me: failed program was:" >&5
 
21313
sed 's/^/| /' conftest.$ac_ext >&5
 
21314
 
 
21315
  ac_header_preproc=no
 
21316
fi
 
21317
 
 
21318
rm -f conftest.err conftest.$ac_ext
 
21319
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21320
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21321
 
 
21322
# So?  What about this header?
 
21323
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21324
  yes:no: )
 
21325
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21326
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21327
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
21328
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
21329
    ac_header_preproc=yes
 
21330
    ;;
 
21331
  no:yes:* )
 
21332
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
21333
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
21334
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
21335
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
21336
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
21337
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
21338
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21339
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21340
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
21341
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
21342
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
21343
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
21344
    ( cat <<\_ASBOX
 
21345
## ------------------------------ ##
 
21346
## Report this to dcbw@redhat.com ##
 
21347
## ------------------------------ ##
 
21348
_ASBOX
 
21349
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21350
    ;;
 
21351
esac
 
21352
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
 
21353
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
21354
if test "${ac_cv_header_libintl_h+set}" = set; then
 
21355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21356
else
 
21357
  ac_cv_header_libintl_h=$ac_header_preproc
 
21358
fi
 
21359
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
21360
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
21361
 
 
21362
fi
 
21363
if test $ac_cv_header_libintl_h = yes; then
 
21364
  gt_cv_func_dgettext_libintl="no"
 
21365
      libintl_extra_libs=""
 
21366
 
 
21367
      #
 
21368
      # First check in libc
 
21369
      #
 
21370
      { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 
21371
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 
21372
if test "${gt_cv_func_ngettext_libc+set}" = set; then
 
21373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21374
else
 
21375
  cat >conftest.$ac_ext <<_ACEOF
 
21376
/* confdefs.h.  */
 
21377
_ACEOF
 
21378
cat confdefs.h >>conftest.$ac_ext
 
21379
cat >>conftest.$ac_ext <<_ACEOF
 
21380
/* end confdefs.h.  */
 
21381
 
 
21382
#include <libintl.h>
 
21383
 
 
21384
int
 
21385
main ()
 
21386
{
 
21387
return !ngettext ("","", 1)
 
21388
  ;
 
21389
  return 0;
 
21390
}
 
21391
_ACEOF
 
21392
rm -f conftest.$ac_objext conftest$ac_exeext
 
21393
if { (ac_try="$ac_link"
 
21394
case "(($ac_try" in
 
21395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21396
  *) ac_try_echo=$ac_try;;
 
21397
esac
 
21398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21399
  (eval "$ac_link") 2>conftest.er1
 
21400
  ac_status=$?
 
21401
  grep -v '^ *+' conftest.er1 >conftest.err
 
21402
  rm -f conftest.er1
 
21403
  cat conftest.err >&5
 
21404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21405
  (exit $ac_status); } && {
 
21406
         test -z "$ac_c_werror_flag" ||
 
21407
         test ! -s conftest.err
 
21408
       } && test -s conftest$ac_exeext &&
 
21409
       $as_test_x conftest$ac_exeext; then
 
21410
  gt_cv_func_ngettext_libc=yes
 
21411
else
 
21412
  echo "$as_me: failed program was:" >&5
 
21413
sed 's/^/| /' conftest.$ac_ext >&5
 
21414
 
 
21415
        gt_cv_func_ngettext_libc=no
 
21416
fi
 
21417
 
 
21418
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21419
      conftest$ac_exeext conftest.$ac_ext
 
21420
 
 
21421
fi
 
21422
{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 
21423
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 
21424
 
 
21425
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
21426
              { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 
21427
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 
21428
if test "${gt_cv_func_dgettext_libc+set}" = set; then
 
21429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21430
else
 
21431
  cat >conftest.$ac_ext <<_ACEOF
 
21432
/* confdefs.h.  */
 
21433
_ACEOF
 
21434
cat confdefs.h >>conftest.$ac_ext
 
21435
cat >>conftest.$ac_ext <<_ACEOF
 
21436
/* end confdefs.h.  */
 
21437
 
 
21438
#include <libintl.h>
 
21439
 
 
21440
int
 
21441
main ()
 
21442
{
 
21443
return !dgettext ("","")
 
21444
  ;
 
21445
  return 0;
 
21446
}
 
21447
_ACEOF
 
21448
rm -f conftest.$ac_objext conftest$ac_exeext
 
21449
if { (ac_try="$ac_link"
 
21450
case "(($ac_try" in
 
21451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21452
  *) ac_try_echo=$ac_try;;
 
21453
esac
 
21454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21455
  (eval "$ac_link") 2>conftest.er1
 
21456
  ac_status=$?
 
21457
  grep -v '^ *+' conftest.er1 >conftest.err
 
21458
  rm -f conftest.er1
 
21459
  cat conftest.err >&5
 
21460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21461
  (exit $ac_status); } && {
 
21462
         test -z "$ac_c_werror_flag" ||
 
21463
         test ! -s conftest.err
 
21464
       } && test -s conftest$ac_exeext &&
 
21465
       $as_test_x conftest$ac_exeext; then
 
21466
  gt_cv_func_dgettext_libc=yes
 
21467
else
 
21468
  echo "$as_me: failed program was:" >&5
 
21469
sed 's/^/| /' conftest.$ac_ext >&5
 
21470
 
 
21471
        gt_cv_func_dgettext_libc=no
 
21472
fi
 
21473
 
 
21474
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21475
      conftest$ac_exeext conftest.$ac_ext
 
21476
 
 
21477
fi
 
21478
{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 
21479
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 
21480
      fi
 
21481
 
 
21482
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
21483
 
 
21484
for ac_func in bind_textdomain_codeset
 
21485
do
 
21486
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21487
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21488
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21489
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21491
else
 
21492
  cat >conftest.$ac_ext <<_ACEOF
 
21493
/* confdefs.h.  */
 
21494
_ACEOF
 
21495
cat confdefs.h >>conftest.$ac_ext
 
21496
cat >>conftest.$ac_ext <<_ACEOF
 
21497
/* end confdefs.h.  */
 
21498
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21499
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21500
#define $ac_func innocuous_$ac_func
 
21501
 
 
21502
/* System header to define __stub macros and hopefully few prototypes,
 
21503
    which can conflict with char $ac_func (); below.
 
21504
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21505
    <limits.h> exists even on freestanding compilers.  */
 
21506
 
 
21507
#ifdef __STDC__
 
21508
# include <limits.h>
 
21509
#else
 
21510
# include <assert.h>
 
21511
#endif
 
21512
 
 
21513
#undef $ac_func
 
21514
 
 
21515
/* Override any GCC internal prototype to avoid an error.
 
21516
   Use char because int might match the return type of a GCC
 
21517
   builtin and then its argument prototype would still apply.  */
 
21518
#ifdef __cplusplus
 
21519
extern "C"
 
21520
#endif
 
21521
char $ac_func ();
 
21522
/* The GNU C library defines this for functions which it implements
 
21523
    to always fail with ENOSYS.  Some functions are actually named
 
21524
    something starting with __ and the normal name is an alias.  */
 
21525
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21526
choke me
 
21527
#endif
 
21528
 
 
21529
int
 
21530
main ()
 
21531
{
 
21532
return $ac_func ();
 
21533
  ;
 
21534
  return 0;
 
21535
}
 
21536
_ACEOF
 
21537
rm -f conftest.$ac_objext conftest$ac_exeext
 
21538
if { (ac_try="$ac_link"
 
21539
case "(($ac_try" in
 
21540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21541
  *) ac_try_echo=$ac_try;;
 
21542
esac
 
21543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21544
  (eval "$ac_link") 2>conftest.er1
 
21545
  ac_status=$?
 
21546
  grep -v '^ *+' conftest.er1 >conftest.err
 
21547
  rm -f conftest.er1
 
21548
  cat conftest.err >&5
 
21549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21550
  (exit $ac_status); } && {
 
21551
         test -z "$ac_c_werror_flag" ||
 
21552
         test ! -s conftest.err
 
21553
       } && test -s conftest$ac_exeext &&
 
21554
       $as_test_x conftest$ac_exeext; then
 
21555
  eval "$as_ac_var=yes"
 
21556
else
 
21557
  echo "$as_me: failed program was:" >&5
 
21558
sed 's/^/| /' conftest.$ac_ext >&5
 
21559
 
 
21560
        eval "$as_ac_var=no"
 
21561
fi
 
21562
 
 
21563
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21564
      conftest$ac_exeext conftest.$ac_ext
 
21565
fi
 
21566
ac_res=`eval echo '${'$as_ac_var'}'`
 
21567
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21568
echo "${ECHO_T}$ac_res" >&6; }
 
21569
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21570
  cat >>confdefs.h <<_ACEOF
 
21571
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21572
_ACEOF
 
21573
 
 
21574
fi
 
21575
done
 
21576
 
 
21577
      fi
 
21578
 
 
21579
      #
 
21580
      # If we don't have everything we want, check in libintl
 
21581
      #
 
21582
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
21583
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
21584
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
21585
 
 
21586
        { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 
21587
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 
21588
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 
21589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21590
else
 
21591
  ac_check_lib_save_LIBS=$LIBS
 
21592
LIBS="-lintl  $LIBS"
 
21593
cat >conftest.$ac_ext <<_ACEOF
 
21594
/* confdefs.h.  */
 
21595
_ACEOF
 
21596
cat confdefs.h >>conftest.$ac_ext
 
21597
cat >>conftest.$ac_ext <<_ACEOF
 
21598
/* end confdefs.h.  */
 
21599
 
 
21600
/* Override any GCC internal prototype to avoid an error.
 
21601
   Use char because int might match the return type of a GCC
 
21602
   builtin and then its argument prototype would still apply.  */
 
21603
#ifdef __cplusplus
 
21604
extern "C"
 
21605
#endif
 
21606
char bindtextdomain ();
 
21607
int
 
21608
main ()
 
21609
{
 
21610
return bindtextdomain ();
 
21611
  ;
 
21612
  return 0;
 
21613
}
 
21614
_ACEOF
 
21615
rm -f conftest.$ac_objext conftest$ac_exeext
 
21616
if { (ac_try="$ac_link"
 
21617
case "(($ac_try" in
 
21618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21619
  *) ac_try_echo=$ac_try;;
 
21620
esac
 
21621
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21622
  (eval "$ac_link") 2>conftest.er1
 
21623
  ac_status=$?
 
21624
  grep -v '^ *+' conftest.er1 >conftest.err
 
21625
  rm -f conftest.er1
 
21626
  cat conftest.err >&5
 
21627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21628
  (exit $ac_status); } && {
 
21629
         test -z "$ac_c_werror_flag" ||
 
21630
         test ! -s conftest.err
 
21631
       } && test -s conftest$ac_exeext &&
 
21632
       $as_test_x conftest$ac_exeext; then
 
21633
  ac_cv_lib_intl_bindtextdomain=yes
 
21634
else
 
21635
  echo "$as_me: failed program was:" >&5
 
21636
sed 's/^/| /' conftest.$ac_ext >&5
 
21637
 
 
21638
        ac_cv_lib_intl_bindtextdomain=no
 
21639
fi
 
21640
 
 
21641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21642
      conftest$ac_exeext conftest.$ac_ext
 
21643
LIBS=$ac_check_lib_save_LIBS
 
21644
fi
 
21645
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
21646
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 
21647
if test $ac_cv_lib_intl_bindtextdomain = yes; then
 
21648
  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
21649
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 
21650
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
21651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21652
else
 
21653
  ac_check_lib_save_LIBS=$LIBS
 
21654
LIBS="-lintl  $LIBS"
 
21655
cat >conftest.$ac_ext <<_ACEOF
 
21656
/* confdefs.h.  */
 
21657
_ACEOF
 
21658
cat confdefs.h >>conftest.$ac_ext
 
21659
cat >>conftest.$ac_ext <<_ACEOF
 
21660
/* end confdefs.h.  */
 
21661
 
 
21662
/* Override any GCC internal prototype to avoid an error.
 
21663
   Use char because int might match the return type of a GCC
 
21664
   builtin and then its argument prototype would still apply.  */
 
21665
#ifdef __cplusplus
 
21666
extern "C"
 
21667
#endif
 
21668
char ngettext ();
 
21669
int
 
21670
main ()
 
21671
{
 
21672
return ngettext ();
 
21673
  ;
 
21674
  return 0;
 
21675
}
 
21676
_ACEOF
 
21677
rm -f conftest.$ac_objext conftest$ac_exeext
 
21678
if { (ac_try="$ac_link"
 
21679
case "(($ac_try" in
 
21680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21681
  *) ac_try_echo=$ac_try;;
 
21682
esac
 
21683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21684
  (eval "$ac_link") 2>conftest.er1
 
21685
  ac_status=$?
 
21686
  grep -v '^ *+' conftest.er1 >conftest.err
 
21687
  rm -f conftest.er1
 
21688
  cat conftest.err >&5
 
21689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21690
  (exit $ac_status); } && {
 
21691
         test -z "$ac_c_werror_flag" ||
 
21692
         test ! -s conftest.err
 
21693
       } && test -s conftest$ac_exeext &&
 
21694
       $as_test_x conftest$ac_exeext; then
 
21695
  ac_cv_lib_intl_ngettext=yes
 
21696
else
 
21697
  echo "$as_me: failed program was:" >&5
 
21698
sed 's/^/| /' conftest.$ac_ext >&5
 
21699
 
 
21700
        ac_cv_lib_intl_ngettext=no
 
21701
fi
 
21702
 
 
21703
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21704
      conftest$ac_exeext conftest.$ac_ext
 
21705
LIBS=$ac_check_lib_save_LIBS
 
21706
fi
 
21707
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
21708
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 
21709
if test $ac_cv_lib_intl_ngettext = yes; then
 
21710
  { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 
21711
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 
21712
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 
21713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21714
else
 
21715
  ac_check_lib_save_LIBS=$LIBS
 
21716
LIBS="-lintl  $LIBS"
 
21717
cat >conftest.$ac_ext <<_ACEOF
 
21718
/* confdefs.h.  */
 
21719
_ACEOF
 
21720
cat confdefs.h >>conftest.$ac_ext
 
21721
cat >>conftest.$ac_ext <<_ACEOF
 
21722
/* end confdefs.h.  */
 
21723
 
 
21724
/* Override any GCC internal prototype to avoid an error.
 
21725
   Use char because int might match the return type of a GCC
 
21726
   builtin and then its argument prototype would still apply.  */
 
21727
#ifdef __cplusplus
 
21728
extern "C"
 
21729
#endif
 
21730
char dgettext ();
 
21731
int
 
21732
main ()
 
21733
{
 
21734
return dgettext ();
 
21735
  ;
 
21736
  return 0;
 
21737
}
 
21738
_ACEOF
 
21739
rm -f conftest.$ac_objext conftest$ac_exeext
 
21740
if { (ac_try="$ac_link"
 
21741
case "(($ac_try" in
 
21742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21743
  *) ac_try_echo=$ac_try;;
 
21744
esac
 
21745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21746
  (eval "$ac_link") 2>conftest.er1
 
21747
  ac_status=$?
 
21748
  grep -v '^ *+' conftest.er1 >conftest.err
 
21749
  rm -f conftest.er1
 
21750
  cat conftest.err >&5
 
21751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21752
  (exit $ac_status); } && {
 
21753
         test -z "$ac_c_werror_flag" ||
 
21754
         test ! -s conftest.err
 
21755
       } && test -s conftest$ac_exeext &&
 
21756
       $as_test_x conftest$ac_exeext; then
 
21757
  ac_cv_lib_intl_dgettext=yes
 
21758
else
 
21759
  echo "$as_me: failed program was:" >&5
 
21760
sed 's/^/| /' conftest.$ac_ext >&5
 
21761
 
 
21762
        ac_cv_lib_intl_dgettext=no
 
21763
fi
 
21764
 
 
21765
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21766
      conftest$ac_exeext conftest.$ac_ext
 
21767
LIBS=$ac_check_lib_save_LIBS
 
21768
fi
 
21769
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 
21770
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 
21771
if test $ac_cv_lib_intl_dgettext = yes; then
 
21772
  gt_cv_func_dgettext_libintl=yes
 
21773
fi
 
21774
 
 
21775
fi
 
21776
 
 
21777
fi
 
21778
 
 
21779
 
 
21780
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
21781
          { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 
21782
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 
21783
          { echo "$as_me:$LINENO: result: " >&5
 
21784
echo "${ECHO_T}" >&6; }
 
21785
          { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
21786
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 
21787
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
21788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21789
else
 
21790
  ac_check_lib_save_LIBS=$LIBS
 
21791
LIBS="-lintl -liconv $LIBS"
 
21792
cat >conftest.$ac_ext <<_ACEOF
 
21793
/* confdefs.h.  */
 
21794
_ACEOF
 
21795
cat confdefs.h >>conftest.$ac_ext
 
21796
cat >>conftest.$ac_ext <<_ACEOF
 
21797
/* end confdefs.h.  */
 
21798
 
 
21799
/* Override any GCC internal prototype to avoid an error.
 
21800
   Use char because int might match the return type of a GCC
 
21801
   builtin and then its argument prototype would still apply.  */
 
21802
#ifdef __cplusplus
 
21803
extern "C"
 
21804
#endif
 
21805
char ngettext ();
 
21806
int
 
21807
main ()
 
21808
{
 
21809
return ngettext ();
 
21810
  ;
 
21811
  return 0;
 
21812
}
 
21813
_ACEOF
 
21814
rm -f conftest.$ac_objext conftest$ac_exeext
 
21815
if { (ac_try="$ac_link"
 
21816
case "(($ac_try" in
 
21817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21818
  *) ac_try_echo=$ac_try;;
 
21819
esac
 
21820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21821
  (eval "$ac_link") 2>conftest.er1
 
21822
  ac_status=$?
 
21823
  grep -v '^ *+' conftest.er1 >conftest.err
 
21824
  rm -f conftest.er1
 
21825
  cat conftest.err >&5
 
21826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21827
  (exit $ac_status); } && {
 
21828
         test -z "$ac_c_werror_flag" ||
 
21829
         test ! -s conftest.err
 
21830
       } && test -s conftest$ac_exeext &&
 
21831
       $as_test_x conftest$ac_exeext; then
 
21832
  ac_cv_lib_intl_ngettext=yes
 
21833
else
 
21834
  echo "$as_me: failed program was:" >&5
 
21835
sed 's/^/| /' conftest.$ac_ext >&5
 
21836
 
 
21837
        ac_cv_lib_intl_ngettext=no
 
21838
fi
 
21839
 
 
21840
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21841
      conftest$ac_exeext conftest.$ac_ext
 
21842
LIBS=$ac_check_lib_save_LIBS
 
21843
fi
 
21844
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
21845
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 
21846
if test $ac_cv_lib_intl_ngettext = yes; then
 
21847
  { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 
21848
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 
21849
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 
21850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21851
else
 
21852
  ac_check_lib_save_LIBS=$LIBS
 
21853
LIBS="-lintl -liconv $LIBS"
 
21854
cat >conftest.$ac_ext <<_ACEOF
 
21855
/* confdefs.h.  */
 
21856
_ACEOF
 
21857
cat confdefs.h >>conftest.$ac_ext
 
21858
cat >>conftest.$ac_ext <<_ACEOF
 
21859
/* end confdefs.h.  */
 
21860
 
 
21861
/* Override any GCC internal prototype to avoid an error.
 
21862
   Use char because int might match the return type of a GCC
 
21863
   builtin and then its argument prototype would still apply.  */
 
21864
#ifdef __cplusplus
 
21865
extern "C"
 
21866
#endif
 
21867
char dcgettext ();
 
21868
int
 
21869
main ()
 
21870
{
 
21871
return dcgettext ();
 
21872
  ;
 
21873
  return 0;
 
21874
}
 
21875
_ACEOF
 
21876
rm -f conftest.$ac_objext conftest$ac_exeext
 
21877
if { (ac_try="$ac_link"
 
21878
case "(($ac_try" in
 
21879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21880
  *) ac_try_echo=$ac_try;;
 
21881
esac
 
21882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21883
  (eval "$ac_link") 2>conftest.er1
 
21884
  ac_status=$?
 
21885
  grep -v '^ *+' conftest.er1 >conftest.err
 
21886
  rm -f conftest.er1
 
21887
  cat conftest.err >&5
 
21888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21889
  (exit $ac_status); } && {
 
21890
         test -z "$ac_c_werror_flag" ||
 
21891
         test ! -s conftest.err
 
21892
       } && test -s conftest$ac_exeext &&
 
21893
       $as_test_x conftest$ac_exeext; then
 
21894
  ac_cv_lib_intl_dcgettext=yes
 
21895
else
 
21896
  echo "$as_me: failed program was:" >&5
 
21897
sed 's/^/| /' conftest.$ac_ext >&5
 
21898
 
 
21899
        ac_cv_lib_intl_dcgettext=no
 
21900
fi
 
21901
 
 
21902
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21903
      conftest$ac_exeext conftest.$ac_ext
 
21904
LIBS=$ac_check_lib_save_LIBS
 
21905
fi
 
21906
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 
21907
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 
21908
if test $ac_cv_lib_intl_dcgettext = yes; then
 
21909
  gt_cv_func_dgettext_libintl=yes
 
21910
                        libintl_extra_libs=-liconv
 
21911
else
 
21912
  :
 
21913
fi
 
21914
 
 
21915
else
 
21916
  :
 
21917
fi
 
21918
 
 
21919
        fi
 
21920
 
 
21921
        #
 
21922
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
21923
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
21924
        # and both have dgettext and ngettext
 
21925
        #
 
21926
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
21927
          glib_save_LIBS="$LIBS"
 
21928
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
21929
          unset ac_cv_func_bind_textdomain_codeset
 
21930
 
 
21931
for ac_func in bind_textdomain_codeset
 
21932
do
 
21933
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21934
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21935
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21936
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21938
else
 
21939
  cat >conftest.$ac_ext <<_ACEOF
 
21940
/* confdefs.h.  */
 
21941
_ACEOF
 
21942
cat confdefs.h >>conftest.$ac_ext
 
21943
cat >>conftest.$ac_ext <<_ACEOF
 
21944
/* end confdefs.h.  */
 
21945
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21946
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21947
#define $ac_func innocuous_$ac_func
 
21948
 
 
21949
/* System header to define __stub macros and hopefully few prototypes,
 
21950
    which can conflict with char $ac_func (); below.
 
21951
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21952
    <limits.h> exists even on freestanding compilers.  */
 
21953
 
 
21954
#ifdef __STDC__
 
21955
# include <limits.h>
 
21956
#else
 
21957
# include <assert.h>
 
21958
#endif
 
21959
 
 
21960
#undef $ac_func
 
21961
 
 
21962
/* Override any GCC internal prototype to avoid an error.
 
21963
   Use char because int might match the return type of a GCC
 
21964
   builtin and then its argument prototype would still apply.  */
 
21965
#ifdef __cplusplus
 
21966
extern "C"
 
21967
#endif
 
21968
char $ac_func ();
 
21969
/* The GNU C library defines this for functions which it implements
 
21970
    to always fail with ENOSYS.  Some functions are actually named
 
21971
    something starting with __ and the normal name is an alias.  */
 
21972
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21973
choke me
 
21974
#endif
 
21975
 
 
21976
int
 
21977
main ()
 
21978
{
 
21979
return $ac_func ();
 
21980
  ;
 
21981
  return 0;
 
21982
}
 
21983
_ACEOF
 
21984
rm -f conftest.$ac_objext conftest$ac_exeext
 
21985
if { (ac_try="$ac_link"
 
21986
case "(($ac_try" in
 
21987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21988
  *) ac_try_echo=$ac_try;;
 
21989
esac
 
21990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21991
  (eval "$ac_link") 2>conftest.er1
 
21992
  ac_status=$?
 
21993
  grep -v '^ *+' conftest.er1 >conftest.err
 
21994
  rm -f conftest.er1
 
21995
  cat conftest.err >&5
 
21996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21997
  (exit $ac_status); } && {
 
21998
         test -z "$ac_c_werror_flag" ||
 
21999
         test ! -s conftest.err
 
22000
       } && test -s conftest$ac_exeext &&
 
22001
       $as_test_x conftest$ac_exeext; then
 
22002
  eval "$as_ac_var=yes"
 
22003
else
 
22004
  echo "$as_me: failed program was:" >&5
 
22005
sed 's/^/| /' conftest.$ac_ext >&5
 
22006
 
 
22007
        eval "$as_ac_var=no"
 
22008
fi
 
22009
 
 
22010
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22011
      conftest$ac_exeext conftest.$ac_ext
 
22012
fi
 
22013
ac_res=`eval echo '${'$as_ac_var'}'`
 
22014
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22015
echo "${ECHO_T}$ac_res" >&6; }
 
22016
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22017
  cat >>confdefs.h <<_ACEOF
 
22018
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22019
_ACEOF
 
22020
 
 
22021
fi
 
22022
done
 
22023
 
 
22024
          LIBS="$glib_save_LIBS"
 
22025
 
 
22026
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
22027
            gt_cv_func_dgettext_libc=no
 
22028
          else
 
22029
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
22030
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
22031
              gt_cv_func_dgettext_libintl=no
 
22032
            fi
 
22033
          fi
 
22034
        fi
 
22035
      fi
 
22036
 
 
22037
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
22038
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
22039
        gt_cv_have_gettext=yes
 
22040
      fi
 
22041
 
 
22042
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
22043
        INTLLIBS="-lintl $libintl_extra_libs"
 
22044
      fi
 
22045
 
 
22046
      if test "$gt_cv_have_gettext" = "yes"; then
 
22047
 
 
22048
cat >>confdefs.h <<\_ACEOF
 
22049
#define HAVE_GETTEXT 1
 
22050
_ACEOF
 
22051
 
 
22052
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
22053
set dummy msgfmt; ac_word=$2
 
22054
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22056
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
22057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22058
else
 
22059
  case "$MSGFMT" in
 
22060
  /*)
 
22061
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
22062
  ;;
 
22063
  *)
 
22064
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
22065
  for ac_dir in $PATH; do
 
22066
    test -z "$ac_dir" && ac_dir=.
 
22067
    if test -f $ac_dir/$ac_word; then
 
22068
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
22069
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
22070
        break
 
22071
      fi
 
22072
    fi
 
22073
  done
 
22074
  IFS="$ac_save_ifs"
 
22075
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
22076
  ;;
 
22077
esac
 
22078
fi
 
22079
MSGFMT="$ac_cv_path_MSGFMT"
 
22080
if test "$MSGFMT" != "no"; then
 
22081
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
22082
echo "${ECHO_T}$MSGFMT" >&6; }
 
22083
else
 
22084
  { echo "$as_me:$LINENO: result: no" >&5
 
22085
echo "${ECHO_T}no" >&6; }
 
22086
fi
 
22087
        if test "$MSGFMT" != "no"; then
 
22088
          glib_save_LIBS="$LIBS"
 
22089
          LIBS="$LIBS $INTLLIBS"
 
22090
 
 
22091
for ac_func in dcgettext
 
22092
do
 
22093
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22094
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22095
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
22096
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
22097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22098
else
 
22099
  cat >conftest.$ac_ext <<_ACEOF
 
22100
/* confdefs.h.  */
 
22101
_ACEOF
 
22102
cat confdefs.h >>conftest.$ac_ext
 
22103
cat >>conftest.$ac_ext <<_ACEOF
 
22104
/* end confdefs.h.  */
 
22105
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22106
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22107
#define $ac_func innocuous_$ac_func
 
22108
 
 
22109
/* System header to define __stub macros and hopefully few prototypes,
 
22110
    which can conflict with char $ac_func (); below.
 
22111
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22112
    <limits.h> exists even on freestanding compilers.  */
 
22113
 
 
22114
#ifdef __STDC__
 
22115
# include <limits.h>
 
22116
#else
 
22117
# include <assert.h>
 
22118
#endif
 
22119
 
 
22120
#undef $ac_func
 
22121
 
 
22122
/* Override any GCC internal prototype to avoid an error.
 
22123
   Use char because int might match the return type of a GCC
 
22124
   builtin and then its argument prototype would still apply.  */
 
22125
#ifdef __cplusplus
 
22126
extern "C"
 
22127
#endif
 
22128
char $ac_func ();
 
22129
/* The GNU C library defines this for functions which it implements
 
22130
    to always fail with ENOSYS.  Some functions are actually named
 
22131
    something starting with __ and the normal name is an alias.  */
 
22132
#if defined __stub_$ac_func || defined __stub___$ac_func
 
22133
choke me
 
22134
#endif
 
22135
 
 
22136
int
 
22137
main ()
 
22138
{
 
22139
return $ac_func ();
 
22140
  ;
 
22141
  return 0;
 
22142
}
 
22143
_ACEOF
 
22144
rm -f conftest.$ac_objext conftest$ac_exeext
 
22145
if { (ac_try="$ac_link"
 
22146
case "(($ac_try" in
 
22147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22148
  *) ac_try_echo=$ac_try;;
 
22149
esac
 
22150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22151
  (eval "$ac_link") 2>conftest.er1
 
22152
  ac_status=$?
 
22153
  grep -v '^ *+' conftest.er1 >conftest.err
 
22154
  rm -f conftest.er1
 
22155
  cat conftest.err >&5
 
22156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22157
  (exit $ac_status); } && {
 
22158
         test -z "$ac_c_werror_flag" ||
 
22159
         test ! -s conftest.err
 
22160
       } && test -s conftest$ac_exeext &&
 
22161
       $as_test_x conftest$ac_exeext; then
 
22162
  eval "$as_ac_var=yes"
 
22163
else
 
22164
  echo "$as_me: failed program was:" >&5
 
22165
sed 's/^/| /' conftest.$ac_ext >&5
 
22166
 
 
22167
        eval "$as_ac_var=no"
 
22168
fi
 
22169
 
 
22170
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22171
      conftest$ac_exeext conftest.$ac_ext
 
22172
fi
 
22173
ac_res=`eval echo '${'$as_ac_var'}'`
 
22174
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22175
echo "${ECHO_T}$ac_res" >&6; }
 
22176
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22177
  cat >>confdefs.h <<_ACEOF
 
22178
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22179
_ACEOF
 
22180
 
 
22181
fi
 
22182
done
 
22183
 
 
22184
          MSGFMT_OPTS=
 
22185
          { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 
22186
echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 
22187
          cat >conftest.foo <<_ACEOF
 
22188
 
 
22189
msgid ""
 
22190
msgstr ""
 
22191
"Content-Type: text/plain; charset=UTF-8\n"
 
22192
"Project-Id-Version: test 1.0\n"
 
22193
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
22194
"Last-Translator: test <foo@bar.xx>\n"
 
22195
"Language-Team: C <LL@li.org>\n"
 
22196
"MIME-Version: 1.0\n"
 
22197
"Content-Transfer-Encoding: 8bit\n"
 
22198
 
 
22199
_ACEOF
 
22200
if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
 
22201
  (msgfmt -c -o /dev/null conftest.foo) 2>&5
 
22202
  ac_status=$?
 
22203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22204
  (exit $ac_status); }; then
 
22205
  MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 
22206
echo "${ECHO_T}yes" >&6; }
 
22207
else { echo "$as_me:$LINENO: result: no" >&5
 
22208
echo "${ECHO_T}no" >&6; }
 
22209
echo "$as_me: failed input was:" >&5
 
22210
sed 's/^/| /' conftest.foo >&5
 
22211
fi
 
22212
 
 
22213
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
22214
set dummy gmsgfmt; ac_word=$2
 
22215
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22217
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
22218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22219
else
 
22220
  case $GMSGFMT in
 
22221
  [\\/]* | ?:[\\/]*)
 
22222
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
22223
  ;;
 
22224
  *)
 
22225
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22226
for as_dir in $PATH
 
22227
do
 
22228
  IFS=$as_save_IFS
 
22229
  test -z "$as_dir" && as_dir=.
 
22230
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22231
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22232
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
22233
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22234
    break 2
 
22235
  fi
 
22236
done
 
22237
done
 
22238
IFS=$as_save_IFS
 
22239
 
 
22240
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
22241
  ;;
 
22242
esac
 
22243
fi
 
22244
GMSGFMT=$ac_cv_path_GMSGFMT
 
22245
if test -n "$GMSGFMT"; then
 
22246
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
22247
echo "${ECHO_T}$GMSGFMT" >&6; }
 
22248
else
 
22249
  { echo "$as_me:$LINENO: result: no" >&5
 
22250
echo "${ECHO_T}no" >&6; }
 
22251
fi
 
22252
 
 
22253
 
 
22254
          # Extract the first word of "xgettext", so it can be a program name with args.
 
22255
set dummy xgettext; ac_word=$2
 
22256
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22258
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
22259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22260
else
 
22261
  case "$XGETTEXT" in
 
22262
  /*)
 
22263
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
22264
  ;;
 
22265
  *)
 
22266
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
22267
  for ac_dir in $PATH; do
 
22268
    test -z "$ac_dir" && ac_dir=.
 
22269
    if test -f $ac_dir/$ac_word; then
 
22270
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
22271
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
22272
        break
 
22273
      fi
 
22274
    fi
 
22275
  done
 
22276
  IFS="$ac_save_ifs"
 
22277
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
22278
  ;;
 
22279
esac
 
22280
fi
 
22281
XGETTEXT="$ac_cv_path_XGETTEXT"
 
22282
if test "$XGETTEXT" != ":"; then
 
22283
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
22284
echo "${ECHO_T}$XGETTEXT" >&6; }
 
22285
else
 
22286
  { echo "$as_me:$LINENO: result: no" >&5
 
22287
echo "${ECHO_T}no" >&6; }
 
22288
fi
 
22289
 
 
22290
          cat >conftest.$ac_ext <<_ACEOF
 
22291
/* confdefs.h.  */
 
22292
_ACEOF
 
22293
cat confdefs.h >>conftest.$ac_ext
 
22294
cat >>conftest.$ac_ext <<_ACEOF
 
22295
/* end confdefs.h.  */
 
22296
 
 
22297
int
 
22298
main ()
 
22299
{
 
22300
extern int _nl_msg_cat_cntr;
 
22301
                         return _nl_msg_cat_cntr
 
22302
  ;
 
22303
  return 0;
 
22304
}
 
22305
_ACEOF
 
22306
rm -f conftest.$ac_objext conftest$ac_exeext
 
22307
if { (ac_try="$ac_link"
 
22308
case "(($ac_try" in
 
22309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22310
  *) ac_try_echo=$ac_try;;
 
22311
esac
 
22312
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22313
  (eval "$ac_link") 2>conftest.er1
 
22314
  ac_status=$?
 
22315
  grep -v '^ *+' conftest.er1 >conftest.err
 
22316
  rm -f conftest.er1
 
22317
  cat conftest.err >&5
 
22318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22319
  (exit $ac_status); } && {
 
22320
         test -z "$ac_c_werror_flag" ||
 
22321
         test ! -s conftest.err
 
22322
       } && test -s conftest$ac_exeext &&
 
22323
       $as_test_x conftest$ac_exeext; then
 
22324
  CATOBJEXT=.gmo
 
22325
             DATADIRNAME=share
 
22326
else
 
22327
  echo "$as_me: failed program was:" >&5
 
22328
sed 's/^/| /' conftest.$ac_ext >&5
 
22329
 
 
22330
        case $host in
 
22331
            *-*-solaris*)
 
22332
                                                                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
22333
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 
22334
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
22335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22336
else
 
22337
  cat >conftest.$ac_ext <<_ACEOF
 
22338
/* confdefs.h.  */
 
22339
_ACEOF
 
22340
cat confdefs.h >>conftest.$ac_ext
 
22341
cat >>conftest.$ac_ext <<_ACEOF
 
22342
/* end confdefs.h.  */
 
22343
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
22344
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22345
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
22346
 
 
22347
/* System header to define __stub macros and hopefully few prototypes,
 
22348
    which can conflict with char bind_textdomain_codeset (); below.
 
22349
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22350
    <limits.h> exists even on freestanding compilers.  */
 
22351
 
 
22352
#ifdef __STDC__
 
22353
# include <limits.h>
 
22354
#else
 
22355
# include <assert.h>
 
22356
#endif
 
22357
 
 
22358
#undef bind_textdomain_codeset
 
22359
 
 
22360
/* Override any GCC internal prototype to avoid an error.
 
22361
   Use char because int might match the return type of a GCC
 
22362
   builtin and then its argument prototype would still apply.  */
 
22363
#ifdef __cplusplus
 
22364
extern "C"
 
22365
#endif
 
22366
char bind_textdomain_codeset ();
 
22367
/* The GNU C library defines this for functions which it implements
 
22368
    to always fail with ENOSYS.  Some functions are actually named
 
22369
    something starting with __ and the normal name is an alias.  */
 
22370
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 
22371
choke me
 
22372
#endif
 
22373
 
 
22374
int
 
22375
main ()
 
22376
{
 
22377
return bind_textdomain_codeset ();
 
22378
  ;
 
22379
  return 0;
 
22380
}
 
22381
_ACEOF
 
22382
rm -f conftest.$ac_objext conftest$ac_exeext
 
22383
if { (ac_try="$ac_link"
 
22384
case "(($ac_try" in
 
22385
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22386
  *) ac_try_echo=$ac_try;;
 
22387
esac
 
22388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22389
  (eval "$ac_link") 2>conftest.er1
 
22390
  ac_status=$?
 
22391
  grep -v '^ *+' conftest.er1 >conftest.err
 
22392
  rm -f conftest.er1
 
22393
  cat conftest.err >&5
 
22394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22395
  (exit $ac_status); } && {
 
22396
         test -z "$ac_c_werror_flag" ||
 
22397
         test ! -s conftest.err
 
22398
       } && test -s conftest$ac_exeext &&
 
22399
       $as_test_x conftest$ac_exeext; then
 
22400
  ac_cv_func_bind_textdomain_codeset=yes
 
22401
else
 
22402
  echo "$as_me: failed program was:" >&5
 
22403
sed 's/^/| /' conftest.$ac_ext >&5
 
22404
 
 
22405
        ac_cv_func_bind_textdomain_codeset=no
 
22406
fi
 
22407
 
 
22408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22409
      conftest$ac_exeext conftest.$ac_ext
 
22410
fi
 
22411
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
22412
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 
22413
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
22414
  CATOBJEXT=.gmo
 
22415
               DATADIRNAME=share
 
22416
else
 
22417
  CATOBJEXT=.mo
 
22418
               DATADIRNAME=lib
 
22419
fi
 
22420
 
 
22421
            ;;
 
22422
            *)
 
22423
            CATOBJEXT=.mo
 
22424
            DATADIRNAME=lib
 
22425
            ;;
 
22426
            esac
 
22427
fi
 
22428
 
 
22429
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22430
      conftest$ac_exeext conftest.$ac_ext
 
22431
          LIBS="$glib_save_LIBS"
 
22432
          INSTOBJEXT=.mo
 
22433
        else
 
22434
          gt_cv_have_gettext=no
 
22435
        fi
 
22436
      fi
 
22437
 
 
22438
fi
 
22439
 
 
22440
 
 
22441
 
 
22442
    if test "$gt_cv_have_gettext" = "yes" ; then
 
22443
 
 
22444
cat >>confdefs.h <<\_ACEOF
 
22445
#define ENABLE_NLS 1
 
22446
_ACEOF
 
22447
 
 
22448
    fi
 
22449
 
 
22450
        if test "$XGETTEXT" != ":"; then
 
22451
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
22452
        : ;
 
22453
      else
 
22454
        { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
22455
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 
22456
        XGETTEXT=":"
 
22457
      fi
 
22458
    fi
 
22459
 
 
22460
    # We need to process the po/ directory.
 
22461
    POSUB=po
 
22462
 
 
22463
    ac_config_commands="$ac_config_commands default-1"
 
22464
 
 
22465
 
 
22466
                for lang in $ALL_LINGUAS; do
 
22467
      GMOFILES="$GMOFILES $lang.gmo"
 
22468
      POFILES="$POFILES $lang.po"
 
22469
    done
 
22470
 
 
22471
 
 
22472
 
 
22473
 
 
22474
 
 
22475
 
 
22476
 
 
22477
 
 
22478
 
 
22479
 
 
22480
 
 
22481
 
 
22482
 
 
22483
   if test "$gt_cv_have_gettext" = "yes"; then
 
22484
     if test "x$ALL_LINGUAS" = "x"; then
 
22485
       LINGUAS=
 
22486
     else
 
22487
       { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 
22488
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 
22489
       NEW_LINGUAS=
 
22490
       for presentlang in $ALL_LINGUAS; do
 
22491
         useit=no
 
22492
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
22493
           desiredlanguages="$LINGUAS"
 
22494
         else
 
22495
           desiredlanguages="$ALL_LINGUAS"
 
22496
         fi
 
22497
         for desiredlang in $desiredlanguages; do
 
22498
           # Use the presentlang catalog if desiredlang is
 
22499
           #   a. equal to presentlang, or
 
22500
           #   b. a variant of presentlang (because in this case,
 
22501
           #      presentlang can be used as a fallback for messages
 
22502
           #      which are not translated in the desiredlang catalog).
 
22503
           case "$desiredlang" in
 
22504
             "$presentlang"*) useit=yes;;
 
22505
           esac
 
22506
         done
 
22507
         if test $useit = yes; then
 
22508
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
22509
         fi
 
22510
       done
 
22511
       LINGUAS=$NEW_LINGUAS
 
22512
       { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 
22513
echo "${ECHO_T}$LINGUAS" >&6; }
 
22514
     fi
 
22515
 
 
22516
          if test -n "$LINGUAS"; then
 
22517
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
22518
     fi
 
22519
   fi
 
22520
 
 
22521
            MKINSTALLDIRS=
 
22522
   if test -n "$ac_aux_dir"; then
 
22523
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
22524
   fi
 
22525
   if test -z "$MKINSTALLDIRS"; then
 
22526
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
22527
   fi
 
22528
 
 
22529
 
 
22530
         test -d po || mkdir po
 
22531
   if test "x$srcdir" != "x."; then
 
22532
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
22533
       posrcprefix="$srcdir/"
 
22534
     else
 
22535
       posrcprefix="../$srcdir/"
 
22536
     fi
 
22537
   else
 
22538
     posrcprefix="../"
 
22539
   fi
 
22540
   rm -f po/POTFILES
 
22541
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
22542
        < $srcdir/po/POTFILES.in > po/POTFILES
 
22543
 
 
22544
 
 
22545
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
22546
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
22547
if test "${ac_cv_c_bigendian+set}" = set; then
 
22548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22549
else
 
22550
  # See if sys/param.h defines the BYTE_ORDER macro.
 
22551
cat >conftest.$ac_ext <<_ACEOF
 
22552
/* confdefs.h.  */
 
22553
_ACEOF
 
22554
cat confdefs.h >>conftest.$ac_ext
 
22555
cat >>conftest.$ac_ext <<_ACEOF
 
22556
/* end confdefs.h.  */
 
22557
#include <sys/types.h>
 
22558
#include <sys/param.h>
 
22559
 
 
22560
int
 
22561
main ()
 
22562
{
 
22563
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
22564
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
22565
 bogus endian macros
 
22566
#endif
 
22567
 
 
22568
  ;
 
22569
  return 0;
 
22570
}
 
22571
_ACEOF
 
22572
rm -f conftest.$ac_objext
 
22573
if { (ac_try="$ac_compile"
 
22574
case "(($ac_try" in
 
22575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22576
  *) ac_try_echo=$ac_try;;
 
22577
esac
 
22578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22579
  (eval "$ac_compile") 2>conftest.er1
 
22580
  ac_status=$?
 
22581
  grep -v '^ *+' conftest.er1 >conftest.err
 
22582
  rm -f conftest.er1
 
22583
  cat conftest.err >&5
 
22584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22585
  (exit $ac_status); } && {
 
22586
         test -z "$ac_c_werror_flag" ||
 
22587
         test ! -s conftest.err
 
22588
       } && test -s conftest.$ac_objext; then
 
22589
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
22590
cat >conftest.$ac_ext <<_ACEOF
 
22591
/* confdefs.h.  */
 
22592
_ACEOF
 
22593
cat confdefs.h >>conftest.$ac_ext
 
22594
cat >>conftest.$ac_ext <<_ACEOF
 
22595
/* end confdefs.h.  */
 
22596
#include <sys/types.h>
 
22597
#include <sys/param.h>
 
22598
 
 
22599
int
 
22600
main ()
 
22601
{
 
22602
#if BYTE_ORDER != BIG_ENDIAN
 
22603
 not big endian
 
22604
#endif
 
22605
 
 
22606
  ;
 
22607
  return 0;
 
22608
}
 
22609
_ACEOF
 
22610
rm -f conftest.$ac_objext
 
22611
if { (ac_try="$ac_compile"
 
22612
case "(($ac_try" in
 
22613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22614
  *) ac_try_echo=$ac_try;;
 
22615
esac
 
22616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22617
  (eval "$ac_compile") 2>conftest.er1
 
22618
  ac_status=$?
 
22619
  grep -v '^ *+' conftest.er1 >conftest.err
 
22620
  rm -f conftest.er1
 
22621
  cat conftest.err >&5
 
22622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22623
  (exit $ac_status); } && {
 
22624
         test -z "$ac_c_werror_flag" ||
 
22625
         test ! -s conftest.err
 
22626
       } && test -s conftest.$ac_objext; then
 
22627
  ac_cv_c_bigendian=yes
 
22628
else
 
22629
  echo "$as_me: failed program was:" >&5
 
22630
sed 's/^/| /' conftest.$ac_ext >&5
 
22631
 
 
22632
        ac_cv_c_bigendian=no
 
22633
fi
 
22634
 
 
22635
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22636
else
 
22637
  echo "$as_me: failed program was:" >&5
 
22638
sed 's/^/| /' conftest.$ac_ext >&5
 
22639
 
 
22640
        # It does not; compile a test program.
 
22641
if test "$cross_compiling" = yes; then
 
22642
  # try to guess the endianness by grepping values into an object file
 
22643
  ac_cv_c_bigendian=unknown
 
22644
  cat >conftest.$ac_ext <<_ACEOF
 
22645
/* confdefs.h.  */
 
22646
_ACEOF
 
22647
cat confdefs.h >>conftest.$ac_ext
 
22648
cat >>conftest.$ac_ext <<_ACEOF
 
22649
/* end confdefs.h.  */
 
22650
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
22651
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
22652
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
22653
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
22654
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
22655
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
22656
int
 
22657
main ()
 
22658
{
 
22659
 _ascii (); _ebcdic ();
 
22660
  ;
 
22661
  return 0;
 
22662
}
 
22663
_ACEOF
 
22664
rm -f conftest.$ac_objext
 
22665
if { (ac_try="$ac_compile"
 
22666
case "(($ac_try" in
 
22667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22668
  *) ac_try_echo=$ac_try;;
 
22669
esac
 
22670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22671
  (eval "$ac_compile") 2>conftest.er1
 
22672
  ac_status=$?
 
22673
  grep -v '^ *+' conftest.er1 >conftest.err
 
22674
  rm -f conftest.er1
 
22675
  cat conftest.err >&5
 
22676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22677
  (exit $ac_status); } && {
 
22678
         test -z "$ac_c_werror_flag" ||
 
22679
         test ! -s conftest.err
 
22680
       } && test -s conftest.$ac_objext; then
 
22681
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
22682
  ac_cv_c_bigendian=yes
 
22683
fi
 
22684
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
22685
  if test "$ac_cv_c_bigendian" = unknown; then
 
22686
    ac_cv_c_bigendian=no
 
22687
  else
 
22688
    # finding both strings is unlikely to happen, but who knows?
 
22689
    ac_cv_c_bigendian=unknown
 
22690
  fi
 
22691
fi
 
22692
else
 
22693
  echo "$as_me: failed program was:" >&5
 
22694
sed 's/^/| /' conftest.$ac_ext >&5
 
22695
 
 
22696
 
 
22697
fi
 
22698
 
 
22699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22700
else
 
22701
  cat >conftest.$ac_ext <<_ACEOF
 
22702
/* confdefs.h.  */
 
22703
_ACEOF
 
22704
cat confdefs.h >>conftest.$ac_ext
 
22705
cat >>conftest.$ac_ext <<_ACEOF
 
22706
/* end confdefs.h.  */
 
22707
$ac_includes_default
 
22708
int
 
22709
main ()
 
22710
{
 
22711
 
 
22712
  /* Are we little or big endian?  From Harbison&Steele.  */
 
22713
  union
 
22714
  {
 
22715
    long int l;
 
22716
    char c[sizeof (long int)];
 
22717
  } u;
 
22718
  u.l = 1;
 
22719
  return u.c[sizeof (long int) - 1] == 1;
 
22720
 
 
22721
  ;
 
22722
  return 0;
 
22723
}
 
22724
_ACEOF
 
22725
rm -f conftest$ac_exeext
 
22726
if { (ac_try="$ac_link"
 
22727
case "(($ac_try" in
 
22728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22729
  *) ac_try_echo=$ac_try;;
 
22730
esac
 
22731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22732
  (eval "$ac_link") 2>&5
 
22733
  ac_status=$?
 
22734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22735
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22736
  { (case "(($ac_try" in
 
22737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22738
  *) ac_try_echo=$ac_try;;
 
22739
esac
 
22740
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22741
  (eval "$ac_try") 2>&5
 
22742
  ac_status=$?
 
22743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22744
  (exit $ac_status); }; }; then
 
22745
  ac_cv_c_bigendian=no
 
22746
else
 
22747
  echo "$as_me: program exited with status $ac_status" >&5
 
22748
echo "$as_me: failed program was:" >&5
 
22749
sed 's/^/| /' conftest.$ac_ext >&5
 
22750
 
 
22751
( exit $ac_status )
 
22752
ac_cv_c_bigendian=yes
 
22753
fi
 
22754
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22755
fi
 
22756
 
 
22757
 
 
22758
fi
 
22759
 
 
22760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22761
fi
 
22762
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
22763
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
22764
case $ac_cv_c_bigendian in
 
22765
  yes)
 
22766
 
 
22767
cat >>confdefs.h <<\_ACEOF
 
22768
#define WORDS_BIGENDIAN 1
 
22769
_ACEOF
 
22770
 ;;
 
22771
  no)
 
22772
     ;;
 
22773
  *)
 
22774
    { { echo "$as_me:$LINENO: error: unknown endianness
 
22775
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
22776
echo "$as_me: error: unknown endianness
 
22777
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
22778
   { (exit 1); exit 1; }; } ;;
 
22779
esac
 
22780
 
 
22781
 
 
22782
 
 
22783
{ echo "$as_me:$LINENO: checking for ieee_802_11_cipher_validate in -lnm-util" >&5
 
22784
echo $ECHO_N "checking for ieee_802_11_cipher_validate in -lnm-util... $ECHO_C" >&6; }
 
22785
if test "${ac_cv_lib_nm_util_ieee_802_11_cipher_validate+set}" = set; then
 
22786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22787
else
 
22788
  ac_check_lib_save_LIBS=$LIBS
 
22789
LIBS="-lnm-util  $LIBS"
 
22790
cat >conftest.$ac_ext <<_ACEOF
 
22791
/* confdefs.h.  */
 
22792
_ACEOF
 
22793
cat confdefs.h >>conftest.$ac_ext
 
22794
cat >>conftest.$ac_ext <<_ACEOF
 
22795
/* end confdefs.h.  */
 
22796
 
 
22797
/* Override any GCC internal prototype to avoid an error.
 
22798
   Use char because int might match the return type of a GCC
 
22799
   builtin and then its argument prototype would still apply.  */
 
22800
#ifdef __cplusplus
 
22801
extern "C"
 
22802
#endif
 
22803
char ieee_802_11_cipher_validate ();
 
22804
int
 
22805
main ()
 
22806
{
 
22807
return ieee_802_11_cipher_validate ();
 
22808
  ;
 
22809
  return 0;
 
22810
}
 
22811
_ACEOF
 
22812
rm -f conftest.$ac_objext conftest$ac_exeext
 
22813
if { (ac_try="$ac_link"
 
22814
case "(($ac_try" in
 
22815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22816
  *) ac_try_echo=$ac_try;;
 
22817
esac
 
22818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22819
  (eval "$ac_link") 2>conftest.er1
 
22820
  ac_status=$?
 
22821
  grep -v '^ *+' conftest.er1 >conftest.err
 
22822
  rm -f conftest.er1
 
22823
  cat conftest.err >&5
 
22824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22825
  (exit $ac_status); } && {
 
22826
         test -z "$ac_c_werror_flag" ||
 
22827
         test ! -s conftest.err
 
22828
       } && test -s conftest$ac_exeext &&
 
22829
       $as_test_x conftest$ac_exeext; then
 
22830
  ac_cv_lib_nm_util_ieee_802_11_cipher_validate=yes
 
22831
else
 
22832
  echo "$as_me: failed program was:" >&5
 
22833
sed 's/^/| /' conftest.$ac_ext >&5
 
22834
 
 
22835
        ac_cv_lib_nm_util_ieee_802_11_cipher_validate=no
 
22836
fi
 
22837
 
 
22838
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22839
      conftest$ac_exeext conftest.$ac_ext
 
22840
LIBS=$ac_check_lib_save_LIBS
 
22841
fi
 
22842
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nm_util_ieee_802_11_cipher_validate" >&5
 
22843
echo "${ECHO_T}$ac_cv_lib_nm_util_ieee_802_11_cipher_validate" >&6; }
 
22844
if test $ac_cv_lib_nm_util_ieee_802_11_cipher_validate = yes; then
 
22845
  cat >>confdefs.h <<_ACEOF
 
22846
#define HAVE_LIBNM_UTIL 1
 
22847
_ACEOF
 
22848
 
 
22849
  LIBS="-lnm-util $LIBS"
 
22850
 
 
22851
fi
 
22852
 
 
22853
 
 
22854
 
 
22855
 
 
22856
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
22857
        if test -n "$ac_tool_prefix"; then
 
22858
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
22859
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
22860
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22861
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22862
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
22863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22864
else
 
22865
  case $PKG_CONFIG in
 
22866
  [\\/]* | ?:[\\/]*)
 
22867
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
22868
  ;;
 
22869
  *)
 
22870
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22871
for as_dir in $PATH
 
22872
do
 
22873
  IFS=$as_save_IFS
 
22874
  test -z "$as_dir" && as_dir=.
 
22875
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22876
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22877
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22878
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22879
    break 2
 
22880
  fi
 
22881
done
 
22882
done
 
22883
IFS=$as_save_IFS
 
22884
 
 
22885
  ;;
 
22886
esac
 
22887
fi
 
22888
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
22889
if test -n "$PKG_CONFIG"; then
 
22890
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
22891
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
22892
else
 
22893
  { echo "$as_me:$LINENO: result: no" >&5
 
22894
echo "${ECHO_T}no" >&6; }
 
22895
fi
 
22896
 
 
22897
 
 
22898
fi
 
22899
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
22900
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
22901
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
22902
set dummy pkg-config; ac_word=$2
 
22903
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22905
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
22906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22907
else
 
22908
  case $ac_pt_PKG_CONFIG in
 
22909
  [\\/]* | ?:[\\/]*)
 
22910
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
22911
  ;;
 
22912
  *)
 
22913
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22914
for as_dir in $PATH
 
22915
do
 
22916
  IFS=$as_save_IFS
 
22917
  test -z "$as_dir" && as_dir=.
 
22918
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22919
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22920
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22921
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22922
    break 2
 
22923
  fi
 
22924
done
 
22925
done
 
22926
IFS=$as_save_IFS
 
22927
 
 
22928
  ;;
 
22929
esac
 
22930
fi
 
22931
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
22932
if test -n "$ac_pt_PKG_CONFIG"; then
 
22933
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
22934
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
22935
else
 
22936
  { echo "$as_me:$LINENO: result: no" >&5
 
22937
echo "${ECHO_T}no" >&6; }
 
22938
fi
 
22939
 
 
22940
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
22941
    PKG_CONFIG=""
 
22942
  else
 
22943
    case $cross_compiling:$ac_tool_warned in
 
22944
yes:)
 
22945
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
22946
whose name does not start with the host triplet.  If you think this
 
22947
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
22948
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
22949
whose name does not start with the host triplet.  If you think this
 
22950
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
22951
ac_tool_warned=yes ;;
 
22952
esac
 
22953
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
22954
  fi
 
22955
else
 
22956
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
22957
fi
 
22958
 
 
22959
fi
 
22960
if test -n "$PKG_CONFIG"; then
 
22961
        _pkg_min_version=0.9.0
 
22962
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
22963
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
22964
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
22965
                { echo "$as_me:$LINENO: result: yes" >&5
 
22966
echo "${ECHO_T}yes" >&6; }
 
22967
        else
 
22968
                { echo "$as_me:$LINENO: result: no" >&5
 
22969
echo "${ECHO_T}no" >&6; }
 
22970
                PKG_CONFIG=""
 
22971
        fi
 
22972
 
 
22973
fi
 
22974
 
 
22975
pkg_failed=no
 
22976
{ echo "$as_me:$LINENO: checking for DBUS" >&5
 
22977
echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
 
22978
 
 
22979
if test -n "$PKG_CONFIG"; then
 
22980
    if test -n "$DBUS_CFLAGS"; then
 
22981
        pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
 
22982
    else
 
22983
        if test -n "$PKG_CONFIG" && \
 
22984
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.60\"") >&5
 
22985
  ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.60") 2>&5
 
22986
  ac_status=$?
 
22987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22988
  (exit $ac_status); }; then
 
22989
  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.60" 2>/dev/null`
 
22990
else
 
22991
  pkg_failed=yes
 
22992
fi
 
22993
    fi
 
22994
else
 
22995
        pkg_failed=untried
 
22996
fi
 
22997
if test -n "$PKG_CONFIG"; then
 
22998
    if test -n "$DBUS_LIBS"; then
 
22999
        pkg_cv_DBUS_LIBS="$DBUS_LIBS"
 
23000
    else
 
23001
        if test -n "$PKG_CONFIG" && \
 
23002
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.60\"") >&5
 
23003
  ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.60") 2>&5
 
23004
  ac_status=$?
 
23005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23006
  (exit $ac_status); }; then
 
23007
  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.60" 2>/dev/null`
 
23008
else
 
23009
  pkg_failed=yes
 
23010
fi
 
23011
    fi
 
23012
else
 
23013
        pkg_failed=untried
 
23014
fi
 
23015
 
 
23016
 
 
23017
 
 
23018
if test $pkg_failed = yes; then
 
23019
 
 
23020
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23021
        _pkg_short_errors_supported=yes
 
23022
else
 
23023
        _pkg_short_errors_supported=no
 
23024
fi
 
23025
        if test $_pkg_short_errors_supported = yes; then
 
23026
                DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 >= 0.60"`
 
23027
        else
 
23028
                DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= 0.60"`
 
23029
        fi
 
23030
        # Put the nasty error message in config.log where it belongs
 
23031
        echo "$DBUS_PKG_ERRORS" >&5
 
23032
 
 
23033
        { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 >= 0.60) were not met:
 
23034
 
 
23035
$DBUS_PKG_ERRORS
 
23036
 
 
23037
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23038
installed software in a non-standard prefix.
 
23039
 
 
23040
Alternatively, you may set the environment variables DBUS_CFLAGS
 
23041
and DBUS_LIBS to avoid the need to call pkg-config.
 
23042
See the pkg-config man page for more details.
 
23043
" >&5
 
23044
echo "$as_me: error: Package requirements (dbus-glib-1 >= 0.60) were not met:
 
23045
 
 
23046
$DBUS_PKG_ERRORS
 
23047
 
 
23048
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23049
installed software in a non-standard prefix.
 
23050
 
 
23051
Alternatively, you may set the environment variables DBUS_CFLAGS
 
23052
and DBUS_LIBS to avoid the need to call pkg-config.
 
23053
See the pkg-config man page for more details.
 
23054
" >&2;}
 
23055
   { (exit 1); exit 1; }; }
 
23056
elif test $pkg_failed = untried; then
 
23057
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
23058
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23059
path to pkg-config.
 
23060
 
 
23061
Alternatively, you may set the environment variables DBUS_CFLAGS
 
23062
and DBUS_LIBS to avoid the need to call pkg-config.
 
23063
See the pkg-config man page for more details.
 
23064
 
 
23065
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23066
See \`config.log' for more details." >&5
 
23067
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
23068
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23069
path to pkg-config.
 
23070
 
 
23071
Alternatively, you may set the environment variables DBUS_CFLAGS
 
23072
and DBUS_LIBS to avoid the need to call pkg-config.
 
23073
See the pkg-config man page for more details.
 
23074
 
 
23075
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23076
See \`config.log' for more details." >&2;}
 
23077
   { (exit 1); exit 1; }; }
 
23078
else
 
23079
        DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
 
23080
        DBUS_LIBS=$pkg_cv_DBUS_LIBS
 
23081
        { echo "$as_me:$LINENO: result: yes" >&5
 
23082
echo "${ECHO_T}yes" >&6; }
 
23083
        :
 
23084
fi
 
23085
 
 
23086
##### Find out the version of DBUS we're using
 
23087
dbus_version=`pkg-config --modversion dbus-1`
 
23088
DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'`
 
23089
DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'`
 
23090
DBUS_VERSION_MICRO=`echo $dbus_version | awk -F. '{print $3}'`
 
23091
if test "z$DBUS_VERSION_MAJOR" = "z"; then
 
23092
        DBUS_VERSION_MAJOR="0"
 
23093
fi
 
23094
if test "z$DBUS_VERSION_MINOR" = "z"; then
 
23095
        DBUS_VERSION_MINOR="0"
 
23096
fi
 
23097
if test "z$DBUS_VERSION_MICRO" = "z"; then
 
23098
        DBUS_VERSION_MICRO="0"
 
23099
fi
 
23100
 
 
23101
if test "z$DBUS_VERSION_MAJOR" = "z0" -a "z$DBUS_VERSION_MINOR" = "z0" -a "z$DBUS_VERSION_MICRO" = "z0"; then
 
23102
        echo "Error: Couldn't determine the version of your DBUS package."
 
23103
        echo "  This is probably an error in this script, please report it"
 
23104
        echo "  along with the following information:"
 
23105
        echo "      Base DBUS version ='$dbus_version'"
 
23106
        echo "      DBUS_VERSION_MAJOR='$DBUS_VERSION_MAJOR'"
 
23107
        echo "      DBUS_VERSION_MINOR='$DBUS_VERSION_MINOR'"
 
23108
        echo "      DBUS_VERSION_MICRO='$DBUS_VERSION_MICRO'"
 
23109
        exit 1
 
23110
else
 
23111
 
 
23112
        echo "Your dbus version is $DBUS_VERSION_MAJOR,$DBUS_VERSION_MINOR,$DBUS_VERSION_MICRO."
 
23113
        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
 
23114
        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
 
23115
        DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
 
23116
fi
 
23117
 
 
23118
 
 
23119
 
 
23120
 
 
23121
pkg_failed=no
 
23122
{ echo "$as_me:$LINENO: checking for GTHREAD" >&5
 
23123
echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6; }
 
23124
 
 
23125
if test -n "$PKG_CONFIG"; then
 
23126
    if test -n "$GTHREAD_CFLAGS"; then
 
23127
        pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
 
23128
    else
 
23129
        if test -n "$PKG_CONFIG" && \
 
23130
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\"") >&5
 
23131
  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
 
23132
  ac_status=$?
 
23133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23134
  (exit $ac_status); }; then
 
23135
  pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
 
23136
else
 
23137
  pkg_failed=yes
 
23138
fi
 
23139
    fi
 
23140
else
 
23141
        pkg_failed=untried
 
23142
fi
 
23143
if test -n "$PKG_CONFIG"; then
 
23144
    if test -n "$GTHREAD_LIBS"; then
 
23145
        pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
 
23146
    else
 
23147
        if test -n "$PKG_CONFIG" && \
 
23148
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\"") >&5
 
23149
  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
 
23150
  ac_status=$?
 
23151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23152
  (exit $ac_status); }; then
 
23153
  pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
 
23154
else
 
23155
  pkg_failed=yes
 
23156
fi
 
23157
    fi
 
23158
else
 
23159
        pkg_failed=untried
 
23160
fi
 
23161
 
 
23162
 
 
23163
 
 
23164
if test $pkg_failed = yes; then
 
23165
 
 
23166
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23167
        _pkg_short_errors_supported=yes
 
23168
else
 
23169
        _pkg_short_errors_supported=no
 
23170
fi
 
23171
        if test $_pkg_short_errors_supported = yes; then
 
23172
                GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0"`
 
23173
        else
 
23174
                GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0"`
 
23175
        fi
 
23176
        # Put the nasty error message in config.log where it belongs
 
23177
        echo "$GTHREAD_PKG_ERRORS" >&5
 
23178
 
 
23179
        { { echo "$as_me:$LINENO: error: Package requirements (gthread-2.0) were not met:
 
23180
 
 
23181
$GTHREAD_PKG_ERRORS
 
23182
 
 
23183
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23184
installed software in a non-standard prefix.
 
23185
 
 
23186
Alternatively, you may set the environment variables GTHREAD_CFLAGS
 
23187
and GTHREAD_LIBS to avoid the need to call pkg-config.
 
23188
See the pkg-config man page for more details.
 
23189
" >&5
 
23190
echo "$as_me: error: Package requirements (gthread-2.0) were not met:
 
23191
 
 
23192
$GTHREAD_PKG_ERRORS
 
23193
 
 
23194
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23195
installed software in a non-standard prefix.
 
23196
 
 
23197
Alternatively, you may set the environment variables GTHREAD_CFLAGS
 
23198
and GTHREAD_LIBS to avoid the need to call pkg-config.
 
23199
See the pkg-config man page for more details.
 
23200
" >&2;}
 
23201
   { (exit 1); exit 1; }; }
 
23202
elif test $pkg_failed = untried; then
 
23203
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
23204
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23205
path to pkg-config.
 
23206
 
 
23207
Alternatively, you may set the environment variables GTHREAD_CFLAGS
 
23208
and GTHREAD_LIBS to avoid the need to call pkg-config.
 
23209
See the pkg-config man page for more details.
 
23210
 
 
23211
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23212
See \`config.log' for more details." >&5
 
23213
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
23214
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23215
path to pkg-config.
 
23216
 
 
23217
Alternatively, you may set the environment variables GTHREAD_CFLAGS
 
23218
and GTHREAD_LIBS to avoid the need to call pkg-config.
 
23219
See the pkg-config man page for more details.
 
23220
 
 
23221
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23222
See \`config.log' for more details." >&2;}
 
23223
   { (exit 1); exit 1; }; }
 
23224
else
 
23225
        GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
 
23226
        GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
 
23227
        { echo "$as_me:$LINENO: result: yes" >&5
 
23228
echo "${ECHO_T}yes" >&6; }
 
23229
        :
 
23230
fi
 
23231
 
 
23232
 
 
23233
 
 
23234
 
 
23235
pkg_failed=no
 
23236
{ echo "$as_me:$LINENO: checking for GLIB" >&5
 
23237
echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
 
23238
 
 
23239
if test -n "$PKG_CONFIG"; then
 
23240
    if test -n "$GLIB_CFLAGS"; then
 
23241
        pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
 
23242
    else
 
23243
        if test -n "$PKG_CONFIG" && \
 
23244
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10\"") >&5
 
23245
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10") 2>&5
 
23246
  ac_status=$?
 
23247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23248
  (exit $ac_status); }; then
 
23249
  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10" 2>/dev/null`
 
23250
else
 
23251
  pkg_failed=yes
 
23252
fi
 
23253
    fi
 
23254
else
 
23255
        pkg_failed=untried
 
23256
fi
 
23257
if test -n "$PKG_CONFIG"; then
 
23258
    if test -n "$GLIB_LIBS"; then
 
23259
        pkg_cv_GLIB_LIBS="$GLIB_LIBS"
 
23260
    else
 
23261
        if test -n "$PKG_CONFIG" && \
 
23262
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10\"") >&5
 
23263
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10") 2>&5
 
23264
  ac_status=$?
 
23265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23266
  (exit $ac_status); }; then
 
23267
  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10" 2>/dev/null`
 
23268
else
 
23269
  pkg_failed=yes
 
23270
fi
 
23271
    fi
 
23272
else
 
23273
        pkg_failed=untried
 
23274
fi
 
23275
 
 
23276
 
 
23277
 
 
23278
if test $pkg_failed = yes; then
 
23279
 
 
23280
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23281
        _pkg_short_errors_supported=yes
 
23282
else
 
23283
        _pkg_short_errors_supported=no
 
23284
fi
 
23285
        if test $_pkg_short_errors_supported = yes; then
 
23286
                GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10"`
 
23287
        else
 
23288
                GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10"`
 
23289
        fi
 
23290
        # Put the nasty error message in config.log where it belongs
 
23291
        echo "$GLIB_PKG_ERRORS" >&5
 
23292
 
 
23293
        { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.10) were not met:
 
23294
 
 
23295
$GLIB_PKG_ERRORS
 
23296
 
 
23297
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23298
installed software in a non-standard prefix.
 
23299
 
 
23300
Alternatively, you may set the environment variables GLIB_CFLAGS
 
23301
and GLIB_LIBS to avoid the need to call pkg-config.
 
23302
See the pkg-config man page for more details.
 
23303
" >&5
 
23304
echo "$as_me: error: Package requirements (glib-2.0 >= 2.10) were not met:
 
23305
 
 
23306
$GLIB_PKG_ERRORS
 
23307
 
 
23308
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23309
installed software in a non-standard prefix.
 
23310
 
 
23311
Alternatively, you may set the environment variables GLIB_CFLAGS
 
23312
and GLIB_LIBS to avoid the need to call pkg-config.
 
23313
See the pkg-config man page for more details.
 
23314
" >&2;}
 
23315
   { (exit 1); exit 1; }; }
 
23316
elif test $pkg_failed = untried; then
 
23317
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
23318
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23319
path to pkg-config.
 
23320
 
 
23321
Alternatively, you may set the environment variables GLIB_CFLAGS
 
23322
and GLIB_LIBS to avoid the need to call pkg-config.
 
23323
See the pkg-config man page for more details.
 
23324
 
 
23325
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23326
See \`config.log' for more details." >&5
 
23327
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
23328
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23329
path to pkg-config.
 
23330
 
 
23331
Alternatively, you may set the environment variables GLIB_CFLAGS
 
23332
and GLIB_LIBS to avoid the need to call pkg-config.
 
23333
See the pkg-config man page for more details.
 
23334
 
 
23335
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23336
See \`config.log' for more details." >&2;}
 
23337
   { (exit 1); exit 1; }; }
 
23338
else
 
23339
        GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
 
23340
        GLIB_LIBS=$pkg_cv_GLIB_LIBS
 
23341
        { echo "$as_me:$LINENO: result: yes" >&5
 
23342
echo "${ECHO_T}yes" >&6; }
 
23343
        :
 
23344
fi
 
23345
 
 
23346
 
 
23347
 
 
23348
 
 
23349
pkg_failed=no
 
23350
{ echo "$as_me:$LINENO: checking for GMODULE" >&5
 
23351
echo $ECHO_N "checking for GMODULE... $ECHO_C" >&6; }
 
23352
 
 
23353
if test -n "$PKG_CONFIG"; then
 
23354
    if test -n "$GMODULE_CFLAGS"; then
 
23355
        pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
 
23356
    else
 
23357
        if test -n "$PKG_CONFIG" && \
 
23358
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\"") >&5
 
23359
  ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
 
23360
  ac_status=$?
 
23361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23362
  (exit $ac_status); }; then
 
23363
  pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
 
23364
else
 
23365
  pkg_failed=yes
 
23366
fi
 
23367
    fi
 
23368
else
 
23369
        pkg_failed=untried
 
23370
fi
 
23371
if test -n "$PKG_CONFIG"; then
 
23372
    if test -n "$GMODULE_LIBS"; then
 
23373
        pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
 
23374
    else
 
23375
        if test -n "$PKG_CONFIG" && \
 
23376
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\"") >&5
 
23377
  ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
 
23378
  ac_status=$?
 
23379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23380
  (exit $ac_status); }; then
 
23381
  pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
 
23382
else
 
23383
  pkg_failed=yes
 
23384
fi
 
23385
    fi
 
23386
else
 
23387
        pkg_failed=untried
 
23388
fi
 
23389
 
 
23390
 
 
23391
 
 
23392
if test $pkg_failed = yes; then
 
23393
 
 
23394
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23395
        _pkg_short_errors_supported=yes
 
23396
else
 
23397
        _pkg_short_errors_supported=no
 
23398
fi
 
23399
        if test $_pkg_short_errors_supported = yes; then
 
23400
                GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gmodule-2.0"`
 
23401
        else
 
23402
                GMODULE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmodule-2.0"`
 
23403
        fi
 
23404
        # Put the nasty error message in config.log where it belongs
 
23405
        echo "$GMODULE_PKG_ERRORS" >&5
 
23406
 
 
23407
        { { echo "$as_me:$LINENO: error: Package requirements (gmodule-2.0) were not met:
 
23408
 
 
23409
$GMODULE_PKG_ERRORS
 
23410
 
 
23411
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23412
installed software in a non-standard prefix.
 
23413
 
 
23414
Alternatively, you may set the environment variables GMODULE_CFLAGS
 
23415
and GMODULE_LIBS to avoid the need to call pkg-config.
 
23416
See the pkg-config man page for more details.
 
23417
" >&5
 
23418
echo "$as_me: error: Package requirements (gmodule-2.0) were not met:
 
23419
 
 
23420
$GMODULE_PKG_ERRORS
 
23421
 
 
23422
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23423
installed software in a non-standard prefix.
 
23424
 
 
23425
Alternatively, you may set the environment variables GMODULE_CFLAGS
 
23426
and GMODULE_LIBS to avoid the need to call pkg-config.
 
23427
See the pkg-config man page for more details.
 
23428
" >&2;}
 
23429
   { (exit 1); exit 1; }; }
 
23430
elif test $pkg_failed = untried; then
 
23431
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
23432
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23433
path to pkg-config.
 
23434
 
 
23435
Alternatively, you may set the environment variables GMODULE_CFLAGS
 
23436
and GMODULE_LIBS to avoid the need to call pkg-config.
 
23437
See the pkg-config man page for more details.
 
23438
 
 
23439
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23440
See \`config.log' for more details." >&5
 
23441
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
23442
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23443
path to pkg-config.
 
23444
 
 
23445
Alternatively, you may set the environment variables GMODULE_CFLAGS
 
23446
and GMODULE_LIBS to avoid the need to call pkg-config.
 
23447
See the pkg-config man page for more details.
 
23448
 
 
23449
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23450
See \`config.log' for more details." >&2;}
 
23451
   { (exit 1); exit 1; }; }
 
23452
else
 
23453
        GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
 
23454
        GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
 
23455
        { echo "$as_me:$LINENO: result: yes" >&5
 
23456
echo "${ECHO_T}yes" >&6; }
 
23457
        :
 
23458
fi
 
23459
 
 
23460
 
 
23461
 
 
23462
 
 
23463
pkg_failed=no
 
23464
{ echo "$as_me:$LINENO: checking for GOBJECT" >&5
 
23465
echo $ECHO_N "checking for GOBJECT... $ECHO_C" >&6; }
 
23466
 
 
23467
if test -n "$PKG_CONFIG"; then
 
23468
    if test -n "$GOBJECT_CFLAGS"; then
 
23469
        pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
 
23470
    else
 
23471
        if test -n "$PKG_CONFIG" && \
 
23472
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\"") >&5
 
23473
  ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
 
23474
  ac_status=$?
 
23475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23476
  (exit $ac_status); }; then
 
23477
  pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
 
23478
else
 
23479
  pkg_failed=yes
 
23480
fi
 
23481
    fi
 
23482
else
 
23483
        pkg_failed=untried
 
23484
fi
 
23485
if test -n "$PKG_CONFIG"; then
 
23486
    if test -n "$GOBJECT_LIBS"; then
 
23487
        pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
 
23488
    else
 
23489
        if test -n "$PKG_CONFIG" && \
 
23490
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\"") >&5
 
23491
  ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
 
23492
  ac_status=$?
 
23493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23494
  (exit $ac_status); }; then
 
23495
  pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
 
23496
else
 
23497
  pkg_failed=yes
 
23498
fi
 
23499
    fi
 
23500
else
 
23501
        pkg_failed=untried
 
23502
fi
 
23503
 
 
23504
 
 
23505
 
 
23506
if test $pkg_failed = yes; then
 
23507
 
 
23508
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23509
        _pkg_short_errors_supported=yes
 
23510
else
 
23511
        _pkg_short_errors_supported=no
 
23512
fi
 
23513
        if test $_pkg_short_errors_supported = yes; then
 
23514
                GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0"`
 
23515
        else
 
23516
                GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0"`
 
23517
        fi
 
23518
        # Put the nasty error message in config.log where it belongs
 
23519
        echo "$GOBJECT_PKG_ERRORS" >&5
 
23520
 
 
23521
        { { echo "$as_me:$LINENO: error: Package requirements (gobject-2.0) were not met:
 
23522
 
 
23523
$GOBJECT_PKG_ERRORS
 
23524
 
 
23525
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23526
installed software in a non-standard prefix.
 
23527
 
 
23528
Alternatively, you may set the environment variables GOBJECT_CFLAGS
 
23529
and GOBJECT_LIBS to avoid the need to call pkg-config.
 
23530
See the pkg-config man page for more details.
 
23531
" >&5
 
23532
echo "$as_me: error: Package requirements (gobject-2.0) were not met:
 
23533
 
 
23534
$GOBJECT_PKG_ERRORS
 
23535
 
 
23536
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23537
installed software in a non-standard prefix.
 
23538
 
 
23539
Alternatively, you may set the environment variables GOBJECT_CFLAGS
 
23540
and GOBJECT_LIBS to avoid the need to call pkg-config.
 
23541
See the pkg-config man page for more details.
 
23542
" >&2;}
 
23543
   { (exit 1); exit 1; }; }
 
23544
elif test $pkg_failed = untried; then
 
23545
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
23546
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23547
path to pkg-config.
 
23548
 
 
23549
Alternatively, you may set the environment variables GOBJECT_CFLAGS
 
23550
and GOBJECT_LIBS to avoid the need to call pkg-config.
 
23551
See the pkg-config man page for more details.
 
23552
 
 
23553
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23554
See \`config.log' for more details." >&5
 
23555
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
23556
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23557
path to pkg-config.
 
23558
 
 
23559
Alternatively, you may set the environment variables GOBJECT_CFLAGS
 
23560
and GOBJECT_LIBS to avoid the need to call pkg-config.
 
23561
See the pkg-config man page for more details.
 
23562
 
 
23563
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23564
See \`config.log' for more details." >&2;}
 
23565
   { (exit 1); exit 1; }; }
 
23566
else
 
23567
        GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
 
23568
        GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
 
23569
        { echo "$as_me:$LINENO: result: yes" >&5
 
23570
echo "${ECHO_T}yes" >&6; }
 
23571
        :
 
23572
fi
 
23573
 
 
23574
 
 
23575
 
 
23576
 
 
23577
pkg_failed=no
 
23578
{ echo "$as_me:$LINENO: checking for NM" >&5
 
23579
echo $ECHO_N "checking for NM... $ECHO_C" >&6; }
 
23580
 
 
23581
if test -n "$PKG_CONFIG"; then
 
23582
    if test -n "$NM_CFLAGS"; then
 
23583
        pkg_cv_NM_CFLAGS="$NM_CFLAGS"
 
23584
    else
 
23585
        if test -n "$PKG_CONFIG" && \
 
23586
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"NetworkManager\"") >&5
 
23587
  ($PKG_CONFIG --exists --print-errors "NetworkManager") 2>&5
 
23588
  ac_status=$?
 
23589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23590
  (exit $ac_status); }; then
 
23591
  pkg_cv_NM_CFLAGS=`$PKG_CONFIG --cflags "NetworkManager" 2>/dev/null`
 
23592
else
 
23593
  pkg_failed=yes
 
23594
fi
 
23595
    fi
 
23596
else
 
23597
        pkg_failed=untried
 
23598
fi
 
23599
if test -n "$PKG_CONFIG"; then
 
23600
    if test -n "$NM_LIBS"; then
 
23601
        pkg_cv_NM_LIBS="$NM_LIBS"
 
23602
    else
 
23603
        if test -n "$PKG_CONFIG" && \
 
23604
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"NetworkManager\"") >&5
 
23605
  ($PKG_CONFIG --exists --print-errors "NetworkManager") 2>&5
 
23606
  ac_status=$?
 
23607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23608
  (exit $ac_status); }; then
 
23609
  pkg_cv_NM_LIBS=`$PKG_CONFIG --libs "NetworkManager" 2>/dev/null`
 
23610
else
 
23611
  pkg_failed=yes
 
23612
fi
 
23613
    fi
 
23614
else
 
23615
        pkg_failed=untried
 
23616
fi
 
23617
 
 
23618
 
 
23619
 
 
23620
if test $pkg_failed = yes; then
 
23621
 
 
23622
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23623
        _pkg_short_errors_supported=yes
 
23624
else
 
23625
        _pkg_short_errors_supported=no
 
23626
fi
 
23627
        if test $_pkg_short_errors_supported = yes; then
 
23628
                NM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "NetworkManager"`
 
23629
        else
 
23630
                NM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "NetworkManager"`
 
23631
        fi
 
23632
        # Put the nasty error message in config.log where it belongs
 
23633
        echo "$NM_PKG_ERRORS" >&5
 
23634
 
 
23635
        { { echo "$as_me:$LINENO: error: Package requirements (NetworkManager) were not met:
 
23636
 
 
23637
$NM_PKG_ERRORS
 
23638
 
 
23639
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23640
installed software in a non-standard prefix.
 
23641
 
 
23642
Alternatively, you may set the environment variables NM_CFLAGS
 
23643
and NM_LIBS to avoid the need to call pkg-config.
 
23644
See the pkg-config man page for more details.
 
23645
" >&5
 
23646
echo "$as_me: error: Package requirements (NetworkManager) were not met:
 
23647
 
 
23648
$NM_PKG_ERRORS
 
23649
 
 
23650
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23651
installed software in a non-standard prefix.
 
23652
 
 
23653
Alternatively, you may set the environment variables NM_CFLAGS
 
23654
and NM_LIBS to avoid the need to call pkg-config.
 
23655
See the pkg-config man page for more details.
 
23656
" >&2;}
 
23657
   { (exit 1); exit 1; }; }
 
23658
elif test $pkg_failed = untried; then
 
23659
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
23660
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23661
path to pkg-config.
 
23662
 
 
23663
Alternatively, you may set the environment variables NM_CFLAGS
 
23664
and NM_LIBS to avoid the need to call pkg-config.
 
23665
See the pkg-config man page for more details.
 
23666
 
 
23667
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23668
See \`config.log' for more details." >&5
 
23669
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
23670
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23671
path to pkg-config.
 
23672
 
 
23673
Alternatively, you may set the environment variables NM_CFLAGS
 
23674
and NM_LIBS to avoid the need to call pkg-config.
 
23675
See the pkg-config man page for more details.
 
23676
 
 
23677
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23678
See \`config.log' for more details." >&2;}
 
23679
   { (exit 1); exit 1; }; }
 
23680
else
 
23681
        NM_CFLAGS=$pkg_cv_NM_CFLAGS
 
23682
        NM_LIBS=$pkg_cv_NM_LIBS
 
23683
        { echo "$as_me:$LINENO: result: yes" >&5
 
23684
echo "${ECHO_T}yes" >&6; }
 
23685
        :
 
23686
fi
 
23687
 
 
23688
 
 
23689
 
 
23690
 
 
23691
# Check whether --with-notify was given.
 
23692
if test "${with_notify+set}" = set; then
 
23693
  withval=$with_notify; enable_notify=$withval
 
23694
else
 
23695
  enable_notify=auto
 
23696
fi
 
23697
 
 
23698
 
 
23699
 
 
23700
pkg_failed=no
 
23701
{ echo "$as_me:$LINENO: checking for GTK" >&5
 
23702
echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
 
23703
 
 
23704
if test -n "$PKG_CONFIG"; then
 
23705
    if test -n "$GTK_CFLAGS"; then
 
23706
        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 
23707
    else
 
23708
        if test -n "$PKG_CONFIG" && \
 
23709
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 
23710
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 
23711
  ac_status=$?
 
23712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23713
  (exit $ac_status); }; then
 
23714
  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
 
23715
else
 
23716
  pkg_failed=yes
 
23717
fi
 
23718
    fi
 
23719
else
 
23720
        pkg_failed=untried
 
23721
fi
 
23722
if test -n "$PKG_CONFIG"; then
 
23723
    if test -n "$GTK_LIBS"; then
 
23724
        pkg_cv_GTK_LIBS="$GTK_LIBS"
 
23725
    else
 
23726
        if test -n "$PKG_CONFIG" && \
 
23727
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 
23728
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 
23729
  ac_status=$?
 
23730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23731
  (exit $ac_status); }; then
 
23732
  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
 
23733
else
 
23734
  pkg_failed=yes
 
23735
fi
 
23736
    fi
 
23737
else
 
23738
        pkg_failed=untried
 
23739
fi
 
23740
 
 
23741
 
 
23742
 
 
23743
if test $pkg_failed = yes; then
 
23744
 
 
23745
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23746
        _pkg_short_errors_supported=yes
 
23747
else
 
23748
        _pkg_short_errors_supported=no
 
23749
fi
 
23750
        if test $_pkg_short_errors_supported = yes; then
 
23751
                GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
 
23752
        else
 
23753
                GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
 
23754
        fi
 
23755
        # Put the nasty error message in config.log where it belongs
 
23756
        echo "$GTK_PKG_ERRORS" >&5
 
23757
 
 
23758
        { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
 
23759
 
 
23760
$GTK_PKG_ERRORS
 
23761
 
 
23762
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23763
installed software in a non-standard prefix.
 
23764
 
 
23765
Alternatively, you may set the environment variables GTK_CFLAGS
 
23766
and GTK_LIBS to avoid the need to call pkg-config.
 
23767
See the pkg-config man page for more details.
 
23768
" >&5
 
23769
echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
 
23770
 
 
23771
$GTK_PKG_ERRORS
 
23772
 
 
23773
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23774
installed software in a non-standard prefix.
 
23775
 
 
23776
Alternatively, you may set the environment variables GTK_CFLAGS
 
23777
and GTK_LIBS to avoid the need to call pkg-config.
 
23778
See the pkg-config man page for more details.
 
23779
" >&2;}
 
23780
   { (exit 1); exit 1; }; }
 
23781
elif test $pkg_failed = untried; then
 
23782
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
23783
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23784
path to pkg-config.
 
23785
 
 
23786
Alternatively, you may set the environment variables GTK_CFLAGS
 
23787
and GTK_LIBS to avoid the need to call pkg-config.
 
23788
See the pkg-config man page for more details.
 
23789
 
 
23790
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23791
See \`config.log' for more details." >&5
 
23792
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
23793
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23794
path to pkg-config.
 
23795
 
 
23796
Alternatively, you may set the environment variables GTK_CFLAGS
 
23797
and GTK_LIBS to avoid the need to call pkg-config.
 
23798
See the pkg-config man page for more details.
 
23799
 
 
23800
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23801
See \`config.log' for more details." >&2;}
 
23802
   { (exit 1); exit 1; }; }
 
23803
else
 
23804
        GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 
23805
        GTK_LIBS=$pkg_cv_GTK_LIBS
 
23806
        { echo "$as_me:$LINENO: result: yes" >&5
 
23807
echo "${ECHO_T}yes" >&6; }
 
23808
        :
 
23809
fi
 
23810
 
 
23811
 
 
23812
 
 
23813
 
 
23814
pkg_failed=no
 
23815
{ echo "$as_me:$LINENO: checking for GDK_PIXBUF" >&5
 
23816
echo $ECHO_N "checking for GDK_PIXBUF... $ECHO_C" >&6; }
 
23817
 
 
23818
if test -n "$PKG_CONFIG"; then
 
23819
    if test -n "$GDK_PIXBUF_CFLAGS"; then
 
23820
        pkg_cv_GDK_PIXBUF_CFLAGS="$GDK_PIXBUF_CFLAGS"
 
23821
    else
 
23822
        if test -n "$PKG_CONFIG" && \
 
23823
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\"") >&5
 
23824
  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
 
23825
  ac_status=$?
 
23826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23827
  (exit $ac_status); }; then
 
23828
  pkg_cv_GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0" 2>/dev/null`
 
23829
else
 
23830
  pkg_failed=yes
 
23831
fi
 
23832
    fi
 
23833
else
 
23834
        pkg_failed=untried
 
23835
fi
 
23836
if test -n "$PKG_CONFIG"; then
 
23837
    if test -n "$GDK_PIXBUF_LIBS"; then
 
23838
        pkg_cv_GDK_PIXBUF_LIBS="$GDK_PIXBUF_LIBS"
 
23839
    else
 
23840
        if test -n "$PKG_CONFIG" && \
 
23841
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\"") >&5
 
23842
  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
 
23843
  ac_status=$?
 
23844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23845
  (exit $ac_status); }; then
 
23846
  pkg_cv_GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0" 2>/dev/null`
 
23847
else
 
23848
  pkg_failed=yes
 
23849
fi
 
23850
    fi
 
23851
else
 
23852
        pkg_failed=untried
 
23853
fi
 
23854
 
 
23855
 
 
23856
 
 
23857
if test $pkg_failed = yes; then
 
23858
 
 
23859
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23860
        _pkg_short_errors_supported=yes
 
23861
else
 
23862
        _pkg_short_errors_supported=no
 
23863
fi
 
23864
        if test $_pkg_short_errors_supported = yes; then
 
23865
                GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gdk-pixbuf-2.0"`
 
23866
        else
 
23867
                GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-pixbuf-2.0"`
 
23868
        fi
 
23869
        # Put the nasty error message in config.log where it belongs
 
23870
        echo "$GDK_PIXBUF_PKG_ERRORS" >&5
 
23871
 
 
23872
        { { echo "$as_me:$LINENO: error: Package requirements (gdk-pixbuf-2.0) were not met:
 
23873
 
 
23874
$GDK_PIXBUF_PKG_ERRORS
 
23875
 
 
23876
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23877
installed software in a non-standard prefix.
 
23878
 
 
23879
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
23880
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
23881
See the pkg-config man page for more details.
 
23882
" >&5
 
23883
echo "$as_me: error: Package requirements (gdk-pixbuf-2.0) were not met:
 
23884
 
 
23885
$GDK_PIXBUF_PKG_ERRORS
 
23886
 
 
23887
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23888
installed software in a non-standard prefix.
 
23889
 
 
23890
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
23891
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
23892
See the pkg-config man page for more details.
 
23893
" >&2;}
 
23894
   { (exit 1); exit 1; }; }
 
23895
elif test $pkg_failed = untried; then
 
23896
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
23897
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23898
path to pkg-config.
 
23899
 
 
23900
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
23901
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
23902
See the pkg-config man page for more details.
 
23903
 
 
23904
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23905
See \`config.log' for more details." >&5
 
23906
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
23907
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23908
path to pkg-config.
 
23909
 
 
23910
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
23911
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
23912
See the pkg-config man page for more details.
 
23913
 
 
23914
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
23915
See \`config.log' for more details." >&2;}
 
23916
   { (exit 1); exit 1; }; }
 
23917
else
 
23918
        GDK_PIXBUF_CFLAGS=$pkg_cv_GDK_PIXBUF_CFLAGS
 
23919
        GDK_PIXBUF_LIBS=$pkg_cv_GDK_PIXBUF_LIBS
 
23920
        { echo "$as_me:$LINENO: result: yes" >&5
 
23921
echo "${ECHO_T}yes" >&6; }
 
23922
        :
 
23923
fi
 
23924
 
 
23925
 
 
23926
 
 
23927
 
 
23928
pkg_failed=no
 
23929
{ echo "$as_me:$LINENO: checking for GLADE" >&5
 
23930
echo $ECHO_N "checking for GLADE... $ECHO_C" >&6; }
 
23931
 
 
23932
if test -n "$PKG_CONFIG"; then
 
23933
    if test -n "$GLADE_CFLAGS"; then
 
23934
        pkg_cv_GLADE_CFLAGS="$GLADE_CFLAGS"
 
23935
    else
 
23936
        if test -n "$PKG_CONFIG" && \
 
23937
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0\"") >&5
 
23938
  ($PKG_CONFIG --exists --print-errors "libglade-2.0") 2>&5
 
23939
  ac_status=$?
 
23940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23941
  (exit $ac_status); }; then
 
23942
  pkg_cv_GLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0" 2>/dev/null`
 
23943
else
 
23944
  pkg_failed=yes
 
23945
fi
 
23946
    fi
 
23947
else
 
23948
        pkg_failed=untried
 
23949
fi
 
23950
if test -n "$PKG_CONFIG"; then
 
23951
    if test -n "$GLADE_LIBS"; then
 
23952
        pkg_cv_GLADE_LIBS="$GLADE_LIBS"
 
23953
    else
 
23954
        if test -n "$PKG_CONFIG" && \
 
23955
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0\"") >&5
 
23956
  ($PKG_CONFIG --exists --print-errors "libglade-2.0") 2>&5
 
23957
  ac_status=$?
 
23958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23959
  (exit $ac_status); }; then
 
23960
  pkg_cv_GLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0" 2>/dev/null`
 
23961
else
 
23962
  pkg_failed=yes
 
23963
fi
 
23964
    fi
 
23965
else
 
23966
        pkg_failed=untried
 
23967
fi
 
23968
 
 
23969
 
 
23970
 
 
23971
if test $pkg_failed = yes; then
 
23972
 
 
23973
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23974
        _pkg_short_errors_supported=yes
 
23975
else
 
23976
        _pkg_short_errors_supported=no
 
23977
fi
 
23978
        if test $_pkg_short_errors_supported = yes; then
 
23979
                GLADE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libglade-2.0"`
 
23980
        else
 
23981
                GLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0"`
 
23982
        fi
 
23983
        # Put the nasty error message in config.log where it belongs
 
23984
        echo "$GLADE_PKG_ERRORS" >&5
 
23985
 
 
23986
        { { echo "$as_me:$LINENO: error: Package requirements (libglade-2.0) were not met:
 
23987
 
 
23988
$GLADE_PKG_ERRORS
 
23989
 
 
23990
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23991
installed software in a non-standard prefix.
 
23992
 
 
23993
Alternatively, you may set the environment variables GLADE_CFLAGS
 
23994
and GLADE_LIBS to avoid the need to call pkg-config.
 
23995
See the pkg-config man page for more details.
 
23996
" >&5
 
23997
echo "$as_me: error: Package requirements (libglade-2.0) were not met:
 
23998
 
 
23999
$GLADE_PKG_ERRORS
 
24000
 
 
24001
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24002
installed software in a non-standard prefix.
 
24003
 
 
24004
Alternatively, you may set the environment variables GLADE_CFLAGS
 
24005
and GLADE_LIBS to avoid the need to call pkg-config.
 
24006
See the pkg-config man page for more details.
 
24007
" >&2;}
 
24008
   { (exit 1); exit 1; }; }
 
24009
elif test $pkg_failed = untried; then
 
24010
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
24011
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24012
path to pkg-config.
 
24013
 
 
24014
Alternatively, you may set the environment variables GLADE_CFLAGS
 
24015
and GLADE_LIBS to avoid the need to call pkg-config.
 
24016
See the pkg-config man page for more details.
 
24017
 
 
24018
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24019
See \`config.log' for more details." >&5
 
24020
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
24021
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24022
path to pkg-config.
 
24023
 
 
24024
Alternatively, you may set the environment variables GLADE_CFLAGS
 
24025
and GLADE_LIBS to avoid the need to call pkg-config.
 
24026
See the pkg-config man page for more details.
 
24027
 
 
24028
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24029
See \`config.log' for more details." >&2;}
 
24030
   { (exit 1); exit 1; }; }
 
24031
else
 
24032
        GLADE_CFLAGS=$pkg_cv_GLADE_CFLAGS
 
24033
        GLADE_LIBS=$pkg_cv_GLADE_LIBS
 
24034
        { echo "$as_me:$LINENO: result: yes" >&5
 
24035
echo "${ECHO_T}yes" >&6; }
 
24036
        :
 
24037
fi
 
24038
 
 
24039
 
 
24040
 
 
24041
 
 
24042
pkg_failed=no
 
24043
{ echo "$as_me:$LINENO: checking for GCONF" >&5
 
24044
echo $ECHO_N "checking for GCONF... $ECHO_C" >&6; }
 
24045
 
 
24046
if test -n "$PKG_CONFIG"; then
 
24047
    if test -n "$GCONF_CFLAGS"; then
 
24048
        pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
 
24049
    else
 
24050
        if test -n "$PKG_CONFIG" && \
 
24051
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\"") >&5
 
24052
  ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
 
24053
  ac_status=$?
 
24054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24055
  (exit $ac_status); }; then
 
24056
  pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
 
24057
else
 
24058
  pkg_failed=yes
 
24059
fi
 
24060
    fi
 
24061
else
 
24062
        pkg_failed=untried
 
24063
fi
 
24064
if test -n "$PKG_CONFIG"; then
 
24065
    if test -n "$GCONF_LIBS"; then
 
24066
        pkg_cv_GCONF_LIBS="$GCONF_LIBS"
 
24067
    else
 
24068
        if test -n "$PKG_CONFIG" && \
 
24069
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\"") >&5
 
24070
  ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
 
24071
  ac_status=$?
 
24072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24073
  (exit $ac_status); }; then
 
24074
  pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
 
24075
else
 
24076
  pkg_failed=yes
 
24077
fi
 
24078
    fi
 
24079
else
 
24080
        pkg_failed=untried
 
24081
fi
 
24082
 
 
24083
 
 
24084
 
 
24085
if test $pkg_failed = yes; then
 
24086
 
 
24087
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
24088
        _pkg_short_errors_supported=yes
 
24089
else
 
24090
        _pkg_short_errors_supported=no
 
24091
fi
 
24092
        if test $_pkg_short_errors_supported = yes; then
 
24093
                GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gconf-2.0"`
 
24094
        else
 
24095
                GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0"`
 
24096
        fi
 
24097
        # Put the nasty error message in config.log where it belongs
 
24098
        echo "$GCONF_PKG_ERRORS" >&5
 
24099
 
 
24100
        { { echo "$as_me:$LINENO: error: Package requirements (gconf-2.0) were not met:
 
24101
 
 
24102
$GCONF_PKG_ERRORS
 
24103
 
 
24104
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24105
installed software in a non-standard prefix.
 
24106
 
 
24107
Alternatively, you may set the environment variables GCONF_CFLAGS
 
24108
and GCONF_LIBS to avoid the need to call pkg-config.
 
24109
See the pkg-config man page for more details.
 
24110
" >&5
 
24111
echo "$as_me: error: Package requirements (gconf-2.0) were not met:
 
24112
 
 
24113
$GCONF_PKG_ERRORS
 
24114
 
 
24115
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24116
installed software in a non-standard prefix.
 
24117
 
 
24118
Alternatively, you may set the environment variables GCONF_CFLAGS
 
24119
and GCONF_LIBS to avoid the need to call pkg-config.
 
24120
See the pkg-config man page for more details.
 
24121
" >&2;}
 
24122
   { (exit 1); exit 1; }; }
 
24123
elif test $pkg_failed = untried; then
 
24124
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
24125
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24126
path to pkg-config.
 
24127
 
 
24128
Alternatively, you may set the environment variables GCONF_CFLAGS
 
24129
and GCONF_LIBS to avoid the need to call pkg-config.
 
24130
See the pkg-config man page for more details.
 
24131
 
 
24132
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24133
See \`config.log' for more details." >&5
 
24134
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
24135
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24136
path to pkg-config.
 
24137
 
 
24138
Alternatively, you may set the environment variables GCONF_CFLAGS
 
24139
and GCONF_LIBS to avoid the need to call pkg-config.
 
24140
See the pkg-config man page for more details.
 
24141
 
 
24142
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24143
See \`config.log' for more details." >&2;}
 
24144
   { (exit 1); exit 1; }; }
 
24145
else
 
24146
        GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
 
24147
        GCONF_LIBS=$pkg_cv_GCONF_LIBS
 
24148
        { echo "$as_me:$LINENO: result: yes" >&5
 
24149
echo "${ECHO_T}yes" >&6; }
 
24150
        :
 
24151
fi
 
24152
 
 
24153
 
 
24154
 
 
24155
 
 
24156
pkg_failed=no
 
24157
{ echo "$as_me:$LINENO: checking for GNOME_KEYRING" >&5
 
24158
echo $ECHO_N "checking for GNOME_KEYRING... $ECHO_C" >&6; }
 
24159
 
 
24160
if test -n "$PKG_CONFIG"; then
 
24161
    if test -n "$GNOME_KEYRING_CFLAGS"; then
 
24162
        pkg_cv_GNOME_KEYRING_CFLAGS="$GNOME_KEYRING_CFLAGS"
 
24163
    else
 
24164
        if test -n "$PKG_CONFIG" && \
 
24165
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
 
24166
  ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
 
24167
  ac_status=$?
 
24168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24169
  (exit $ac_status); }; then
 
24170
  pkg_cv_GNOME_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
 
24171
else
 
24172
  pkg_failed=yes
 
24173
fi
 
24174
    fi
 
24175
else
 
24176
        pkg_failed=untried
 
24177
fi
 
24178
if test -n "$PKG_CONFIG"; then
 
24179
    if test -n "$GNOME_KEYRING_LIBS"; then
 
24180
        pkg_cv_GNOME_KEYRING_LIBS="$GNOME_KEYRING_LIBS"
 
24181
    else
 
24182
        if test -n "$PKG_CONFIG" && \
 
24183
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
 
24184
  ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
 
24185
  ac_status=$?
 
24186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24187
  (exit $ac_status); }; then
 
24188
  pkg_cv_GNOME_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
 
24189
else
 
24190
  pkg_failed=yes
 
24191
fi
 
24192
    fi
 
24193
else
 
24194
        pkg_failed=untried
 
24195
fi
 
24196
 
 
24197
 
 
24198
 
 
24199
if test $pkg_failed = yes; then
 
24200
 
 
24201
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
24202
        _pkg_short_errors_supported=yes
 
24203
else
 
24204
        _pkg_short_errors_supported=no
 
24205
fi
 
24206
        if test $_pkg_short_errors_supported = yes; then
 
24207
                GNOME_KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1"`
 
24208
        else
 
24209
                GNOME_KEYRING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1"`
 
24210
        fi
 
24211
        # Put the nasty error message in config.log where it belongs
 
24212
        echo "$GNOME_KEYRING_PKG_ERRORS" >&5
 
24213
 
 
24214
        { { echo "$as_me:$LINENO: error: Package requirements (gnome-keyring-1) were not met:
 
24215
 
 
24216
$GNOME_KEYRING_PKG_ERRORS
 
24217
 
 
24218
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24219
installed software in a non-standard prefix.
 
24220
 
 
24221
Alternatively, you may set the environment variables GNOME_KEYRING_CFLAGS
 
24222
and GNOME_KEYRING_LIBS to avoid the need to call pkg-config.
 
24223
See the pkg-config man page for more details.
 
24224
" >&5
 
24225
echo "$as_me: error: Package requirements (gnome-keyring-1) were not met:
 
24226
 
 
24227
$GNOME_KEYRING_PKG_ERRORS
 
24228
 
 
24229
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24230
installed software in a non-standard prefix.
 
24231
 
 
24232
Alternatively, you may set the environment variables GNOME_KEYRING_CFLAGS
 
24233
and GNOME_KEYRING_LIBS to avoid the need to call pkg-config.
 
24234
See the pkg-config man page for more details.
 
24235
" >&2;}
 
24236
   { (exit 1); exit 1; }; }
 
24237
elif test $pkg_failed = untried; then
 
24238
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
24239
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24240
path to pkg-config.
 
24241
 
 
24242
Alternatively, you may set the environment variables GNOME_KEYRING_CFLAGS
 
24243
and GNOME_KEYRING_LIBS to avoid the need to call pkg-config.
 
24244
See the pkg-config man page for more details.
 
24245
 
 
24246
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24247
See \`config.log' for more details." >&5
 
24248
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
24249
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24250
path to pkg-config.
 
24251
 
 
24252
Alternatively, you may set the environment variables GNOME_KEYRING_CFLAGS
 
24253
and GNOME_KEYRING_LIBS to avoid the need to call pkg-config.
 
24254
See the pkg-config man page for more details.
 
24255
 
 
24256
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24257
See \`config.log' for more details." >&2;}
 
24258
   { (exit 1); exit 1; }; }
 
24259
else
 
24260
        GNOME_KEYRING_CFLAGS=$pkg_cv_GNOME_KEYRING_CFLAGS
 
24261
        GNOME_KEYRING_LIBS=$pkg_cv_GNOME_KEYRING_LIBS
 
24262
        { echo "$as_me:$LINENO: result: yes" >&5
 
24263
echo "${ECHO_T}yes" >&6; }
 
24264
        :
 
24265
fi
 
24266
 
 
24267
 
 
24268
 
 
24269
LIBNOTIFY_REQUIRED=0.3.0
 
24270
 
 
24271
# Check whether --with-notify was given.
 
24272
if test "${with_notify+set}" = set; then
 
24273
  withval=$with_notify; enable_notify=$withval
 
24274
else
 
24275
  enable_notify=auto
 
24276
fi
 
24277
 
 
24278
 
 
24279
if test x"$enable_notify" != xno; then
 
24280
 
 
24281
pkg_failed=no
 
24282
{ echo "$as_me:$LINENO: checking for NOTIFY" >&5
 
24283
echo $ECHO_N "checking for NOTIFY... $ECHO_C" >&6; }
 
24284
 
 
24285
if test -n "$PKG_CONFIG"; then
 
24286
    if test -n "$NOTIFY_CFLAGS"; then
 
24287
        pkg_cv_NOTIFY_CFLAGS="$NOTIFY_CFLAGS"
 
24288
    else
 
24289
        if test -n "$PKG_CONFIG" && \
 
24290
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_REQUIRED\"") >&5
 
24291
  ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_REQUIRED") 2>&5
 
24292
  ac_status=$?
 
24293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24294
  (exit $ac_status); }; then
 
24295
  pkg_cv_NOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null`
 
24296
else
 
24297
  pkg_failed=yes
 
24298
fi
 
24299
    fi
 
24300
else
 
24301
        pkg_failed=untried
 
24302
fi
 
24303
if test -n "$PKG_CONFIG"; then
 
24304
    if test -n "$NOTIFY_LIBS"; then
 
24305
        pkg_cv_NOTIFY_LIBS="$NOTIFY_LIBS"
 
24306
    else
 
24307
        if test -n "$PKG_CONFIG" && \
 
24308
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_REQUIRED\"") >&5
 
24309
  ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_REQUIRED") 2>&5
 
24310
  ac_status=$?
 
24311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24312
  (exit $ac_status); }; then
 
24313
  pkg_cv_NOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null`
 
24314
else
 
24315
  pkg_failed=yes
 
24316
fi
 
24317
    fi
 
24318
else
 
24319
        pkg_failed=untried
 
24320
fi
 
24321
 
 
24322
 
 
24323
 
 
24324
if test $pkg_failed = yes; then
 
24325
 
 
24326
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
24327
        _pkg_short_errors_supported=yes
 
24328
else
 
24329
        _pkg_short_errors_supported=no
 
24330
fi
 
24331
        if test $_pkg_short_errors_supported = yes; then
 
24332
                NOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify >= $LIBNOTIFY_REQUIRED"`
 
24333
        else
 
24334
                NOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify >= $LIBNOTIFY_REQUIRED"`
 
24335
        fi
 
24336
        # Put the nasty error message in config.log where it belongs
 
24337
        echo "$NOTIFY_PKG_ERRORS" >&5
 
24338
 
 
24339
        { echo "$as_me:$LINENO: result: no" >&5
 
24340
echo "${ECHO_T}no" >&6; }
 
24341
                enable_notify=no
 
24342
elif test $pkg_failed = untried; then
 
24343
        enable_notify=no
 
24344
else
 
24345
        NOTIFY_CFLAGS=$pkg_cv_NOTIFY_CFLAGS
 
24346
        NOTIFY_LIBS=$pkg_cv_NOTIFY_LIBS
 
24347
        { echo "$as_me:$LINENO: result: yes" >&5
 
24348
echo "${ECHO_T}yes" >&6; }
 
24349
        enable_notify=yes
 
24350
fi
 
24351
        if test "x$enable_notify" != "xno"; then
 
24352
 
 
24353
cat >>confdefs.h <<_ACEOF
 
24354
#define ENABLE_NOTIFY 1
 
24355
_ACEOF
 
24356
 
 
24357
        fi
 
24358
fi
 
24359
 if test x"$enable_notify" != xno; then
 
24360
  WITH_NOTIFY_TRUE=
 
24361
  WITH_NOTIFY_FALSE='#'
 
24362
else
 
24363
  WITH_NOTIFY_TRUE='#'
 
24364
  WITH_NOTIFY_FALSE=
 
24365
fi
 
24366
 # can't do it from inside 'if'
 
24367
 
 
24368
 
 
24369
pkg_failed=no
 
24370
{ echo "$as_me:$LINENO: checking for LIBGNOMEUI" >&5
 
24371
echo $ECHO_N "checking for LIBGNOMEUI... $ECHO_C" >&6; }
 
24372
 
 
24373
if test -n "$PKG_CONFIG"; then
 
24374
    if test -n "$LIBGNOMEUI_CFLAGS"; then
 
24375
        pkg_cv_LIBGNOMEUI_CFLAGS="$LIBGNOMEUI_CFLAGS"
 
24376
    else
 
24377
        if test -n "$PKG_CONFIG" && \
 
24378
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
 
24379
  ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
 
24380
  ac_status=$?
 
24381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24382
  (exit $ac_status); }; then
 
24383
  pkg_cv_LIBGNOMEUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0" 2>/dev/null`
 
24384
else
 
24385
  pkg_failed=yes
 
24386
fi
 
24387
    fi
 
24388
else
 
24389
        pkg_failed=untried
 
24390
fi
 
24391
if test -n "$PKG_CONFIG"; then
 
24392
    if test -n "$LIBGNOMEUI_LIBS"; then
 
24393
        pkg_cv_LIBGNOMEUI_LIBS="$LIBGNOMEUI_LIBS"
 
24394
    else
 
24395
        if test -n "$PKG_CONFIG" && \
 
24396
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
 
24397
  ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
 
24398
  ac_status=$?
 
24399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24400
  (exit $ac_status); }; then
 
24401
  pkg_cv_LIBGNOMEUI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0" 2>/dev/null`
 
24402
else
 
24403
  pkg_failed=yes
 
24404
fi
 
24405
    fi
 
24406
else
 
24407
        pkg_failed=untried
 
24408
fi
 
24409
 
 
24410
 
 
24411
 
 
24412
if test $pkg_failed = yes; then
 
24413
 
 
24414
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
24415
        _pkg_short_errors_supported=yes
 
24416
else
 
24417
        _pkg_short_errors_supported=no
 
24418
fi
 
24419
        if test $_pkg_short_errors_supported = yes; then
 
24420
                LIBGNOMEUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeui-2.0"`
 
24421
        else
 
24422
                LIBGNOMEUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0"`
 
24423
        fi
 
24424
        # Put the nasty error message in config.log where it belongs
 
24425
        echo "$LIBGNOMEUI_PKG_ERRORS" >&5
 
24426
 
 
24427
        { { echo "$as_me:$LINENO: error: Package requirements (libgnomeui-2.0) were not met:
 
24428
 
 
24429
$LIBGNOMEUI_PKG_ERRORS
 
24430
 
 
24431
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24432
installed software in a non-standard prefix.
 
24433
 
 
24434
Alternatively, you may set the environment variables LIBGNOMEUI_CFLAGS
 
24435
and LIBGNOMEUI_LIBS to avoid the need to call pkg-config.
 
24436
See the pkg-config man page for more details.
 
24437
" >&5
 
24438
echo "$as_me: error: Package requirements (libgnomeui-2.0) were not met:
 
24439
 
 
24440
$LIBGNOMEUI_PKG_ERRORS
 
24441
 
 
24442
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
24443
installed software in a non-standard prefix.
 
24444
 
 
24445
Alternatively, you may set the environment variables LIBGNOMEUI_CFLAGS
 
24446
and LIBGNOMEUI_LIBS to avoid the need to call pkg-config.
 
24447
See the pkg-config man page for more details.
 
24448
" >&2;}
 
24449
   { (exit 1); exit 1; }; }
 
24450
elif test $pkg_failed = untried; then
 
24451
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
24452
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24453
path to pkg-config.
 
24454
 
 
24455
Alternatively, you may set the environment variables LIBGNOMEUI_CFLAGS
 
24456
and LIBGNOMEUI_LIBS to avoid the need to call pkg-config.
 
24457
See the pkg-config man page for more details.
 
24458
 
 
24459
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24460
See \`config.log' for more details." >&5
 
24461
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
24462
is in your PATH or set the PKG_CONFIG environment variable to the full
 
24463
path to pkg-config.
 
24464
 
 
24465
Alternatively, you may set the environment variables LIBGNOMEUI_CFLAGS
 
24466
and LIBGNOMEUI_LIBS to avoid the need to call pkg-config.
 
24467
See the pkg-config man page for more details.
 
24468
 
 
24469
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
24470
See \`config.log' for more details." >&2;}
 
24471
   { (exit 1); exit 1; }; }
 
24472
else
 
24473
        LIBGNOMEUI_CFLAGS=$pkg_cv_LIBGNOMEUI_CFLAGS
 
24474
        LIBGNOMEUI_LIBS=$pkg_cv_LIBGNOMEUI_LIBS
 
24475
        { echo "$as_me:$LINENO: result: yes" >&5
 
24476
echo "${ECHO_T}yes" >&6; }
 
24477
        :
 
24478
fi
 
24479
 
 
24480
 
 
24481
 
 
24482
if test -n "$PKG_CONFIG" && \
 
24483
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnome-2.0 >= 2.14.0\"") >&5
 
24484
  ($PKG_CONFIG --exists --print-errors "libgnome-2.0 >= 2.14.0") 2>&5
 
24485
  ac_status=$?
 
24486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24487
  (exit $ac_status); }; then
 
24488
  have_libgnome_2_14=yes
 
24489
else
 
24490
  have_libgnome_2_14=no
 
24491
fi
 
24492
if test "$have_libgnome_2_14" = "yes"; then
 
24493
 
 
24494
cat >>confdefs.h <<\_ACEOF
 
24495
#define HAVE_LIBGNOME_2_14 1
 
24496
_ACEOF
 
24497
 
 
24498
fi
 
24499
 
 
24500
{ echo "$as_me:$LINENO: checking for wireless-tools >= 28pre9" >&5
 
24501
echo $ECHO_N "checking for wireless-tools >= 28pre9... $ECHO_C" >&6; }
 
24502
cat >conftest.$ac_ext <<_ACEOF
 
24503
/* confdefs.h.  */
 
24504
_ACEOF
 
24505
cat confdefs.h >>conftest.$ac_ext
 
24506
cat >>conftest.$ac_ext <<_ACEOF
 
24507
/* end confdefs.h.  */
 
24508
#include <iwlib.h>
 
24509
int
 
24510
main ()
 
24511
{
 
24512
#ifndef IWEVGENIE
 
24513
                #error "not found"
 
24514
                #endif
 
24515
  ;
 
24516
  return 0;
 
24517
}
 
24518
_ACEOF
 
24519
rm -f conftest.$ac_objext
 
24520
if { (ac_try="$ac_compile"
 
24521
case "(($ac_try" in
 
24522
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24523
  *) ac_try_echo=$ac_try;;
 
24524
esac
 
24525
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24526
  (eval "$ac_compile") 2>conftest.er1
 
24527
  ac_status=$?
 
24528
  grep -v '^ *+' conftest.er1 >conftest.err
 
24529
  rm -f conftest.er1
 
24530
  cat conftest.err >&5
 
24531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24532
  (exit $ac_status); } && {
 
24533
         test -z "$ac_c_werror_flag" ||
 
24534
         test ! -s conftest.err
 
24535
       } && test -s conftest.$ac_objext; then
 
24536
  ac_have_iwevgenie=yes
 
24537
else
 
24538
  echo "$as_me: failed program was:" >&5
 
24539
sed 's/^/| /' conftest.$ac_ext >&5
 
24540
 
 
24541
        ac_have_iwevgenie=no
 
24542
fi
 
24543
 
 
24544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24545
{ echo "$as_me:$LINENO: result: $ac_have_iwevgenie" >&5
 
24546
echo "${ECHO_T}$ac_have_iwevgenie" >&6; }
 
24547
if test "$ac_have_iwevgenie" = no; then
 
24548
        { { echo "$as_me:$LINENO: error: wireless-tools >= 28pre9 not installed or not functional" >&5
 
24549
echo "$as_me: error: wireless-tools >= 28pre9 not installed or not functional" >&2;}
 
24550
   { (exit 1); exit 1; }; }
 
24551
fi
 
24552
IWLIB=-liw
 
24553
 
 
24554
 
 
24555
 
 
24556
# Check whether --with-dbus-sys was given.
 
24557
if test "${with_dbus_sys+set}" = set; then
 
24558
  withval=$with_dbus_sys;
 
24559
fi
 
24560
 
 
24561
 
 
24562
if ! test -z "$with_dbus_sys" ; then
 
24563
    DBUS_SYS_DIR="$with_dbus_sys"
 
24564
else
 
24565
    DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
 
24566
fi
 
24567
 
 
24568
 
 
24569
cat >>confdefs.h <<_ACEOF
 
24570
#define DBUS_SYSTEMD_DIR "$DBUS_SYS_DIR"
 
24571
_ACEOF
 
24572
 
 
24573
 
 
24574
#### find the actual value for $prefix that we'll end up with
 
24575
##   (I know this is broken and should be done in the Makefile, but
 
24576
##    that's a major pain and almost nobody actually seems to care)
 
24577
REAL_PREFIX=
 
24578
if test "x$prefix" = "xNONE"; then
 
24579
  REAL_PREFIX=$ac_default_prefix
 
24580
else
 
24581
  REAL_PREFIX=$prefix
 
24582
fi
 
24583
 
 
24584
## temporarily change prefix and exec_prefix
 
24585
old_prefix=$prefix
 
24586
prefix=$REAL_PREFIX
 
24587
 
 
24588
if test "x$exec_prefix" = xNONE ; then
 
24589
   REAL_EXEC_PREFIX=$REAL_PREFIX
 
24590
else
 
24591
   REAL_EXEC_PREFIX=$exec_prefix
 
24592
fi
 
24593
old_exec_prefix=$exec_prefix
 
24594
exec_prefix=$REAL_EXEC_PREFIX
 
24595
 
 
24596
BINDIR_TMP="$bindir"
 
24597
EXPANDED_BINDIR=`eval echo $BINDIR_TMP`
 
24598
 
 
24599
 
 
24600
cat >>confdefs.h <<_ACEOF
 
24601
#define EXPANDED_BINDIR "$EXPANDED_BINDIR"
 
24602
_ACEOF
 
24603
 
 
24604
 
 
24605
## put prefix and exec_prefix back
 
24606
prefix=$old_prefix
 
24607
exec_prefix=$old_exec_prefix
 
24608
 
 
24609
# Check whether --enable-more-warnings was given.
 
24610
if test "${enable_more_warnings+set}" = set; then
 
24611
  enableval=$enable_more_warnings; set_more_warnings="$enableval"
 
24612
else
 
24613
 
 
24614
if test -d "$srcdir/{arch}" || test -d "$srcdir/CVS"; then
 
24615
        set_more_warnings=yes
 
24616
else
 
24617
        set_more_warnings=no
 
24618
fi
 
24619
 
 
24620
fi
 
24621
 
 
24622
{ echo "$as_me:$LINENO: checking for more warnings" >&5
 
24623
echo $ECHO_N "checking for more warnings... $ECHO_C" >&6; }
 
24624
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
 
24625
        { echo "$as_me:$LINENO: result: yes" >&5
 
24626
echo "${ECHO_T}yes" >&6; }
 
24627
        CFLAGS="-Wall -Werror -std=gnu89 $CFLAGS"
 
24628
 
 
24629
        for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
 
24630
                      -Wdeclaration-after-statement -Wstrict-prototypes \
 
24631
                      -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare; do
 
24632
                SAVE_CFLAGS="$CFLAGS"
 
24633
                CFLAGS="$CFLAGS $option"
 
24634
                { echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
 
24635
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6; }
 
24636
                cat >conftest.$ac_ext <<_ACEOF
 
24637
/* confdefs.h.  */
 
24638
_ACEOF
 
24639
cat confdefs.h >>conftest.$ac_ext
 
24640
cat >>conftest.$ac_ext <<_ACEOF
 
24641
/* end confdefs.h.  */
 
24642
 
 
24643
int
 
24644
main ()
 
24645
{
 
24646
 
 
24647
  ;
 
24648
  return 0;
 
24649
}
 
24650
_ACEOF
 
24651
rm -f conftest.$ac_objext
 
24652
if { (ac_try="$ac_compile"
 
24653
case "(($ac_try" in
 
24654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24655
  *) ac_try_echo=$ac_try;;
 
24656
esac
 
24657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24658
  (eval "$ac_compile") 2>conftest.er1
 
24659
  ac_status=$?
 
24660
  grep -v '^ *+' conftest.er1 >conftest.err
 
24661
  rm -f conftest.er1
 
24662
  cat conftest.err >&5
 
24663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24664
  (exit $ac_status); } && {
 
24665
         test -z "$ac_c_werror_flag" ||
 
24666
         test ! -s conftest.err
 
24667
       } && test -s conftest.$ac_objext; then
 
24668
  has_option=yes
 
24669
else
 
24670
  echo "$as_me: failed program was:" >&5
 
24671
sed 's/^/| /' conftest.$ac_ext >&5
 
24672
 
 
24673
        has_option=no
 
24674
fi
 
24675
 
 
24676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24677
                if test $has_option = no; then
 
24678
                        CFLAGS="$SAVE_CFLAGS"
 
24679
                fi
 
24680
                { echo "$as_me:$LINENO: result: $has_option" >&5
 
24681
echo "${ECHO_T}$has_option" >&6; }
 
24682
                unset has_option
 
24683
                unset SAVE_CFLAGS
 
24684
        done
 
24685
        unset option
 
24686
else
 
24687
        { echo "$as_me:$LINENO: result: no" >&5
 
24688
echo "${ECHO_T}no" >&6; }
 
24689
fi
 
24690
 
 
24691
ac_config_files="$ac_config_files Makefile src/Makefile icons/Makefile po/Makefile.in"
 
24692
 
 
24693
cat >confcache <<\_ACEOF
 
24694
# This file is a shell script that caches the results of configure
 
24695
# tests run on this system so they can be shared between configure
 
24696
# scripts and configure runs, see configure's option --config-cache.
 
24697
# It is not useful on other systems.  If it contains results you don't
 
24698
# want to keep, you may remove or edit it.
 
24699
#
 
24700
# config.status only pays attention to the cache file if you give it
 
24701
# the --recheck option to rerun configure.
 
24702
#
 
24703
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24704
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24705
# following values.
 
24706
 
 
24707
_ACEOF
 
24708
 
 
24709
# The following way of writing the cache mishandles newlines in values,
 
24710
# but we know of no workaround that is simple, portable, and efficient.
 
24711
# So, we kill variables containing newlines.
 
24712
# Ultrix sh set writes to stderr and can't be redirected directly,
 
24713
# and sets the high bit in the cache file unless we assign to the vars.
 
24714
(
 
24715
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
24716
    eval ac_val=\$$ac_var
 
24717
    case $ac_val in #(
 
24718
    *${as_nl}*)
 
24719
      case $ac_var in #(
 
24720
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
24721
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
24722
      esac
 
24723
      case $ac_var in #(
 
24724
      _ | IFS | as_nl) ;; #(
 
24725
      *) $as_unset $ac_var ;;
 
24726
      esac ;;
 
24727
    esac
 
24728
  done
 
24729
 
 
24730
  (set) 2>&1 |
 
24731
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
24732
    *${as_nl}ac_space=\ *)
 
24733
      # `set' does not quote correctly, so add quotes (double-quote
 
24734
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24735
      sed -n \
 
24736
        "s/'/'\\\\''/g;
 
24737
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24738
      ;; #(
 
24739
    *)
 
24740
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24741
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
24742
      ;;
 
24743
    esac |
 
24744
    sort
 
24745
) |
 
24746
  sed '
 
24747
     /^ac_cv_env_/b end
 
24748
     t clear
 
24749
     :clear
 
24750
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24751
     t end
 
24752
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24753
     :end' >>confcache
 
24754
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
24755
  if test -w "$cache_file"; then
 
24756
    test "x$cache_file" != "x/dev/null" &&
 
24757
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
24758
echo "$as_me: updating cache $cache_file" >&6;}
 
24759
    cat confcache >$cache_file
 
24760
  else
 
24761
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
24762
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
24763
  fi
 
24764
fi
 
24765
rm -f confcache
 
24766
 
 
24767
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24768
# Let make expand exec_prefix.
 
24769
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24770
 
 
24771
DEFS=-DHAVE_CONFIG_H
 
24772
 
 
24773
ac_libobjs=
 
24774
ac_ltlibobjs=
 
24775
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24776
  # 1. Remove the extension, and $U if already installed.
 
24777
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
24778
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
24779
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
24780
  #    will be set to the directory where LIBOBJS objects are built.
 
24781
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
24782
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
24783
done
 
24784
LIBOBJS=$ac_libobjs
 
24785
 
 
24786
LTLIBOBJS=$ac_ltlibobjs
 
24787
 
 
24788
 
 
24789
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
24790
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
24791
Usually this means the macro was only invoked conditionally." >&5
 
24792
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
24793
Usually this means the macro was only invoked conditionally." >&2;}
 
24794
   { (exit 1); exit 1; }; }
 
24795
fi
 
24796
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24797
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24798
Usually this means the macro was only invoked conditionally." >&5
 
24799
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24800
Usually this means the macro was only invoked conditionally." >&2;}
 
24801
   { (exit 1); exit 1; }; }
 
24802
fi
 
24803
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24804
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24805
Usually this means the macro was only invoked conditionally." >&5
 
24806
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24807
Usually this means the macro was only invoked conditionally." >&2;}
 
24808
   { (exit 1); exit 1; }; }
 
24809
fi
 
24810
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24811
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24812
Usually this means the macro was only invoked conditionally." >&5
 
24813
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24814
Usually this means the macro was only invoked conditionally." >&2;}
 
24815
   { (exit 1); exit 1; }; }
 
24816
fi
 
24817
 
 
24818
  ac_config_commands="$ac_config_commands po/stamp-it"
 
24819
 
 
24820
 
 
24821
if test -z "${WITH_NOTIFY_TRUE}" && test -z "${WITH_NOTIFY_FALSE}"; then
 
24822
  { { echo "$as_me:$LINENO: error: conditional \"WITH_NOTIFY\" was never defined.
 
24823
Usually this means the macro was only invoked conditionally." >&5
 
24824
echo "$as_me: error: conditional \"WITH_NOTIFY\" was never defined.
 
24825
Usually this means the macro was only invoked conditionally." >&2;}
 
24826
   { (exit 1); exit 1; }; }
 
24827
fi
 
24828
 
 
24829
: ${CONFIG_STATUS=./config.status}
 
24830
ac_clean_files_save=$ac_clean_files
 
24831
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24832
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24833
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24834
cat >$CONFIG_STATUS <<_ACEOF
 
24835
#! $SHELL
 
24836
# Generated by $as_me.
 
24837
# Run this file to recreate the current configuration.
 
24838
# Compiler output produced by configure, useful for debugging
 
24839
# configure, is in config.log if it exists.
 
24840
 
 
24841
debug=false
 
24842
ac_cs_recheck=false
 
24843
ac_cs_silent=false
 
24844
SHELL=\${CONFIG_SHELL-$SHELL}
 
24845
_ACEOF
 
24846
 
 
24847
cat >>$CONFIG_STATUS <<\_ACEOF
 
24848
## --------------------- ##
 
24849
## M4sh Initialization.  ##
 
24850
## --------------------- ##
 
24851
 
 
24852
# Be more Bourne compatible
 
24853
DUALCASE=1; export DUALCASE # for MKS sh
 
24854
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24855
  emulate sh
 
24856
  NULLCMD=:
 
24857
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24858
  # is contrary to our usage.  Disable this feature.
 
24859
  alias -g '${1+"$@"}'='"$@"'
 
24860
  setopt NO_GLOB_SUBST
 
24861
else
 
24862
  case `(set -o) 2>/dev/null` in
 
24863
  *posix*) set -o posix ;;
 
24864
esac
 
24865
 
 
24866
fi
 
24867
 
 
24868
 
 
24869
 
 
24870
 
 
24871
# PATH needs CR
 
24872
# Avoid depending upon Character Ranges.
 
24873
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24874
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24875
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24876
as_cr_digits='0123456789'
 
24877
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24878
 
 
24879
# The user is always right.
 
24880
if test "${PATH_SEPARATOR+set}" != set; then
 
24881
  echo "#! /bin/sh" >conf$$.sh
 
24882
  echo  "exit 0"   >>conf$$.sh
 
24883
  chmod +x conf$$.sh
 
24884
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24885
    PATH_SEPARATOR=';'
 
24886
  else
 
24887
    PATH_SEPARATOR=:
 
24888
  fi
 
24889
  rm -f conf$$.sh
 
24890
fi
 
24891
 
 
24892
# Support unset when possible.
 
24893
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24894
  as_unset=unset
 
24895
else
 
24896
  as_unset=false
 
24897
fi
 
24898
 
 
24899
 
 
24900
# IFS
 
24901
# We need space, tab and new line, in precisely that order.  Quoting is
 
24902
# there to prevent editors from complaining about space-tab.
 
24903
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
24904
# splitting by setting IFS to empty value.)
 
24905
as_nl='
 
24906
'
 
24907
IFS=" ""        $as_nl"
 
24908
 
 
24909
# Find who we are.  Look in the path if we contain no directory separator.
 
24910
case $0 in
 
24911
  *[\\/]* ) as_myself=$0 ;;
 
24912
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24913
for as_dir in $PATH
 
24914
do
 
24915
  IFS=$as_save_IFS
 
24916
  test -z "$as_dir" && as_dir=.
 
24917
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24918
done
 
24919
IFS=$as_save_IFS
 
24920
 
 
24921
     ;;
 
24922
esac
 
24923
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
24924
# in which case we are not to be found in the path.
 
24925
if test "x$as_myself" = x; then
 
24926
  as_myself=$0
 
24927
fi
 
24928
if test ! -f "$as_myself"; then
 
24929
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
24930
  { (exit 1); exit 1; }
 
24931
fi
 
24932
 
 
24933
# Work around bugs in pre-3.0 UWIN ksh.
 
24934
for as_var in ENV MAIL MAILPATH
 
24935
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24936
done
 
24937
PS1='$ '
 
24938
PS2='> '
 
24939
PS4='+ '
 
24940
 
 
24941
# NLS nuisances.
 
24942
for as_var in \
 
24943
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
24944
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
24945
  LC_TELEPHONE LC_TIME
 
24946
do
 
24947
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
24948
    eval $as_var=C; export $as_var
 
24949
  else
 
24950
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24951
  fi
 
24952
done
 
24953
 
 
24954
# Required to use basename.
 
24955
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24956
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24957
  as_expr=expr
 
24958
else
 
24959
  as_expr=false
 
24960
fi
 
24961
 
 
24962
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
24963
  as_basename=basename
 
24964
else
 
24965
  as_basename=false
 
24966
fi
 
24967
 
 
24968
 
 
24969
# Name of the executable.
 
24970
as_me=`$as_basename -- "$0" ||
 
24971
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24972
         X"$0" : 'X\(//\)$' \| \
 
24973
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
24974
echo X/"$0" |
 
24975
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
24976
            s//\1/
 
24977
            q
 
24978
          }
 
24979
          /^X\/\(\/\/\)$/{
 
24980
            s//\1/
 
24981
            q
 
24982
          }
 
24983
          /^X\/\(\/\).*/{
 
24984
            s//\1/
 
24985
            q
 
24986
          }
 
24987
          s/.*/./; q'`
 
24988
 
 
24989
# CDPATH.
 
24990
$as_unset CDPATH
 
24991
 
 
24992
 
 
24993
 
 
24994
  as_lineno_1=$LINENO
 
24995
  as_lineno_2=$LINENO
 
24996
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24997
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
24998
 
 
24999
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
25000
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
25001
  # line-number line after each line using $LINENO; the second 'sed'
 
25002
  # does the real work.  The second script uses 'N' to pair each
 
25003
  # line-number line with the line containing $LINENO, and appends
 
25004
  # trailing '-' during substitution so that $LINENO is not a special
 
25005
  # case at line end.
 
25006
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
25007
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
25008
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
25009
  sed -n '
 
25010
    p
 
25011
    /[$]LINENO/=
 
25012
  ' <$as_myself |
 
25013
    sed '
 
25014
      s/[$]LINENO.*/&-/
 
25015
      t lineno
 
25016
      b
 
25017
      :lineno
 
25018
      N
 
25019
      :loop
 
25020
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
25021
      t loop
 
25022
      s/-\n.*//
 
25023
    ' >$as_me.lineno &&
 
25024
  chmod +x "$as_me.lineno" ||
 
25025
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
25026
   { (exit 1); exit 1; }; }
 
25027
 
 
25028
  # Don't try to exec as it changes $[0], causing all sort of problems
 
25029
  # (the dirname of $[0] is not the place where we might find the
 
25030
  # original and so on.  Autoconf is especially sensitive to this).
 
25031
  . "./$as_me.lineno"
 
25032
  # Exit status is that of the last command.
 
25033
  exit
 
25034
}
 
25035
 
 
25036
 
 
25037
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
25038
  as_dirname=dirname
 
25039
else
 
25040
  as_dirname=false
 
25041
fi
 
25042
 
 
25043
ECHO_C= ECHO_N= ECHO_T=
 
25044
case `echo -n x` in
 
25045
-n*)
 
25046
  case `echo 'x\c'` in
 
25047
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
25048
  *)   ECHO_C='\c';;
 
25049
  esac;;
 
25050
*)
 
25051
  ECHO_N='-n';;
 
25052
esac
 
25053
 
 
25054
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
25055
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
25056
  as_expr=expr
 
25057
else
 
25058
  as_expr=false
 
25059
fi
 
25060
 
 
25061
rm -f conf$$ conf$$.exe conf$$.file
 
25062
if test -d conf$$.dir; then
 
25063
  rm -f conf$$.dir/conf$$.file
 
25064
else
 
25065
  rm -f conf$$.dir
 
25066
  mkdir conf$$.dir
 
25067
fi
 
25068
echo >conf$$.file
 
25069
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
25070
  as_ln_s='ln -s'
 
25071
  # ... but there are two gotchas:
 
25072
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
25073
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
25074
  # In both cases, we have to default to `cp -p'.
 
25075
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
25076
    as_ln_s='cp -p'
 
25077
elif ln conf$$.file conf$$ 2>/dev/null; then
 
25078
  as_ln_s=ln
 
25079
else
 
25080
  as_ln_s='cp -p'
 
25081
fi
 
25082
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
25083
rmdir conf$$.dir 2>/dev/null
 
25084
 
 
25085
if mkdir -p . 2>/dev/null; then
 
25086
  as_mkdir_p=:
 
25087
else
 
25088
  test -d ./-p && rmdir ./-p
 
25089
  as_mkdir_p=false
 
25090
fi
 
25091
 
 
25092
if test -x / >/dev/null 2>&1; then
 
25093
  as_test_x='test -x'
 
25094
else
 
25095
  if ls -dL / >/dev/null 2>&1; then
 
25096
    as_ls_L_option=L
 
25097
  else
 
25098
    as_ls_L_option=
 
25099
  fi
 
25100
  as_test_x='
 
25101
    eval sh -c '\''
 
25102
      if test -d "$1"; then
 
25103
        test -d "$1/.";
 
25104
      else
 
25105
        case $1 in
 
25106
        -*)set "./$1";;
 
25107
        esac;
 
25108
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
25109
        ???[sx]*):;;*)false;;esac;fi
 
25110
    '\'' sh
 
25111
  '
 
25112
fi
 
25113
as_executable_p=$as_test_x
 
25114
 
 
25115
# Sed expression to map a string onto a valid CPP name.
 
25116
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
25117
 
 
25118
# Sed expression to map a string onto a valid variable name.
 
25119
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
25120
 
 
25121
 
 
25122
exec 6>&1
 
25123
 
 
25124
# Save the log message, to keep $[0] and so on meaningful, and to
 
25125
# report actual input values of CONFIG_FILES etc. instead of their
 
25126
# values after options handling.
 
25127
ac_log="
 
25128
This file was extended by nm-applet $as_me 0.6.5, which was
 
25129
generated by GNU Autoconf 2.61.  Invocation command line was
 
25130
 
 
25131
  CONFIG_FILES    = $CONFIG_FILES
 
25132
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
25133
  CONFIG_LINKS    = $CONFIG_LINKS
 
25134
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
25135
  $ $0 $@
 
25136
 
 
25137
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
25138
"
 
25139
 
 
25140
_ACEOF
 
25141
 
 
25142
cat >>$CONFIG_STATUS <<_ACEOF
 
25143
# Files that config.status was made for.
 
25144
config_files="$ac_config_files"
 
25145
config_headers="$ac_config_headers"
 
25146
config_commands="$ac_config_commands"
 
25147
 
 
25148
_ACEOF
 
25149
 
 
25150
cat >>$CONFIG_STATUS <<\_ACEOF
 
25151
ac_cs_usage="\
 
25152
\`$as_me' instantiates files from templates according to the
 
25153
current configuration.
 
25154
 
 
25155
Usage: $0 [OPTIONS] [FILE]...
 
25156
 
 
25157
  -h, --help       print this help, then exit
 
25158
  -V, --version    print version number and configuration settings, then exit
 
25159
  -q, --quiet      do not print progress messages
 
25160
  -d, --debug      don't remove temporary files
 
25161
      --recheck    update $as_me by reconfiguring in the same conditions
 
25162
  --file=FILE[:TEMPLATE]
 
25163
                   instantiate the configuration file FILE
 
25164
  --header=FILE[:TEMPLATE]
 
25165
                   instantiate the configuration header FILE
 
25166
 
 
25167
Configuration files:
 
25168
$config_files
 
25169
 
 
25170
Configuration headers:
 
25171
$config_headers
 
25172
 
 
25173
Configuration commands:
 
25174
$config_commands
 
25175
 
 
25176
Report bugs to <bug-autoconf@gnu.org>."
 
25177
 
 
25178
_ACEOF
 
25179
cat >>$CONFIG_STATUS <<_ACEOF
 
25180
ac_cs_version="\\
 
25181
nm-applet config.status 0.6.5
 
25182
configured by $0, generated by GNU Autoconf 2.61,
 
25183
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
25184
 
 
25185
Copyright (C) 2006 Free Software Foundation, Inc.
 
25186
This config.status script is free software; the Free Software Foundation
 
25187
gives unlimited permission to copy, distribute and modify it."
 
25188
 
 
25189
ac_pwd='$ac_pwd'
 
25190
srcdir='$srcdir'
 
25191
INSTALL='$INSTALL'
 
25192
MKDIR_P='$MKDIR_P'
 
25193
_ACEOF
 
25194
 
 
25195
cat >>$CONFIG_STATUS <<\_ACEOF
 
25196
# If no file are specified by the user, then we need to provide default
 
25197
# value.  By we need to know if files were specified by the user.
 
25198
ac_need_defaults=:
 
25199
while test $# != 0
 
25200
do
 
25201
  case $1 in
 
25202
  --*=*)
 
25203
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
25204
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
25205
    ac_shift=:
 
25206
    ;;
 
25207
  *)
 
25208
    ac_option=$1
 
25209
    ac_optarg=$2
 
25210
    ac_shift=shift
 
25211
    ;;
 
25212
  esac
 
25213
 
 
25214
  case $ac_option in
 
25215
  # Handling of the options.
 
25216
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
25217
    ac_cs_recheck=: ;;
 
25218
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
25219
    echo "$ac_cs_version"; exit ;;
 
25220
  --debug | --debu | --deb | --de | --d | -d )
 
25221
    debug=: ;;
 
25222
  --file | --fil | --fi | --f )
 
25223
    $ac_shift
 
25224
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
25225
    ac_need_defaults=false;;
 
25226
  --header | --heade | --head | --hea )
 
25227
    $ac_shift
 
25228
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
25229
    ac_need_defaults=false;;
 
25230
  --he | --h)
 
25231
    # Conflict between --help and --header
 
25232
    { echo "$as_me: error: ambiguous option: $1
 
25233
Try \`$0 --help' for more information." >&2
 
25234
   { (exit 1); exit 1; }; };;
 
25235
  --help | --hel | -h )
 
25236
    echo "$ac_cs_usage"; exit ;;
 
25237
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
25238
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
25239
    ac_cs_silent=: ;;
 
25240
 
 
25241
  # This is an error.
 
25242
  -*) { echo "$as_me: error: unrecognized option: $1
 
25243
Try \`$0 --help' for more information." >&2
 
25244
   { (exit 1); exit 1; }; } ;;
 
25245
 
 
25246
  *) ac_config_targets="$ac_config_targets $1"
 
25247
     ac_need_defaults=false ;;
 
25248
 
 
25249
  esac
 
25250
  shift
 
25251
done
 
25252
 
 
25253
ac_configure_extra_args=
 
25254
 
 
25255
if $ac_cs_silent; then
 
25256
  exec 6>/dev/null
 
25257
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25258
fi
 
25259
 
 
25260
_ACEOF
 
25261
cat >>$CONFIG_STATUS <<_ACEOF
 
25262
if \$ac_cs_recheck; then
 
25263
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
25264
  CONFIG_SHELL=$SHELL
 
25265
  export CONFIG_SHELL
 
25266
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25267
fi
 
25268
 
 
25269
_ACEOF
 
25270
cat >>$CONFIG_STATUS <<\_ACEOF
 
25271
exec 5>>config.log
 
25272
{
 
25273
  echo
 
25274
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25275
## Running $as_me. ##
 
25276
_ASBOX
 
25277
  echo "$ac_log"
 
25278
} >&5
 
25279
 
 
25280
_ACEOF
 
25281
cat >>$CONFIG_STATUS <<_ACEOF
 
25282
#
 
25283
# INIT-COMMANDS
 
25284
#
 
25285
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
25286
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
 
25287
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
 
25288
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
 
25289
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
 
25290
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
 
25291
 
 
25292
 
 
25293
_ACEOF
 
25294
 
 
25295
cat >>$CONFIG_STATUS <<\_ACEOF
 
25296
 
 
25297
# Handling of arguments.
 
25298
for ac_config_target in $ac_config_targets
 
25299
do
 
25300
  case $ac_config_target in
 
25301
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
25302
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
25303
    "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
 
25304
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
25305
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
25306
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
25307
    "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
 
25308
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
25309
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
 
25310
 
 
25311
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25312
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25313
   { (exit 1); exit 1; }; };;
 
25314
  esac
 
25315
done
 
25316
 
 
25317
 
 
25318
# If the user did not use the arguments to specify the items to instantiate,
 
25319
# then the envvar interface is used.  Set only those that are not.
 
25320
# We use the long form for the default assignment because of an extremely
 
25321
# bizarre bug on SunOS 4.1.3.
 
25322
if $ac_need_defaults; then
 
25323
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25324
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
25325
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
25326
fi
 
25327
 
 
25328
# Have a temporary directory for convenience.  Make it in the build tree
 
25329
# simply because there is no reason against having it here, and in addition,
 
25330
# creating and moving files from /tmp can sometimes cause problems.
 
25331
# Hook for its removal unless debugging.
 
25332
# Note that there is a small window in which the directory will not be cleaned:
 
25333
# after its creation but before its name has been assigned to `$tmp'.
 
25334
$debug ||
 
25335
{
 
25336
  tmp=
 
25337
  trap 'exit_status=$?
 
25338
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
25339
' 0
 
25340
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25341
}
 
25342
# Create a (secure) tmp directory for tmp files.
 
25343
 
 
25344
{
 
25345
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
25346
  test -n "$tmp" && test -d "$tmp"
 
25347
}  ||
 
25348
{
 
25349
  tmp=./conf$$-$RANDOM
 
25350
  (umask 077 && mkdir "$tmp")
 
25351
} ||
 
25352
{
 
25353
   echo "$me: cannot create a temporary directory in ." >&2
 
25354
   { (exit 1); exit 1; }
 
25355
}
 
25356
 
 
25357
#
 
25358
# Set up the sed scripts for CONFIG_FILES section.
 
25359
#
 
25360
 
 
25361
# No need to generate the scripts if there are no CONFIG_FILES.
 
25362
# This happens for instance when ./config.status config.h
 
25363
if test -n "$CONFIG_FILES"; then
 
25364
 
 
25365
_ACEOF
 
25366
 
 
25367
 
 
25368
 
 
25369
ac_delim='%!_!# '
 
25370
for ac_last_try in false false false false false :; do
 
25371
  cat >conf$$subs.sed <<_ACEOF
 
25372
SHELL!$SHELL$ac_delim
 
25373
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
25374
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
25375
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
25376
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
25377
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
25378
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
25379
exec_prefix!$exec_prefix$ac_delim
 
25380
prefix!$prefix$ac_delim
 
25381
program_transform_name!$program_transform_name$ac_delim
 
25382
bindir!$bindir$ac_delim
 
25383
sbindir!$sbindir$ac_delim
 
25384
libexecdir!$libexecdir$ac_delim
 
25385
datarootdir!$datarootdir$ac_delim
 
25386
datadir!$datadir$ac_delim
 
25387
sysconfdir!$sysconfdir$ac_delim
 
25388
sharedstatedir!$sharedstatedir$ac_delim
 
25389
localstatedir!$localstatedir$ac_delim
 
25390
includedir!$includedir$ac_delim
 
25391
oldincludedir!$oldincludedir$ac_delim
 
25392
docdir!$docdir$ac_delim
 
25393
infodir!$infodir$ac_delim
 
25394
htmldir!$htmldir$ac_delim
 
25395
dvidir!$dvidir$ac_delim
 
25396
pdfdir!$pdfdir$ac_delim
 
25397
psdir!$psdir$ac_delim
 
25398
libdir!$libdir$ac_delim
 
25399
localedir!$localedir$ac_delim
 
25400
mandir!$mandir$ac_delim
 
25401
DEFS!$DEFS$ac_delim
 
25402
ECHO_C!$ECHO_C$ac_delim
 
25403
ECHO_N!$ECHO_N$ac_delim
 
25404
ECHO_T!$ECHO_T$ac_delim
 
25405
LIBS!$LIBS$ac_delim
 
25406
build_alias!$build_alias$ac_delim
 
25407
host_alias!$host_alias$ac_delim
 
25408
target_alias!$target_alias$ac_delim
 
25409
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
25410
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
25411
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
25412
am__isrc!$am__isrc$ac_delim
 
25413
CYGPATH_W!$CYGPATH_W$ac_delim
 
25414
PACKAGE!$PACKAGE$ac_delim
 
25415
VERSION!$VERSION$ac_delim
 
25416
ACLOCAL!$ACLOCAL$ac_delim
 
25417
AUTOCONF!$AUTOCONF$ac_delim
 
25418
AUTOMAKE!$AUTOMAKE$ac_delim
 
25419
AUTOHEADER!$AUTOHEADER$ac_delim
 
25420
MAKEINFO!$MAKEINFO$ac_delim
 
25421
install_sh!$install_sh$ac_delim
 
25422
STRIP!$STRIP$ac_delim
 
25423
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
25424
mkdir_p!$mkdir_p$ac_delim
 
25425
AWK!$AWK$ac_delim
 
25426
SET_MAKE!$SET_MAKE$ac_delim
 
25427
am__leading_dot!$am__leading_dot$ac_delim
 
25428
AMTAR!$AMTAR$ac_delim
 
25429
am__tar!$am__tar$ac_delim
 
25430
am__untar!$am__untar$ac_delim
 
25431
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 
25432
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 
25433
MAINT!$MAINT$ac_delim
 
25434
CC!$CC$ac_delim
 
25435
CFLAGS!$CFLAGS$ac_delim
 
25436
LDFLAGS!$LDFLAGS$ac_delim
 
25437
CPPFLAGS!$CPPFLAGS$ac_delim
 
25438
ac_ct_CC!$ac_ct_CC$ac_delim
 
25439
EXEEXT!$EXEEXT$ac_delim
 
25440
OBJEXT!$OBJEXT$ac_delim
 
25441
DEPDIR!$DEPDIR$ac_delim
 
25442
am__include!$am__include$ac_delim
 
25443
am__quote!$am__quote$ac_delim
 
25444
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
25445
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
25446
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
25447
CCDEPMODE!$CCDEPMODE$ac_delim
 
25448
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
25449
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
25450
build!$build$ac_delim
 
25451
build_cpu!$build_cpu$ac_delim
 
25452
build_vendor!$build_vendor$ac_delim
 
25453
build_os!$build_os$ac_delim
 
25454
host!$host$ac_delim
 
25455
host_cpu!$host_cpu$ac_delim
 
25456
host_vendor!$host_vendor$ac_delim
 
25457
host_os!$host_os$ac_delim
 
25458
SED!$SED$ac_delim
 
25459
GREP!$GREP$ac_delim
 
25460
EGREP!$EGREP$ac_delim
 
25461
LN_S!$LN_S$ac_delim
 
25462
ECHO!$ECHO$ac_delim
 
25463
AR!$AR$ac_delim
 
25464
RANLIB!$RANLIB$ac_delim
 
25465
CPP!$CPP$ac_delim
 
25466
CXX!$CXX$ac_delim
 
25467
CXXFLAGS!$CXXFLAGS$ac_delim
 
25468
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
25469
_ACEOF
 
25470
 
 
25471
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
25472
    break
 
25473
  elif $ac_last_try; then
 
25474
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25475
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25476
   { (exit 1); exit 1; }; }
 
25477
  else
 
25478
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25479
  fi
 
25480
done
 
25481
 
 
25482
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25483
if test -n "$ac_eof"; then
 
25484
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25485
  ac_eof=`expr $ac_eof + 1`
 
25486
fi
 
25487
 
 
25488
cat >>$CONFIG_STATUS <<_ACEOF
 
25489
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
25490
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25491
_ACEOF
 
25492
sed '
 
25493
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25494
s/^/s,@/; s/!/@,|#_!!_#|/
 
25495
:n
 
25496
t n
 
25497
s/'"$ac_delim"'$/,g/; t
 
25498
s/$/\\/; p
 
25499
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25500
' >>$CONFIG_STATUS <conf$$subs.sed
 
25501
rm -f conf$$subs.sed
 
25502
cat >>$CONFIG_STATUS <<_ACEOF
 
25503
CEOF$ac_eof
 
25504
_ACEOF
 
25505
 
 
25506
 
 
25507
ac_delim='%!_!# '
 
25508
for ac_last_try in false false false false false :; do
 
25509
  cat >conf$$subs.sed <<_ACEOF
 
25510
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
25511
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
25512
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
25513
CXXCPP!$CXXCPP$ac_delim
 
25514
F77!$F77$ac_delim
 
25515
FFLAGS!$FFLAGS$ac_delim
 
25516
ac_ct_F77!$ac_ct_F77$ac_delim
 
25517
LIBTOOL!$LIBTOOL$ac_delim
 
25518
ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
 
25519
WARN_CFLAGS!$WARN_CFLAGS$ac_delim
 
25520
DISABLE_DEPRECATED!$DISABLE_DEPRECATED$ac_delim
 
25521
LIBOBJS!$LIBOBJS$ac_delim
 
25522
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 
25523
INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
 
25524
INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
 
25525
INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
 
25526
INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
 
25527
INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
 
25528
INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
 
25529
INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
 
25530
INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
 
25531
INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
 
25532
INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
 
25533
INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
 
25534
INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
 
25535
INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
 
25536
INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
 
25537
INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
 
25538
INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
 
25539
INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
 
25540
INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
 
25541
INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
 
25542
INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
 
25543
INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
 
25544
INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
 
25545
INTLTOOL_ICONV!$INTLTOOL_ICONV$ac_delim
 
25546
INTLTOOL_MSGFMT!$INTLTOOL_MSGFMT$ac_delim
 
25547
INTLTOOL_MSGMERGE!$INTLTOOL_MSGMERGE$ac_delim
 
25548
INTLTOOL_XGETTEXT!$INTLTOOL_XGETTEXT$ac_delim
 
25549
ALL_LINGUAS!$ALL_LINGUAS$ac_delim
 
25550
DATADIRNAME!$DATADIRNAME$ac_delim
 
25551
USE_NLS!$USE_NLS$ac_delim
 
25552
MSGFMT!$MSGFMT$ac_delim
 
25553
MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 
25554
GMSGFMT!$GMSGFMT$ac_delim
 
25555
XGETTEXT!$XGETTEXT$ac_delim
 
25556
CATALOGS!$CATALOGS$ac_delim
 
25557
CATOBJEXT!$CATOBJEXT$ac_delim
 
25558
GMOFILES!$GMOFILES$ac_delim
 
25559
INSTOBJEXT!$INSTOBJEXT$ac_delim
 
25560
INTLLIBS!$INTLLIBS$ac_delim
 
25561
PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 
25562
PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 
25563
POFILES!$POFILES$ac_delim
 
25564
POSUB!$POSUB$ac_delim
 
25565
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 
25566
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
25567
DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
 
25568
DBUS_LIBS!$DBUS_LIBS$ac_delim
 
25569
GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
 
25570
GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
 
25571
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
 
25572
GLIB_LIBS!$GLIB_LIBS$ac_delim
 
25573
GMODULE_CFLAGS!$GMODULE_CFLAGS$ac_delim
 
25574
GMODULE_LIBS!$GMODULE_LIBS$ac_delim
 
25575
GOBJECT_CFLAGS!$GOBJECT_CFLAGS$ac_delim
 
25576
GOBJECT_LIBS!$GOBJECT_LIBS$ac_delim
 
25577
NM_CFLAGS!$NM_CFLAGS$ac_delim
 
25578
NM_LIBS!$NM_LIBS$ac_delim
 
25579
GTK_CFLAGS!$GTK_CFLAGS$ac_delim
 
25580
GTK_LIBS!$GTK_LIBS$ac_delim
 
25581
GDK_PIXBUF_CFLAGS!$GDK_PIXBUF_CFLAGS$ac_delim
 
25582
GDK_PIXBUF_LIBS!$GDK_PIXBUF_LIBS$ac_delim
 
25583
GLADE_CFLAGS!$GLADE_CFLAGS$ac_delim
 
25584
GLADE_LIBS!$GLADE_LIBS$ac_delim
 
25585
GCONF_CFLAGS!$GCONF_CFLAGS$ac_delim
 
25586
GCONF_LIBS!$GCONF_LIBS$ac_delim
 
25587
GNOME_KEYRING_CFLAGS!$GNOME_KEYRING_CFLAGS$ac_delim
 
25588
GNOME_KEYRING_LIBS!$GNOME_KEYRING_LIBS$ac_delim
 
25589
NOTIFY_CFLAGS!$NOTIFY_CFLAGS$ac_delim
 
25590
NOTIFY_LIBS!$NOTIFY_LIBS$ac_delim
 
25591
WITH_NOTIFY_TRUE!$WITH_NOTIFY_TRUE$ac_delim
 
25592
WITH_NOTIFY_FALSE!$WITH_NOTIFY_FALSE$ac_delim
 
25593
LIBGNOMEUI_CFLAGS!$LIBGNOMEUI_CFLAGS$ac_delim
 
25594
LIBGNOMEUI_LIBS!$LIBGNOMEUI_LIBS$ac_delim
 
25595
IWLIB!$IWLIB$ac_delim
 
25596
DBUS_SYS_DIR!$DBUS_SYS_DIR$ac_delim
 
25597
EXPANDED_BINDIR!$EXPANDED_BINDIR$ac_delim
 
25598
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
25599
_ACEOF
 
25600
 
 
25601
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
 
25602
    break
 
25603
  elif $ac_last_try; then
 
25604
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25605
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25606
   { (exit 1); exit 1; }; }
 
25607
  else
 
25608
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25609
  fi
 
25610
done
 
25611
 
 
25612
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25613
if test -n "$ac_eof"; then
 
25614
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25615
  ac_eof=`expr $ac_eof + 1`
 
25616
fi
 
25617
 
 
25618
cat >>$CONFIG_STATUS <<_ACEOF
 
25619
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
25620
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
25621
_ACEOF
 
25622
sed '
 
25623
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25624
s/^/s,@/; s/!/@,|#_!!_#|/
 
25625
:n
 
25626
t n
 
25627
s/'"$ac_delim"'$/,g/; t
 
25628
s/$/\\/; p
 
25629
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25630
' >>$CONFIG_STATUS <conf$$subs.sed
 
25631
rm -f conf$$subs.sed
 
25632
cat >>$CONFIG_STATUS <<_ACEOF
 
25633
:end
 
25634
s/|#_!!_#|//g
 
25635
CEOF$ac_eof
 
25636
_ACEOF
 
25637
 
 
25638
 
 
25639
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
25640
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
25641
# trailing colons and then remove the whole line if VPATH becomes empty
 
25642
# (actually we leave an empty line to preserve line numbers).
 
25643
if test "x$srcdir" = x.; then
 
25644
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
25645
s/:*\$(srcdir):*/:/
 
25646
s/:*\${srcdir}:*/:/
 
25647
s/:*@srcdir@:*/:/
 
25648
s/^\([^=]*=[     ]*\):*/\1/
 
25649
s/:*$//
 
25650
s/^[^=]*=[       ]*$//
 
25651
}'
 
25652
fi
 
25653
 
 
25654
cat >>$CONFIG_STATUS <<\_ACEOF
 
25655
fi # test -n "$CONFIG_FILES"
 
25656
 
 
25657
 
 
25658
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
25659
do
 
25660
  case $ac_tag in
 
25661
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
25662
  esac
 
25663
  case $ac_mode$ac_tag in
 
25664
  :[FHL]*:*);;
 
25665
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
25666
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
25667
   { (exit 1); exit 1; }; };;
 
25668
  :[FH]-) ac_tag=-:-;;
 
25669
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
25670
  esac
 
25671
  ac_save_IFS=$IFS
 
25672
  IFS=:
 
25673
  set x $ac_tag
 
25674
  IFS=$ac_save_IFS
 
25675
  shift
 
25676
  ac_file=$1
 
25677
  shift
 
25678
 
 
25679
  case $ac_mode in
 
25680
  :L) ac_source=$1;;
 
25681
  :[FH])
 
25682
    ac_file_inputs=
 
25683
    for ac_f
 
25684
    do
 
25685
      case $ac_f in
 
25686
      -) ac_f="$tmp/stdin";;
 
25687
      *) # Look for the file first in the build tree, then in the source tree
 
25688
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
25689
         # because $ac_f cannot contain `:'.
 
25690
         test -f "$ac_f" ||
 
25691
           case $ac_f in
 
25692
           [\\/$]*) false;;
 
25693
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
25694
           esac ||
 
25695
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
25696
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
25697
   { (exit 1); exit 1; }; };;
 
25698
      esac
 
25699
      ac_file_inputs="$ac_file_inputs $ac_f"
 
25700
    done
 
25701
 
 
25702
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25703
    # use $as_me), people would be surprised to read:
 
25704
    #    /* config.h.  Generated by config.status.  */
 
25705
    configure_input="Generated from "`IFS=:
 
25706
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
25707
    if test x"$ac_file" != x-; then
 
25708
      configure_input="$ac_file.  $configure_input"
 
25709
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25710
echo "$as_me: creating $ac_file" >&6;}
 
25711
    fi
 
25712
 
 
25713
    case $ac_tag in
 
25714
    *:-:* | *:-) cat >"$tmp/stdin";;
 
25715
    esac
 
25716
    ;;
 
25717
  esac
 
25718
 
 
25719
  ac_dir=`$as_dirname -- "$ac_file" ||
 
25720
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25721
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25722
         X"$ac_file" : 'X\(//\)$' \| \
 
25723
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
25724
echo X"$ac_file" |
 
25725
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25726
            s//\1/
 
25727
            q
 
25728
          }
 
25729
          /^X\(\/\/\)[^/].*/{
 
25730
            s//\1/
 
25731
            q
 
25732
          }
 
25733
          /^X\(\/\/\)$/{
 
25734
            s//\1/
 
25735
            q
 
25736
          }
 
25737
          /^X\(\/\).*/{
 
25738
            s//\1/
 
25739
            q
 
25740
          }
 
25741
          s/.*/./; q'`
 
25742
  { as_dir="$ac_dir"
 
25743
  case $as_dir in #(
 
25744
  -*) as_dir=./$as_dir;;
 
25745
  esac
 
25746
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25747
    as_dirs=
 
25748
    while :; do
 
25749
      case $as_dir in #(
 
25750
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
25751
      *) as_qdir=$as_dir;;
 
25752
      esac
 
25753
      as_dirs="'$as_qdir' $as_dirs"
 
25754
      as_dir=`$as_dirname -- "$as_dir" ||
 
25755
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25756
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25757
         X"$as_dir" : 'X\(//\)$' \| \
 
25758
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25759
echo X"$as_dir" |
 
25760
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25761
            s//\1/
 
25762
            q
 
25763
          }
 
25764
          /^X\(\/\/\)[^/].*/{
 
25765
            s//\1/
 
25766
            q
 
25767
          }
 
25768
          /^X\(\/\/\)$/{
 
25769
            s//\1/
 
25770
            q
 
25771
          }
 
25772
          /^X\(\/\).*/{
 
25773
            s//\1/
 
25774
            q
 
25775
          }
 
25776
          s/.*/./; q'`
 
25777
      test -d "$as_dir" && break
 
25778
    done
 
25779
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25780
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25781
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25782
   { (exit 1); exit 1; }; }; }
 
25783
  ac_builddir=.
 
25784
 
 
25785
case "$ac_dir" in
 
25786
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25787
*)
 
25788
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25789
  # A ".." for each directory in $ac_dir_suffix.
 
25790
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
25791
  case $ac_top_builddir_sub in
 
25792
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25793
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
25794
  esac ;;
 
25795
esac
 
25796
ac_abs_top_builddir=$ac_pwd
 
25797
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
25798
# for backward compatibility:
 
25799
ac_top_builddir=$ac_top_build_prefix
 
25800
 
 
25801
case $srcdir in
 
25802
  .)  # We are building in place.
 
25803
    ac_srcdir=.
 
25804
    ac_top_srcdir=$ac_top_builddir_sub
 
25805
    ac_abs_top_srcdir=$ac_pwd ;;
 
25806
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
25807
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25808
    ac_top_srcdir=$srcdir
 
25809
    ac_abs_top_srcdir=$srcdir ;;
 
25810
  *) # Relative name.
 
25811
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
25812
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
25813
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
25814
esac
 
25815
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
25816
 
 
25817
 
 
25818
  case $ac_mode in
 
25819
  :F)
 
25820
  #
 
25821
  # CONFIG_FILE
 
25822
  #
 
25823
 
 
25824
  case $INSTALL in
 
25825
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25826
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
25827
  esac
 
25828
  ac_MKDIR_P=$MKDIR_P
 
25829
  case $MKDIR_P in
 
25830
  [\\/$]* | ?:[\\/]* ) ;;
 
25831
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
25832
  esac
 
25833
_ACEOF
 
25834
 
 
25835
cat >>$CONFIG_STATUS <<\_ACEOF
 
25836
# If the template does not know about datarootdir, expand it.
 
25837
# FIXME: This hack should be removed a few years after 2.60.
 
25838
ac_datarootdir_hack=; ac_datarootdir_seen=
 
25839
 
 
25840
case `sed -n '/datarootdir/ {
 
25841
  p
 
25842
  q
 
25843
}
 
25844
/@datadir@/p
 
25845
/@docdir@/p
 
25846
/@infodir@/p
 
25847
/@localedir@/p
 
25848
/@mandir@/p
 
25849
' $ac_file_inputs` in
 
25850
*datarootdir*) ac_datarootdir_seen=yes;;
 
25851
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
25852
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
25853
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
25854
_ACEOF
 
25855
cat >>$CONFIG_STATUS <<_ACEOF
 
25856
  ac_datarootdir_hack='
 
25857
  s&@datadir@&$datadir&g
 
25858
  s&@docdir@&$docdir&g
 
25859
  s&@infodir@&$infodir&g
 
25860
  s&@localedir@&$localedir&g
 
25861
  s&@mandir@&$mandir&g
 
25862
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
25863
esac
 
25864
_ACEOF
 
25865
 
 
25866
# Neutralize VPATH when `$srcdir' = `.'.
 
25867
# Shell code in configure.ac might set extrasub.
 
25868
# FIXME: do we really want to maintain this feature?
 
25869
cat >>$CONFIG_STATUS <<_ACEOF
 
25870
  sed "$ac_vpsub
 
25871
$extrasub
 
25872
_ACEOF
 
25873
cat >>$CONFIG_STATUS <<\_ACEOF
 
25874
:t
 
25875
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25876
s&@configure_input@&$configure_input&;t t
 
25877
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
25878
s&@srcdir@&$ac_srcdir&;t t
 
25879
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
25880
s&@top_srcdir@&$ac_top_srcdir&;t t
 
25881
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
25882
s&@builddir@&$ac_builddir&;t t
 
25883
s&@abs_builddir@&$ac_abs_builddir&;t t
 
25884
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
25885
s&@INSTALL@&$ac_INSTALL&;t t
 
25886
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
25887
$ac_datarootdir_hack
 
25888
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
25889
 
 
25890
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
25891
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
25892
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
25893
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25894
which seems to be undefined.  Please make sure it is defined." >&5
 
25895
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25896
which seems to be undefined.  Please make sure it is defined." >&2;}
 
25897
 
 
25898
  rm -f "$tmp/stdin"
 
25899
  case $ac_file in
 
25900
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
25901
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
25902
  esac
 
25903
 ;;
 
25904
  :H)
 
25905
  #
 
25906
  # CONFIG_HEADER
 
25907
  #
 
25908
_ACEOF
 
25909
 
 
25910
# Transform confdefs.h into a sed script `conftest.defines', that
 
25911
# substitutes the proper values into config.h.in to produce config.h.
 
25912
rm -f conftest.defines conftest.tail
 
25913
# First, append a space to every undef/define line, to ease matching.
 
25914
echo 's/$/ /' >conftest.defines
 
25915
# Then, protect against being on the right side of a sed subst, or in
 
25916
# an unquoted here document, in config.status.  If some macros were
 
25917
# called several times there might be several #defines for the same
 
25918
# symbol, which is useless.  But do not sort them, since the last
 
25919
# AC_DEFINE must be honored.
 
25920
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
25921
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
25922
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
25923
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
25924
# just an empty string.
 
25925
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
25926
ac_dB='\\)[      (].*,\\1define\\2'
 
25927
ac_dC=' '
 
25928
ac_dD=' ,'
 
25929
 
 
25930
uniq confdefs.h |
 
25931
  sed -n '
 
25932
        t rset
 
25933
        :rset
 
25934
        s/^[     ]*#[    ]*define[       ][      ]*//
 
25935
        t ok
 
25936
        d
 
25937
        :ok
 
25938
        s/[\\&,]/\\&/g
 
25939
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
25940
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
25941
  ' >>conftest.defines
 
25942
 
 
25943
# Remove the space that was appended to ease matching.
 
25944
# Then replace #undef with comments.  This is necessary, for
 
25945
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
25946
# on some systems where configure will not decide to define it.
 
25947
# (The regexp can be short, since the line contains either #define or #undef.)
 
25948
echo 's/ $//
 
25949
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
25950
 
 
25951
# Break up conftest.defines:
 
25952
ac_max_sed_lines=50
 
25953
 
 
25954
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
25955
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
25956
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
25957
# et cetera.
 
25958
ac_in='$ac_file_inputs'
 
25959
ac_out='"$tmp/out1"'
 
25960
ac_nxt='"$tmp/out2"'
 
25961
 
 
25962
while :
 
25963
do
 
25964
  # Write a here document:
 
25965
    cat >>$CONFIG_STATUS <<_ACEOF
 
25966
    # First, check the format of the line:
 
25967
    cat >"\$tmp/defines.sed" <<\\CEOF
 
25968
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
25969
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
25970
b
 
25971
:def
 
25972
_ACEOF
 
25973
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
25974
  echo 'CEOF
 
25975
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
25976
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
25977
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
25978
  grep . conftest.tail >/dev/null || break
 
25979
  rm -f conftest.defines
 
25980
  mv conftest.tail conftest.defines
 
25981
done
 
25982
rm -f conftest.defines conftest.tail
 
25983
 
 
25984
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
25985
cat >>$CONFIG_STATUS <<\_ACEOF
 
25986
  if test x"$ac_file" != x-; then
 
25987
    echo "/* $configure_input  */" >"$tmp/config.h"
 
25988
    cat "$ac_result" >>"$tmp/config.h"
 
25989
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
25990
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
25991
echo "$as_me: $ac_file is unchanged" >&6;}
 
25992
    else
 
25993
      rm -f $ac_file
 
25994
      mv "$tmp/config.h" $ac_file
 
25995
    fi
 
25996
  else
 
25997
    echo "/* $configure_input  */"
 
25998
    cat "$ac_result"
 
25999
  fi
 
26000
  rm -f "$tmp/out12"
 
26001
# Compute $ac_file's index in $config_headers.
 
26002
_am_stamp_count=1
 
26003
for _am_header in $config_headers :; do
 
26004
  case $_am_header in
 
26005
    $ac_file | $ac_file:* )
 
26006
      break ;;
 
26007
    * )
 
26008
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
26009
  esac
 
26010
done
 
26011
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
26012
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26013
         X$ac_file : 'X\(//\)[^/]' \| \
 
26014
         X$ac_file : 'X\(//\)$' \| \
 
26015
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
26016
echo X$ac_file |
 
26017
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26018
            s//\1/
 
26019
            q
 
26020
          }
 
26021
          /^X\(\/\/\)[^/].*/{
 
26022
            s//\1/
 
26023
            q
 
26024
          }
 
26025
          /^X\(\/\/\)$/{
 
26026
            s//\1/
 
26027
            q
 
26028
          }
 
26029
          /^X\(\/\).*/{
 
26030
            s//\1/
 
26031
            q
 
26032
          }
 
26033
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
26034
 ;;
 
26035
 
 
26036
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
26037
echo "$as_me: executing $ac_file commands" >&6;}
 
26038
 ;;
 
26039
  esac
 
26040
 
 
26041
 
 
26042
  case $ac_file$ac_mode in
 
26043
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
26044
  # Strip MF so we end up with the name of the file.
 
26045
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
26046
  # Check whether this is an Automake generated Makefile or not.
 
26047
  # We used to match only the files named `Makefile.in', but
 
26048
  # some people rename them; so instead we look at the file content.
 
26049
  # Grep'ing the first line is not enough: some people post-process
 
26050
  # each Makefile.in and add a new line on top of each file to say so.
 
26051
  # Grep'ing the whole file is not good either: AIX grep has a line
 
26052
  # limit of 2048, but all sed's we know have understand at least 4000.
 
26053
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
26054
    dirpart=`$as_dirname -- "$mf" ||
 
26055
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26056
         X"$mf" : 'X\(//\)[^/]' \| \
 
26057
         X"$mf" : 'X\(//\)$' \| \
 
26058
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
26059
echo X"$mf" |
 
26060
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26061
            s//\1/
 
26062
            q
 
26063
          }
 
26064
          /^X\(\/\/\)[^/].*/{
 
26065
            s//\1/
 
26066
            q
 
26067
          }
 
26068
          /^X\(\/\/\)$/{
 
26069
            s//\1/
 
26070
            q
 
26071
          }
 
26072
          /^X\(\/\).*/{
 
26073
            s//\1/
 
26074
            q
 
26075
          }
 
26076
          s/.*/./; q'`
 
26077
  else
 
26078
    continue
 
26079
  fi
 
26080
  # Extract the definition of DEPDIR, am__include, and am__quote
 
26081
  # from the Makefile without running `make'.
 
26082
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
26083
  test -z "$DEPDIR" && continue
 
26084
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
26085
  test -z "am__include" && continue
 
26086
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
26087
  # When using ansi2knr, U may be empty or an underscore; expand it
 
26088
  U=`sed -n 's/^U = //p' < "$mf"`
 
26089
  # Find all dependency output files, they are included files with
 
26090
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
26091
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
26092
  # expansion.
 
26093
  for file in `sed -n "
 
26094
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
26095
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
26096
    # Make sure the directory exists.
 
26097
    test -f "$dirpart/$file" && continue
 
26098
    fdir=`$as_dirname -- "$file" ||
 
26099
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26100
         X"$file" : 'X\(//\)[^/]' \| \
 
26101
         X"$file" : 'X\(//\)$' \| \
 
26102
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
26103
echo X"$file" |
 
26104
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26105
            s//\1/
 
26106
            q
 
26107
          }
 
26108
          /^X\(\/\/\)[^/].*/{
 
26109
            s//\1/
 
26110
            q
 
26111
          }
 
26112
          /^X\(\/\/\)$/{
 
26113
            s//\1/
 
26114
            q
 
26115
          }
 
26116
          /^X\(\/\).*/{
 
26117
            s//\1/
 
26118
            q
 
26119
          }
 
26120
          s/.*/./; q'`
 
26121
    { as_dir=$dirpart/$fdir
 
26122
  case $as_dir in #(
 
26123
  -*) as_dir=./$as_dir;;
 
26124
  esac
 
26125
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
26126
    as_dirs=
 
26127
    while :; do
 
26128
      case $as_dir in #(
 
26129
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
26130
      *) as_qdir=$as_dir;;
 
26131
      esac
 
26132
      as_dirs="'$as_qdir' $as_dirs"
 
26133
      as_dir=`$as_dirname -- "$as_dir" ||
 
26134
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26135
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
26136
         X"$as_dir" : 'X\(//\)$' \| \
 
26137
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
26138
echo X"$as_dir" |
 
26139
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26140
            s//\1/
 
26141
            q
 
26142
          }
 
26143
          /^X\(\/\/\)[^/].*/{
 
26144
            s//\1/
 
26145
            q
 
26146
          }
 
26147
          /^X\(\/\/\)$/{
 
26148
            s//\1/
 
26149
            q
 
26150
          }
 
26151
          /^X\(\/\).*/{
 
26152
            s//\1/
 
26153
            q
 
26154
          }
 
26155
          s/.*/./; q'`
 
26156
      test -d "$as_dir" && break
 
26157
    done
 
26158
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
26159
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
26160
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
26161
   { (exit 1); exit 1; }; }; }
 
26162
    # echo "creating $dirpart/$file"
 
26163
    echo '# dummy' > "$dirpart/$file"
 
26164
  done
 
26165
done
 
26166
 ;;
 
26167
    "intltool":C)
 
26168
 
 
26169
for file in intltool-extract intltool-merge intltool-update; do
 
26170
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
 
26171
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
 
26172
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
 
26173
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
 
26174
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
 
26175
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
 
26176
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
 
26177
        < ${ac_aux_dir}/${file}.in > ${file}.out
 
26178
  if cmp -s ${file} ${file}.out 2>/dev/null; then
 
26179
    rm -f ${file}.out
 
26180
  else
 
26181
    mv -f ${file}.out ${file}
 
26182
  fi
 
26183
  chmod ugo+x ${file}
 
26184
  chmod u+w ${file}
 
26185
done
 
26186
 
 
26187
 ;;
 
26188
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 
26189
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
26190
      esac ;;
 
26191
    "po/stamp-it":C)
 
26192
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
 
26193
    >"po/stamp-it.tmp"
 
26194
    sed '/^#/d
 
26195
         s/^[[].*] *//
 
26196
         /^[    ]*$/d
 
26197
        '"s|^|  $ac_top_srcdir/|" \
 
26198
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
 
26199
 
 
26200
    if test ! -f "po/Makefile"; then
 
26201
      { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
 
26202
echo "$as_me: error: po/Makefile is not ready." >&2;}
 
26203
   { (exit 1); exit 1; }; }
 
26204
    fi
 
26205
    mv "po/Makefile" "po/Makefile.tmp"
 
26206
    sed '/^POTFILES =/,/[^\\]$/ {
 
26207
                /^POTFILES =/!d
 
26208
                r po/POTFILES
 
26209
          }
 
26210
         ' "po/Makefile.tmp" >"po/Makefile"
 
26211
    rm -f "po/Makefile.tmp"
 
26212
    mv "po/stamp-it.tmp" "po/stamp-it"
 
26213
   ;;
 
26214
 
 
26215
  esac
 
26216
done # for ac_tag
 
26217
 
 
26218
 
 
26219
{ (exit 0); exit 0; }
 
26220
_ACEOF
 
26221
chmod +x $CONFIG_STATUS
 
26222
ac_clean_files=$ac_clean_files_save
 
26223
 
 
26224
 
 
26225
# configure is writing to config.log, and then calls config.status.
 
26226
# config.status does its own redirection, appending to config.log.
 
26227
# Unfortunately, on DOS this fails, as config.log is still kept open
 
26228
# by configure, so config.status won't be able to write to it; its
 
26229
# output is simply discarded.  So we exec the FD to /dev/null,
 
26230
# effectively closing config.log, so it can be properly (re)opened and
 
26231
# appended to by config.status.  When coming back to configure, we
 
26232
# need to make the FD available again.
 
26233
if test "$no_create" != yes; then
 
26234
  ac_cs_success=:
 
26235
  ac_config_status_args=
 
26236
  test "$silent" = yes &&
 
26237
    ac_config_status_args="$ac_config_status_args --quiet"
 
26238
  exec 5>/dev/null
 
26239
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
26240
  exec 5>>config.log
 
26241
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
26242
  # would make configure fail if this is the last instruction.
 
26243
  $ac_cs_success || { (exit 1); exit 1; }
 
26244
fi
 
26245