~ubuntu-branches/ubuntu/saucy/xterm/saucy-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Kavanagh
  • Date: 2008-11-23 17:15:10 UTC
  • mfrom: (1.1.10 upstream) (11.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081123171510-fdwvfr4ytnfvjwjl
Tags: 237-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Enabled URL hilighting
  - Maintainer field
  - rm -rf for .pc patches
* Closes (LP: #301451)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2823
2823
aix[45]*) #(vi
2824
2824
        CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
2825
2825
        ;;
2826
 
freebsd*) #(vi
 
2826
freebsd*|dragonfly*) #(vi
2827
2827
        # 5.x headers associate
2828
2828
        #       _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2829
2829
        #       _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
12160
12160
fi
12161
12161
done
12162
12162
 
 
12163
if test -n "$cf_cv_lib_part_tgetent"; then
 
12164
 
 
12165
for ac_func in use_extended_names
 
12166
do
 
12167
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12168
echo "$as_me:12168: checking for $ac_func" >&5
 
12169
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12170
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12172
else
 
12173
  cat >conftest.$ac_ext <<_ACEOF
 
12174
#line 12174 "configure"
 
12175
#include "confdefs.h"
 
12176
/* System header to define __stub macros and hopefully few prototypes,
 
12177
    which can conflict with char $ac_func (); below.  */
 
12178
#include <assert.h>
 
12179
/* Override any gcc2 internal prototype to avoid an error.  */
 
12180
#ifdef __cplusplus
 
12181
extern "C"
 
12182
#endif
 
12183
/* We use char because int might match the return type of a gcc2
 
12184
   builtin and then its argument prototype would still apply.  */
 
12185
char $ac_func ();
 
12186
char (*f) ();
 
12187
 
 
12188
int
 
12189
main ()
 
12190
{
 
12191
/* The GNU C library defines this for functions which it implements
 
12192
    to always fail with ENOSYS.  Some functions are actually named
 
12193
    something starting with __ and the normal name is an alias.  */
 
12194
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12195
choke me
 
12196
#else
 
12197
f = $ac_func;
 
12198
#endif
 
12199
 
 
12200
  ;
 
12201
  return 0;
 
12202
}
 
12203
_ACEOF
 
12204
rm -f conftest.$ac_objext conftest$ac_exeext
 
12205
if { (eval echo "$as_me:12205: \"$ac_link\"") >&5
 
12206
  (eval $ac_link) 2>&5
 
12207
  ac_status=$?
 
12208
  echo "$as_me:12208: \$? = $ac_status" >&5
 
12209
  (exit $ac_status); } &&
 
12210
         { ac_try='test -s conftest$ac_exeext'
 
12211
  { (eval echo "$as_me:12211: \"$ac_try\"") >&5
 
12212
  (eval $ac_try) 2>&5
 
12213
  ac_status=$?
 
12214
  echo "$as_me:12214: \$? = $ac_status" >&5
 
12215
  (exit $ac_status); }; }; then
 
12216
  eval "$as_ac_var=yes"
 
12217
else
 
12218
  echo "$as_me: failed program was:" >&5
 
12219
cat conftest.$ac_ext >&5
 
12220
eval "$as_ac_var=no"
 
12221
fi
 
12222
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12223
fi
 
12224
echo "$as_me:12224: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12225
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12226
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12227
  cat >>confdefs.h <<EOF
 
12228
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12229
EOF
 
12230
 
 
12231
fi
 
12232
done
 
12233
 
 
12234
fi
 
12235
 
12163
12236
if test -n "$GCC" ; then
12164
 
echo "$as_me:12164: checking if you want to turn on gcc warnings" >&5
 
12237
echo "$as_me:12237: checking if you want to turn on gcc warnings" >&5
12165
12238
echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
12166
12239
 
12167
12240
# Check whether --enable-warnings or --disable-warnings was given.
12178
12251
  with_warnings=no
12179
12252
 
12180
12253
fi;
12181
 
echo "$as_me:12181: result: $with_warnings" >&5
 
12254
echo "$as_me:12254: result: $with_warnings" >&5
12182
12255
echo "${ECHO_T}$with_warnings" >&6
12183
12256
if test "$with_warnings" = yes
12184
12257
then
12201
12274
EOF
12202
12275
if test "$GCC" = yes
12203
12276
then
12204
 
        { echo "$as_me:12204: checking for $CC __attribute__ directives..." >&5
 
12277
        { echo "$as_me:12277: checking for $CC __attribute__ directives..." >&5
12205
12278
echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12206
12279
cat > conftest.$ac_ext <<EOF
12207
 
#line 12207 "${as_me-configure}"
 
12280
#line 12280 "${as_me-configure}"
12208
12281
#include "confdefs.h"
12209
12282
#include "conftest.h"
12210
12283
#include "conftest.i"
12242
12315
EOF
12243
12316
                        ;;
12244
12317
                esac
12245
 
                if { (eval echo "$as_me:12245: \"$ac_compile\"") >&5
 
12318
                if { (eval echo "$as_me:12318: \"$ac_compile\"") >&5
12246
12319
  (eval $ac_compile) 2>&5
12247
12320
  ac_status=$?
12248
 
  echo "$as_me:12248: \$? = $ac_status" >&5
 
12321
  echo "$as_me:12321: \$? = $ac_status" >&5
12249
12322
  (exit $ac_status); }; then
12250
 
                        test -n "$verbose" && echo "$as_me:12250: result: ... $cf_attribute" >&5
 
12323
                        test -n "$verbose" && echo "$as_me:12323: result: ... $cf_attribute" >&5
12251
12324
echo "${ECHO_T}... $cf_attribute" >&6
12252
12325
                        cat conftest.h >>confdefs.h
12253
12326
                fi
12260
12333
 
12261
12334
GCC_VERSION=none
12262
12335
if test "$GCC" = yes ; then
12263
 
        echo "$as_me:12263: checking version of $CC" >&5
 
12336
        echo "$as_me:12336: checking version of $CC" >&5
12264
12337
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
12265
12338
        GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
12266
12339
        test -z "$GCC_VERSION" && GCC_VERSION=unknown
12267
 
        echo "$as_me:12267: result: $GCC_VERSION" >&5
 
12340
        echo "$as_me:12340: result: $GCC_VERSION" >&5
12268
12341
echo "${ECHO_T}$GCC_VERSION" >&6
12269
12342
fi
12270
12343
 
12273
12346
if test "$GCC" = yes ; then
12274
12347
        case $host_os in
12275
12348
        linux*|gnu*)
12276
 
                echo "$as_me:12276: checking if this is really Intel C compiler" >&5
 
12349
                echo "$as_me:12349: checking if this is really Intel C compiler" >&5
12277
12350
echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12278
12351
                cf_save_CFLAGS="$CFLAGS"
12279
12352
                CFLAGS="$CFLAGS -no-gcc"
12280
12353
                cat >conftest.$ac_ext <<_ACEOF
12281
 
#line 12281 "configure"
 
12354
#line 12354 "configure"
12282
12355
#include "confdefs.h"
12283
12356
 
12284
12357
int
12295
12368
}
12296
12369
_ACEOF
12297
12370
rm -f conftest.$ac_objext
12298
 
if { (eval echo "$as_me:12298: \"$ac_compile\"") >&5
 
12371
if { (eval echo "$as_me:12371: \"$ac_compile\"") >&5
12299
12372
  (eval $ac_compile) 2>&5
12300
12373
  ac_status=$?
12301
 
  echo "$as_me:12301: \$? = $ac_status" >&5
 
12374
  echo "$as_me:12374: \$? = $ac_status" >&5
12302
12375
  (exit $ac_status); } &&
12303
12376
         { ac_try='test -s conftest.$ac_objext'
12304
 
  { (eval echo "$as_me:12304: \"$ac_try\"") >&5
 
12377
  { (eval echo "$as_me:12377: \"$ac_try\"") >&5
12305
12378
  (eval $ac_try) 2>&5
12306
12379
  ac_status=$?
12307
 
  echo "$as_me:12307: \$? = $ac_status" >&5
 
12380
  echo "$as_me:12380: \$? = $ac_status" >&5
12308
12381
  (exit $ac_status); }; }; then
12309
12382
  INTEL_COMPILER=yes
12310
12383
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12315
12388
fi
12316
12389
rm -f conftest.$ac_objext conftest.$ac_ext
12317
12390
                CFLAGS="$cf_save_CFLAGS"
12318
 
                echo "$as_me:12318: result: $INTEL_COMPILER" >&5
 
12391
                echo "$as_me:12391: result: $INTEL_COMPILER" >&5
12319
12392
echo "${ECHO_T}$INTEL_COMPILER" >&6
12320
12393
                ;;
12321
12394
        esac
12322
12395
fi
12323
12396
 
12324
12397
cat > conftest.$ac_ext <<EOF
12325
 
#line 12325 "${as_me-configure}"
 
12398
#line 12398 "${as_me-configure}"
12326
12399
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12327
12400
EOF
12328
12401
 
12340
12413
# remark #981: operands are evaluated in unspecified order
12341
12414
# warning #269: invalid format string conversion
12342
12415
 
12343
 
        { echo "$as_me:12343: checking for $CC warning options..." >&5
 
12416
        { echo "$as_me:12416: checking for $CC warning options..." >&5
12344
12417
echo "$as_me: checking for $CC warning options..." >&6;}
12345
12418
        cf_save_CFLAGS="$CFLAGS"
12346
12419
        EXTRA_CFLAGS="-Wall"
12357
12430
                wd981
12358
12431
        do
12359
12432
                CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12360
 
                if { (eval echo "$as_me:12360: \"$ac_compile\"") >&5
 
12433
                if { (eval echo "$as_me:12433: \"$ac_compile\"") >&5
12361
12434
  (eval $ac_compile) 2>&5
12362
12435
  ac_status=$?
12363
 
  echo "$as_me:12363: \$? = $ac_status" >&5
 
12436
  echo "$as_me:12436: \$? = $ac_status" >&5
12364
12437
  (exit $ac_status); }; then
12365
 
                        test -n "$verbose" && echo "$as_me:12365: result: ... -$cf_opt" >&5
 
12438
                        test -n "$verbose" && echo "$as_me:12438: result: ... -$cf_opt" >&5
12366
12439
echo "${ECHO_T}... -$cf_opt" >&6
12367
12440
                        EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12368
12441
                fi
12371
12444
 
12372
12445
elif test "$GCC" = yes
12373
12446
then
12374
 
        { echo "$as_me:12374: checking for $CC warning options..." >&5
 
12447
        { echo "$as_me:12447: checking for $CC warning options..." >&5
12375
12448
echo "$as_me: checking for $CC warning options..." >&6;}
12376
12449
        cf_save_CFLAGS="$CFLAGS"
12377
12450
        EXTRA_CFLAGS="-W -Wall"
12391
12464
                Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12392
12465
        do
12393
12466
                CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12394
 
                if { (eval echo "$as_me:12394: \"$ac_compile\"") >&5
 
12467
                if { (eval echo "$as_me:12467: \"$ac_compile\"") >&5
12395
12468
  (eval $ac_compile) 2>&5
12396
12469
  ac_status=$?
12397
 
  echo "$as_me:12397: \$? = $ac_status" >&5
 
12470
  echo "$as_me:12470: \$? = $ac_status" >&5
12398
12471
  (exit $ac_status); }; then
12399
 
                        test -n "$verbose" && echo "$as_me:12399: result: ... -$cf_opt" >&5
 
12472
                        test -n "$verbose" && echo "$as_me:12472: result: ... -$cf_opt" >&5
12400
12473
echo "${ECHO_T}... -$cf_opt" >&6
12401
12474
                        case $cf_opt in #(vi
12402
12475
                        Wcast-qual) #(vi
12404
12477
                                ;;
12405
12478
                        Winline) #(vi
12406
12479
                                case $GCC_VERSION in
12407
 
                                3.3*)
 
12480
                                [34].*)
12408
12481
                                        test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
12409
12482
 
12410
 
echo "${as_me-configure}:12410: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
 
12483
echo "${as_me-configure}:12483: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12411
12484
 
12412
12485
                                        continue;;
12413
12486
                                esac
12539
12612
: ${CONFIG_STATUS=./config.status}
12540
12613
ac_clean_files_save=$ac_clean_files
12541
12614
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12542
 
{ echo "$as_me:12542: creating $CONFIG_STATUS" >&5
 
12615
{ echo "$as_me:12615: creating $CONFIG_STATUS" >&5
12543
12616
echo "$as_me: creating $CONFIG_STATUS" >&6;}
12544
12617
cat >$CONFIG_STATUS <<_ACEOF
12545
12618
#! $SHELL
12712
12785
    echo "$ac_cs_version"; exit 0 ;;
12713
12786
  --he | --h)
12714
12787
    # Conflict between --help and --header
12715
 
    { { echo "$as_me:12715: error: ambiguous option: $1
 
12788
    { { echo "$as_me:12788: error: ambiguous option: $1
12716
12789
Try \`$0 --help' for more information." >&5
12717
12790
echo "$as_me: error: ambiguous option: $1
12718
12791
Try \`$0 --help' for more information." >&2;}
12731
12804
    ac_need_defaults=false;;
12732
12805
 
12733
12806
  # This is an error.
12734
 
  -*) { { echo "$as_me:12734: error: unrecognized option: $1
 
12807
  -*) { { echo "$as_me:12807: error: unrecognized option: $1
12735
12808
Try \`$0 --help' for more information." >&5
12736
12809
echo "$as_me: error: unrecognized option: $1
12737
12810
Try \`$0 --help' for more information." >&2;}
12768
12841
  # Handling of arguments.
12769
12842
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12770
12843
  "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
12771
 
  *) { { echo "$as_me:12771: error: invalid argument: $ac_config_target" >&5
 
12844
  *) { { echo "$as_me:12844: error: invalid argument: $ac_config_target" >&5
12772
12845
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12773
12846
   { (exit 1); exit 1; }; };;
12774
12847
  esac
13024
13097
  esac
13025
13098
 
13026
13099
  if test x"$ac_file" != x-; then
13027
 
    { echo "$as_me:13027: creating $ac_file" >&5
 
13100
    { echo "$as_me:13100: creating $ac_file" >&5
13028
13101
echo "$as_me: creating $ac_file" >&6;}
13029
13102
    rm -f "$ac_file"
13030
13103
  fi
13042
13115
      -) echo $tmp/stdin ;;
13043
13116
      [\\/$]*)
13044
13117
         # Absolute (can't be DOS-style, as IFS=:)
13045
 
         test -f "$f" || { { echo "$as_me:13045: error: cannot find input file: $f" >&5
 
13118
         test -f "$f" || { { echo "$as_me:13118: error: cannot find input file: $f" >&5
13046
13119
echo "$as_me: error: cannot find input file: $f" >&2;}
13047
13120
   { (exit 1); exit 1; }; }
13048
13121
         echo $f;;
13055
13128
           echo $srcdir/$f
13056
13129
         else
13057
13130
           # /dev/null tree
13058
 
           { { echo "$as_me:13058: error: cannot find input file: $f" >&5
 
13131
           { { echo "$as_me:13131: error: cannot find input file: $f" >&5
13059
13132
echo "$as_me: error: cannot find input file: $f" >&2;}
13060
13133
   { (exit 1); exit 1; }; }
13061
13134
         fi;;
13121
13194
  * )   ac_file_in=$ac_file.in ;;
13122
13195
  esac
13123
13196
 
13124
 
  test x"$ac_file" != x- && { echo "$as_me:13124: creating $ac_file" >&5
 
13197
  test x"$ac_file" != x- && { echo "$as_me:13197: creating $ac_file" >&5
13125
13198
echo "$as_me: creating $ac_file" >&6;}
13126
13199
 
13127
13200
  # First look for the input files in the build tree, otherwise in the
13132
13205
      -) echo $tmp/stdin ;;
13133
13206
      [\\/$]*)
13134
13207
         # Absolute (can't be DOS-style, as IFS=:)
13135
 
         test -f "$f" || { { echo "$as_me:13135: error: cannot find input file: $f" >&5
 
13208
         test -f "$f" || { { echo "$as_me:13208: error: cannot find input file: $f" >&5
13136
13209
echo "$as_me: error: cannot find input file: $f" >&2;}
13137
13210
   { (exit 1); exit 1; }; }
13138
13211
         echo $f;;
13145
13218
           echo $srcdir/$f
13146
13219
         else
13147
13220
           # /dev/null tree
13148
 
           { { echo "$as_me:13148: error: cannot find input file: $f" >&5
 
13221
           { { echo "$as_me:13221: error: cannot find input file: $f" >&5
13149
13222
echo "$as_me: error: cannot find input file: $f" >&2;}
13150
13223
   { (exit 1); exit 1; }; }
13151
13224
         fi;;
13263
13336
  rm -f $tmp/in
13264
13337
  if test x"$ac_file" != x-; then
13265
13338
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13266
 
      { echo "$as_me:13266: $ac_file is unchanged" >&5
 
13339
      { echo "$as_me:13339: $ac_file is unchanged" >&5
13267
13340
echo "$as_me: $ac_file is unchanged" >&6;}
13268
13341
    else
13269
13342
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \