1#!/bin/sh 2# 3# Copyright (c) 2004, 2005 Darren Tucker 4# 5# Permission to use, copy, modify, and distribute this software for any 6# purpose with or without fee is hereby granted, provided that the above 7# copyright notice and this permission notice appear in all copies. 8# 9# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 17host="@host@" 18AWK="@AWK@" 19CC="@CC@" 20CPP="@CPP@" 21CFLAGS="@CFLAGS@" 22CPPFLAGS="@CPPFLAGS@" 23LDFLAGS="@LDFLAGS@" 24LIBS="@LIBS@" 25 26# Note format: 27# identifier: [data] CRCR 28 29echo "openssh-survey-version: 1" 30echo 31echo "openssh-version: `./ssh -V 2>&1`" 32echo 33configinv=`$AWK '/^ \\\$.*configure/' config.log | sed 's/^ \\\$ //g'` 34echo "configure-invocation: $configinv" 35echo 36echo "host: $host" 37echo 38echo "uname: `uname`" 39echo 40echo "uname-r: `uname -r`" 41echo 42echo "uname-m: `uname -m`" 43echo 44echo "uname-p: `uname -p`" 45echo 46echo "oslevel: `oslevel 2>/dev/null`" 47echo 48echo "oslevel-r: `oslevel -r 2>/dev/null`" 49echo 50echo "cc: $CC" 51echo 52echo "cflags: $CFLAGS" 53echo 54echo "cppflags: $CPPFLAGS" 55echo 56echo "ldflags: $LDFLAGS" 57echo 58echo "libs: $LIBS" 59echo 60echo "ccver-v: `$CC -v 2>&1 | sed '/^[ \t]*$/d'`" 61echo 62echo "ccver-V: `$CC -V 2>&1 | sed '/^[ \t]*$/d'`" 63echo 64echo "cppdefines:" 65${CPP} -dM - </dev/null 66echo 67echo "config.h:" 68egrep '#define|#undef' config.h 69echo 70